I ordered an Expert Advisor that works on the basis of the positioning of three MAs: if Fast> Medium> Slow, then I buy with double volume to reverse the position. If the ratio is reversed, we sell with a reversal. The Executor has made a model. When testing it, I see that each position reversal is implemented by three reversal deals. Can anyone suggest what the issue is here?
I ordered an Expert Advisor that works on the basis of the positioning of three MAs: if Fast> Medium> Slow, then I buy with double volume to reverse the position. If the ratio is reversed, we sell with a reversal. The Executor has made a model. When testing it, I see that each position reversal is implemented by three reversal deals. Can someone tell me what the reason is?
sell - price moved in another direction - flip - price returned - flip again
The chart shows the final result, while the real time mode shows a completely different picture
sell - price went the other way - flip - price returned - flip again
you can see the end result on the chart, but in real time it's a completely different picture
...The point is that the relationship between the price and the MA does not directly affect the performance of operations. The correlation of values of moving averages Fast>Average>Slow should be set in the program and recalculated after the next bar is closed. I.e., spread fluctuations of price and even its movement within a bar should not lead to transactions. What could be the fault of the Executor?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Check out my version:
On a laptop - everything flies!
How do I know that TRADE_RETCODE_MARKET_CLOSED (market is closed) for a specified symbol without sending a trade order to the server?
https://www.mql5.com/ru/docs/marketinformation/symbolinfointeger?
I ordered an Expert Advisor that works on the basis of the positioning of three MAs: if Fast> Medium> Slow, then I buy with double volume to reverse the position. If the ratio is reversed, we sell with a reversal. The Executor has made a model. When testing it, I see that each position reversal is implemented by three reversal deals. Can anyone suggest what the issue is here?
Screenshots from MetaTrader platform
EURUSD, M5, 2013.07.14
Nord Group Investments Inc., MetaTrader 5, Demo
temp_file_screenshot_34063.png
I ordered an Expert Advisor that works on the basis of the positioning of three MAs: if Fast> Medium> Slow, then I buy with double volume to reverse the position. If the ratio is reversed, we sell with a reversal. The Executor has made a model. When testing it, I see that each position reversal is implemented by three reversal deals. Can someone tell me what the reason is?
sell - price moved in another direction - flip - price returned - flip again
The chart shows the final result, while the real time mode shows a completely different picture
sell - price went the other way - flip - price returned - flip again
you can see the end result on the chart, but in real time it's a completely different picture
The EA used to work without errors, decided to run MT5 again today, but now when compiling it writes:
Cannot be used for static allocated array
How can I get rid of it? How can I get rid of it?
The EA used to work without errors, decided to run MT5 again today, but now when compiling it writes:
Cannot be used for static allocated array
How can I get rid of it? Thank you.
Use dynamic arrays or change the size of static arrays: