Fully automated Expert Advisor using the advanced grid algorithm and constrained Martingale (version for MT5: GS grid5 ) .
Advisor for those who are willing to manage risk for the sake of high profits.
Set up to work on EURUSD timeframe M15.
Principle of operation
As it was in the past, it is impossible to conclude about the future. Successful work in the future is possible only through the personal involvement of the trader.
Uses Heiken Ashi, RSI indicators to
open orders using the advanced grid algorithm. You can enable limited
martingale or use a permanent lot.
moreover, if the Close ALL orders = false parameter, the SELL and BUY order groups are counted separately.
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.Additional information in my blog: https://www.mql5.com/en/blogs/post/724376
The size of the deposit should ensure the opening of orders and their
possible drawdown, while being not too large, since the market situation
may be such that the adviser cannot cope. However, the larger the
deposit, the lower the risk of losing it.
For Start Lots = 0.01 - a deposit of 200USD (1: 500).
For Start Lots = 0.1 - a deposit of 2000USD (1: 500).
If these proportions are observed, depending on the established parameters, the increase can be from 20% to 200% per month or more.
However, the greater the percentage increase, the higher the risk of losing the deposit.
To reduce the risk provided:
- order type restriction modes (only SELL or only BUY);
- trading day restriction modes (Final day parameter);
- trading time limiting modes (Start Time and End Time parameters);
- parameter Stop Loss orders ( Order Stop Loss = 600) .
- The results of work on a real account in 2019 on 2019/03/29
- Screenshot for version 5.5 EURUSD M15 in the strategy tester from February 2018 to January 2019 for an initial deposit of 150 USD (1: 500), Start Lots = 0.01, Order Stop Loss = 0, Use orders SELL = true, Use orders BUY = true, Final day = SATURDAY (average increase of 340% per month)
- Setting Set = NO - options for auto tuning advisor parameters (NO, Safety, Nightly_GMT, Work1, Work2, Work3, Work4, Risky)
- Magic number = 23777 - must be unique for each chart
- Lot Mode = LOT_MODE_Increment - lot volume mode in a group
- LOT_MODE_FIXED - permanent lot
- LOT_MODE_Increment - increase the lot volume in the group by Lot Increment Factor
- 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 SELL (cents) = 45 - the interval between orders of the SELL group
- Min distance between orders BUY (cents) = 90 - the interval between orders of the BUY group
- Target profit (cents) = 90 - target profit
- Take Maximum profit = true - the mode of closing the transaction at the maximum possible profit
- Order Stop Loss (cents) = 0 - Stop Loss Orders
- Use orders SELL = true - use orders SELL
- Use orders BUY = true - use orders BUY
- Close ALL orders = false - accounting for groups of orders SELL and BUY separately
- Final day = Friday - the final day of the transaction
- Start Time = "00:00" - start time (Local Time)
- End Time = "23:59" - end time (Local Time)
- Order Comment = "" - your order comment <= 10 characters
- Display info = true - display the table of input parameters
The algorithm of formation of buy and sell signals has been changed
Changed Safety and Nightly mode settings
Control buttons ONLY_SELL, ONLY_BUY is possible only when Setting Set="NO".
Open orders not corresponding to the current mode will wait for the opportunity to close without loss.
Order Comment - order comment (starting from version 6.2)
Number of steps to increase the lot - limits the lot increase to the specified number of steps
Adjustments for the setting parameter Set:
"Work3" mode renamed to " Work4"
Added "Work3" mode with new settings (correspond to GS gridC signal)
- Setting Set - set parameters (No,Safety,Nightly,Work1,Work2,Work3,Risky)
- Start Time, End Time - start and end time of the EA
1. Take Maximum profit = true; реализован алгоритм, закрывающий сделку не по фиксированной прибыли, а по ее возможному максимуму.
2. Order Stop Loss (cents)=600; размер устанавливаемого для ордеров параметра StopLoss
По умолчанию использует только ордера SELL
По тесту за период январь-ноябрь 2018 при депозите 250USD и лоте 0.01 риск равен нулю (Maximal drawdown=222.94).
Добавлена проверка достаточности депозита.
Добавлены режимы ограничения дней торговли.
Не исключен, но минимизирован риск потери депозита при соблюдении условий его достаточности.