I have a few messages on this board about issues I have been having about getting an indicator to plot using a secondary data series. Over this last week, I have been experimenting with suggestions from the help team on this forum, and so far, I still cant get it to work.
I will summarize what I have done to resolve these issues below:
I have a custom bar type that plots correctly and a custom indicator that also plots correctly when applied to a chart. What I am trying to do is take this working indicator and plot it a second time on the same chart with double the current charts bar value. This is where my problem comes in.
I began this journey by using AddDataSeries to add my second second data series. The produced an error
If I create a new chart and apply this indictor to the chart with the custom bars, whose Bars.BarsPeriod.Value is = 8 I receive the following values at time stamp (Feb 12, 2019 @0356.30)
Dn = 1528.6
_DoubleBarPeriod = Bars.BarsPeriod.Value * 2;
BarsPeriodType bt = this.Bars.BarsPeriod.BarsPeriodType;
string iName = Instrument.ToString();
Print("barP= " + _DoubleBarPeriod.ToString());
//AddDataSeries(BarsPeriodType.Tick, _DoubleBarPeriod);
//AddDataSeries(bt, _DoubleBarPeriod);
//AddRenko(Instrument.ToString(), 8, MarketDataType.Last);
AddRenko(Instrument.ToString(), _DoubleBarPeriod, MarketDataType.Last);
When I right click on the
I am looking for any other suggestions on how to resolve this value discrepency.
Thaks
Comment