Overview

The Simple Moving Average (SMA) is one of the most commonly used technical indicators in financial markets. It calculates the average value of a given data series (such as price) over a specific period, smoothing out short-term fluctuations to identify trends.

Syntax

const period = 9;
const src = "open"
const sma = new I.SMA([period], src)

Parameters

  1. period (Integer):
  1. src (String):

Returns

The SMA object provides the calculated moving average for each data point in the series. The first few values of the SMA array may be undefined if insufficient data points exist to complete the specified period.

Use Cases

  1. Trend Identification:
  1. Support and Resistance: