Errors, bugs, questions - page 2391
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
When entering standby on Windows 10 (I don't remember which one, but it is modern and interprise ltsb 1607 (pretty old)) on MT5, EA stops being attached to chart, trades stop being executed, but some functions (output of graphic self written window, which is functional) stay active. Is this a bug of MT or a problem with the EA? Thank you.
Standby mode is when the computer is practically switched off. All programs are stopped.
Thank you for your reply to the previous comment. There is one more question. MT5. I am making an interface template , without the "grid" on the chart, I call this template "Default" so it is enabled by default, in the MT itself everything works, but it does not work in the EA visualization window. Thank you.
The "default.tpl" chart template applies when you open a new chart in the terminal, while the "tester.tpl" chart template applies when you run a strategy tester in visual mode.
Click here for more information: Templates and Profiles - Advanced Features - Quotes, Technical and Fundamental Analysis charts
Hi all.
I would like to draw developers' attention to the following bug in MT5 (build 2006). When calling theChartGetInteger function with property identifiersCHART_WIDTH_IN_BARS orCHART_VISIBLE_BARS, if another window is active with the same symbol but a smaller TF, the function returns incorrect values. If the chart has the maximum scaling (5), the returned value is less than the real value by 5. If the scaling is 4, the returned value is smaller by 10. If scaling is 3, then respectively by 20, etc. The code for the test indicator, to reproduce the glitch is below. This glitch is stably reproduced on TF D1 and the RTS-3.19 instrument. I have also recorded a video with bug demonstration for clarity. In build 274(judging by history) similar bug had been already fixed, but apparently not to the end. :)
I used to get even a funnier return value of this function (especially when loading the terminal). At maximum chart scale (5) the return value =5 (regardless of the actual number of bars on the chart). If the zoom is 4, then return value =10. If scaling is 3, then respectively =20, etc. Unfortunately, I didn't manage to capture this glitch on video. However, I killed the whole day to understand why my indicator works incorrectly on D1, while it is OK on other TFs.
P.S. Log from the same chart (RTS-3.19, D1) after a couple of hours (after break in connection). Realistically 55 bars are shown on the chart. And MT5 in the log says, that only 5 fit on the screen, and there are no visible bars at all:)Screenshot
Developers hello.
The MQL5 Standard Library Help has the WindowHandle function, but when using it, the compiler says 'WindowHandle' - function not defined'. Question: Who is glitching the code or the compiler? :)
It's SB.
Developers hello.
The MQL5 Standard Library Help has the WindowHandle function, but when using it, the compiler says 'WindowHandle' - function not defined'. Question: Who is glitching the code or the compiler? :)
You are using Help incorrectly.
Look carefully:MQL5 ReferenceStandard LibraryPrice ChartsWindowHandle
Go back a step and read thePrice Charts section
Added:
Example use case (note - you need to execute theAttach method first) and only then work with the object
Result:
Developers hello.
The MQL5 Standard Library Help has theWindowHandle function, but when using it, the compiler says 'WindowHandle' - function not defined'. Question: Who is glitching the code or the compiler? :)
use:
You are using the wrong help.
Look carefully:MQL5 ReferenceStandard LibraryPrice ChartsWindowHandle
Go back a step and readPrice Charts
Added:
Example use case (note - you need to execute theAttach method first) and only then work with the object
Result:
Thank you.
MQL5 ME 2006
Same code in MQL4 as it should be,"function 'f' must have a body"