I am running into this situation during market playback where my profit target (PT) is activated but not executed because the market stop is placed way too high. I calculated my PT to be 108.593, and the sell limit order was correctly placed at 108.593. The bizarre part is that the stop market order for the PT has been placed at 109.009 (I did not calculated this value). Problem 1 is that for some reason the stop market order has been placed 40pips over my commanded PT. Problem 2 is that the stop limit order is not even triggered when the price falls below my limit of 108.593! Problem 3 Where did the value 109.00 come from? I did not send or generate this value.
Here is what I am doing in code:
string longEntryName = "Enter-Long-1"; double profitTarget = 108.593; double stopLoss = 107.00; EnterLong(quantity, longEntryName); SetProfitTarget(longEntryName, CalculationMode.Price, profitTarget, true); SetStopLoss(longEntryName, CalculationMode.Price, stopLoss, true);
What I don't understand is why and how my PT was converted to a price (109.00) FORTY pips above my PT (108.593) or why the price was allowed to fall THIRTY pips below my PT after my PT has been triggered and accepted. Someone please explain what I am missing here.
Comment