I am drawing a diamond from my indicator within the OnBarUpdate method on the most recent bar, however, once the bar closes and the next one starts the diamond moves to the new recent bar. I would like to keep my initial drawing as is and have a new drawing on the new bar.
On a similar note, I want to be able to add my drawings to all the bars on the chart once I run my indicator. But, with the OnBarUpdate method, I can only target one specific bar.
protected override void OnBarUpdate() { if (myCondition) { Draw.Diamond(this, "tag1", true, -1, Low[0] - TickSize, Brushes.Magenta, true); } }
Comment