Would it be possible to script an indicator to start at a specified time? For instance, the bollinger bands carry the effect of prior expansion, and lag to show a full squeeze as it forms. But is it possible to add options to the code to force it to start at an arbitrary point, such as the open of the market, without carrying the prior day’s activity. This would be like the market profile that starts at the open, not reflecting the prior days influence. Thanks!
input price = close;
def sDev = stdev(data = price[-displace], length = length);
plot MidLine = MovingAverage(averageType, data = price[-displace], length = length);
Marked as spam
Please log in to post questions.