예제 #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);
 }
예제 #2
0
파일: IndicatorWM.cs 프로젝트: w1r2p1/MiDax
 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;
 }
예제 #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;
 }