Name

CalcMA — Simple moving average

Synopsis

CalcMA (ARRAY,
  periods = "empty");

Returns

ARRAY

Parameters

Name Type Default Description
ARRAY array
periods array_or_number "empty"

Description

This function is inspired by AmiBroker function: www.amibroker.com/guide/afl/ma.html

Difference from AmiBroker: Collective2 implementation does not use an array as the second parameter.

Simple moving average