• Overview
  • Reviews (1)
  • Comments (4)
  • What's new

GS grid5

Fully automated Expert Advisor using the advanced grid algorithm and constrained Martingale (MT4 version: GS grid ).

Set up to work on EURUSD timeframe M15.

Works on HEDGING accounts with a leverage of 1:500 and a Deposit from 1000USD.

Can use the news feed from Forex Factory to prevent trading during news release (Filter News Forex Factory=true;). To access the options terminal menu on the Expert Advisors tab, you must enable WebRequest: http://cdn-nfs.faireconomy.media/ff_calendar_thisweek.xml

It allows you to protect the EA from opening orders in an unstable market (it is not tested in the strategy tester).

Principle of operation

It uses the Heiken ASHI indicator built into the EA to open orders using an advanced grid algorithm.

Built-in News filter: Advisor does not open new deals on the days of publication of decisions on rates of the Fed and the ECB.

You can enable limited martingale or use a permanent lot.

The deal starts with the first open order and ends when the total profit of the orders (separately Sell, separately Buy) exceeds the value of the Target profit parameter and, depending on the value of the Set take Maximum profit parameter:

  • NO_use - orders are closed immediately;
  • use_Signal - closed when a reversal signal is received;
  • use_Trailing - Stop Loss groups of orders are set and Trailing mode is enabled.

Parameter The Setting Set contains a list of various auto-tuning parameters for the advisor. Including " Nightly" - night scalping mode.

Settings are sorted by increasing risk and profitability. You can consider them as examples for mastering the management of the advisor.

There are filters that allow you to configure the expert Advisor for the best trading conditions.

By default, Final day = Friday, the adviser on Friday does not open new deals, but only completes the open on Thursday.

There is a manual trading mode called Choosing Trade Options = Manual.

Orders are opened by clicking the SELL and BUY buttons and will be accompanied by expert Advisor in the common group of orders.

The Auto/Manual switch button is displayed on the graph in the list of parameters.

Additional information in my blog: https://www.mql5.com/en/blogs/post/724376 


    • Display info = true - display the table of used parameters
    • Choosing Trade Options = Auto - mode  {Manual, Auto}
    • Setting Set = No - options for the adviser's auto-tuning parameters (No, Safety, Nightly, Work1, Work2, Work3, Risky)
    • Magic number = 23577700 - must be unique for each chart
    • Start Lots = 0.01 - the initial volume of the lot
    • Lot Increment Factor = 1.5 - lot size lot = lot * MathPow (Lot Increment Factor, num), where num is the order number in the SELL or BUY group
    • Number of steps to increase the lot = 7 - limits the lot increase to the specified number of steps
    • Maximum orders = 13 - the maximum number of open orders 
    • Min distance between orders Ashi (cents) = 45 - the interval between orders of the group for the signal Ashi
    • Min distance between orders grid (cents) = 120 - the interval between orders of the group for the grid
    • Order Stop Loss = 0 - Stop Loss orders
    • Order Take Profit = 200 - Take Profit orders
    • Target profit (cents) = 90 - target profit
    • Set Take Maximum profit = use_Signal - mode of closing the deal at the highest possible profit {NO_use, use_Signal, use_Trailing}
    • Trade Direction = Only_Sell - use orders {Only_Buy, Only_Sell, Sell_and_Buy}
    • Final day = Friday - the final day of the transaction
    • Start Time = "00:00" - start time
    • End Time = "23:59" - end time
    • Filter News Forex Factory=false; - filter by news feed from Forex Factory
    • News Alert=true;
    • IncludeHigh=true;
    • IncludeMedium=true;
    • IncludeLow=false;
    • IncludeSpeaks=true;
    • STOP minutes before an event News = 90;
    • STOP minutes after  an event News  = 180;

    Reviews 1
    patex deejay
    patex deejay 2020.03.16 11:25 

    Amazing results with this EA. Thank you so much for your work.

    Recommended products
    patex deejay
    patex deejay 2020.03.16 11:25 

    Amazing results with this EA. Thank you so much for your work.

    Version 3.2 2020.06.29
    Adapted to work on cent accounts and charts. Parameters are set in points.
    Version 3.1 2020.06.07
    Profitability increased by 30%
    Version 3.0 2020.05.18
    Corrected the management of the trade direction buttons
    Version 2.9 2020.05.02
    1. Added buttons to control the direction of trade
    2. Corrected the work during news release
    Version 2.8 2020.03.21
    Fixed the news feed filter
    Version 2.7 2020.03.20
    Updated output of the Forex Factory news feed
    Version 2.6 2020.03.18
    1. Corrected the algorithm
    2. Changed preset mode settings
    Version 2.5 2020.03.16
    1. Added option the parameter Set Take Maximum profit = Use_Trailing mode
    2. Changed parameters
    3. The chart shows a button for switching the parameter Choosing Trade Options = Auto/Manual
    Version 2.4 2020.03.11
    1. Added news filter from Forex Factory
    2. Added manual trading mode (parameter Choosing Trade Options={Manual, Auto})
    3. Extended the ability to work with different timeframes
    Version 2.3 2020.02.21
    Changed the default setting
    Version 2.2 2020.01.18
    Added a filter for news about interest rates for 2020.
    Version 2.1 2019.09.23
    Improved trading algorithm
    Version 2.0 2019.09.20
    1. Improved trading algorithm resulting in version 2.0 almost twice as profitable as version 1.9
    2. Added parameter Orders Take Profit=200
    Version 1.9 2019.05.27
    Added algorithms:
    - saving a profitable trade
    - trade slowdown when the market moves in a loss-making direction
    Version 1.8 2019.05.09
    1. There are provisions for selective closing of orders manually. It is not recommended to close the last orders in the SELL and BUY groups, as they set the boundary condition of the transaction to open the next order.
    2. Excluded option Lot Mode as redundant. Mode without martingale can be obtained with Lot Increase Factor = 1.
    Version 1.7 2019.03.17
    Added parameter:
    Number of steps to increase the lot - limits the lot increase to the specified number of steps
    Version 1.6 2019.02.14
    Update when there are no open orders.
    1.Adjustments for the setting parameter Set:
    "Work3" mode renamed to " Work4"
    Added "Work3" mode with new settings (correspond to GS gridC signal)
    2.Changed parameters mode "Safety" and "Nightly" temporary restrictions are set up on GMT.
    Version 1.5 2019.02.06
    Added parameters:
    - Setting Set - set parameters (No,Safety,Nightly,Work1,Work2,Work3,Risky)
    - Start Time, End Time - start and end time of the EA
    The default settings are set according to Setting Set= "Work3"
    Version 1.4 2019.01.25
    Усовершенствован торговый алгоритм, прирост до 500% в месяц.