SetStopLoss("A", CalculationMode.Ticks, 25, true);
EnterLong(2, "A");
//.... (and then some time passes and this happens when the conditions are right)
SetStopLoss("A", CalculationMode.Price, XXX, true);
// ... followed by some profit taking
ExitLong(1, "Sell Half of A", "A");
When the Stop Loss eventually gets triggered, it gets triggered with 2 contracts instead of 1, causing the net position to reverse instead of go flat.
Am I missing something? Is it supposed to automatically update the position size and set the stop loss to 1 contract after half has been sold?
Jeremy
Note: I'm using NinjaTrader 7.0 Beta 17
Comment