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

[amibroker] How to initiate a binary signal?



PureBytes Links

Trading Reference Links


I have a trend-following formula where I only want unique signals for 
long and short and not multiple signals within the same trend.  This 
is where I'm at, but of course it doesn't generate any signals since 
a "Buy" binary signal today is dependent upon a "Sell" binary signal 
from the day before, and vice versa.

Cond1= C > Ref(HHV(C,20), -1 );
Cond2= C < Ref(LLV(C,20), -1 );

Buy=Cond1==1 AND Ref(Cond2,-1)==1;
Sell=Cond2==1 AND Ref(Cond1,-1)==1;

What I need (I think) is a "false" initiating signal that will be 
dropped off as soon as its used, allowing Cond1 and Cond2 to run on 
their own afterwards, I just don't know how to do it.  I'm new.:)

TIA for any suggestions.


Luck to all,

Sebastian


















------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/