Exemplo n.º 1
0
 public IndicatorVolume(IndicatorVolume indicator)
     : base(indicator.Id, new List <MarketData> {
     indicator.MarketData
 })
 {
     _periodSeconds      = indicator.Period;
     _periodMilliSeconds = _periodSeconds * 1000m;
 }
Exemplo n.º 2
0
 public IndicatorVEMA(IndicatorVEMA indicator)
     : base(indicator.Id, indicator.SignalStock, indicator.Period / 60)
 {
     _cumVolume = indicator.AverageVolume == null ? new IndicatorVolume(indicator.SignalStock, indicator.Period / 60) : indicator.AverageVolume;
 }
Exemplo n.º 3
0
 public IndicatorVEMA(MarketData mktData, int periodMinutes, IndicatorVolume cumVol = null)
     : base("VEMA_" + periodMinutes + "_" + mktData.Id, mktData, periodMinutes)
 {
     _cumVolume = cumVol == null ? new IndicatorVolume(mktData, periodMinutes) : cumVol;
 }
Exemplo n.º 4
0
 public IndicatorVEMA(string id, MarketData mktData, int periodMinutes, IndicatorVolume cumVol = null)
     : base(id, mktData, periodMinutes)
 {
     _cumVolume = cumVol == null ? new IndicatorVolume(mktData, periodMinutes) : cumVol;
 }
Exemplo n.º 5
0
 public IndicatorVolume(IndicatorVolume indicator)
     : base(indicator.Id, new List<MarketData> { indicator.MarketData })
 {
     _periodSeconds = indicator.Period;
     _periodMilliSeconds = _periodSeconds * 1000m;
 }