Object overlapping color problem - page 3

 
This is a legit problem.

 

It took me a bit to track down the answer to this, but its now working very easily so I'm updating a couple of these threads.

The library you need is iCanvas by @Nikolay7ko.

https://www.mql5.com/en/forum/296241/page2#comment_51358580


Example use to fix the infamous rectangle issue:

Canvas.Erase(W.Color);
datetime startTime, endTime;
double PriceTop, PriceBottom;
uint rectColor = 0xFF72fc72;  // Color must be uint 4 channel hex with alpha
// insert logic code here....
Canvas.FillRectangle((int)(Canvas.X(startTime)),(int)(Canvas.Y(PriceBottom)),(int)(Canvas.X(endTime)),(int)(Canvas.Y(PriceTop)),rectColor);
Canvas.Update();


Libraries: Easy Canvas (iCanvas)
Libraries: Easy Canvas (iCanvas)
  • 2022.09.07
  • www.mql5.com
Articles, Library comments: Libraries: Easy Canvas (iCanvas)
Reason: