Please read documentation :
Creates a graphical resource without binding to a chart object |
You need to use CreateBitmap() or CreateBitmapLabel().
Documentation on MQL5: Standard Library / Custom Graphics / CCanvas
- www.mql5.com
Standard Library / Custom Graphics / CCanvas - Reference on algorithmic/automated trading language for MetaTrader 5
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
Folks!
I looked at the Canvas class to use its power for simplified drawing of shapes and objects. However, I am struggling to create any visible shape. I searched through the forum and found this post:
https://www.mql5.com/en/forum/216195
This looks like a very basic example so I gave it a try. However, as the author himself, I wasn't able to see any shapes drawn into the graph.
What's the issue here?!
Cheerio!