Beispiel #1
0
 private double PriceWithPips(OrderSide side, double traling)
 {
     if (side.IsBuy())
     {
         return(_symbol.LastQuote.Ask - traling);
     }
     else
     {
         return(_symbol.LastQuote.Bid + traling);
     }
 }
Beispiel #2
0
 public static OrderSide Inverse(this OrderSide side)
 {
     return(side.IsBuy() ? OrderSide.Sell : OrderSide.Buy);
 }