Many thanks for the swift reply mrtools. you're a legend! Works perfectly.
Now while I was waiting for a reply i couldn't resist messing around with the codes (as I usually do) to see if I can figure it myself.
I've attached what I did so far. this script doesn't return any error when compiled in Metaeditor, but clearly missing something as it doesn't display the volatility bands.
If it's not too much to ask, would appreciate if you can amend it for me, so i can learn what I'm missing.
Thanks again.