コード例 #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
ファイル: Candles.cs プロジェクト: s952163/Spreads
 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
ファイル: Candles.cs プロジェクト: s952163/Spreads
 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
ファイル: Candles.cs プロジェクト: wang-shun/Spreads
 /// <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;
 }