Hi,
I’m developing an indicator based on RSI and I want the y-axis fixed ( 0 to 100). Is there a function to set/fix the scale of the y-axis and stop it re-scaling (I can’t seem to find anything in the manuals). I tried to cheat and use a horizontal line at 100 but that didn’t solve it.
Thanks
Great forum 🙂
Not possible, the scale will automatically adapt to the variables drawn by your indicator. The best thing you could do is set 2 variables, for instance named “max level” and “min level”, add them to the RETURN instruction and set their values to the Y-axis scale you want, so in this case:
minlevel = 0
maxlevel = 100
RETURN minlevel, maxlevel
or just:
RETURN 0,100
Thanks Nicolas – that does the job well enough.