UNPKG

stock-indicator-mapper

Version:

A function given to map on an array of objects containing daily stock EOD data.

5 lines (3 loc) 136 B
export default function adxCalculation(adxPrevious, timePeriod, dx) { return ((adxPrevious * (timePeriod - 1)) + dx) / timePeriod; }