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

[amibroker] Disregard ->Can't figure this AA problem out



PureBytes Links

Trading Reference Links

Sorry, I am having a moronathon tonight. Pls disregard.


From: James <jamesmemphis@xxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
Sent: Tuesday, November 25, 2008 11:05:46 PM
Subject: [amibroker] Can't figure this AA problem out

I have this code in AFL:
 

Buy = Cross(H, Ref(PHighPrice,1)) AND Ref(CI,-1) < Ref(EMA(CI,5),-1);

Short = Cross (Ref(PLowPrice, 1), L) AND Ref(CI,-1) < Ref(EMA(CI,5),-1);

 

CI is a customer indicator defined in the code. When I change the code to this, simply changing > to <:

 

 

Buy = Cross(H, Ref(PHighPrice,1)) AND Ref(CI,-1) > Ref(EMA(CI,5),-1);

Short = Cross (Ref(PLowPrice, 1), L) AND Ref(CI,-1) > Ref(EMA(CI,5),-1);

 

I get no trades in the Automatic Analysis window. I get trade arrows in a chart pane and they are right, but for some reason changing those arrows

causes 0 trades in AA. Any idea what could be causing this.

 

TIA,

James

 

 




__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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

*********************************




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

__,_._,___