Yes scripts do have limitations, I just used an old MT4 hack to see if it worked on MT5 and it did, was it the best solution? No, would an EA be a better option? Yes, but I guess ...
Even more important step! Just forget all the previous steps and don't bother! Why? Because what you see doesn't mean anything, anyways!!!
open any oscillator in metaeditor step 1 : find this line in top 5 lines #property indicator_separate_window change it to #property indicator_chart_window then COMPILE IT step 2 ...
I'm sure you can find it. I wrote about it on this thread. Maybe even twice. Step 1: Open indicator in Meta Editor, Step 2: image and Compile, Step 3: Attach indicator to chart, ...
That's literally the first result on Google: image Only difference is that PatienceFX used the compilation trick to plot it on the chart instead of in a seperate window. image