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

Re: [amibroker] Additonal condition for Buy signal



PureBytes Links

Trading Reference Links

the number of down bars for A2 can be defined using:
 
NumDownBarsA2 = BarsSince( A2 >= Ref(A2,-1));
then you build your Buy constraint rule like:
 
Buy = ( Cross(A1,A3) AND BarsSince(Cross(A1,A2)) <= 2 ) OR ( Cross(A1,A2) AND NumDownBarsA2 < 5 );
 
 
regards, Ed

 
 
 
----- Original Message -----
From: rijnaars
Sent: Monday, October 06, 2008 10:10 AM
Subject: [amibroker] Additonal condition for Buy signal

I would like to add a condition to a by signal.

For instance buy = Cross(A1,A2)

now i do not want this signal to be affective if A2 has been going down
the last 5 days for instance.
How do i add this condition?

__._,_.___

**** 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

__,_._,___