Subject: Re: Historical SMA of SPX source?
Actually that's with a 1 day lag - if you want to remove that you would use
sma(0,200) and gprc(0) or aprc(0) - something like that