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

votes: 20
2013.03.18 10:45
2016.11.22 07:32
colorjccx.mq5 (10.04 KB)view

Smoother Commodity Chanel Index in which alternative algorithms of averaging such as JMA and ultralinear are used, that allow this indicator be less chaotic.

The trend direction is defined by the color of the indicator. Strong trend colors the histogram in blue or red color, weak trends are in orange and light blue colors. Trend strength is defined by the histogram bar value relative to the HighLevel and the LowLevel breakthrough levels in the indicator input parameters.

Indicator input parameters:

//| Indicator input parameters        |
input uint JMAPeriod=8;               // JMA period
input int JMAPhase=100;               // JMA averaging parameter
input uint JurXPeriod=8;              // JurX period
input Applied_price_ IPC=PRICE_CLOSE; // Price constant
input int Shift=0;                    // Horizontal shift of the indicator in bars
input IndStyle Style=COLOR_HISTOGRAM; // Style of JCCX display
input int HighLevel=+20;              // Upper level of triggering
input int MiddleLevel=0;              // Medium of the range
input int LowLevel=-20;               // Lower level of triggering

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 ColorJCCX indicator

Fig.1 The ColorJCCX indicator

Translated from Russian by MetaQuotes Software Corp.
Original code:

3rd Generation Moving Average 3rd Generation Moving Average

The Moving Average which uses quite a simple procedure on decreasing temporal lag based on the increase of the Moving Average period.

Float Float

The indicator which displays the beginning and the end of the trend

Pinbar Detector Pinbar Detector

The indicator which fixes Pin Bars in the chart


Smoother Relative Strength Index.