Quick question,
How can I efficiently convert output type, for example from

vars MAslope = series(movingAvg[1]/movingAvg[20]);

to a variable type "double" (or var)?

Your input is much appreciated.