Hi all,
Suppose you have the following series:

vars MA = series(SMA(Close, 21));


I want to calculate the difference with a shifted value:

MA[i] - MA[i+shift]

Where shift is a given int.
How can I do it?
Thanks