/ValueArea

Fixed Range Volume Profile (FRVP) Technical Indicator for Value Area calculations

Primary LanguageTypeScriptMIT LicenseMIT

Value Area Calculation

FRVP Technical Indicator for Value Area calculations: pdVA, pwVA, pmVA

Introduction

  • A calculator for the Fixed Range Volume Profile in TypeScript.
  • By default, the histogram will use 24 rows like TradingView.
  • It can calculate values for the current & previous day, current & previous week, current & previous month.
  • Values returned are Point of Control (POC), Value Area High (VAH), Value Area Low (VAL), low, high.
  • There is test data that uses ByBit Kline data, and it currently only handles that data.

Technologies used in this project

TypeScript Node.js

Usage

To use the Value Area Calculation package, import it into your project and use it like this:
import { pdVA } from 'value-area-calculation'

const myData = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

const result = pdVA(myData, 4)

console.log(result)

Contributing

Contributions to the project are always welcome! Please open an issue or a pull request if you'd like to contribute.

License

This project is licensed under the MIT License. See the LICENSE file for more information.