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)
Hello everyone this morning on the ea logs that I activated yesterday
I got this error but having not touched anything on these code
I do not understand what it is due to
I'll show you in what string it gives me the error
Mr. Roeder is right; debugging is an important part to learn from our own mistakes.
And we can't see enough code to Debug even if we wanted to help...
If the compiler says that this string of code divides by zero, print all the values right before the string and look.
We cannot see how Variables "pipValue" and "mp" are calculated/initialized.
Should be a really easy fix using Print().
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everyone this morning on the ea logs that I activated yesterday
I got this error but having not touched anything on these code
I do not understand what it is due to
I'll show you in what string it gives me the error