Hi.
This include worked great for speeding up testing.
However, I just noticed a new warning when I compile my EA related to canvas.mqh and rect.mqh
'struct CPoint' initialized from type type 'CPoint' using assignment operator, this behavior is deprecated and will be removed in future Canvas.mqh 2898 17
Perhaps you can address this for us.
Thanks
Kishore
Hi.
This include worked great for speeding up testing.
However, I just noticed a new warning when I compile my EA related to canvas.mqh and rect.mqh
'struct CPoint' initialized from type type 'CPoint' using assignment operator, this behavior is deprecated and will be removed in future Canvas.mqh 2898 17
Perhaps you can address this for us.
Thanks
Kishore
Hello Kishore,
That is not a problem with the code supplied by Aleksandr Slavskii, but it's a problem in the Canvas.mqh library supplied by Metatrader (only occurred on the latest update, build 5200 released on August 1 2025). I assume Metatrader will fix this in the future. For now, we have to put up with the warning.
Cheers
Does it work? You tell me
for ( int i= 0 ; i<imin; i++) { //CPoint tmp=p[0]; CPoint tmp; tmp.x = p[ 0 ].x; tmp.y = p[ 0 ].y; ArrayCopy (p,p, 0 , 1 ); p[total- 1 ]=tmp; }
Thanks madcedar for your comment on canvas.mqh. Will watch out for the update
And thanks Gerard William G J B M Dinh Sy for the interim code fix.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Comment:
A simple replacement for a comment
Author: Aleksandr Slavskii