EA Hedging for MT5
EA Hedging for MT5
IMPORTANT! The EA works only on
netting score! Do not try to put it on hedg account!
The EA works on the MT5 terminal netting account. (you can test the EA in the tester and optimize the parameters on the history!)
We know that highly correlated currencies almost always behave in a mirror fashion. But there are moments of deviation (divergence of currencies) from the normal value.
The EA opens orders in the direction of currency convergence.
If the discrepancy occurs for a long time, then the refilling system is used.
Further, when the total profit reaches CloseProfit (the value in the Deposit currency at which all positions are closed), the EA closes trades.
For trading, select currencies with a high correlation, for example:
EURUSD – GBPJPY
GBPUSD – USDJPY
AUDUSD – NZDUSD
There are items in the parameters
This is the name of the instruments (currency pairs)
If you leave them empty and set the EA to one of the above pairs, the EA will determine the instruments and will trade them.
If You need other options, you can write the names of any currencies in these parameters, for example
Symbol1 = USDCAD
Symbol2 = USDCHF
You can use other options, such as gold – silver or oil and gas or shares of state corporations.
The main thing that they have a high percentage of correlation.
The EA does not use indicators. It analyzes the divergence of instruments (in our case currency pairs) in a given area.
Option BarsWind is the number of candles on which the analysis of differences of currencies.
If the charts of the instruments diverge by a certain distance, the EA opens a pair of counter trades in the hope,
that the tools would come together again.
Delta (currency divergence) at which the first positions are opened is calculated by the following parameters:
K_Min_Points = 1.5 – coefficient of the minimum Delta for open positions.
For example, over the last 100 candles instruments diverged by a maximum of 200%.
The EA will not open positions if the current divergence is less than 133 = (200/1.5)
K_Max_Points = 1.01 – factor rollback of the maximum deltas for position opening.
For example, the maximum divergence for the entire period occurs on the current candle and is 150%.
We assume that the discrepancy may increase further and therefore do not open positions immediately.
To positions are not opened immediately and need this option. It does not allow trading until the Delta is reduced by a factor
up to level 148 = (150/1.01)
StartDelta1 – minimum Delta of position opening prevents opening when instruments do not diverge for a long time. This is the minimum Delta at which opening is allowed.
Dolivka – topping up additional positions. If, after opening positions, the prices of instruments continue to diverge,
the adviser produces topping up. Points of loss of positions are calculated and if the total difference is more than Dolivka open additional positions.
If you wish, you can transfer the EA to manual trading.
To do this, in the lower right corner there are three buttons
Manual – puts the EA into manual mode. At the same time he does not open or close positions.
The Open button opens a pair of counter positions for the two instruments in the direction of the Delta convergence.
The Close button closes all positions.
Get expert Advisor
The EA costs 300 usd and will be tied to the name. The EA will work on all accounts opened in this name. There is no time limit. All subsequent versions of the EA will be updated free of charge.
You can download and test the EA onhttps://www.mql5.com/en/market/product/38656