[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] AFL error



PureBytes Links

Trading Reference Links

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: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of nasdaq trader
Sent: Saturday, April 07, 2007 7:04 PM
To: amibroker@xxxxxxxxxxxxxxx
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 <dingo@xxxxxxxxxxx> wrote:
why not look up Cross in the help file?
 
d


From: amibroker@xxxxxxxxxps.com [mailto:amibroker@yahoogroups.com] On Behalf Of nasdaq trader
Sent: Saturday, April 07, 2007 6:43 PM
To: amibroker@xxxxxxxxxps.com
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 you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.


The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___