How to lock 2 indicators in sync in dynamic changing window

 

Hi,

Need a help on the programming, if i had two macd indicators mounted on the same subwindow (eg. window 1), how can i lock the zerolines together so that when the window sizing is changing, the 2 indicators are locked in sync.

It can manually set on the Custom Indicator Dialog Window on "Common" - "Fixed Mininum" & "Fixed Maximum", but how to do it in programming ?

 

set symmetrical max and min levels in the properties manually as you mentioned, or

write code to set an unused index buffer to max and min levels, in each indicator to be overlaid.