Hi,
Today I accidentally find a code by @futurespec :
https://www.forexfactory.com/showthread.php?t=651303
It's what I have been dreaming of, for a long time !
I spend a little time to transform this segment line indi into a polygonal line indi.
Now it's usable. But wait, there seems to be some bug - if I draw a long polygonal line of dozens of points, there will be random missing segments in between. So I add a print() debug, it turnes out that when a segment is missing, counting is still adding up.
Although this code is quite simply, only a few lines. But I just don't know why.
Any idea? Please help me.
Today I accidentally find a code by @futurespec :
https://www.forexfactory.com/showthread.php?t=651303
It's what I have been dreaming of, for a long time !
I spend a little time to transform this segment line indi into a polygonal line indi.
Now it's usable. But wait, there seems to be some bug - if I draw a long polygonal line of dozens of points, there will be random missing segments in between. So I add a print() debug, it turnes out that when a segment is missing, counting is still adding up.
Although this code is quite simply, only a few lines. But I just don't know why.
Any idea? Please help me.
Attached File(s)
ClickAndDraw - weekend.mq4
2 KB
|
187 downloads