Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Executer AC - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
3055
Rating:
(16)
Published:
2018.11.20 12:45
Executer AC.mq5 (57.79 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Author of the idea - Alex

mq5 code author - barabashkakvn

The EA uses iAC (Acceleration/Deceleration, Accelerator/Decelerator Oscillator, AC) indicator. The EA only operates when a new bar appears. The EA opens only one position at a time, therefore it is able to work both on hedging and netting accounts.

Lot is calculated based on the trading history for the last History days (the Maximum Risk in percentage and Descrease factor parameters are used as well).

The EA implements several signals for BUY and SELL (ac[] array here stands for AC indicator values)

BUY signals:

      //--- indicator AC go UP
      if(ac[1]>0.0 && ac[2]>0.0)
        {
         //--- check signal BUY
         if(ac[1]>ac[2] && ac[2]>ac[3])
           {
            ***
           }
         ***
        }
      //--- indicator AC go DOWN
      if(ac[1]<0 && ac[2]<0)
        {
         //--- check signal BUY
         if(ac[1]>ac[2] && ac[2]>ac[3] && ac[3]>ac[4])
           {
            ***
           }
         ***
        }
      //--- indicator AC crosses zero from top to bottom
      if(ac[1]>0.0 && ac[2]<0.0)
        {
         ***
        }
      ***

SELL signals:

      //--- indicator AC go UP
      if(ac[1]>0.0 && ac[2]>0.0)
        {
         ***
         //--- check signal SELL
         if(ac[1]<ac[2] && ac[2]<ac[3] && ac[3]<ac[4])
           {
            ***
        }
      //--- indicator AC go DOWN
      if(ac[1]<0 && ac[2]<0)
        {
         ***
         //--- check signal SELL
         if(ac[1]<ac[2] && ac[2]<ac[3])
           {
            ***
           }
        }
      ***
      //--- indicator AC crosses zero bottom up
      if(ac[1]<0.0 && ac[2]>0.0)
        {
         ***
        }

Example of opening BUY:

Executer AC

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/23086

InvertBar_Plus InvertBar_Plus

The inverted chart of the current financial instrument, displaying Ask and Bid price levels in the form of colored bars in the additional window

Time_Bar_Custom_Monthly Time_Bar_Custom_Monthly

Brief description

Bronze Warrioir Bronze Warrioir

The Expert Asvisor uses iCCI (Commodity Channel Index, CCI) and iWPR (Williams’ Percent Range, %R) indicators, as well as custom DayImpuls indicator.

DayImpuls DayImpuls

Impulse detector. The indicator applies MovingAverages.mqh