Because one error masks another . . . fix one and another becomes visible to the compiler . . . for example, you maay haave the correct numbers of braces but the may be in the wrong places . . . or you may have missed a closing brace and an open brace . . . so the numbers match but are wrong.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
how to write open only 1 way ??
because my ea open both direction position, buy and sell.
i just edit the code and add the else; on there,
is it correct ??
here is the code .
finally done the variable problem,
now is only
( - function definition unexpected
) - unbalanced right parenthesis...
is it l left put ( and ) on my code??
You have this . . . .
. . . where is your closing } ?
the error is
ExistPositions - expression on global scope not allowed
and } - unbalanced parentheses.
just wonder why the error always change ??
after i fixed this,
then error there.
after fixed there,
error here.
the error is
ExistPositions - expression on global scope not allowed
and } - unbalanced parentheses.
OK, you have this function declared . . . I have adjusted the indenting to make it easier for me to read . . .
this code . . . this function declaration . . . must be outside of any other function, so it must be outside of start, init, deinit, etc.
just wonder why the error always change ??
after i fixed this,
then error there.
after fixed there,
error here.
OK, you have this function declared . . . I have adjusted the indenting to make it easier for me to read . . .
this code . . . this function declaration . . . must be outside of any other function, so it must be outside of start, init, deinit, etc.
still the same error...
ExistPositions - expression on global scope not allowed
and } - unbalanced parentheses.
where should i change ?
where should i change ?
I don't know . . . show you full code.
Agree !. W/o full code, we can't help much, so don't expect more.
Combed with MetaEditor 5.
Maybe this should be written like this ???