Need someone to check this coding it wordks but stops after a few trades and it has the 103 and 4110 errors, thanks in advance
-
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. The moderators will likely move this thread there soon. Your code if (Close[1] > superTrendUp) trendUp = false; else trendUp = true;
Simplified trendUp = Close[1] <= superTrendUp;
- Aldan Parris:
it has the 103 and 4110 errors
There is no such error 103 in MT4.
Runtime Errors - Codes of Errors and Warnings - Constants, Enumerations and Structures - MQL4 Reference -
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your 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)

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