SL = 25;
TP = 125;
}
else if (State == State.Configure)
{
}
else if (State == State.DataLoaded)
{
SMA1 = SMA(Close, Convert.ToInt32(Speed));
SetStopLoss("", CalculationMode.Ticks, SL, false);
SetProfitTarget("", CalculationMode.Ticks, TP);
}
}
When strategy opens a position, stoploss is trying to be set not at 25 ticks away from entry, but at fixed price and its often not in market, so the strategy always get errors with that
Comment