Help me to create Amibroker AFL use with my formula

#23
Its avoiding First bar signal, but when its avoidng first bar signal and also avoiding that current trend signal also. after showing only next trend signal.

Example :

Assume Yesterday 3.30 candle is Red. Today morning 9.15 Candle also red and it break Yesterday 3.30 Candle Low -5 . Here Correctly Avoid Sell Signal. But if 9.30 or 9.45 Candle Break Pre.Candle Low - 5 then we should get sell signal. But not show there. Only showing Next Uptrend Buy Signal Only.
 
#24
Its avoiding First bar signal, but when its avoidng first bar signal and also avoiding that current trend signal also. after showing only next trend signal.

Example :

Assume Yesterday 3.30 candle is Red. Today morning 9.15 Candle also red and it break Yesterday 3.30 Candle Low -5 . Here Correctly Avoid Sell Signal. But if 9.30 or 9.45 Candle Break Pre.Candle Low - 5 then we should get sell signal. But not show there. Only showing Next Uptrend Buy Signal Only.
wow.. this makes it more complex. Let me think about it and get back.
 
#25
Dear Nagarjuna,

I added this below lines . Now its showing correctly.

Datefine = IIf(Ref(DateNum(),1) == Ref(DateNum(),-1),1,0);
BuyV = uptrend AND Ref(uptrend, -1) AND (H > ( Ref(H, -1) +5)) AND Datefine;
SellV = downtrend AND Ref(downtrend,-1) AND (L < ( Ref(L, -1) - 5)) AND Datefine;
 

Similar threads