Label update as you drag a horizontal line

 

I have been coding an indicator to calculate the PIP difference between two lines.


When the indicator is initialized, two lines are drawn on the screen, and a label is set on the lower right corner of the screen, showing the PIP difference between the two lines.


Later when I drag any of the lines, the PIP difference is recalculated. But it only happens when there is a price update on the feed.


How can I make the label refresh as I drag the lines, without having to wait for a feed to update?

 

Learn about complex program in MT4 :

https://book.mql4.com/special/index

 
Matutin:

Learn about complex program in MT4 :

https://book.mql4.com/special/index

Thank you, works perfect!


I just had to remember to enable Expert Advisors on the options menu for start() section to execute...

Reason: