Price action coding

Could you please help me with simple Tradescript coding:

Buy when:    CLOSE > Last Sell + 100 points

Last Sell could also be the Close of the last Sell Candle.

you can use price alert indicator


https://zerodha.com/expert-advisors/code/price-alert-indicator

hElLO tRaDeR,

CLOSE > (REF(CLOSE,1) + 100)

Sir, I want to use this for Backtesting, hence need to code this. Could you please help? Thanks.