Changing y axis without changing scale
Doing it manually on the terminal one can't just shift the y-axis when it is auto-scaling. On the terminal, only when it is using fixed scaling can one shift the y-axis.
So, in MQL code, you will probably have to also use a fixed scale or simulate and auto-scale to achieve the y-axis shift. You will probably need to read, calculate and then modify several chart properties together to achieve the end result. I don't believe that just modifying one property alone will suffice.
Scale Fix: how do i delete an erroneus bar - MQL5 programming forum (2020)