php8.5
Home/ Manual/ trader / functions/ trader_sma

trader_sma

PHP function Edit on GitHub ✎

(PECL trader >= 0.2.0)

Simple Moving Average

Description

trader_sma(array $real, [int $timePeriod]): array

Parameters

real

Real

timePeriod

Period

Return Values

Returns an array with calculated data or false on failure.

Source: reference/trader/functions/trader-sma.xml · from the official PHP manual (php/doc-en)