Пример #1
0
 /// <summary>
 /// Creates new instance of the <see cref="AdvancedOrderBase"/> class.
 /// </summary>
 /// <param name="baseOrder">Base order object for creating advanced one.</param>
 /// <param name="orderClass">Advanced order class for new smart order.</param>
 protected internal AdvancedOrderBase(
     SimpleOrderBase baseOrder,
     OrderClass orderClass)
     : base(baseOrder.EnsureNotNull(nameof(baseOrder)))
 {
     BaseOrder  = baseOrder;
     OrderClass = orderClass;
 }
Пример #2
0
 internal StopLossOrder(
     SimpleOrderBase baseOrder,
     Decimal stopPrice,
     Decimal?limitPrice)
     : base(
         baseOrder,
         OrderClass.OneTriggersOther)
 {
     LimitPrice = limitPrice;
     StopPrice  = stopPrice;
 }
 internal BracketOrder(
     SimpleOrderBase baseOrder,
     Decimal takeProfitLimitPrice,
     Decimal stopLossStopPrice,
     Decimal?stopLossLimitPrice)
     : base(
         baseOrder,
         OrderClass.Bracket)
 {
     TakeProfit = baseOrder.TakeProfit(takeProfitLimitPrice);
     StopLoss   = baseOrder.StopLoss(stopLossStopPrice, stopLossLimitPrice);
 }
Пример #4
0
 internal TakeProfitOrder(
     SimpleOrderBase baseOrder,
     Decimal limitPrice)
     : base(
         baseOrder,
         OrderClass.OneTriggersOther) =>