As you can see the first profit target works as supposed (it exits with 0.0025 higher than entry point),
but when the orders overlap it's not working.
this is the SetProfitTarget I have:
protected override void Initialize()
{
ClearOutputWindow();
CalculateOnBarClose = true;
lastFillPrice = 1000;
TraceOrders=true;
SetProfitTarget(CalculationMode.Ticks, 50);
}
I place long trades in OnBarUpdate event:
nOrder++;
EnterLong("entry"+nOrder);
Please see screenshots attached.



Comment