Name

CalcWMA — Weighted moving average

Synopsis

CalcWMA (ARRAY,
  ARRAY_OR_NUMBER);

Returns

ARRAY

Parameters

Name Type Default Description
ARRAY array
ARRAY_OR_NUMBER array_or_number

Description

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

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

Weighted moving average