Decision candle above 2% then no buy

Buy Condition
C[i-2]<bbb[i-1]
AND C[i-2]<O[i-2]
AND O[i-1]<bbb[i-1]
AND C[i-1]>O[i-1]

But i-2 and i-1 Candle should not be Bigger than 2% if above 2% no buy signal triggered``

@hemant15,

See How to ask a good question.

1 Like

Sorry New to Amiborker...

creating afl on bollinger Band, if first candle closes above bolinger band and if second candle is reverse candle (red) then sell on third candle open.

But i want no sell signal if candle size is more than 2% of close.

I hope this is clear..

Please help