Errors, bugs, questions - page 2958

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
https://www.mql5.com/ru/search#!author=Vladimir%20Karputov&module=mql5_module_codebase
Your query did not find anything
What do you mean?
Search is not working properly, I wanted to filter your indicators in CodeBase by publication date
https://www.mql5.com/ru/search#!keyword=Vladimir%20Karputov&module=mql5_module_codebase&method=2
https://www.mql5.com/ru/search#!keyword=%D0%B8%D0%BD%D0%B4%D0%B8%D0%BA%D0%B0%D1%82%D0%BE%D1%80&module=mql5_module_codebase&method=2&author=Vladimir%20KarputovThe one closest to the desired one.
Search is not working properly, I wanted to filter your indicators in CodeBase by publication date
https://www.mql5.com/ru/search#!keyword=Vladimir%20Karputov&module=mql5_module_codebase&method=2
https://www.mql5.com/ru/search#!keyword=%D0%B8%D0%BD%D0%B4%D0%B8%D0%BA%D0%B0%D1%82%D0%BE%D1%80&module=mql5_module_codebase&method=2&author=Vladimir%20Karputovthe one closest to the desired one.
These two links work. Probably old link format was or site bases were updated.
These two links work. Maybe it was an old link format or there was an update to the site's databases.
Of course they work, but in my opinion, they don't do what I expect.
I thought I'd see the first one by date https://www.mql5.com/ru/code/33553.
and the second one had some other authors in it.
It's a minor thing, of course.
I would like to keep it simple. When a new symbol from Market Watch is drawn on the chart (i.e. when the symbol changes), I need to recognise it and take an action.
I put EURUSD on USDCHF, it says:
At the same time on the chart the pair, of course, changes to EURUSD. When I remove the indicator from the chart it says(that it's too late):
A is expected immediately:
What am I doing wrong?
I would like to keep it simple. When a new symbol from Market Watch is drawn on the chart (i.e. when the symbol changes), I need to recognise it and take an action.
I put EURUSD on USDCHF, it says:
At the same time on the chart the pair, of course, changes to EURUSD. When I remove the indicator from the chart it says(that it's too late):
A is expected:
What am I doing wrong?
What in
OnDeinit(
Put more in OnInit and everything becomes clear.
I would like to keep it simple. When a new symbol from Market Watch is thrown onto the chart (i.e. when the symbol changes), you need to recognise this and take an action.
In indicator you need to save symbol in OnDeinit (for example, in global). In OnInit wait for the execution of OnDeinit of the previous indicator and read the saved symbol. This example creates a global one with (string)ChartID()-name. If there is more than one indicator on the chart, the logic should be a little more complex.
TypeToBytes.mqh and crc64.mqh compiled successfully, but Init_Sync.mqh produced a bunch of errors. That is, the matter didn't even get to the compilation of the example. And I'm thinking with terror that such trivial task requires several stubby libraries some of which don't want to compile either. I've just never plugged anything external before, except my own custom indicator.
TypeToBytes.mqh and crc64.mqh compiled successfully, but Init_Sync.mqh produced a mountain of errors when compiling.
It's compiling now.
It's compiling for me.
Uh-huh, that's how it worked.