Questions from Beginners MQL4 MT4 MetaTrader 4 - page 196
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
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.