Задаю стоп заявку в стратегии:
var price = direction == OrderDirections.Buy ? stopPrice + 1000 : stopPrice - 1000;
var newStopOrder = new Order
{
Portfolio = Portfolio,
Type = OrderTypes.Conditional,
Volume = Volume,
Security = Security,
Direction = direction,
Price = price,
StopCondition = new QuikStopCondition
{
Type = QuikStopConditionTypes.StopLimit,
StopPrice = stopPrice,
ExpiryDate = DateTime.MaxValue
}
};
RegisterOrder(newStopOrder);
Но при тестировании на истории она не срабатывает (хотя цена опускается ниже \ выше данной заявки).
Поддерживаются ли стоп заявки? И если да, то как их необходимо регистрировать?
Kommentare (1)
Anmelden oder Konto erstellen, Melden Sie sich an oder registrieren Sie sich, um einen Kommentar zu hinterlassen
Стоп заявки не поддерживаются эмулятором (ни на истории, ни еще как).