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
Greetings, Nikolay.
While using the library I encountered a problem: if several programmes with iCanvas are used in one terminal, then after reloading the terminal the images start to change spontaneously from one to another. At first I looked for reasons in my code, but found nothing. Then one of my clients accidentally noticed that iCanvas object names coincide on different charts.
I looked at how the object name is generated for iCanvas and found the following:
This way of loading the terminal leads to the same object names on different charts, if we are talking about Expert Advisors, because all Expert Advisors in the terminal receive the same GetTickCount() value when loading. Indicators do not have such a problem.
To solve the problem, I propose this method of generating a unique object name:
Here uniqueness is guaranteed by the following considerations:
I looked at how the object name is generated for iCanvas and found the following:
This way of loading the terminal leads to the same object names on different charts, if we are talking about Expert Advisors, because all Expert Advisors in the terminal receive the same GetTickCount() value when loading. Indicators do not have this problem.
To solve the problem, I suggest this method of generating a unique object name:
Here uniqueness is guaranteed by the following considerations:
I agree.
Thanks, Igor!
Uploaded the corrected version.
Strange, I thought that's how the name was formed. :))
shortened the resource name, because it was too long.
Nikolai Semko #:
обновил версию до 1.49
укоротил имя ресурса, т.к. нарвался на слишком длинное имя
Good afternoon!
In the file iCanvas.mqh (on the link to MT5 version) there is "#property version "1.09"...
Where can I download the latest actual version?
And about the version for MT4 also a question - in the downloaded archive the version "#property version "1.47"
- is it the latest forMT4? And if not - where can Idownload thelatest actual version?
Thanks.
Good afternoon!
In the file iCanvas.mqh (on the link to MT5 version) there is "#property version "1.09"...
Where can I download the latest actual version?
And about the version for MT4 also a question - in the downloaded archive the version "#property version "1.47"
- is it the latest forMT4? And if not - where can Idownload thelatest actual version?
Thanks.
Greetings!
You must be downloading a zip file. Never download it. It's a bug in MQ. When I update the version, the zip file is not overwritten and I don't have access to it.
Click on the iCanvas.mqh file itself or copy it from the viewer.
Greetings!
You must be downloading a zip file. Never download it. This is a bug in MQ. When I update the version, the zip file is not overwritten and I don't have access to it.
Click on the iCanvas.mqh file itself or copy it from the viewer.
Thank you for sharing it.
I've been thinking about making such a tool for some time, and now I can use your code as a basis for mine.
Good job!
Thank you for sharing it.
I've been thinking about making such a tool for some time, and now I can use your code as a basis for mine.
Good job!