I have used following code but can't seem to make it work. My strategy does not execute either stop loss or profit target orders.
SetStopLoss("Short", CalculationMode.Ticks, 50, true);
SetProfitTarget("Short",CalculationMode.Ticks, 100);
I have tried CalculationMode.Price also but that did not help either.
I am placing these stoploss and profittarget conditions in the Initialize() section.
Thanks,
Sami
Comment