52 week High/low alerts using sentinel

Hello guys,

can anyone help me to write a code to trigger when a stock price reaches to 52 week high/low?

Thanks,
Kalyan

Following could be used. Periodicity should be Daily. 260 Trading Sessions = 52 Weeks.

HI = Close > Ref(HHV(High,260),-1);
LW = Close < Ref(LLV(Low,260),-1);
2 Likes