MQL4. Object bindings.
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:
This works great. Thanks.
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.
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.