crypto-volume-profile

Zero-dependency JavaScript (ESM) library for OHLCV Volume Profile (VPVR), Point of Control (POC), 70% Value Area (VAH/VAL), and turnover-decayed Cost-Basis Chip Distribution (筹码分布).

Triangular Intrabar Density & Turnover Decay

Spreads each candlestick’s volume over [low, high] peaking at typical price (H + L + C) / 3. Supports both cumulative Volume Profile and decayed Chip Distribution, outputting pocPrice, valPrice, vahPrice, and profitRatio.

import { computeDistribution } from 'crypto-volume-profile';
const result = computeDistribution(bars, { mode: 'chips', bins: 120, turnoverBars: 30 });

Related Live Tools

MIT License · Maintained by HoldWins