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