Expand description
TPO (Time Price Opportunity) / Market Profile chart model.
Market Profile charts show price distribution over time by placing a letter (A, B, C, …) at each price level touched during successive time periods (typically 30-minute brackets). The resulting profile reveals key structural levels:
- POC (Point of Control) – price with the most TPOs.
- Value Area – price range containing the configured share of TPO activity.
- Initial Balance – range established during the configured opening period.
- Single Prints – levels touched during only one TPO period.
Use to_tpo_profiles to transform OHLCV bars into per-session
TPOProfiles.
Structs§
- TPOConfig
- Configuration for TPO chart generation and rendering.
- TPOLetter
- A single TPO letter placed at a price level during one time period.
- TPOProfile
- A complete TPO profile for one trading session.
Enums§
- Profile
Shape - Market profile shape classification.
- Session
Type - Session classification for splitting TPO profiles.
- TPOColor
Mode - Color-mapping strategy for TPO letters/blocks.
- TPODisplay
Mode - How to render TPO entries on the chart.
Functions§
- derive_
tick_ size - Derive a sensible TPO row size (price-bin height) from a price range and a target number of rows.
- to_
tpo_ profiles - Transform bars into TPO profiles