how to set trigger for weekly option price in sentinel ?

Hi,
Monthly option trigger can be set as: LastTradedPrice(‘NFO:NIFTY20OCT11000CE’)
Not getting option for weekly option.

What should be the weekly option format ? Monthly option format is mentioned above which is working.

Try this for Weekly Expiry LastTradedPrice(‘NFO:NIFTY20O0110000CE’).

NIFTY (Symbol) 20 (Year) O (Month) 01 (Expiry Date) 11000 (Strike Price).

LastTradedPrice(‘NFO:NIFTY21F1815000CE’) Does not work for Feb 18 , 2021 options … Getting the error “There should be at least one instrument referenced in the trigger.”

It should be NFO:NIFTY2121815000CE
21 - Year , 2 - Feb month , 18- weekly expiry - 15000CE - Strike and Call

are we able to create custom symbols ? by conditionally. such as if spot is 15000 then add 600 and fetch ce option strike of next upcoming expiry (15600ce ) not by hardcoding it ?

I couldn’t do it… From the other thread they mentioned that string functions are un available.

1 Like

@Madwho is this what you are looking for?

  LastTradedPrice('NFO:NIFTY21JUN15000PE') >500
1 Like

Nope… this is monthly…

Check this .

It should be NFO:NIFTY2121815000CE
21 - Year , 2 - Feb month , 18- weekly expiry - 15000CE - Strike and Call

@Madwho

LastTradedPrice('NFO:NIFTY2161015500CE') >500

This is for Nifty year 21 month 06 Week June 10 Strike 15500 CE