- Testing indicators
- Request Execution - Opening and Closing Positions - Trade - MetaTrader 5 for iPhone
- Request Execution - Opening and Closing Positions - Trade - MetaTrader 5 for Android
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Are you perhaps basing your calculations on data obtained from graphical objects?
If yes, then know that graphical objects are not simulated during non-visual testing.
Are you perhaps basing your calculations on data obtained from graphical objects?
If yes, then know that graphical objects are not simulated during non-visual testing.
ExtCopiedData = CopyRates(symbol, ExtPeriod, fromTime, toTime, ExtChartData); int copiedZigzagData = CopyBuffer(ExtZigzagHandle, 0, 0, ExtCopiedData, ExtZigzagData);I'm working directly with CopyRates and CopyBuffer functions for data acquisition. Could there be any specific considerations for these functions in non-visual testing that might trigger an 'invalid request' error?
It depends on how the Indicators are implemented.
However, even if the Indicators are the cause for miscalculations, your EA should be checking those values and preventing invalid values from being applied to the trade request.
Your code does not seem to have any checks in place for price alignment or verification of limits set in the contract specifications.
The checks a trading robot must pass before publication in the Market
MetaQuotes, 2016.08.01 09:30
Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by developers in their technical indicators and trading robots. An also shows how to self-test a product before sending it to the Market.
It depends on how the Indicators are implemented.
However, even if the Indicators are the cause for miscalculations, your EA should be checking those values and preventing invalid values from being applied to the trade request.
Your code does not seem to have any checks in place for price alignment or verification of limits set in the contract specifications.
Okay, I'll check it out. thanks!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use