MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

Update to MetaTrader 4 build 735 and Test the VPS for Free
To post a new code, please log in or register

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

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

2012.09.17 09:57
MARSICD

MARSICD - indicator for MetaTrader 5

| English Russian Chinese Spanish Portuguese

Views:
3306
Rating:
votes: 10
\MQL5\Include\
marsicd.mq5 (12.72 KB)view

Real author:

John Q. Aimsson

Description:

Trend indicator based on two RSI oscillators. In most cases the periods of the oscillators can vary. The final indicator strongly resembles ADX and MACD technical indicators combined on one chart. The indicator should be interpreted in the same way as the two mentioned ones. 

Input parameters: 

//+----------------------------------------------+
//|  Indicator input parameters                  |
//+----------------------------------------------+
input Smooth_Method MAMethod=MODE_LWMA; //smoothing method
input uint ARSI_PERIOD=14;              //RSI A period
input uint RRSI_PERIOD=14;              //RSI R period
input uint AMA_PERIOD=5;                //signal A period
input uint RMA_PERIOD=5;                //signal R period
input uint sMAD_PERIOD=21;              //signal period for the histogram
input uint MPhase=15; //smoothing parameter,
                      //for JJMA that can change withing the range -100 ... +100. It impacts the quality of the intermediate process of smoothing;
// for VIDIA it is a CMO period, for AMA it is a slow average period

 

Image:

MARSICD

MARSICD

 

This indicator was first implemented in MQL4 and published in Code Base at mql4.com 07.06.2012 (in Russian).

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".

Translated from Russian by MetaQuotes Software Corp.
Original code: http://www.mql5.com/ru/code/968