фикс переопределения стопов
test / deploy_trader_prod (push) Successful in 1m40s
Details
test / deploy_trader_prod (push) Successful in 1m40s
Details
parent
a2a1f5a053
commit
816ad0f677
|
@ -285,7 +285,7 @@ namespace KLHZ.Trader.Core.Exchange.Services
|
||||||
InstrumentId = figi,
|
InstrumentId = figi,
|
||||||
Direction = stopOrdersDirection,
|
Direction = stopOrdersDirection,
|
||||||
PriceType = PriceType.Point,
|
PriceType = PriceType.Point,
|
||||||
Quantity = (long)asset.Count,
|
Quantity = System.Math.Abs((long)asset.Count),
|
||||||
StopOrderType = StopOrderType.TakeProfit,
|
StopOrderType = StopOrderType.TakeProfit,
|
||||||
StopPrice = asset.Count > 0 ? executedPrice + takeProfitShift : executedPrice - takeProfitShift,
|
StopPrice = asset.Count > 0 ? executedPrice + takeProfitShift : executedPrice - takeProfitShift,
|
||||||
ExchangeOrderType = ExchangeOrderType.Market,
|
ExchangeOrderType = ExchangeOrderType.Market,
|
||||||
|
|
Loading…
Reference in New Issue