protected override void OnBarUpdate(). { if (CurrentBar < FastEMAPeriod || CurrentBar < SlowEMAPeriod || BarsInProgress != 0) return; if (CurrentBar < Math.Max(BarsRequiredToTrade, BarsBefore)) return; if (CurrentBars[0] < 2) //Need more than 2 bars to trade { return; } if (State == State.Historical) return; if (BarsInProgress == 2) return;
&& (BarsSinceExitExecution(0, "", 0) > 2) || (BarsSinceExitExecution(0, "", 0) == -1)
Comment