To summarize: if a 5 minute bar is 5:50 to 5:55. how do I plot the 5:53 to 5:55 area?
protected override void Initialize() { Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Square, "UpChannel")); Add(new Plot(Color.FromKnownColor(KnownColor.Blue), PlotStyle.Square, "DownChannel")); Add(PeriodType.Minute, 5); OnBarUpdate() //Plot the Price Channel UpChannel.Set(DonchianChannel(BarsArray[1], period).Upper[0]); DownChannel.Set(DonchianChannel(BarsArray[1], period).Lower[0]); }
Comment