Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Indicateurs

XPercentR-PCR - indicateur pour MetaTrader 5

Publié par:
Nikolay Kositsin
Vues:
6860
Note:
(14)
Publié:
2012.10.25 12:06
Mise à jour:
2023.03.29 13:42
\MQL5\Include\
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Real Author:

Scorpion@fxfisherman.com

The simple oscillator indicator displayed as colored cloud. The color of cloud indicates the direction of trend.

Indicator Input Parameters:

//+----------------------------------------------+
//|  Indicator input parameters                  |
//+----------------------------------------------+
input uint  HL_Period=55;
//----
input Smooth_Method SmoothMethod=MODE_JJMA; // Smoothing method
input uint SmoothLength=3;                  // Smoothing depth                    
input int SmoothPhase=100;                  // Smoothing parameter
input uint UpLevel=80;                      // Overbought level
input uint DnLevel=20;                      // Oversold level
input color UpLevelsColor=Purple;           // Overbought level color
input color DnLevelsColor=Purple;           // Oversold level color
input STYLE Levelstyle=DASH_;               // Levels style
input WIDTH  LevelsWidth=Width_1;           // Levels width  

This indicator allows to select averaging algorithms out of ten possible versions:

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

It should be noted that Phase parameters for different smoothing algorithms have completely different meaning. For JMA it is the Phase external variable changing from -100 to +100. For T3 it is the smoothing ratio multiplied by 100 for better visualization, for VIDYA it is the CMO oscillator period and for AMA it is the slow EMA period. In other algorithms these parameters do not affect smoothing. For AMA, the fast EMA period has a fixed value and is equal to 2 by default. The ratio of raising to the power is also equal to 2 for AMA.

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 XPercentR-PCR Indicator

Fig.1 The XPercentR-PCR Indicator

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/1030

CandleTrend CandleTrend

The CandleTrend indicator displays price movement directions from six different timeframes.

CCIT3_Simple CCIT3_Simple

Modified CCIT3 indicator

PercentInfo PercentInfo

PercentInfo gives information on the rise and drop in prices expressed as a percentage and in points as obtained from the three largest time frames of the currency chart. Simple and good information assistant.

CCIT3_noReCalc CCIT3_noReCalc

The CCIT3_Simple indicator modified.