Hi all,
I have some experience with mql4, however, despite trying various options, I cannot figure out how to move an object correctly with coding.
I am developing a grid indicator that creates horizontal, vertical and trend lines. The trend lines obtain their time coordinates from two of the vertical lines and I would like to be able to change the angle of the trend lines by moving one of the vertical lines. However, I haven't been able to get the vertical line to stay in the new location once moved - it keeps reverting to the original location. I have tried using objectget and 'move, but I must be missing something....
So, if anybody has the time and inclination to write some code explaining how to: detect that a vertical line has been moved and keep the vertical line in the new location, I would be very grateful.
Thanks in advance
I have some experience with mql4, however, despite trying various options, I cannot figure out how to move an object correctly with coding.
I am developing a grid indicator that creates horizontal, vertical and trend lines. The trend lines obtain their time coordinates from two of the vertical lines and I would like to be able to change the angle of the trend lines by moving one of the vertical lines. However, I haven't been able to get the vertical line to stay in the new location once moved - it keeps reverting to the original location. I have tried using objectget and 'move, but I must be missing something....
So, if anybody has the time and inclination to write some code explaining how to: detect that a vertical line has been moved and keep the vertical line in the new location, I would be very grateful.
Thanks in advance