Rejoignez notre page de fans
- Vues:
- 6591
- Note:
- Publié:
- 2012.12.21 11:45
- Mise à jour:
- 2023.03.29 13:42
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
The real author:
Daniil V. Bugayev
Frequently, using a fixed size channel cause difficulties because of the changing market volatility. The offered indicator does not have such disadvantage and it changes the channel size depending on the average value of candlesticks. At the same time most of the functional common to the Moving Average indicator is saved. In fact, it is the Keltner channel on which instead of the usual simple averaging for the size of candlesticks is the possibility to use one of the ten versions of averaging:
- SMA - simple Moving Average;
- EMA - exponential Moving Average;
- SMMA - smoothed Moving Average;
- LWMA - linear weighed Moving Average;
- JJMA - adaptive averaging JMA;
- JurX - ultralinear averaging;
- ParMA - parabolic averaging;
- T3 - Tillson's multiple exponential smoothing;
- VIDYA - smoothing using Tushar Chande's algorithm;
- AMA - smoothing using Perry Kaufman's algorithm.
It should be noted that Phase1 and Phase2 parameters have completely different meaning for different smoothing algorithms. For JMA it is an external Phase variable changing from -100 to +100. For T3 it is a smoothing ratio multiplied by 100 for better visualization, for the VIDYA it is a CMO oscillator period and for the AMA it is a slow EMA period. In other algorithms these parameters do not affect smoothing. For AMA fast EMA period is a fixed value and is equal to 2 by default. The ratio of raising to the power is also equal to 2 for AMA.
This indicator was first implemented in MQL4 and published in Code Base on 16.07.2009.
The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\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 XMA_Range_Bands indicator.
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/1273
![Spectrometr_Separate](https://c.mql5.com/i/code/indicator.png)
Financial asset oscillation spectrum
![Trend Continuation Factor](https://c.mql5.com/i/code/indicator.png)
The indicator to determine the trend and its directions.
![Exp_XMA_Range_Bands](https://c.mql5.com/i/code/expert.png)
The breakthrough system using the XMA_Range_Bands indicator.
![ShowOpenDayLevel](https://c.mql5.com/i/code/indicator.png)
The indicator displaying the level of opening day at any timeframe (less than two hours) with the ability to perform the shift of day start time and consider the presence of Sundays in the chart