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 Documentation on MQL5: Standard Library / Custom Graphics / CCanvas](/i/community/logo_mql5_small.png)
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
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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!