moving-averages-js
Version:
The FinTech utility collections of simple, cumulative, and exponential moving averages.
9 lines (8 loc) • 411 B
JavaScript
;
// Exponential moving average with 86% total weight
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var dma_1 = __importDefault(require("./dma"));
exports.default = (function (data, size) { return (0, dma_1.default)(data, 2 / (size + 1)); });