How to set immovable levels in an indicator?

 

I have an indicator in a separate window and I would like the zero level to not move from the middle of the window.

(The same that scale by line but from code MQL5)... Is it possible to do that? How?


I was reading this but i  saw  nothing about it

https://www.mql5.com/en/docs/constants/indicatorconstants/customindicatorproperties


Thanks a lot!!

Documentation on MQL5: Constants, Enumerations and Structures / Indicator Constants / Custom Indicator Properties
Documentation on MQL5: Constants, Enumerations and Structures / Indicator Constants / Custom Indicator Properties
  • www.mql5.com
Custom Indicator Properties - Indicator Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
karp wak:

I have an indicator in a separate window and I would like the zero level to not move from the middle of the window.

(The same that scale by line but from code MQL5)... Is it possible to do that? How?

Look at this topic.

https://www.mql5.com/en/forum/355200#comment_19131902

Custom indicator: Auto Scale window, with 0-center
Custom indicator: Auto Scale window, with 0-center
  • 2020.11.07
  • www.mql5.com
Hi, got this indicator code working somewhat, it is run even when mouse scrolling the chart...
 
Nagisa Unada:

Look at this topic.

https://www.mql5.com/en/forum/355200#comment_19131902

Thank you so much Nagisa!!