I'm using this code
if (Positions[0].GetUnrealizedProfitLoss(PerformanceUnit.Ticks) > 4)
{
SetTrailStop(CalculationMode.Ticks, 2);
}
To set the trailing stop loss at 2 ticks over my average price, I do the same using :
if (Positions[0].GetUnrealizedProfitLoss(PerformanceUnit.Ticks) > 2)
{
SetTrailStop(CalculationMode.Ticks, 0);
}
And it doesn't give me any error and change my stop loss at my avergae price, but if i want to put my stop loss over my BUY position it doesn't change the stop loss.. Am i doing something wrong?
Notice that at the beginning of the trade i set both take profit and stop loss
Comment