Anyway to find nearest ITM option call for a given number

csrkk

New member
VIP
Is there any way to fetch Next ITM option strike for a given value?

For ex: say i have a value 108 and want to find the nearest ITM option for AAPL with expiry 210319.

Need to get this valid CallStrike in below statement.

GetNextITMOption("." + GetUnderlyingSymbol() + "210319" + "C" + CallStrike)

Above statement should either fetch me AAPL 107.5C or 110C
 

rad14733

Well-known member
VIP
@csrkk We only have a few option related function calls at our disposal in TOS, as you have most likely discovered... And there are only a few topics here in these forums that make use of them... A search by function name should pull up any posts containing them... I find the functions too limited to bother with, personally... The extremely limited date functions only worsen my inability to extrapolate the options I want... I can pull up the appropriate option chain and get what I want much faster...
 

rad14733

Well-known member
VIP
Thank you so much for your response. Can you please share code on how to pull up option chain?

Click on the Trade tab...

VJRN3vN.png
 

rad14733

Well-known member
VIP
Thank you. Will surf around to see if this list can be pulled through script

It can't... That's my point... Our ability to extrapolate option chain data is very limited as I mentioned previously... Mainly due to a lack of date related functions, which I also mentioned... But do a search, as I mentioned, and see if you have better luck than I have over the years...
 

Similar threads

Top