Revertix
- Experts
- Version: 1.0
- Activations: 10
Revertix — a return-to-average Advisor for EURUSD and GBPUSD
Revertix is an automatic Expert Advisor for MetaTrader 5 that trades the price return after excessive deviation. When the market moves too far from its equilibrium level, the ADVISER opens a deal against this movement and closes it when the price returns.
Ready-made parameter sets are built into the Expert Advisor for EURUSD and GBPUSD. It's enough to select a pair in one setting — you don't need to select anything else.
THE PRINCIPLE OF OPERATION
Currency pairs fluctuate around their average value most of the time, and sharp deviations from it fade over time. Revertix looks for such deviations and enters the market only when the potential move back is noticeably higher than the transaction costs.
- Decisions are made only on closed candlesticks — the signals are not redrawn.
- The Expert Advisor uses the required timeframe itself, so it can be placed on the chart of any timeframe.
- Entries against the movement of the senior timeframe are cut off by the trend filter.
- If the price continues to move against the position, the Adviser can add a limited number of orders. Each subsequent order is larger than the previous one by one starting volume (0.01, 0.02, 0.03 ...). There is no volume multiplication, the number of orders is strictly limited: no more than 2 for EURUSD and no more than 6 for GBPUSD.
- The series is closed entirely when the price returns and the series is in profit.
- If the movement against the series becomes too large, the series is forcibly closed, and this direction is paused.
- A new episode opens only after the previous one is closed.
PARAMETER SETS
Each embedded set was optimized based on the history of 2014-2019, taking into account the commission, and then checked for 2020-2026, a period that did not participate in optimization, on real ticks with an occasional delay in execution.
The results of the MetaTrader 5 strategy tester for 2014-2026 (real ticks, 10,000 USD deposit, 0.01 lots, 7 USD commission per lot taken into account):
- EURUSD: profit factor 1.47, maximum drawdown of 2.4%, 10 profitable years out of 13.
- GBPUSD: profit factor 2.32, maximum drawdown of funds 2.0%, 13 profitable years out of 13.
INPUT PARAMETERS
The main settings are the ones that really make sense to change.
- Parameter set — a set of parameters. EURUSD or GBPUSD is a built—in proven set for this pair. Current pair — parameters from the Strategy group, by default they match the EURUSD set; the mode is designed for self-optimization for other symbols.
- Start volume — the volume of the first order in the series. This is the main risk parameter: profit and drawdown grow in proportion to it. Testing was carried out with 0.01 lots for 10,000 USD.
- Auto volume — the balance for which the starting volume is calculated (0 is a fixed volume). For example, with a value of 10000 and a starting volume of 0.01, the EA opens 0.01 lots for every 10,000 balance and increases the volume as the account grows.
- Max volume of one order — limit the volume of one order.
- Commission per 1 lot round trip — commission per lot. By default -1: the ADVISOR determines it by itself based on the account history and takes it into account when making decisions.
- Equity stop — closing all positions with a loss of a specified percentage of the balance. By default, 20%. After activation, the new inputs are suspended for a set number of hours.
- Daily loss limit — daily percentage loss limit. The default is 5%. When the limit is reached, new entries are not opened until the end of the day; when the closure is enabled, positions are closed.
- Min margin level — a new order will not be opened if the margin level after it is lower than the set one. By default, 500%.
- Monday ... Sunday — schedule of new entries by day of the week.
- Friday — stop adding orders on Friday from a given hour and, if desired, close positions before the weekend.
- News filter — pause new entries near important economic news on the instrument's currencies (built-in MetaTrader 5 economic calendar, only in real trading).
- Magic number — the identifier of the Adviser's transactions. Change it if another Expert Advisor with the same number is working on the same symbol. The adviser does not touch transactions with someone else's number.
- Strategy group — parameters of the trading system for the Current pair mode. When selecting the embedded EURUSD or GBPUSD set, these values are not used.
BUILT-IN PROTECTIONS
- A strictly limited number of orders in a series and the forced closure of a series if there is too much movement against it.
- Cost filter: on accounts with expensive trading, the ADVISOR automatically becomes more selective.
- Extended spread filter: entry is not performed with an abnormally wide spread.
- Protection of funds, daily loss limit and margin level control.
- Checking the free margin, allowable volume, minimum stop distance and freezing level before each operation.
- Correct operation when the market is closed: the Adviser does not send orders during the broker's non-working hours.
INFORMATION PANEL
The chart displays a compact panel: the selected set of parameters, the trading status and the reason for the pause, positions by direction, floating result and drawdown, commission, spread, result for the day, trend direction and upcoming news. The panel can be dragged with the mouse to a convenient location, the position is remembered.
recommendations
- Instruments: EURUSD and GBPUSD, each on its own chart. The broker's symbol name may have a different suffix, but it doesn't matter.
- Timeframe of the chart: any.
- Account type: Hedging only. Spread and commission accounts are suitable.
- Deposit: from 3,000 USD for every 0.01 lots of the initial volume. A cent account is suitable for small accounts.
- Leverage: from 1:100.
- Work 24/5: VPS is recommended for stable operation.
FREQUENTLY ASKED QUESTIONS
Is this a grid advisor?
Yes, but with strict restrictions: no more than 2 orders for EURUSD and 6 for GBPUSD, without volume multiplication, with forced closure of the series in case of strong movement against it and general protection of funds.
Why are there few transactions on GBPUSD?
The GBPUSD kit is included only for severe deviations — an average of about 6 episodes per month. This is normal for this setting.
Are there any unprofitable trades?
Yes. Some of the series are forcibly closed at a loss, unprofitable years are also possible (EURUSD had two out of thirteen in the tests). The result is formed by numerous series that are closed after the price is refunded.
Does the ADVISOR close positions for the weekend?
By default, no: on Friday from 18:00 server time, the EA stops adding orders, and open positions can remain until Monday. Closing before the weekend is enabled by a separate setting.
Can it be used on other instruments?
Embedded sets have been developed and tested only for EURUSD and GBPUSD. There is a Current pair mode for other symbols, but the results have not been tested on them — you will need your own optimization.
Why do I need a hedged account?
Orders of the same series should remain separate positions. The Expert Advisor does not start on the netting account.
support
Write your questions and suggestions in private messages or in the product comments on MQL5.com .
RISK WARNING
Trading in financial markets involves the risk of capital loss. The EA uses position averaging, so individual series can close at a loss. The results of history testing are not a guarantee of future profitability. Use only those funds that you can afford to lose, and choose the amount consciously.
