Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
5671
Rating:
(22)
Published:
2013.03.18 10:45
Updated:
2023.03.29 13:42
colorjccx.mq5 (10.04 KB) view
\MQL5\Include\
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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 Ltd.
Original code: https://www.mql5.com/ru/code/1580

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

ColorJJRSX ColorJJRSX

Smoother Relative Strength Index.