public decimal GetPriceByType(BarPriceType barPriceType) { switch (barPriceType) { case BarPriceType.High: return(HighPrice); case BarPriceType.Open: return(OpenPrice); case BarPriceType.Close: return(ClosePrice); case BarPriceType.Low: return(LowPrice); default: throw new InvalidOperationException(); } }
internal BarPrices(BarPriceType type, MqlAdapter adapter) { this.type = type; this.adapter = adapter; }