How To Get A Constantly Updating Watchlist Column


Category:
0
0

Hey everyone!

 

I have a watchlist full of different options tickers and I am using a custom column for this watchlist. The problem is that the watchlist only updates when a trade occurs on the underlying option. How can I make it so that the script updates every second or minute?

 

Thanks!

Marked as spam
Posted by (Questions: 5, Answers: 1)
Asked on November 1, 2020 12:08 pm
156 views
0
Private answer

Depends entirely on the time frame you have applied to the watchlist column in combination with the code you are using. It is impossible to get real time updates from a data stream that contains no data. No data in, no data out. There are no "settings" that can do this. Everything depends entirely on the code and your selected time frame. And even after examining your code we will likely find it's impossible.

About the only metric you can compute for an option contract that lacks actual trade data is a metric called OptionPrice. Details here:

https://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Option-Related/OptionPrice

You can probably compute other details such the Greeks. But from your description it's pretty clear you are trying to get an updated price for each OPRA ticker in your watchlist.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on November 1, 2020 2:04 pm