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

EA trading based on MA channel boundary rollback - Expert of MetaTrader 4 - MT4/MT5 resources

author EAcpu | 3 reads | 0 comments |

Expert Advisor based on the rollback from the MA channel boundary - expert for MetaTrader 4

This moving average indicator data is used for trading. If the price deviates from the moving average by a certain number of points, an order is placed in the direction of the moving average.

EA can make a profit, but the profit is very small. It also requires a substantial deposit.

The idea for this EA is mine. EA is coded by Sergey Dibakyan .

Expert Advisor based on the rollback from the MA channel boundary - expert for MetaTrader 4

The solid red line in the figure is the value moving average indicator, and the dotted red line is the border of the channel (range), which is calculated using the indicator value and the corresponding order is opened at its intersection.

At the lower border of the channel (range), the EA opens buy orders, and at the upper border, sell orders.

In order for the EA to open a buy or sell order on a candlestick/bar that touches the channel border (range), the high or low price of the previous candlestick/bar (the "first" bar before the "zero" bar) must be below/above the range level: the high price of the "first" bar must be below the upper border of the range level, otherwise a sell order will be opened, and the low price of the "first" bar must be above the lower border of the range level in order to open a buy order.

In addition, this EA has additional plug-in modules: Turn, Step Down and Trade Time.

EA trading settings:

Take Profit – the profit level of the order (specified in points on the chart attached to the EA).

Stop Loss – the loss level of an order (specified in points on the chart attached to the EA).

Trailing Stop – automatically moves the stop level.

Module steps down

Module transaction time

Magic (magic number) – the EA’s program code that enables it to distinguish its orders from other orders.

Flags & Data Output – This module allows enabling/disabling tables (today’s earnings, yesterday’s earnings, etc.):

Approximate time – program code that allows specifying the chart time frame for trading by the EA.


Attachment download

📎 range_ea.mq4 (33.59 KB)

Source: MQL5 #12375

Verification code Refresh