close

Do not use spaces in column names !

Variables:
%LOOKBACK_PERIOD% - Lookback period (n)
%ITERATOR% or %ITERATOR-ANY_NUM% (e.g. %ITERATOR-1% or %ITERATOR-LOOKBACK_PERIOD%) - current row in first cycle
%TOTAL_ROWS% total number of rows in table.

Column Value Fix

Formula

MA_SMA formula

MA_EMA formula