Platform issue
- problèm backtest
- Trailing Stop not Working Properly on VPS but Works Just Fine on Backtesting
- Problem with the installation of an EA on MT4 platform
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your (hidden) code for you?
Code debugging - Developing programs - MetaEditor Help
Error Handling and Logging in MQL5 - MQL5 Articles (2015)
Tracing, Debugging and Structural Analysis of Source Code - MQL5 Articles (2011)
Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator - MQL5 Articles (2010)