Overlay oscillator on price chart

 

Hi - I hope someone can help.

I want to overlay an oscillator I've coded located in the bottom chart pane onto price - the top panel. The oscillator ranges between -10 and +10 with zero the centre point. When overlayed I'm not expecting it to align to price and will expect the line to 'float' over price / candles. 

Is there an indi or bit of code out there that does something similar for another oscillator that I could use?

Thanks a bunch in advance.

R


Edit: Apologies - wrong forum - will move