managed order handling
I have the following scenario :
Entry in position with 2 lots.
SetStopLoss(entrysignalname,CalculationMode.Price, stopprice,false);
EnterLongLimit(BarsInProgress,true,2,entrylimit,en trysignalname);
....
Later I do a partial exit with:
ExitLong(1,"partial exit",entrysignalname);
at this point my strategy has only 1 lot.
...
Later when the Stop loss is hit, the stop loss order still executes 2 lots.
This is wrong as the strategy contains only 1 lot.
Questions:
1. How can I amend the Stop loss order to reflect the partial exit (hence I need 1 lot stop loss)
2. What is the procedure to ensure that the stop loss order reflects the proper quantity?
best regards
Andreas

Comment