I have an indicator that calculates zones on every bar. For this example, let's just say I have one zone with a high and low value.
I have created an indicator with outputs, eg:
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "ZoneA_H"));
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "ZoneA_L"));
Everything is working correctly and this works for strategies reading the indicator, however visually it's not what I want.
To explain, I would like to see horizontal lines drawn on each bar I add this indicator to (as opposed to a line that connects up with the next value on the next bar).
I have tried changing the PlotSyle to HLine, however this only draws the latest horizontal line value across the entire chart.
Ultimately what I want to do here is add this indicator (that defines zones) to say a 60 minute chart. Add another data series (say a 5 minute) to the chart window, and instruct the indicator above output to the 5 minute chart. The idea being that I would see the 2 horizontal lines drawn showing the zone I define for the 60 minute timeframe.
I've attached a rough diagram showing the current output of the indicator, and what I would like to see (drawn in pink lines).
How can I code this so it draws lines visually like this?
thanks
Comment