public IndicatorVolume(IndicatorVolume indicator) : base(indicator.Id, new List <MarketData> { indicator.MarketData }) { _periodSeconds = indicator.Period; _periodMilliSeconds = _periodSeconds * 1000m; }
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; }
public IndicatorVEMA(MarketData mktData, int periodMinutes, IndicatorVolume cumVol = null) : base("VEMA_" + periodMinutes + "_" + mktData.Id, mktData, periodMinutes) { _cumVolume = cumVol == null ? new IndicatorVolume(mktData, periodMinutes) : cumVol; }
public IndicatorVEMA(string id, MarketData mktData, int periodMinutes, IndicatorVolume cumVol = null) : base(id, mktData, periodMinutes) { _cumVolume = cumVol == null ? new IndicatorVolume(mktData, periodMinutes) : cumVol; }
public IndicatorVolume(IndicatorVolume indicator) : base(indicator.Id, new List<MarketData> { indicator.MarketData }) { _periodSeconds = indicator.Period; _periodMilliSeconds = _periodSeconds * 1000m; }