Пример #1
0
 public override void Init()
 {
     base.Init();
     _mktIndices.Add(_index);
     _macD_low = new SignalMacD(_index, _lowPeriod, _midPeriod, null, null, _tradingIndex);
     _mktIndicators.Add(_macD_low.IndicatorLow);
     _mktIndicators.Add(_macD_low.IndicatorHigh);
     _macD_high = new SignalMacD(_index, _midPeriod, _highPeriod, _macD_low.IndicatorHigh, null, _tradingIndex);
     _mktIndicators.Add(_macD_high.IndicatorLow);
     _mktIndicators.Add(_macD_high.IndicatorHigh);
     _mktSignals.Add(_macD_low);
     _mktSignals.Add(_macD_high);
 }
Пример #2
0
 public override void Init()
 {
     base.Init();
     _mktIndices.Add(_index);
     _macD_low = new SignalMacD(_index, _lowPeriod, _midPeriod, null, null, _tradingIndex);
     _mktIndicators.Add(_macD_low.IndicatorLow);
     _mktIndicators.Add(_macD_low.IndicatorHigh);
     _macD_high = new SignalMacD(_index, _midPeriod, _highPeriod, _macD_low.IndicatorHigh, null, _tradingIndex);
     _mktIndicators.Add(_macD_high.IndicatorLow);
     _mktIndicators.Add(_macD_high.IndicatorHigh);
     _mktSignals.Add(_macD_low);
     _mktSignals.Add(_macD_high);
 }