• The price of VIP membership is increasing to $199 beginning June 1. Click here to lock in the current rate of $149.

Watchlist columns are not updating

Sathiesh

New member
Hello,

I have a custom watchlist column (Custom 7) created based on the SMA (code as below), however its value is static and does not update as per the realtime data. The same code as a study renders fine on a chart (the red line on the lower section chart - simple_ma_cross). Can somebody help me with this ?

Code:
def shortMA = simpleMovingAvg(Length = 9);
def longMA = simpleMovingAvg(Length = 20);

plot Scan = longMA is greater than shortMA;


C4LTpvV.png
 

Sathiesh

New member
I think I figured that out, now the values are changing, but the values are not changing accurately... When I right click and edit a column, what is the difference between offset and within n bars condition ?
 

rad14733

Well-known member
VIP
I think I figured that out, now the values are changing, but the values are not changing accurately... When I right click and edit a column, what is the difference between offset and within n bars condition ?
Offset within Study code has to do with which single candle/bar prices to use... Within ## bars determines the lookback range for potentially meeting your scan criteria...
 

Sathiesh

New member
@rad14733 Thanks for your clarifications.

My watchlist columns are not refreshing the same way as the chart. I am using the same code/formula in the chart and columns, but the column values are not changing as dynamically as they're changing on the chart. Moreover, on the custom columns, when i remove "within n bars" from the formula and simply select "as value", the data remain static and doesn't change at all.

I'm finding it a bit hard to understand these different behaviors for the very same code. Can you please help explain this?
 

rad14733

Well-known member
VIP
@rad14733 Thanks for your clarifications.

My watchlist columns are not refreshing the same way as the chart. I am using the same code/formula in the chart and columns, but the column values are not changing as dynamically as they're changing on the chart. Moreover, on the custom columns, when i remove "within n bars" from the formula and simply select "as value", the data remain static and doesn't change at all.

I'm finding it a bit hard to understand these different behaviors for the very same code. Can you please help explain this?
You obviously haven't stumbled across any of the numerous posts that reference the fact that Watchlists don't update in real-time like charts do, or at least as real-time as it gets... Watchlist Custom Columns only update every 3 - 5 minutes, not real-time... There is an update hierarchy within the platform, although not officially documented to the best of my knowledge, with Charts and standard Watchlist Columns updating the closest to real-time... I'm not even sure where Conditional Orders fall within the hierarchy but those are triggered from the servers anyway, not from the TOS platform... Custom Columns and Scans take a bit longer and during high demand times they can lag significantly... Hope this helps...
 

Sathiesh

New member
@rad14733 But i see the column values never changing at all. Not after 3 mins, not after 5 mins - if I remove the "within n bars" and select as value for the column. I have tried different strategies and I see different behavior with different strategies. Does using a future offset in a column work ? or can that be a cause to the behavior I see ?
 

Similar threads

Top