A market profile of where price spent its time. Each half hour of a session gets a letter, printed in every price row it traded through — so the shape shows the session's fair value, its extremes, and its opening range.
01What you see
For each session, a sideways histogram made of letters. Each row is a small band of price. Each letter stands for one period — A for the session's first half hour, B for the second, and so on — and is printed in every row that period traded through. Rows with many letters are prices the market spent a lot of time at; rows with one or two letters are prices it visited briefly.
Three things are marked:
- the point of control (POC) — the row with the most letters;
- the value area — the rows around the POC holding 70 % of all the letters;
- the initial balance — the range of the session's first two periods, as a bar at the left.
02How it is built
The profile is built from the chart's one-minute candles up to the clock, whatever the chart's own interval.
- Rows. Price is cut into rows of one row size. Auto chooses a size that gives about 48 rows across the view.
- Letters. Each period of the session (30 minutes by default) is a letter. A one-minute candle belongs to the period its open time falls in; the period's letter is written in every row between its lowest low and its highest high.
- Point of control. The row with the most letters. When two rows tie, the one nearer the middle of the profile wins.
- Value area. Starting from the POC, the heavier of the next row above and the next row below is added — both when they tie — until the area holds 70 % of all letters:
Σ[value area] letters ≥ 0.70 × Σ[all rows] letters
- Initial balance. The high and the low of the first two periods.
03Reading it
Market profile reads a session as an auction:
- The POC is the session's fairest price — where most trade time happened. Price often returns to an earlier session's POC.
- The value area is where the market accepted price. Opening outside yesterday's value area and failing to get back in is often read as the start of a move.
- Single prints — rows with one letter — mark fast moves the market did not spend time at; they often act as support or resistance later.
- The initial balance is the opening range. A session that breaks it widely is a trending day; one that stays inside it, a range day.
- The shape — a balanced D, a P that is heavy at the top, a b heavy at the bottom — describes who was in control.
04Settings
| Setting | Choices | New chart |
|---|---|---|
| Row | Auto (about 48 rows across the view), Points, Price | Auto |
| Session | Day, Week, Visible | Day |
| Period | M5, M10, M15, M30, H1 | M30 |
| Value area | 1 to 100 % | 70 % |
| Letters or blocks | Letters or Blocks | Letters |
| POC and value area marked | on or off | on |
| Initial balance | Off, 1, 2, 3 or 4 periods | 2 |
The picture above reads the sample's 300 candles as one session of one-minute candles, so it prints ten letters, A to J.
05Good to know
- A TPO needs one-minute candles; a chart that cannot read them says so on the chart instead of drawing a profile.
- When rows would be thinner than a pixel at the current zoom, the profile says so rather than drawing rows nobody can read; zoom in, or choose a larger row.
- On time-based charts the volume profile — the same idea weighted by volume instead of time — is an overlay you can switch on from the card's Volume profile tab.
06From an agent or a program
Set it
chart_set_type turns a chart into this type, as the Chart type card does; style is laid over the chart’s own, field by field — these are its fields and a new chart’s values:
{
"name": "chart_set_type",
"arguments": {
"chart": "<chart uri>",
"type": "tpo",
"style": {
"profile": {
"colour": [
138,
143,
152
],
"footprint": "bid_ask",
"footprint_outline": true,
"ib_periods": 2,
"imbalance": 300,
"initial_balance": true,
"letters": true,
"poc_va": true,
"row": {
"kind": "auto"
},
"session": "day",
"tpo_period": "M30",
"value_area": 70,
"value_area_colour": [
74,
144,
217
],
"volume": "no_profile"
}
}
}
}Read it
This type is drawn by time, so bars_get answers what it is built from: the candles of the chart’s market and interval up to the clock, oldest first, as rows of time_ms, open, high, low, close, tick_volume, spread_points, with last_forming saying whether the last one is still forming. the profile’s rows and letters are drawn from these candles and are not answered as data; a program builds them from the candles with the construction above.
In a program
The same two steps in each language — chart, bench and market as in the read the candles guide:
Python
client.chart.set_type(chart, type_="tpo")
page = client.data.bars_get(bench, market, "H1", limit=20)
print("columns:", page["columns"])
print("last candle still forming:", page["last_forming"])JavaScript
await client.chart.setType({ chart, type: "tpo" });
const page = await client.data.barsGet({ bench, symbol: market, timeframe: "H1", limit: 20 });
console.log("columns:", page.columns);
console.log("last candle still forming:", page.last_forming);C#
await client.Chart.SetType(chart, type: "tpo");
var page = await client.Data.BarsGet(bench, market, "H1", limit: 20);
Console.WriteLine($"columns: {page!["columns"]!}");
Console.WriteLine($"last candle still forming: {page!["last_forming"]!}");Go
_ = must(client.Chart.SetType(ctx, mcp.ChartSetTypeArgs{Chart: chart, Type: mcp.Ptr[string]("tpo")}))
page := must(client.Data.BarsGet(ctx, mcp.DataBarsGetArgs{Bench: bench, Symbol: market, Timeframe: "H1", Limit: mcp.Ptr[int64](20)}))
fmt.Println("columns:", at(page, "columns"))
fmt.Println("last candle still forming:", at(page, "last_forming"))Java
client.chart.setType(new Bentrix.ChartApi.SetTypeArgs(chart).type("tpo"));
Object page = client.data.barsGet(new Bentrix.DataApi.BarsGetArgs(bench, market, "H1").limit(20L));
System.out.println("columns:" + " " + at(page, "columns"));
System.out.println("last candle still forming:" + " " + at(page, "last_forming"));C++
client.chart.set_type(ChartApi::SetTypeArgs(chart).type("tpo"));
auto page = client.data.bars_get(DataApi::BarsGetArgs(bench, market, "H1").limit(20));
std::cout << "columns:" << " " << page["columns"].dump() << std::endl;
std::cout << "last candle still forming:" << " " << page["last_forming"].dump() << std::endl;Julia
client.chart.set_type(chart; type_ = "tpo")
page = client.data.bars_get(bench, market, "H1"; limit = 20)
println("columns:", " ", page["columns"])
println("last candle still forming:", " ", page["last_forming"])R
client$chart$set_type(chart, type = "tpo")
page <- client$data$bars_get(bench, market, "H1", limit = 20)
cat("columns:", format(page$columns), "\n")
cat("last candle still forming:", format(page$last_forming), "\n")Rust
client.chart().set_type(mcp::ChartSetTypeArgs::new(chart.clone()).type_("tpo"))?;
let page = client.data().bars_get(mcp::DataBarsGetArgs::new(bench.clone(), market.clone(), "H1").limit(20))?;
println!("columns: {}", page["columns"]);
println!("last candle still forming: {}", page["last_forming"]);