fintech-algorithms
Using a coding agent? Give it the skill: npx skills add IslamBaraka90/Fintech-Algorithms-Library What it does →

Price Transforms

8 algorithms in Technical Indicators · 8 with asserted arithmetic.

In this family#

  1. Typical Price verified

    Averages each bar's high, low and close into a single representative price.

    typicalPrice(input)
  2. Median Price Transform verified

    Takes the midpoint of each bar's high and low.

    medianPriceTransform(input)
  3. Weighted Close verified

    Averages high, low and a double-weighted close so the settlement price dominates the bar.

    weightedClose(input)
  4. Average Price Transform verified

    Averages all four OHLC prices into one value per bar.

    averagePriceTransform(input)
  5. Heikin-Ashi Transform verified

    Rebuilds each bar as a Heikin-Ashi candle, averaging OHLC into the smoothed close and carrying the smoothed open forward from the previous candle.

    heikinAshiTransform(input)
  6. Log Price Transform verified

    Takes the natural logarithm of each close and the first difference of those logs.

    logPriceTransform(input)
  7. Price Relative verified

    Rebases the ratio of close to a benchmark level so the first bar equals base, producing a relative-strength line.

    priceRelative(input)
  8. Normalized Price Transform verified

    Converts close into a rolling z-score against its own moving average and standard deviation.

    normalizedPriceTransform(input)

What they share#

Every topic here is a series-transform, so once you have called one the rest follow the same shape. Import paths differ only in the final segment:

ts
import { typicalPrice } from "fintech-algorithms/technical-indicators/price-transforms/typical-price";
import { medianPriceTransform } from "fintech-algorithms/technical-indicators/price-transforms/median-price-transform";

Read them in the order above — the sequence is pedagogical, not alphabetical.

Where this sits#

Technical Indicators collects 137 algorithms across 9 families. For the concept behind this family rather than the call signatures, see the concept guides.