Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

iCCI iMA - MetaTrader 5 Expert | Forex Indicators Download - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

iCCI iMA - expert for MetaTrader 5

The author of the idea is Andrei , and the author of the MQL5 code is Barabashkakon .

Calculate moving averages using commodity channel index data:

 //--- Create a handle for the iMA indicator handle_iMA = IMA (m_symbol.Name(), period (), 15 , 0 , mode_EMA , handle_iCCI ); //--- if the handle is not created if (handle_iMA== INVALID_HANDLE )
    {
//--- Inform of failure and output error code print format ( "Unable to create iMA indicator handle for symbol %s/%s, error code %d" ,
                  m_symbol.Name(),
Enumeration to string ( period ()),
getLastError ());
//--- The indicator stops returning early ( initialization failed );
    }

It is similar to starting the Moving Average indicator in the Commodity Channel Index window of the terminal and selecting "Data of the previous indicator" in its parameters (to apply the indicator to the data of other indicators).

Principles for opening and closing positions:

EURUSD test, H1:

iCCI iMA - expert for MetaTrader 5


Attachment download

📎 icci_ima.mq5 (34.88 KB)

Source: MQL5 #18776

Verification code Refresh