[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 188

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Please help with isCloseLastPosByStop function ().
I insert into MetaEditor function isCloseLastPosByStop () (but only what is written on https://www.mql5.com/ru/forum/107476/page21).
After an unsuccessful compilation I get errors:
'(' - function definition unexpected
't' - variable not defined
't' - variable not defined
'}' - unbalanced parentheses
It's this function, as I've commented out all, the rest of the code.
This error is not this function.
Check carefully what is preceding it.
This is indicated by the very first error that I have marked in red.
Somewhere before the function there is an extra curly bracket or a semicolon missing.
This is disrespectful to those you are asking. Learn how to post code correctly -> SRC
I didn't mean to offend anyone, but what is the code -> SRC
Look below, above the text entry field. There's an SRC button
I see, I'll be aware of that.
This error is not this function.
Check carefully what precedes it.
This is indicated by the very first error, which I have highlighted in red.
Somewhere before the function there is an extra curly bracket or missing semicolon.
That's the point: there is nothing.
I see, I will know.
If clear, delete your previous post with the code and write it again using SRC.
Your code will be easier to read.
That's just it, there's nothing.
There are no miracles.
Look for an error.
You can replace this function with another one, which is known to be correct, but the result will be the same.
If clear, delete the previous post with the code and write it again using SRC.
Your code will be easier to read.
Have you used this function? Can you show me the code or how you would do it, because I think I'm getting stupid in the easiest place