'\end_of_program'

 

what does this error mean?

'\end_of_program' - unbalanced left parenthesis

thanks

 

It means that you do not have the same count of right and left paranthesis.

Check all your stuff and try to find which one is missing....

 

ive checked but cant seem to find it. actually its a bit of code you gave me that produces it https://www.mql5.com/en/forum/177488 i tried to compile the code but it says "Magic undefined" so i defined it but that produces the end of program error. i know its something im changing but i cant work it out since im neither adding or removing paranthesis

 
trevman:
ive checked but cant seem to find it. actually its a bit of code you gave me that produces it https://www.mql5.com/en/forum/177488 i tried to compile the code but it says "Magic undefined" so i defined it but that produces the end of program error. i know its something im changing but i cant work it out since im neither adding or removing paranthesis

I am absolutely sorry, it's my mistake, the wrong line is

if(!OrderSelect(i,SELECT_BY_POS,MODE_HISTORY) continue;[/PHP] and the right one should be[PHP]if(!OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)) continue;