Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
 internal BarPrices(BarPriceType type, MqlAdapter adapter)
 {
     this.type = type;
     this.adapter = adapter;
 }