public Bar(Instrument instrument, double openPrice, DateTime beginTime, BarSizeType mSizeType) { Instrument = instrument; OpenPrice = openPrice; BeginTime = beginTime; this.mSizeType = mSizeType; }
// public BarGenerator(Instrument instrument, BarSizeType sizeType) { mInstrument = instrument; mSizeType = sizeType; }
// public BarGenerator(string instrumentID, BarSizeType sizeType) { mInstrumentID = instrumentID; mSizeType = sizeType; }
public static string GetBarSize(int unit, BarSizeType barSizeType) { return($"{unit} {barSizeType.ToString()}"); }