Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Facebook üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Görüntülemeler:
11935
Derecelendirme:
(16)
Yayınlandı:
2012.11.02 12:07
Güncellendi:
2023.03.29 13:42
\MQL5\Include\
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

Real Author:

Martingeil

Smoothed ATR, recalculated as price chart points.

It uses color to show whether the trend strengthens or weakens. The red color corresponds to the trend strengthening, the yellow color corresponds to the trend weakening.

Indicator input parameters:

//+-----------------------------------+
//| Indicator input parameters        |
//+-----------------------------------+
input int ATRPeriod=12;                   // ATR period
input Smooth_Method XMA_Method=MODE_JJMA; // Smoothing method
input int XLength=5;                      // Smoothing depth
input int XPhase=15;                      // Smoothing parameter
input int Shift=0;                        // Horizontal shift of the indicator in bars 

You can change averaging algorithms out of ten possible options in the indicator:

  1. SMA - simple moving average;
  2. EMA - exponential moving average;
  3. SMMA - smoothed moving average;
  4. LWMA - linear weighted moving average;
  5. JJMA - adaptive JMA smoothing;
  6. JurX - ultralinear smoothing;
  7. ParMA - parabolic smoothing;
  8. T3 - Tillson's multiple exponential smoothing;
  9. VIDYA - smoothing using the algorithm developed by Tushar Chande;
  10. AMA - smoothing using Perry Kaufman's algorithm.

It should be noted that Phase parameters for different smoothing algorithms have completely different meaning. For JMA, it is an external Phase variable that varies from -100 to +100. For T3, it is a smoothing coefficient multiplied by 100 for better visualization. For VIDYA, it is a CMO oscillator period. And for AMA, it is a slow EMA period. These parameters do not affect the smoothing in other algorithms. For AMA, the fast EMA period is a fixed value and is equal to 2 by default. The powering coefficient for AMA is also fixed at 2.

The indicator uses the SmoothAlgorithms.mqh library classes (to be copied to the terminal_data_directory\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers"

Fig.1 The ColorXATR Indicator

Fig.1 The ColorXATR Indicator

This indicator was first implemented in MQL4 and published in Code Base 26.04.2011.

MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/1038

IncGUI_BitPic IncGUI_BitPic

Graphical control for pixel drawing.

MultiLineMovingAverage MultiLineMovingAverage

The MultiLineMovingAverage indicator shows levels of six moving averages for different time frames in the active chart window.

SpearmanStack_X20 (SpearmanRankCorrelation indicator threads) SpearmanStack_X20 (SpearmanRankCorrelation indicator threads)

Twenty lines of the Spearman's Rank Correlation indicator in one window

GMMA_Long_Gistogram GMMA_Long_Gistogram

The GMMA Long indicator converted into a histogram for a better visualization.