[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

 
doon:

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.

 
Zhunko:

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 code -> SRC
 
globad:
I didn't mean to offend anyone, but what is the code -> SRC
Look below, above the text entry field. There is an SRC button there. This is for entering code
 
DhP:
Look below, above the text entry field. There's an SRC button

I see, I'll be aware of that.

 
DhP:

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.

 
globad:

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.

 
doon:

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.

 
DhP:

If clear, delete the previous post with the code and write it again using SRC.

Your code will be easier to read.

:) I wanted to, but for some reason there are no edit/delete and reply buttons on the post...?
 
Above your post is edit/delete
 

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