Draw.RegionHighlightY(this, "Example", true, highPrice, bottomPrice, Brushes.Blue, Brushes.DodgerBlue, 25);
The thing is, I'd like to draw N RegionHighlightY depending on the days loaded, so if there are 3 days loaded, I'd like to draw 3. The thing is they can not be named "Example" because the ID should be different, which ID should I put?
Then what I need is, onEachTick I need to calculate if the price is touching this RegionHighlightY, but it may be the first one drawn (from the first day loaded) and I need to react to that RegionHighlightY, any idea how can I do this?
I'm guessing to have a loop looking for all the RegionHighlightY ID drawn and get the top/bot price and then having the High Low of the price react to this.
Shorter explanation with example :
I've load 5 days
Day1 RegionHighlightY1
Day2 RegionHighlightY2
Day3 RegionHighlightY3
Day4 RegionHighlightY4
Day5 RegionHighlightY5
Then as I am on Day5 the price may be in below some RegionHighlightY, so I need to get the one or ones RegionHighlightY that are in that area and react to this.
Comment