Libraries: Easy Canvas - page 3

 
Version 1.26: fixed some bugs.
 
Version 1.27: fixed some bugs.
 

Good afternoon.

Line 234, catching an out-of-range W.time.

With chart offset enabled, I press Home and move the mouse to the right side of the chart


UPD Chart offset has nothing to do with it ) In line 265 CopyTime doesn't copy everything
 
Oleksii Chepurnyi:

Good afternoon.

Line 234, catching an out-of-range W.time.

With chart offset enabled, I press Home and move the mouse to the right side of the chart


UPD Chart offset has nothing to do with it ) In line 265 CopyTime does not copy everything

Thanks.
Are you running version 1.27?



I don't know for what reason, but the zip file contains an old version 1.09. The zip file is generated automatically. Download the iCanvas file directly
 
Nikolai Semko:

Thank you.
Do you have version 1.27?



I don't know for what reason, but the zip file contains the old version 1.09. The zip file is generated automatically. Download the iCanvas file directly

Yes, 1.27.

It's an old problem with zip files, and nobody wants to fix it )

 
Oleksii Chepurnyi:

Yeah, 1.27.

It's an old problem with zip files, and nobody wants to fix it )

Okay, got it. I'll look into it today and fix it. I'll be off in 7 hours. Just need to reproduce it now.
 
Nikolai Semko:
Okay, got it. I'll take a look at it today and fix it. I'll be off in seven hours. I'd just like to reproduce it now.

Thanks!

Also noticed, if you pick up the scale such that w.Right_bar without the fractional part, it seems to be ok )

 
Oleksii Chepurnyi:

Good afternoon.

Line 234, catching an out-of-range W.time.

With chart offset enabled, I press Home and move the mouse to the right side of the chart


UPD Chart offset has nothing to do with it ) In line 265 CopyTime does not copy everything

Yes, the problem has been reproduced.

Thanks again.
Thanks to this you have found a bug with the ChartGetInteger(0,CHART_FIRST_VISIBLE_BAR) function.)

This bug has already been dropped into the bug thread . https://www.mql5.com/ru/forum/1111/page2599#comment_13757860.

If MQ fixes this bug, then the out-of-range you noticed will disappear in iCanvas.
But of course I won't wait for MQ, especially now they fix bugs very slowly or don't fix them at all.
I will think how to get around it.

Ошибки, баги, вопросы
Ошибки, баги, вопросы
  • 2019.11.01
  • www.mql5.com
Общее обсуждение: Ошибки, баги, вопросы
 
Oleksii Chepurnyi:

Thank you!

I also noticed, if you pick up the scale such that w.Right_bar without fractional part, it seems to be ok )

fixed it. Check please.

Updated in KB as well. Version 1.28.
also added a method in the iCanvac class:

void   SetBack(const bool bck) {ObjectSetInteger(m_chart_id,m_objname,OBJPROP_BACK,bck);} // Set canvas behind the chart or in front of the chart
                                                                                          // Should I set the canvas behind or in front of the price chart?
Files:
iCanvas.mqh  21 kb
 
Nikolai Semko:

fixed it. Check it out, please.


Good afternoon.

Everything seems to be fine )

Thanks!