Hi could you please help me with script which would alert me after three consecutive higher/lower closses

I guess you want a BUY when there are 3 consecutive highs and SELL when 3 consecutive lows.

BUY will be-

CLOSE > REF(HIGH,1) AND REF(HIGH,1) > REF(HIGH,2) AND REF(HIGH,2) > REF(HIGH,3)

SELL will be-

CLOSE < REF(LOW,1) AND REF(LOW,1) < REF(LOW,2) AND REF(LOW,2) < REF(LOW,3)

1 Like

(Close > Ref(High, 1)) and (Close > Ref(High, 2)) and (Ref(Low, 1) < Ref(Low, 3)) and (Ref(Low, 2) < Ref(Low, 3))