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

Dynamic Average - MetaTrader 5 Expert | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 3 reads | 0 comments |

Dynamic averaging - expert for MetaTrader 5

Idea from -bird0

mq5 code author - Bara Bashkakon

The Expert Advisor uses the iStdDev indicator value in the sliding window " Sliding Window Size " days and calculates the average indicator value in this window. If the current iStdDev value is greater than the calculated average, it is a signal to prohibit trading.

If there is no ban, check the stochastic indicator:

 if (random[ 0 ]< 25.0 && random[ 1 ]-random[ 2 ]> 0.0 )
      m_need_open_buy= true ;
if (random[ 0 ]> 75.0 && random[ 1 ]-random[ 2 ]< 0.0 )
      m_need_open_sell= true ;

At the same time, the EA tracks trades that are closed with a loss: as soon as it detects such losing trades, the EA increases the lot size of the next trade.

Once the total profit is equal to or greater than the "minimum profit", the position will be closed.

NOTE: This is a high risk strategy! After seemingly making a profit

Dynamic averaging - expert for MetaTrader 5

You can easily lose your entire deposit!


Attachment download

📎 dynamic_averaging.mq5 (52.46 KB)

Source: MQL5 #23319

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

Dynamic Average - 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