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

Actuator AC - MetaTrader 5 Expert | Forex Indicators Download - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

Executer AC - expert for MetaTrader 5

Thoughts by - Alex

mq5 code author - Bara Bashkakon

The EA uses the iAC (Acceleration/Deceleration, Acceleration/Deceleration Oscillator, AC) indicator. The EA only runs when a new bar appears. The EA only opens one position at a time, so it can be used on both hedging and netting accounts.

Lot size is calculated based on recent trading history for historical days (this maximum risk percentage and reduction factor are also used parameters).

The EA implements multiple buy and sell signals (the ac[] array here represents the AC indicator value)

 //--- indicator AC rises if (ac[ 1 ]> 0.0 && ac[ 2 ]> 0.0 )
        {
//--- Check for buy signal if (ac[ 1 ]>ac[ 2 ] && ac[ 2 ]>ac[ 3 ])
          {
            ***
          }
        ***
        }
//--- indicator AC down if (ac[ 1 ]< 0 && ac[ 2 ]< 0 )
        {
//--- Check for buy signal if (ac[ 1 ]>ac[ 2 ] && ac[ 2 ]>ac[ 3 ] && ac[ 3 ]>ac[ 4 ])
          {
            ***
          }
        ***
        }
//--- The indicator AC crosses zero from top to bottom if (AC[ 1 ]> 0.0 &&AC[ 2 ]< 0.0 )
        {
        ***
        }
      ***

Sell ​​signal:

 //--- indicator AC rises if (ac[ 1 ]> 0.0 && ac[ 2 ]> 0.0 )
        {
*** //--- Check for sell signal if (ac[ 1 ]<ac[ 2 ] && ac[ 2 ]<ac[ 3 ] && ac[ 3 ]<ac[ 4 ])
          {
            ***
        }
//--- indicator AC down if (ac[ 1 ]< 0 && ac[ 2 ]< 0 )
        {
        ***
//--- Check for sell signal if (ac[ 1 ]<ac[ 2 ] && ac[ 2 ]<ac[ 3 ])
          {
            ***
          }
        }
      ***
//--- indicator AC crosses zero from bottom to top if (ac[ 1 ]< 0.0 && ac[ 2 ]> 0.0 )
        {
        ***
        }

Example of opening a buying position:

Executer AC - expert for MetaTrader 5


Attachment download

📎 executer_ac.mq5 (57.79 KB)

Source: MQL5 #23086

Verification code Refresh