SetIndexBuffer(index_buffers++,buf0,INDICATOR_DATA);
This is the first time I have seen this function used in an Expert Advisor. Why?
I read diagonally, but this phrase "cuts the eye":
Вывод 1. Практически ни один из стандартных индикаторов по отдельности, по крайней мере без использования манименеджмента, не способен постоянно приносить стабильную прибыль.
Indicators do not make profit, but analyse the market and can generate trading signals.
===
The strategy itself is more promising for multicurrency Expert Advisors, but this is my personal opinion and it may be wrong.
It is strange that no research has been done using the ZigZag indicator. In my opinion, it is the most suitable tool for such Expert Advisors.
I do not agree with the statement that "... when reversing we do not care which way and when to open the first trade ". The use of techanalysis for the first trade, as well as for the subsequent ones, reduces the probability of depo draining.
This is the first time I have seen this function used in an Expert Advisor. Why?
I studied mql5 using examples from the mql5 manual. This function is used there. However, perhaps there are examples from the code of an indicator, not an Expert Advisor. I did not pay attention to it )
I was reading diagonally, but this is the phrase that "cuts the eye":
Indicators do not bring profit, but analyse the market and can generate trading signals.
===
The strategy itself is more promising in multi-currency Expert Advisors, but this is my personal opinion and it may be wrong.
> Indicators do not make profit, but analyse the market and can generate trading signals
yes, you are right
> The strategy itself is more promising in multi-currency Expert Advisors, but this is my personal opinion and may be wrong.
from a diversification point of view it may be true. But you need to test if the drawdowns of several currencies overlap with each other
It is strange that no research has been done using the ZigZag indicator. In my opinion, it is the most suitable tool for such Expert Advisors.
I do not agree with the statement that "... when reversing we do not care which way and when to open the first trade ". The use of techanalysis for the first trade, as well as for subsequent ones, reduces the probability of depo draining.
> It is strange that no research has been done using the ZigZag indicator. In my opinion, it is the most suitable tool for such Expert Advisors.
I am more and more inclined to think that contrary to the tests, a simple moving average may be the most suitable. Because in the above examples very large take-outs and stops are used, i.e. it is the direction of the global trend that matters, not the support, resistance levels or intraday price movement. I will have to try to test it again.
> I do not agree with the statement that "... when reversing we do not care which way and when to open the first trade ". Using techanalysis for the first trade, as well as for the subsequent ones, reduces the probability of depo draining.
This is not exactly what was meant. Even testing on historical data has shown that direction is important. In the sense that the best stop/teak options for shorts brought significantly more profit than the best stop/teak options for longs. That is, it doesn't hurt to use historical data to determine which direction is best for a given instrument.
As for the reversal theanalysis, if we mean the theanalysis not with the help of indicators, but with the help of support, resistance levels, etc., it has its own pros and cons. Indeed, it can help to choose the right direction and thus reduce risks. But in a bundle of 8 trades, which we consider in the article, you save only 1 trade. Saving it at the expense of your time, because thechanalysis is rather manual work, not automatic. If there are no problems with free time, then manual opening of the first trade can indeed be more profitable than automatic trading according to a pre-selected direction.
At the same time, no techanalysis will help if Trump tweets that he needs a weak/strong dollar or something similar ).
If you mean the use of indicators, I just gave the results of testing. When I started this testing, I myself hoped that it would be possible to increase profits with the help of indicators. But, unfortunately, the tests showed the opposite. I can only hope that I just used the wrong parameters of the indicators in the tests, and I should have used, for example, longer periods. Perhaps it is worth testing again with different parameters or other entry conditions.
The system is not robust to data from other brokers. The tests are a fit to the whole history. There are no tests with a test interval of at least a couple of years (2016-2018).
Naturally, each broker has its own point sizes, its own swaps. Since trades are held on average for quite a long time, higher swaps compared to the broker being tested will eat up some of the profit.
If your broker has a different pip size, then the optimal settings found during testing are not suitable at all. You need to do your own optimisation to find the stop and take sizes that will be suitable for your broker.
The spread of your broker, in principle, should not affect significantly, as in the article above very large stop and take levels are used.
In any case, if you are going to use this Expert Advisor on a real account, you should test it and optimise its parameters before using it.
> No tests with a testing interval of at least a couple of years (2016-2018)
Within this article, we are looking at how reversion works over the entire period of the exchange. Alright, if we don't have data for the whole period, at least for the period we do have. The purpose of this article was not to find the most appropriate EA settings for today's market. It is assumed that if the reversal worked during all 20 years, for which we have data, then it must be a really working trading system.

- www.metatrader5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article Reversing: The holy grail or a dangerous delusion? has been published:
In this article, we will study the reverse martingale technique and will try to understand whether it is worth using, as well as whether it can help improve your trading strategy. We will create an Expert Advisor to operate on historic data and to check what indicators are best suitable for the reversing technique. We will also check whether it can be used without any indicator as an independent trading system. In addition, we will check if reversing can turn a loss-making trading system into a profitable one.
Basics of proper reversing
Having performed many tests while optimizing the below Expert Advisor, I have prepared some rules that need to be followed if you want to minimize the risk of losing your deposit. These rules are not the ultimate truth, but worked for all tested symbols and period.
Rule 1: Take Profit should be greater than Stop Loss.
Articles relating to martingale and reverse martingale techniques, suggest that Stop Loss should be equal to Take Profit. But tests proved this opinion to be wrong. In all tests conducted in all markets, the use of equal Stop Loss and Take Profit caused the deposit to be lost. Your only chance to obtain profit is to set Take Profit at least twice as large as Stop Loss.
The optimal ratio between these two parameters depends on the particular financial instrument. For example, the ratio for GBPUSD is approximately 3:1 or 4:1; for EURUSD it can be both 2:1 and 4:1.
The ratio of 2:1 means that the Take Profit level should be twice as large as Stop Loss. I.e. if SL is 40 points, TP should be equal to 80 points.
Rule 2: Stop Loss should be large enough.
In a ranging market, such as Forex, the combination of small Stop Loss levels with a reversing strategy causes deposit loss. All performed tests confirmed this rule.
In the below EA, we will use Stop Loss of 40-90 points. Please keep in mind that since currency symbols have 5 or 3 decimal places, the selected SL and TP are multiplied by 10 (I don't know why, but this is done in all Expert Advisors published under the Articles section). That is, the real Stop Loss is 400-900 points. That can be compared to the average daily movement of the financial instrument.
Stop Loss values below 400 points cause complete deposit loss regardless of TP. The only exception to this rule will be provided below, in the description of the strategy involving entries once a day.
Rule 3: The timeframe should not be too small.
The use of large SL and TP values reduces strategy dependence on the timeframe. Positions are held open for quite a long time - from one day to one or more weeks. But it was noticed that profit on timeframes below M15 was lower. The same was observed on timeframes above H1, which is because the number of trades decreases.
Rule 4: Stop at the proper time.
In theory, if you keep opening new positions after a losing one, you will ultimately obtain profit. But in practice, the endless opening of positions with a doubled volume may cause the total deposit loss.
Author: Roman Klymenko