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.
This is the layout, there is no difference between 4 and 5
The handle should be created once at OnInit(), not at each step. You still don't know that?
How about this?
And this way you still create a handle on every tick. Use the Styler and you'll see the logic errors immediately:
But you are still creating a handle on every tick. Use the Styler and you'll see the logic errors immediately:
Like this
Then the rest of the peak search code is cross-platformI think so.
Then the rest of the peak search code is cross-platformYeah, it's...
clearly better. But this block is out of place - it should be placed immediately after the handle is created.
Yes, now
clearly better. But this block is in the wrong place - it should be placed immediately after creating the handle.
The best way is probably like this, it will print a creation error once, but then there will be fewer checks for if(...)
The best way is probably like this, it will print a creation error once, but then there will be fewer checks for if(...).
I can't see anything in your mess - it all blurs.
Use the Styler.I can't see anything in your mess - it all blends in.
Use the Styler.If anything, I didn't see my style in the styler, and there are oh so many of them
Unfortunately, my indexer is based on MQL4 and this function is only a small part of it.
That's why it's not so efficient to implement MQL5, and it would be long and problematic to rewrite the whole thing.
Unfortunately, my indexer is based on MQL4 and this function is only a small part of it.
That's why it's not so efficient to implement MQL5, and it would be long and problematic to rewrite the whole thing.
An indicator is rewritten in MQL5 on average in half an hour. With a cup of coffee.