# Point of Control, Value Area, HVN, and LVN Detection

`D08-F06-A02` · Geometric Chart Patterns → Level Confluence and Zone Scoring · archetype `record-transform` · difficulty 4/5 · verification **contract**

Full page: https://docs.thefintechbuilder.com/geometric-chart-patterns/level-confluence-and-zone-scoring/poc-value-area-hvn-lvn-detection/
Agent skill: `npx skills add IslamBaraka90/Fintech-Algorithms-Library` — https://docs.thefintechbuilder.com/guides/agent-skill/

## Install and import

```bash
npm install fintech-algorithms
```

```ts
import { pocValueAreaHvnLvnDetection } from "fintech-algorithms/geometric-chart-patterns/level-confluence-and-zone-scoring/poc-value-area-hvn-lvn-detection";
```

## Signature

```ts
pocValueAreaHvnLvnDetection(input)
```

Selects the point of control, expands a deterministic value area, and identifies local high- and low-volume nodes.

## Parameters

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `input` | `{ profile_rows: { lower: number; upper: number; volume: number }[]; value_area_fraction: number; hvn_median_ratio: number; lvn_median_ratio: number }` | yes | Record containing at least three ordered contiguous `profile_rows` and declared value-area, HVN, and LVN thresholds. |

## Returns

`{ state, poc_index, poc_price, poc_volume, value_area_low, value_area_high, value_area_volume, value_area_share, target_share, included_indices, expansion_trace, hvn, lvn }`

One `calculated` feature record with auditable expansion order and node diagnostics; insufficient rows are rejected rather than emitted as positional warmup.

## Warm-up

The first `0` positions are `not emitted`. This record transform has no warm-up output: fewer than three profile rows are rejected explicitly instead of producing positional or state warm-up values.

## Errors

- When profile rows are too few, unordered, non-contiguous, or thresholds are outside their canonical ranges — throws

## Complexity

Time `undefined`, space `undefined`.

## Worked example

Captured by running this function on the input its own test provides. Real output of real code — but not asserted against a published figure.

### Input

`input`:

```json
{
  "profile_rows": [
    {
      "lower": 99,
      "upper": 99.5,
      "volume": 10
    },
    {
      "lower": 99.5,
      "upper": 100,
      "volume": 18
    },
    {
      "lower": 100,
      "upper": 100.5,
      "volume": 35
    }
  ],
  "value_area_fraction": 0.7,
  "hvn_median_ratio": 1.2,
  "lvn_median_ratio": 0.65
}
```

### Call

```ts
pocValueAreaHvnLvnDetection(input)
```

### Returns

object with 13 fields: state, poc_index, poc_price, poc_volume, value_area_low, value_area_high, value_area_volume, value_area_share, …

```json
{
  "state": "calculated",
  "poc_index": 4,
  "poc_price": 101.25,
  "poc_volume": 120,
  "value_area_low": 100,
  "value_area_high": 102.5,
  "value_area_volume": 350,
  "value_area_share": 0.755939524838,
  "target_share": 0.7,
  "included_indices": [2, 3, 4, 5, 6],
  "expansion_trace": [4, 5, 3, 6, 2],
  "hvn": [
    {
      "price": 101.25,
      "volume": 120,
      "median_ratio": 3
    },
    {
      "price": 103.25,
      "volume": 50,
      "median_ratio": 1.25
    }
  ],
  "lvn": [
    {
      "price": 102.75,
      "volume": 20,
      "median_ratio": 0.5
    }
  ]
}
```

## Other exports

`calculate`, `priceByVolumeProfileConstruction`, `fibonacciRetracementExtensionProjection`, `psychologicalRoundNumberLevelGeneration`, `multiSourceSupportResistanceZoneFusion`, `supportResistanceZoneStrengthDecayScoring`, `supportResistanceRoleReversalStateMachine`, `breakoutAndRetestDetection`, `marketWideZoneProximityScannerRanking`. Every module additionally exports `run` as an alias of its primary
function, and a `meta` object carrying its catalog id, domain, family, shape and article URL.

## Verification and provenance

Tier: **contract**.

The module loads, the entry point is callable and its declared signature matches the compiled code. The example below is real captured output, but no independently published figure asserts the numbers.

Both tiers guarantee the signature. Full explanation: https://docs.thefintechbuilder.com/guides/verification/

Generated from the docs.json payload shipped inside fintech-algorithms@0.12.0.
The signature and parameter list are checked against the compiled implementation at build time,
so a description that contradicts the code fails the build rather than reaching this file.

## Links

- Article (how it works, step by step): https://thefintechbuilder.com/geometric-chart-patterns/level-confluence-and-zone-scoring/poc-value-area-hvn-lvn-detection/
- Implementation source: https://github.com/IslamBaraka90/Fintech-Algorithms-Library/blob/main/src/geometric-chart-patterns/level-confluence-and-zone-scoring/poc-value-area-hvn-lvn-detection/impl.ts
- Package on npm: https://www.npmjs.com/package/fintech-algorithms
- Domain index for agents: https://docs.thefintechbuilder.com/geometric-chart-patterns/llms.txt
