Commit 9a62831
authored
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments