Code for Todays new low cross todays previous low give signal for buy

a very simple code for

todays new high cross previous-today high give sell signal

and

todays new low cross previous-today low give buy signal

As per the above condition use day time frame candle


Buy Script:

HIGH>REF(HIGH,1)

Sell Script:

LOW<REF(LOW,1)
1 Like

sir its taking the previous candle high and low but its not it
like example
open 27.45
high 27.80
low 27.10
close 27.35
here when ever it make new high crossing 27.80 only will give a sell sign other wise not
same with the low side

the heading was right but inside the placement of previous made change in question lel plz