Errors, bugs, questions - page 1400

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
After upgrading to the new build(1178), when loading the EA on the chart, I get the following error in the log with the unloading of the program from the chart:
//---
As far as I understood, this situation occurs when trying to hide graphical objects usingCChartObject::Timeframes(OBJ_NO_PERIODS) method.
P.S. Although no, the problem is most likely due to some other reason. Trying to localize, will continue in servicedesk, opened an application.
the author is already aware of this and is thinking hard about how it could have happened
the author has thought hard and fixed this point, it will appear in the next update
the fault was an unrecorded feature of the broker
Everything was fine before
build 1178. Compilation error:'B' - template mismatch
but it was fine before
Why OnTimer event is not triggered in indicators, called through iCustom?
Architecturally the timer event is a chart event, therefore in this case indicators cannot receive it.
If this indicator in turn calls other indicators, then at the first automatic call of OnCalculate right after leaving OnInit, the data of these indicators won't be calculated, and moreover, the indicator won't be able to "wait" for their calculation without exiting OnCalculate. And there will be no next call of OnCalculate until the end of the weekend, when the first ticks begin. In this case neither OnTimer, nor OnChartEvent work in this indicator to call repaint when the data is received. In the end, the only way I can see - through DLL to call "Refresh" in the chart from the context menu of the window - I don't think the developers planned this method for the normal work of indicators in MT5. Otherwise, the user will have to wait in front of the chart pressing this button until the indicator is rendered, which will hardly make him happy.
If for MT4:
this will not work? https://www.mql5.com/ru/code/11678
it doesn't work like this? https://www.mql5.com/ru/code/11678
This script is for MetaTrader 4 :)
In MT4 just all the data is calculated by the terminal before it is received in mql4 programs