You need to modify the fixed min/max properties in the indicator's OnChartEvent function when the buttons are clicked. Specifically, for the RSI, you'll set the min/max range between 0 and 100, and for MACD, you can set a different, narrower range based on the typical MACD values (e.g., between -1 and 1).
thank you, this was set right with the RSI but when it comes to MACD the lines and the histogram becomes so tiny to the point it will be difficult to show and will have to uncheck the min/max to make it dynamic every time i want to switch to MACD on the chart
Hi
Perhaps you can simply don’t use Fixed min and max then the values of the indicators will be arranged to fill the indicator window.
I know it’s not the best solution but this way results will be visible in both options.
Have a nice day👍📊
Correct. Post your MT4 question in the MQL4 section instead of the MT5 Indicators section , (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. I have moved this thread.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
This indicator has on the chart buttons that makes it switch between RSI and MACD. The problem is in the fixed min and max in the common tab, there is a prominent difference in readings between MACD and RSI which is the levels. RSI oscillates between 30 and 70 with variations according to the period chosen, while MACD is way tiny as it ranges between 1 and -1, sometimes with readings much less than that.
The "fixed minimum and maximum check" which stays as they are in the indicator settings "either checked or unchecked", i couldn't find a way to switch being checked automatically when using the buttons to switch from RSI to MACD. Is there a possible way to do that?