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: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of eric gao
Sent: 02/21/2007 8:43 AM
To: [email protected]
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 

 

Reply via email to