UNPKG

stock-indicator-mapper

Version:

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

4 lines (3 loc) 130 B
export default function trSmoothCalculation(trPrevious, timePeriod, tr) { return trPrevious - (trPrevious / timePeriod) + tr; }