Coding required for below setup

Coding required for below Set Up :-

3 Consecutive Lower Highs and Lower Lows - 4th Candle Close = 1st Candle High.

Ex- 1 st Candle - High is 100 , low 90
2nd Canle - High is 95 , low 85
3rd candle - High is 90, low 80
4th Candle - Close is 100 or above 100

Any Time frame :- 15 /30/ 45/ 60 Minutes / Day / Weekly / Monthly

NaMasTe TraDeR,

SCRIPT:

HIGH >= REF(HIGH,3) AND 
REF(HIGH,1) < REF(HIGH,2) AND 
REF(LOW,1) < REF(LOW,2) AND 
REF(HIGH,2) < REF(HIGH,3) AND 
REF(LOW,2) < REF(LOW,3) AND 
REF(HIGH,3) < REF(HIGH,4) AND 
REF(LOW,3) < REF(LOW,4) 
1 Like