Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2012.10.25 12:06
Indicators

XPercentR-PCR - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Published by:
Nikolay Kositsin
Views:
3319
Rating:
votes: 13
\MQL5\Include\

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

Translated from Russian by MetaQuotes Software Corp.
Original code: 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.