A scnner code required for the strategy

BUY IF LAST CANDLE HIGH CROSSOVER

SELL IF LAST LOW CROSSOVER

AND REQUIERED SOUND ALERT

hElLO tRaDeR,

Assuming your question is related to PI.

BUY SCRIPT :

CLOSE > REF(HIGH,1) 

SELL SCRIPT:

CLOSE < REF(LOW,1) 

The Pi scanner by default does not produce sound alerts.

You can use the codes on EA for individual scrips to generate sound alerts.

Read this for more info on scanner:

http://tradingqna.com/46073/wiki-zerodha-backtest-scanner-error-troubleshoot-checklist