Beispiel #1
0
        protected override void Initialize()
        {
            _haOpen = CreateDataSeries();
            _haClose = CreateDataSeries();

            if (_haClose != null)
                _tema = Indicators.GetIndicator<Tema>(_haClose, Period);
            if (_tema != null)
                _tema2 = Indicators.GetIndicator<Tema>(_tema.Result, Period);
        }
Beispiel #2
0
        protected override void Initialize()
        {
            _haOpen  = CreateDataSeries();
            _haClose = CreateDataSeries();

            if (_haClose != null)
            {
                _tema = Indicators.GetIndicator <Tema>(_haClose, Period);
            }
            if (_tema != null)
            {
                _tema2 = Indicators.GetIndicator <Tema>(_tema.Result, Period);
            }
        }
Beispiel #3
0
        protected override void Initialize()
        {
            Buffer = CreateDataSeries();

            // Moving Average Type according to input MA_Type
            switch (MAType)
            {
            case 1:
                // Simple Moving Average
                _sma = Indicators.SimpleMovingAverage(MAApplied, MAPeriod);
                break;

            case 2:
                // Exponential Moving Average
                _ema = Indicators.ExponentialMovingAverage(MAApplied, MAPeriod);
                break;

            case 3:
                // Smoothed Moving Average
                _wsma = Indicators.GetIndicator <Wsma>(MAApplied, MAPeriod);
                break;

            case 4:
                // Linear Weighted Moving Average
                _lwma = Indicators.GetIndicator <Lwma>(MAApplied, MAPeriod);
                break;

            case 5:
                // Double Exponential Moving Average
                _dema = Indicators.GetIndicator <Dema>(MAApplied, MAPeriod);
                break;

            case 6:
                // Triple Exponential Moving Average
                _tema = Indicators.GetIndicator <Tema>(MAApplied, MAPeriod);
                break;

            case 7:
                // T3 Moving Average
                _t3MA = Indicators.GetIndicator <T3MA>(MAApplied, MAPeriod, T3MAVolumeFactor);
                break;
            }
        }
Beispiel #4
0
        protected override void Initialize()
        {
            Buffer = CreateDataSeries();

            // Moving Average Type according to input MA_Type
            switch (MAType)
            {
                case 1:
                    // Simple Moving Average
                    _sma = Indicators.SimpleMovingAverage(MAApplied, MAPeriod);
                    break;
                case 2:
                    // Exponential Moving Average
                    _ema = Indicators.ExponentialMovingAverage(MAApplied, MAPeriod);
                    break;
                case 3:
                    // Smoothed Moving Average		
                    _wsma = Indicators.GetIndicator<Wsma>(MAApplied, MAPeriod);
                    break;
                case 4:
                    // Linear Weighted Moving Average  
                    _lwma = Indicators.GetIndicator<Lwma>(MAApplied, MAPeriod);
                    break;
                case 5:
                    // Double Exponential Moving Average
                    _dema = Indicators.GetIndicator<Dema>(MAApplied, MAPeriod);
                    break;
                case 6:
                    // Triple Exponential Moving Average
                    _tema = Indicators.GetIndicator<Tema>(MAApplied, MAPeriod);
                    break;
                case 7:
                    // T3 Moving Average
                    _t3MA = Indicators.GetIndicator<T3MA>(MAApplied, MAPeriod, T3MAVolumeFactor);
                    break;
            }
        }
Beispiel #5
0
 protected override void Initialize()
 {
     _tema = Indicators.GetIndicator<Tema>(Source, Period);
     _tema2 = Indicators.GetIndicator<Tema>(_tema.Result, Period);
 }
Beispiel #6
0
 protected override void Initialize()
 {
     _tema  = Indicators.GetIndicator <Tema>(Source, Period);
     _tema2 = Indicators.GetIndicator <Tema>(_tema.Result, Period);
 }