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 ?
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;