Skip to content

Commit 9a62831

Browse files
spec: add ohlc-bar specification (#3296)
## New Specification: `ohlc-bar` Related to #3293 --- ### specification.md # ohlc-bar: OHLC Bar Chart ## Description An OHLC (Open-High-Low-Close) bar chart displays financial price data using vertical bars with horizontal tick marks. Each bar shows the price range from high to low as a thin vertical line, with a left tick indicating the opening price and a right tick indicating the closing price. Unlike candlestick charts that use colored bodies, OHLC bars provide a cleaner, less cluttered view favored by technical analysts who prefer to focus on price levels rather than visual patterns. ## Applications - Analyzing daily stock price movements with focus on precise price levels - Comparing price action across multiple securities on the same chart without color distraction - Technical analysis where traders prefer bar charts over candlesticks for pattern recognition ## Data - `date` (datetime) - The time period for each bar (e.g., day, hour, minute) - `open` (numeric) - Opening price at the start of the period - `high` (numeric) - Highest price during the period - `low` (numeric) - Lowest price during the period - `close` (numeric) - Closing price at the end of the period - Size: 20-100 periods for clear visualization - Example: Daily OHLC prices for a stock over 30-60 trading days ## Notes - Use thin vertical lines for the high-low range - Horizontal ticks should extend to the left for open and right for close - Consider using different colors for up bars (close > open) vs down bars (close < open) for easier reading - Time axis should have appropriate date formatting based on data frequency - Grid lines help read exact price levels --- **Next:** Add `approved` label to the issue to merge this PR. --- :robot: *[spec-create workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20822853808)* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a3dee6a commit 9a62831

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

plots/ohlc-bar/specification.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# ohlc-bar: OHLC Bar Chart
2+
3+
## Description
4+
5+
An OHLC (Open-High-Low-Close) bar chart displays financial price data using vertical bars with horizontal tick marks. Each bar shows the price range from high to low as a thin vertical line, with a left tick indicating the opening price and a right tick indicating the closing price. Unlike candlestick charts that use colored bodies, OHLC bars provide a cleaner, less cluttered view favored by technical analysts who prefer to focus on price levels rather than visual patterns.
6+
7+
## Applications
8+
9+
- Analyzing daily stock price movements with focus on precise price levels
10+
- Comparing price action across multiple securities on the same chart without color distraction
11+
- Technical analysis where traders prefer bar charts over candlesticks for pattern recognition
12+
13+
## Data
14+
15+
- `date` (datetime) - The time period for each bar (e.g., day, hour, minute)
16+
- `open` (numeric) - Opening price at the start of the period
17+
- `high` (numeric) - Highest price during the period
18+
- `low` (numeric) - Lowest price during the period
19+
- `close` (numeric) - Closing price at the end of the period
20+
- Size: 20-100 periods for clear visualization
21+
- Example: Daily OHLC prices for a stock over 30-60 trading days
22+
23+
## Notes
24+
25+
- Use thin vertical lines for the high-low range
26+
- Horizontal ticks should extend to the left for open and right for close
27+
- Consider using different colors for up bars (close > open) vs down bars (close < open) for easier reading
28+
- Time axis should have appropriate date formatting based on data frequency
29+
- Grid lines help read exact price levels

plots/ohlc-bar/specification.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Specification-level metadata for ohlc-bar
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: ohlc-bar
5+
title: OHLC Bar Chart
6+
7+
# Specification tracking
8+
created: 2026-01-08T15:54:27Z
9+
updated: null
10+
issue: 3293
11+
suggested: MarkusNeusinger
12+
13+
# Classification tags (applies to all library implementations)
14+
# See docs/reference/tagging-system.md for detailed guidelines
15+
tags:
16+
plot_type:
17+
- ohlc
18+
- bar
19+
data_type:
20+
- timeseries
21+
- numeric
22+
domain:
23+
- finance
24+
features:
25+
- basic
26+
- temporal

0 commit comments

Comments
 (0)