Here's what I have:
protected override void Initialize()
{
SetTrailStop(CalculationMode.Ticks, 2);
SetProfitTarget(....);
...
}
// OnBarUpdate commented out
// protected override void OnBarUpdate() { }
protected override void OnMarketData(MarketDataEventArgs e)
{
....
// Some condition...
EnterLongLimit(bid);
...
}

Comment