I assume you are looking to chart this, not backtest the method.
pull up a chart, go to insert indicator, you will see some tabs, under indicator select moving avg 1 line, choose it, click ok. Under the next set of tabs choose inputs, you should see price, length, and displace. In my example...