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

VR---SETKA---3 - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 4 reads | 0 comments |

VR---SETKA---3 - expert for MetaTrader 5

VR---SETKA---3 - expert for MetaTrader 5

VR---SETKA---3 - expert for MetaTrader 5

VR---SETKA---3 - expert for MetaTrader 5

VR---SETKA---3 - expert for MetaTrader 5

VR---SETKA---3 - expert for MetaTrader 5

VR---SETKA---3 - expert for MetaTrader 5

VR---SETKA---3 - expert for MetaTrader 5

VR---SETKA---3 - expert for MetaTrader 5

The author of the ideaVladimir Pastushak , the author of the mq5 codeBarabashkakon .

EA is based on three components:

1 — Good entry. I researched more than a dozen trading strategies and finally found one that made at least 8 successful entries and failed 2 times.

2 — Hold the position until the planned profit is received.

3 — Exited with a profit and resulted in 2 statistically losing trades of zero. This EA also has a Plus parameter that adds multiple profit points above zero.

We often see financial news saying that prices have increased by 2%, 1%, etc. I carefully studied the statistics of overbought/oversold market trading strategies. We have the day's high and low prices as well as the currency price of 1.23000. In order to enter a trade, the EA needs to set up or down via the percentage parameter. By default, this parameter is set to 1.3, which means that the EA will sell when it reaches 1.2423.

Therefore, we have the following parameters: low price of the day 1.23000, current price 1.25000, sell threshold — percentage 1.3%. The formula is as follows: (((current price 1.25000*100)/lowest price of the day 1.23000)-100)>=percentage 1.3%

A buy signal has the opposite equation. Thus, we take a roll-back from the strong movement.

VR---SETKA---3 - expert for MetaTrader 5

Most other strategies do not fall into the 8/2 ratio.

2 - Hold the position until the planned profit is received.

If the price moves in favorable direction after opening the first order, the EA waits for a take profit to trigger. If the lot size is calculated based on the deposit (lot size = 0 and percentage => 1), then in case the result is positive, the lot size of each new trade will exceed the lot size of the previous trade. To calculate the percentage of free funds we use the book from MQL4 . The code has been changed to allow setting decimal values ​​for percentages (1.1% 1.8% 35.69%)

3 - Exited with profit and resulted in 2 statistically losing trades of zero

Averaging (adding identical positions with the same volume to the current position) is used to exit losing trades. In other words, if the price movement goes against a position, the EA opens a new trade of the same type, expecting the price to roll back to a level with a result of 0. Without the martingale, the EA would need to roll back 50-52% to reach zero level, depending on spreads and commissions.

Fixed volume chart:

VR---SETKA---3 - expert for MetaTrader 5

Using martingale, the EA only needs to roll back 20-22% to close the order series (averaging using martingale — adding the same position to the current position, but with an increased volume). This method is considered high-risk, since you need to deposit a large amount of money in case the price moves by 300-400 points.

Chart with martingale (volume changes according to the number of open positions).

VR---SETKA---3 - expert for MetaTrader 5

The Distanciya parameter is used to average when setting the opening of the next additional order, while the ShagDist parameter is used to increase the distance by the specified number of points for each new order.

The EA has parameters for changing the averaging method:

standard martin = false

Use martingale Martin=True

Slip=2 (slippage in points)

Magic=1 (EA magic number).

So when optimizing by opening price we have the following chart

VR---SETKA---3 - expert for MetaTrader 5

The following are the test results of EURUSD M30 in "Every tick" mode from January 1, 2016 to November 12, 2016:

VR---SETKA---3 - expert for MetaTrader 5


Attachment download

📎 vr---setka---3.mq5 (28.34 KB)

Source: MQL5 #16898

Verification code Refresh