Convert the following Metastock code into Amibroker Language. This code used to avoid multiple signals in Metastock.
(in case of buy signal)
a:= "Enter the condition for buy" ;
b:= "Enter the condition for sell" ;
state:=If(BarsSince(a)<BarsSince(b),1,0);
state>Ref(state,-1);
(in case of sell signal)
a:= "Enter the condition for buy" ;
b:= "Enter the condition for sell" ;
state:=If(BarsSince(a)<BarsSince(b),1,0);
state<Ref(State,-1);
Thanks in Advance.
(in case of buy signal)
a:= "Enter the condition for buy" ;
b:= "Enter the condition for sell" ;
state:=If(BarsSince(a)<BarsSince(b),1,0);
state>Ref(state,-1);
(in case of sell signal)
a:= "Enter the condition for buy" ;
b:= "Enter the condition for sell" ;
state:=If(BarsSince(a)<BarsSince(b),1,0);
state<Ref(State,-1);
Thanks in Advance.