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