I think there is something wrong in my code. I have generated the strategy with wizard and changed AddDataSeries() to AddRenko(). I am trying to have two Renkos where QQE indicator watches the primary and TrendMagic indicator watches TmRenko that is set to 10000 with input variable called TmRenko. I checked with charts and both Renkos are generating multiple bars in the charts alone so it should not be the amount of bars.
else if (State == State.Configure)
{
AddRenko("TMRenko", TmRenko, Data.MarketDataType.Last);
}
else if (State == State.DataLoaded)
{
amaQQE1 = amaQQE(Close, 14, 5, 14, 2.618, 4.236, 70, 30, amaQQETrendDefinition.Cross);
AkunTrendMagic1 = AkunTrendMagic(Closes[1], 2, 200, 10);
amaQQE1.Plots[0].Brush = Brushes.Blue;
amaQQE1.Plots[1].Brush = Brushes.Red;
amaQQE1.Plots[2].Brush = Brushes.DarkGoldenrod;
AddChartIndicator(amaQQE1);
}
}
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 0
|| CurrentBars[1] < 0)
return;

Comment