GetATMOption function is not working in Watchlist ! Anybody found solution how to print ATM price of the CAll and or PUT in Watchlist ?Sharp eye ..but whatever combo you use getATMOption is red ...that I guess do not exists as a option for a Watchlist
So TOS have no function to pull out this info in Watchlist and it would be super useful
Thank you
# needs to be a sat date
input date1 = 20230318;
def atmCallOption = close( GetATMOption(GetUnderlyingSymbol(), date1, OptionClass.CALL ));
addlabel(1, ("atm " + (GetATMOption( GetUnderlyingSymbol(), date1, OptionClass.CALL )) + " " + atmCallOption) , color.yellow);