I trade primarily on a 5 min chart
This confused me for a bit, in fact I burned hours on it
addDataSeries(BarsPeriodType.Tick, 1);
// all code below this point takes places during BarsInProgress 1 when the secondary series is processing
if (BarsInProgress != 1) return;
This is basically saying
If if (BarsInProgress == 0) {
//Continue
//Of course you could have other data seies
}
I would like to confirm with you there would be no penalty to rewrite it as follows, I am doing so as I write this
switch (BarsInProgress){
case 0: // Primary data series
//Codeblock per bar goes here
break;
case 1: //Every Tick
//codeblock per tick goes here
break
}
Reference files
ProfitChaseStopTrailExitOrdersExample_NT8.zip
ProfitChaseStopTrailSetMethodsExample_NT8.zip
ProfitChaseStopTrailUnmanagedExample_NT8.zip
ProfitChaseStopTrailIndicatorExample_NT8.zip

Comment