Options scan Incorporating Stock price


Category:
0
0

hello,

I am running a scan in the options hacker and I am showing Options only. I want to make a custom column (I know how to do that) but I need to reference the close of the stock price, not the options price. How can I do this?

Marked as spam
Posted by (Questions: 34, Answers: 56)
Asked on July 27, 2018 2:34 pm
224 views
0
Private answer

I don’t have access to a computer at the moment. But it should be something along these lines:

def underlyingClose = close(symbol = GetUnderlyingSymbol());

You can get all the details here: https://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Option-Related/GetUnderlyingSymbol.html

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on July 27, 2018 7:36 pm
0

Thank you very much!

( at July 28, 2018 9:40 am)