The Moving Average indicator data is used for trading. If the price goes away from the Moving Average by a certain number of points, then an order is placed in the direction of the Moving Average line.
The EA can make profit, but only a small one. It also requires a large deposit.
Idea of this EA was mine. The code of the EA was written by Sergey Diubakin.
The solid red line on the figure is the value of the Moving Average indicator, the dotted red line is the boundary of the channel (Range), which is calculated using the indicator value, and at the crossing of which a corresponding order is opened.
At the lower boundary of the channel (Range) the EA opens a Buy order, at the upper boundary — Sell order.
In order for the EA to open a Buy or Sell order on a candlestick/bar that touches the channel boundary (Range), the High or Low of the previous candlestick/bar (the "first" bar that precedes the "zero" bar) must be below/above the Range level: the High of the "first" bar must be below the upper boundary of the Range level o open a Sell order, the Low of the "first" bar must be above the lower boundary of the Range level to open a Buy order.
Also this EA additional plug-in modules: Turn, Step Down and Trade Time.
Take Profit – profit level of an order (specified in points of the chart the EA is attached to).
Stop Loss – loss level of an order (specified in points of the chart the EA is attached to).
Trailing stop – automatically moved Stop Loss level.
Module Step Down
Module Trade time
Magic (Magic Number) – the program code of the EA, which allows it to distinguish its own orders from others.
Logo and data output – the module allows to enable/disable the table (earnings today, yesterday etc.):
Time frame – program code, which allows to specify the time frame of the chart for the EA to use for trading.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/12375
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.Average Directional Movement Index (ADX)
The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.