I am using the indicator "Repeater V2.2" which uses following code for drawing a horizontal line
Draw.Line(this, label[i]+"Lower", false, Time[CurrentBar - beginBar[i]], startStopPrice[i,1], MySessionIterator.ActualSessionEnd, startStopPrice[i,1], brushColor[i], DashStyleHelper.Dot, 1);
[...] protected override void OnStateChange() { if (State == State.SetDefaults) { AddPlot(new Stroke (Brushes.Green, DashStyleHelper.Dash, 2), PlotStyle.Line, "lower_horiz_line"); } [...] protected override void OnBarUpdate() // Draw.Line(this, label[i]+"Lower", false, Time[CurrentBar - beginBar[i]], startStopPrice[i,1], MySessionIterator.ActualSessionEnd, startStopPrice[i,1], brushColor[i], DashStyleHelper.Dot, 1); lower_horiz_line[0] = startStopPrice[i,1]; [...] #region Properties [Browsable(false)] [XmlIgnore] public Series<double> lower_horiz_line { get { return Values[0]; } } [...]
anyone can assist?
Comment