Example #1
0
 public SignalMacDV(MarketData asset, int lowPeriod, int highPeriod, IndicatorVEMA low = null, IndicatorVEMA high = null, MarketData tradingAsset = null)
     : base("MacDV_" + lowPeriod + "_" + highPeriod + "_" + asset.Id, asset, lowPeriod, highPeriod, low, high, tradingAsset)
 {
     _low = low == null ? new IndicatorVEMA(asset, lowPeriod) : new IndicatorVEMA(low);
     if (low != null)
     {
         _low.PublishingEnabled = false;
     }
     _high = high == null ? new IndicatorVEMA(asset, highPeriod) : new IndicatorVEMA(high);
     if (high != null)
     {
         _high.PublishingEnabled = false;
     }
     _mktIndicator = new List <Indicator>();
     _mktIndicator.Add(_low);
     _mktIndicator.Add(_high);
 }
Example #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;
 }
Example #3
0
 public SignalMacDV(string id, MarketData asset, int lowPeriod, int highPeriod, IndicatorVEMA low = null, IndicatorVEMA high = null, MarketData tradingAsset = null)
     : this(asset, lowPeriod, highPeriod, low, high, tradingAsset)
 {
     _id = id;
 }