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

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

author EAcpu | 6 reads | 0 comments |

Ilan iMA - expert for MetaTrader 5

Idea from: Ingrit

mq5 code: Barabashkakon

NOTE: The EA is designed to only work on hedging accounts!

Ilan is based on the iMA indicator (Moving Average, MA)

Send buy signal , sell signal :

 if (horse[ 0 ]<horse[ 1 ] &&horse[ 1 ]<horse[ 2 ] &&horse[ 2 ]<horse[ 3 ]) // trend down {
if ( m_symbol.bid ()>horse[ 0 ])
            m_need_open_sell= true ;
        }
Else if (horse[ 0 ]>horse[ 1 ] && horse[ 1 ]>horse[ 2 ] && horse[ 2 ]>horse[ 3 ]) // trend upward {
if ( m_symbol.ask ()  0 ])
            m_need_open_buy= true ;
        }

If the position loses at least one step (1.00045-1.00055=1 pip), the new position will be opened in the same direction as the losing position. New positions will be opened with larger lot sizes. The new reference lot size cannot exceed the predefined value of the maximum lot size .

If there are multiple positions, we wait until their total profit equals or exceeds the profit minimum . Once this happens, we will close all positions.

We always work in only one direction. If a buy and sell position is opened at the same time, this is considered an error situation and steps will be taken to close unnecessary positions.

How to increase the position: If there is more than one position, the highest one is detected; the highest amount found should be multiplied by the batch factor lot index . Why do you do this - by searching for the highest volume? The problem is that the price can sometimes move in the wrong direction and some positions are opened with minimum step size - one step . In the picture below, the latest trading volume is equal to 0.34 lots. Suppose the price reverses in the desired direction and the position of 0.34 lots is closed with take profit. Logically, if the price goes against us again, we will add 0.21* lot index . Therefore, we avoid deposit overload.

Ilan iMA - expert for MetaTrader 5


Attachment download

📎 ilan_ima.mq5 (77.97 KB)

Source: MQL5 #23540

Ilan iMA - MetaTrader 5 Expert | Forex Indicator Download - MT4/MT5 Resource Usage and Screening Suggestions

Ilan iMA - MetaTrader 5 Expert | Foreign Exchange Indicator Download - MT4/MT5 resources are foreign exchange indicator related resources. Before downloading or referencing, it is recommended to confirm the platform version, transaction type, time period, whether DLL is required, whether source code is included, parameter description and historical update records.

Both automated trading tools and foreign exchange indicators should first undergo backtesting, simulated account observation, and small capital verification. Pay special attention to spreads, slippages, maximum drawdowns, position opening frequency, stop loss methods, trading periods and broker rules, and avoid direct real-time execution based only on titles or short-term profit descriptions.

Verification code Refresh