Kim Yonghwa:
it work at strategy tester but error in automatic vaildation
Hello Kim , you need to also be checking the minimum stop level distance your broker allows per trade , that is the issue i think
int min_distance_allowed_in_points=SymbolInfoInteger(_Symbol,SYMBOL_TRADE_STOPS_LEVEL);
The distance is from the live price not the open of a trade
https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants#enum_symbol_info_integer
![Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties](https://c.mql5.com/36/61/documentation-on-mql5-constants__16.png)
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
- www.mql5.com
Symbol Properties - Environment State - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Kim Yonghwa:it work at strategy tester but error in automatic vaildation
Did you read the Market rules?
Product Testing#
- Products offered through the Market service are subject to automatic pre-testing. The necessary requirements are described in the articles "The checks a trading robot must pass before publication in the Market" and "Tips for an effective product presentation on the Market".
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.
Fernando Carreiro #:
Did you read the Market rules?
Product Testing#
- Products offered through the Market service are subject to automatic pre-testing. The necessary requirements are described in the articles "The checks a trading robot must pass before publication in the Market" and "Tips for an effective product presentation on the Market".
thanks to you
i find solution at document
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
it work at strategy tester but error in automatic vaildation