- Indendent of the timeframe of the primary series - would like to perform certain calculations based on a 5 minute series.
if (State == State.Configure) {
AddDataSeries(BarsPeriodType.Minute, 5);
}
with this - I would code the indicator as "BarsInProgress ==1" to perform the calculations.
However when I apply this indicator to a 5 minute chart(primary series itself is 5 minute) - what happens?
Would this indicator still add another series of 5 minute bar?
would my code "BarsInProgress ==1" is still going to work in this case?
Appreciate any guidance/clarification on this.
Edit - Based on further tests - it does appear like - even if the primary bars is 5 minute, it would still work with BarsInProgress == 1 ( same as NT 7).
Do we need to use the "sync" mode even in Indicators as below?
// Syncs a DataSeries object to the primary bar object
primarySeries = new Series<double>(this);
thanks.
Comment