Attached is a simple scrip using a single moving average. I've been adding to it--one thing at a time---trying to learn how each new thing works. My latest addition is upper and lower bands bracketing the SMA. The script compiles OK, but althought the SMA starts on the chart after x bars, the bands show up on the chart satrting at bar(0)and then jumps up to bracket the SMA at bar(x).
How can I have the bands start showing on the chart at bar(x)?
Thanks for the help.
CODE:
Please log in to see this code.