Drawing Shapes/Objects using the Canvas Class
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
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!