MQL4. Object bindings.

 

Hi!
I'm looking for the way, i can bind object using Date/Y cor. So my object will move with chart left-right, but will not move after vertical scaling.

Standart methods allows me to bind only using Date/Price or X/Y cors.

 Any help appreciated. 

 
Use timed objects (bind using Date/Price), memorize the Y. Then detect chart changes using OnCharEvent() and adjust the price of your objects to keep the same Y using ChartXYToTimePrice().
 
Antik94:

Hi!
I'm looking for the way, i can bind object using Date/Y cor. So my object will move with chart left-right, but will not move after vertical scaling.

Standart methods allows me to bind only using Date/Price or X/Y cors.

 Any help appreciated. 

This works great. Thanks.
Reason: