I just compile an EA i am getting one error : '1' - expression not boolean
When i go to line this is the code causing the error : if(IsStopped())return(-1);
How do i fix this?
I appreciate the help
Boolean is true or false.
-1 isn't a valid return value if a boolean is expected.
Thank you for your reply, so i should replace it the code with this? if(IsStopped())return(false);
Yes, but it depends on the declaration of the procedure that you created.
I did not create the source code, i merely just compiled it and found this error. The question is do i put true or false ?
How can we answer with confidence if you do not display the contents of the code or function completely here :)--
refer to https://www.mql5.com/en/forum/62715#comment_1820772
Nothing has been removed - you must have forgotten to hit the "Add your comment" button.