Download MetaTrader 5

MQL4. Object bindings.

To add comments, please log in or register
Dmytro Antykov
18
Dmytro Antykov  

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. 

Alain Verleyen
Moderator
33493
Alain Verleyen  
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().
Dmytro Antykov
18
Dmytro Antykov  
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.
To add comments, please log in or register