You asked "What is the correct format for using this?" 

and that is what is in the help file. It takes 2 arguments not three.
 
d


  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of nasdaq trader
Sent: Saturday, April 07, 2007 7:04 PM
To: [email protected]
Subject: RE: [amibroker] AFL error


There was no reference to Cross with a studyId in the help file. I am
specifically trying to learn to use Cross with a study Id.

Best regards
-VJ

dingo <[EMAIL PROTECTED]> wrote: 

why not look up Cross in the help file?
 
d


  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of nasdaq trader
Sent: Saturday, April 07, 2007 6:43 PM
To: [email protected]
Subject: [amibroker] AFL error


I get an error when I run the following, this line is taken directly from
the online reference (reproduced below). The error I get is "too many
arguments"

Sell = Cross( Study( "SU" ), Close, GetChartID() );

What is the correct format for using this?

Best regards,
-VJ


========================================



Write the formula that checks trend line break 
In this example we will detect if the closing price drops BELOW support
trend line. This is actually very simple:

sell = cross( study( "SU" ), close, GetChartID() );

Note that study() function accepts two arguments: the first is StudyID two
letter code that corresponds to one given in properites dialog; the second
argument is chart ID - it should be taken either via GetChartID() function
(then it refers to current indicator) or read from Parameter dialog, Axes &
Grid: Miscellaneous: Chart ID
  _____  

We won't tell. Get more on shows
<http://us.rd.yahoo.com/evt=49980/*http://tv.yahoo.com/collections/265> you
hate to love
(and love to hate): Yahoo!
<http://us.rd.yahoo.com/evt=49980/*http://tv.yahoo.com/collections/265> TV's
Guilty Pleasures list. 




  _____  

The fish are biting.
Get
<http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/spon
soredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50> more
visitors on your site using Yahoo!
<http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/spon
soredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50> Search
Marketing.  

Reply via email to