Graflume · Alpha

Technical indicator · Edge-case application

Compute 45 technical indicators from OHLCV data, while also rendering supplied indicator columns through the same portable financial contract. Exercise numeric range, sparse structure, and large inputs with valid data. Each tab materializes data only when needed and never silently repairs invalid values.

Chart family · Specialized families

Technical indicator

Compute 45 technical indicators from OHLCV data, while also rendering supplied indicator columns through the same portable financial contract.

Quick API
technicalIndicator()
Browser snapshot
graflume/complete
mark
indicator
Presets
45
OHLCV computation
45 computed · 0 precomputed-only

Edge cases

Numeric range, irregular structure, and data volume

Exercise numeric range, sparse structure, and large inputs with valid data. Each tab materializes data only when needed and never silently repairs invalid values.

Wide numeric range

Mix zero, very small finite values, and very large finite values to verify automatic domains, precision, and stable geometry. NaN and Infinity remain intentionally invalid. It applies 2 data-integrity rules that preserve finite values and axis domains.

StatusLoading

  • extreme-range
  • extreme-small
  • extreme-large
  • positive-domain
  • budget:marks<=6
Graflume.technicalIndicator() Canvas 2D
Control help

Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.technicalIndicator()

const data = [
  {
    "close": 5.150000000000001e-10,
    "date": "2026-01-01",
    "high": 5.253000000000001e-10,
    "low": 4.949e-10,
    "lower": null,
    "open": 5.05e-10,
    "signal": 4.995500000000001e-10,
    "upper": null,
    "value": 5.150000000000001e-10,
    "volume": 0
  },
  {
    "close": 9.9e-7,
    "date": "2026-02-01",
    "high": 0.0000010302,
    "low": 9.702e-7,
    "lower": null,
    "open": 0.0000010099999999999999,
    "signal": 9.603e-7,
    "upper": null,
    "value": 9.9e-7,
    "volume": 1
  },
  {
    "close": 1.03,
    "date": "2026-03-01",
    "high": 1.0506,
    "low": 0.9898,
    "lower": null,
    "open": 1.01,
    "signal": 0.9991,
    "upper": null,
    "value": 1.03,
    "volume": 1000
  },
  {
    "close": 990,
    "date": "2026-04-01",
    "high": 1030.2,
    "low": 970.1999999999999,
    "lower": null,
    "open": 1010,
    "signal": 960.3,
    "upper": null,
    "value": 990,
    "volume": 1000000
  },
  {
    "close": 1030000,
    "date": "2026-05-01",
    "high": 1050600,
    "low": 989800,
    "lower": null,
    "open": 1010000,
    "signal": 999100,
    "upper": null,
    "value": 1030000,
    "volume": 1000000000
  },
  {
    "close": 1980000000,
    "date": "2026-06-01",
    "high": 2060400000,
    "low": 1940400000,
    "lower": null,
    "open": 2020000000,
    "signal": 1920600000,
    "upper": null,
    "value": 1980000000,
    "volume": 1000000000000
  }
];

const options = {
  "accessibility": {
    "description": "Every indicator is calculated from the same coherent OHLCV market history. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Technical indicator"
  },
  "axes": {
    "x": {
      "format": {
        "dateStyle": "long",
        "timeZone": "UTC",
        "type": "date"
      }
    }
  },
  "height": 620,
  "interaction": {
    "hover": true,
    "tooltip": {
      "axis": "x",
      "fields": [
        {
          "dateStyle": "long",
          "field": "date",
          "format": "date",
          "label": "Date",
          "timeZone": "UTC"
        },
        {
          "field": "value",
          "format": "number",
          "label": "Value"
        },
        {
          "field": "open",
          "format": "number",
          "label": "Open"
        },
        {
          "field": "high",
          "format": "number",
          "label": "High"
        },
        {
          "field": "low",
          "format": "number",
          "label": "Low"
        },
        {
          "field": "close",
          "format": "number",
          "label": "Close"
        },
        {
          "field": "volume",
          "format": "number",
          "label": "Volume"
        },
        {
          "field": "lower",
          "format": "number",
          "label": "Lower"
        },
        {
          "field": "upper",
          "format": "number",
          "label": "Upper"
        },
        {
          "field": "signal",
          "format": "number",
          "label": "Signal"
        }
      ],
      "title": "Technical indicator",
      "trigger": "axis"
    }
  },
  "locale": "en",
  "mark": {
    "fields": {
      "middle": "value",
      "signal": "signal",
      "value": "value"
    },
    "options": {
      "fields": [
        "value",
        "signal"
      ],
      "kind": "sma"
    }
  },
  "title": {
    "subtitle": "edge case · range",
    "text": "Technical indicator"
  },
  "width": "container",
  "x": {
    "field": "date",
    "title": "Trading day",
    "type": "temporal"
  },
  "y": {
    "field": "value",
    "title": "value",
    "type": "quantitative"
  }
};

Graflume.technicalIndicator('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Every indicator is calculated from the same coherent OHLCV market history. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Technical indicator"
  },
  "axes": {
    "x": {
      "format": {
        "dateStyle": "long",
        "timeZone": "UTC",
        "type": "date"
      }
    }
  },
  "height": 620,
  "interaction": {
    "hover": true,
    "tooltip": {
      "axis": "x",
      "fields": [
        {
          "dateStyle": "long",
          "field": "date",
          "format": "date",
          "label": "Date",
          "timeZone": "UTC"
        },
        {
          "field": "value",
          "format": "number",
          "label": "Value"
        },
        {
          "field": "open",
          "format": "number",
          "label": "Open"
        },
        {
          "field": "high",
          "format": "number",
          "label": "High"
        },
        {
          "field": "low",
          "format": "number",
          "label": "Low"
        },
        {
          "field": "close",
          "format": "number",
          "label": "Close"
        },
        {
          "field": "volume",
          "format": "number",
          "label": "Volume"
        },
        {
          "field": "lower",
          "format": "number",
          "label": "Lower"
        },
        {
          "field": "upper",
          "format": "number",
          "label": "Upper"
        },
        {
          "field": "signal",
          "format": "number",
          "label": "Signal"
        }
      ],
      "title": "Technical indicator",
      "trigger": "axis"
    }
  },
  "locale": "en",
  "mark": {
    "fields": {
      "middle": "value",
      "signal": "signal",
      "value": "value"
    },
    "options": {
      "fields": [
        "value",
        "signal"
      ],
      "kind": "sma"
    }
  },
  "title": {
    "subtitle": "edge case · range",
    "text": "Technical indicator"
  },
  "width": "container",
  "x": {
    "field": "date",
    "title": "Trading day",
    "type": "temporal"
  },
  "y": {
    "field": "value",
    "title": "value",
    "type": "quantitative"
  }
}