Delay calculations so the Watchlist can Update


Category:
0
0

Hi Pete, I created a watchlist scan [Link: https://www.hahn-tech.com/ans/colour-the-watchlist-with-if-then/]

but during market hours it won’t show the results it keeps calculating as the price keeps changing. Is it possible for it to san once every hour or enough for it to calculate? or can I use the fold command in some way?

 

Thanks

Frank

Marked as spam
Posted by (Questions: 4, Answers: 5)
Asked on January 5, 2021 7:15 am
138 views
0
Private answer

There appears to be a problem with the custom quotes feature on Thinkorswim that is ongoing. We need to report this to TD Ameritrade support. I tested several custom quote fields that have been working perfectly for some time and none of them are working right now.

FYI, you can add a declaration to any code that will cause the code to be computed once per bar. However this will not provide real time information and should only be used when you know exactly how this will impact the custom quote you are using:

declare once_per_bar;

I applied that declaration to the custom quote filed you linked to in your question and it had zero impact. The column did eventually load but it took 15 minutes to do so. Something is clearly broken and Thinkorswim developers will need to fix it.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on January 5, 2021 9:32 am
0
Thank you so much Pete ! When I run the scan before and aftermarket its fine so I will add this to the code and if it loads at least once Its good, as I need it just for a daily signal.
( at January 5, 2021 9:40 am)
0
Please take the time to report this issue to TD Ameritrade. There should be no need to make any adjustments to this code to make it work. Thinkorswim is not performing as it should and unless users take the time to report the issue it will never be fixed.
( at January 5, 2021 12:26 pm)