示例#1
0
文件: Candles.cs 项目: mindis/Spreads
 /// <summary>
 /// OHLCFull constructor.
 /// </summary>
 public OHLCFull(decimal open, decimal high, decimal low, decimal close, int volume = 0, decimal moneyVolume = 0M, int tradeCount = 0, int openInterest = 0, int precision = 6)
 {
     _ohlcv        = new OHLCV(open, high, low, close, volume, precision);
     _value        = moneyVolume;
     _tradeCount   = tradeCount;
     _openInterest = openInterest;
 }
示例#2
0
文件: Candles.cs 项目: mindis/Spreads
 /// <summary>
 /// OHLCFull constructor.
 /// </summary>
 public OHLCFull(Price open, Price high, Price low, Price close, int volume = 0, decimal moneyVolume = 0M, int tradeCount = 0, int openInterest = 0)
 {
     _ohlcv        = new OHLCV(open, high, low, close, volume);
     _value        = moneyVolume;
     _tradeCount   = tradeCount;
     _openInterest = openInterest;
 }
示例#3
0
 public OHLCFull(decimal open, decimal high, decimal low, decimal close, int volume = 0, double weightedAveragePrice = 0, int tradeCount = 0, int openInterest = 0, int precision = 6)
 {
     _ohlcv        = new OHLCV(open, high, low, close, volume, precision);
     _vWap         = weightedAveragePrice;
     _tradeCount   = tradeCount;
     _openInterest = openInterest;
 }
示例#4
0
 public OHLCFull(Price open, Price high, Price low, Price close, int volume = 0, double weightedAveragePrice = 0, int tradeCount = 0, int openInterest = 0)
 {
     _ohlcv        = new OHLCV(open, high, low, close, volume);
     _vWap         = weightedAveragePrice;
     _tradeCount   = tradeCount;
     _openInterest = openInterest;
 }
示例#5
0
 /// <summary>
 /// OHLCFull constructor.
 /// </summary>
 public OHLCFull(SmallDecimal open, SmallDecimal high, SmallDecimal low, SmallDecimal close, int volume = 0, decimal moneyVolume = 0M, int tradeCount = 0, int openInterest = 0)
 {
     _ohlcv        = new OHLCV(open, high, low, close, volume);
     _value        = moneyVolume;
     _tradeCount   = tradeCount;
     _openInterest = openInterest;
 }