In Strategy Analyzer, I have set the primary Data Series to Renko 4.
In the strategy, I am adding a secondary data series like so:
else if (State == State.Configure) { AddRenko(null, 6, MarketDataType.Last); } else if (State == State.DataLoaded) { _roc = ROC(BarsArray[1], Periods); AddChartIndicator(_roc); base.ClearOutputWindow(); }
A couple of questions:
1. is this expected behavior? When I set primary to brick 6, the indicators are shown again.
2. I am using the conditional "BarsInProgress == 1" in OnBarUpdate(), so I assume I am generating signals based off of the Secondary data series added with "AddRenko()". How do I set the primary dataseries programatically so I can eliminate the confusion here? Basic question, but I've not seen this done in any strategy examples I have run across.
Comment