sir,
please provide pi scanner code for below strategy
get alert when make 2 continue green/red candle on 5 minutes chart closing basis
for the above given condition
for 2 green candles
REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1)
for 2 red candles
REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1)