I am writing a strategy that needs to assume an existing account position upon startup and then place a stop loss and profit target order around the existing position.
protected override void OnBarUpdate()
{
SetStopLoss(CalculationMode.Currency, 500);
SetProfitTarget(CalculationMode.Currency, 500);
}
The problem is SetStopLoss() and SetProfitTarget() do not execute around the adopted account position upon strategy startup. Is there any way to set a loss stop for entry order placed manually or by another sttategy ?
Thanks in advance !

Comment