UNPKG

@cmike444/supply-and-demand-zones

Version:

A library for identifying supply and demand zones in candlestick data.

10 lines (9 loc) 421 B
import { Candle } from "../types"; /** * Calculates the body size of a candlestick by taking the absolute difference * between its closing and opening prices. * * @param candle - An object representing a candlestick, containing `open` and `close` properties. * @returns The absolute difference between the `close` and `open` prices of the candlestick. */ export declare function candleBody(candle: Candle): number;