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

RE: [amibroker] newbie have troubles with formula



PureBytes Links

Trading Reference Links

Hi Eric,

 

For both the ROC and EMA functions, you should specify a price or indicator array (e.g. the Close):

 

Buy= Cross ( ROC (C, 14), -10);

Sell=Cross ( EMA (C, 5), Close);

 

Also the ROC function returns a percentage as a fraction, so 10% would be 0.10.  I’m not sure what you’re trying to do with the -10 which would be -1000%, but maybe you really meant to use -0.10.

 

Regards,

 

David

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of eric gao
Sent: 02/21/2007 8:43 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] newbie have troubles with formula

 

hi, all. i am just trying to write simple trading ideas:

buy= cross ( roc (14), -10);

sell=cross ( ema (5), close);

there is always syntax error there. could i use different indicators as buy and sell signaling?

I run filter= roc (14) < -10 through australian data

but no single hit. can anyone help with this?

 

thanks for help.

 

eric


Send instant messages to your online friends http://au.messenger.yahoo.com

__._,_.___

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

__,_._,___