Skip to main content
Module

x/trading_signals/mod.ts>EMA

Technical indicators to run technical analysis for Deno. 📈
Latest
class EMA
extends MovingAverage
Re-export
import { EMA } from "https://deno.land/x/trading_signals@3.6.1/mod.ts";

Exponential Moving Average (EMA) Type: Trend

Compared to SMA, the EMA puts more emphasis on the recent prices to reduce lag. Due to its responsiveness to price changes, it rises faster and falls faster than the SMA when the price is inclining or declining.

Constructors

new
EMA(interval: number)

Properties

private
pricesCounter: number
private
readonly
weightFactor: number
readonly
isStable: boolean