♥ 0 |
Hi Pete, How is it possible to create a Multi-time frame Bollinger bands? That line that I have commented out is an issue. I appreciate your help! input length = 20; input Num_Dev_Dn = -2.0; input TimeFrame = AggregationPeriod.DAY; ####def sDev = stdev(data = price(period = TimeFrame)[-displace] length = length); plot MidLine = MovingAverage(averageType, data = price[-displace], length = length); LowerBand.SetDefaultColor(GetColor(0));
RESOLVED
Marked as spam
|
Please log in to post questions.
Thanks Pete. I tried this, but unfortunately, it still comes up with an error on that first line that you edited.
Yes. That is because of a missing comma. I only copy and pasted your code and corrected the reference to the secondary time frame. Here it is with the comma in its proper place. I will fix this in my original answer when I get back to my computer.
def sDev = stdev(data = close(period = TimeFrame)[-displace], length = length);
Thanks Pete, that worked!