示例#1
0
            public ZigZagDiapasone(double ticks, int index)
            {
                SellZigZagDiapasone = new SellZigZagDiapasone(ticks, index);
                BuyZigZagDiapasone  = new BuyZigZagDiapasone(ticks, index);
                Ticks = ticks;
                Index = index;

                IsBuyDeleted  = false;
                IsSellDeleted = false;
            }
示例#2
0
 public string ToString(OrderAction orderAction)
 {
     if (orderAction == OrderAction.SELL)
     {
         return(SellZigZagDiapasone.ToString());
     }
     else
     {
         return(BuyZigZagDiapasone.ToString());
     }
 }
示例#3
0
 public override string ToString()
 {
     return(string.Format("Уровни -> {0} <---> {1} | Вершина зигзага: {2}, Низина зигзага: {3}", SellZigZagDiapasone.ToString(), BuyZigZagDiapasone.ToString(), HighApexPrice, LowApexPrice));
 }