Bentrix Docs
HomePricingDashboard

Renko

Bricks of one fixed size, drawn only when price moves a full brick. Time disappears — a quiet hour draws nothing, a fast move draws a staircase — so trends and reversals stand out cleanly.

The 300 hourly candles it is built from26 bricks, the box 0.002, reversing on 2 boxes

01What you see

A staircase of equal bricks. Each brick is exactly one box tall. Rising bricks climb up and to the right; falling bricks step down. There is no time axis in the usual sense: the next brick stands one step to the right whenever it forms, whether that took a minute or a week. The labels under the chart say when each brick formed.

The brick still forming is drawn faint at the right edge, from where the next brick would start to the latest price.

02How it is built

Renko — from the Japanese renga, brick — reads one price per candle, the close by default, and a box size b.

  1. Anchor. The first close sets the grid: the first box is [⌊C0/b⌋·b, that+b].
  2. Continue. After a rising brick whose top is T, a new rising brick forms each time a close reaches one more box:
C≥T+b⇒a brick [T, T+b]
  1. Reverse. A turn needs more: after a rising brick whose bottom is B, the first falling brick forms only when a close falls two boxes below it (with the default reversal of 2):
C≤B−r·b(r=2 by default)
Cthe price read on each candle — the close by default
bthe box size, in price
T, Bthe top and the bottom of the last brick
rthe reversal, in bricks

and the turn then draws all the bricks it passed at once.

  1. One close can make several bricks: a close five boxes above the top makes five.
  2. The mirror rules apply to falling bricks.

Because every brick is a whole box, a move smaller than a box never shows — that is the point of the chart.

The box size

BoxHow it is setSeed when picked
Autothe range of the first 240 candles divided by 12, rounded down to a 1, 2 or 5 step — never below one point—
Pointsa number of the market's points10 points
Pricea price distance10 × the point
ATRthe Average True Range of a period, times a multiplier14, × 1.0
Percenta share of the price0.1 %

Auto is taken once, from where the chart's history begins, so the bricks of the past never redraw. Percent follows the newest close, so as price moves the whole history is drawn again with the new box.

With ATR, Measured chooses whether the box is measured once and held (a Re-measure button appears when newer candles have closed) or measured again daily; it is always read on closed candles, so the bricks of the past never move. The card shows the box it uses and the candle it read it on.

The source price

By default each candle's close builds the bricks. Source can also be Open, High, Low, HL2, HLC3, OHLC4, or High/Low: a rise is read on each candle's high and a fall on its low — the extreme in the trend's direction first, the reversal on the other extreme only if the first made no brick. High/Low bricks react to wicks; close bricks ignore them.

03Reading it

  • A run of bricks of one colour is a trend with no pullback as large as the reversal.
  • A reversal brick is a real turn by the chart's own definition — price came back at least two boxes. Many traders act on the first or second brick of a new colour.
  • Alternating single bricks mean the market is ranging at about the size of the box: the box is too small for this market, or there is no trend.
  • Support and resistance show as rows where bricks turned several times.

Choosing the box is choosing what counts as noise. A larger box makes fewer, more meaningful bricks and reacts later; a smaller one reacts sooner and turns more often. ATR boxes adapt to how much the market moves.

04Settings

On the Chart type and price card, Inputs tab:

SettingChoicesNew chart
BoxAuto, Points, Price, ATR, PercentAuto
Reversal1 or 2 boxes2
SourceClose, Open, High, Low, HL2, HLC3, OHLC4, High/LowClose
Wickson or offoff
Forming brickPartial (grows to the latest price) or Projection (the bricks the open candle has made, faint)Partial
BodiesFilled or Hollow for rising and falling bricksboth filled

Wicks, when on, draw how far price went against a brick before it formed: a rising brick's wick reaches the lowest low since the brick before it.

05Indicators and drawings on Renko

An indicator is computed on the bricks by default — each brick read as a bar, its open and close from its own shape — so a 20-period average is the average of the last 20 bricks. The study's Calculate on setting can switch it to the candles behind the bricks. A drawing keeps its time and price and stands on the brick of its moment.

06Good to know

  • Charts saved before the two-box reversal became the default keep the one-box rule they were drawn with.
  • The chart reacts only when a candle's price clears a box, so on a high interval a brick may appear long after the move started. Many traders build Renko from M1 candles for that reason.

07From 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": "renko",
    "style": {
      "elements": {
        "bodies": "filled",
        "renko_box": {
          "kind": "auto"
        },
        "renko_forming": "partial",
        "renko_reversal": 2,
        "renko_source": "closes",
        "renko_wicks": false
      }
    }
  }
}

Read it

chart_elements_get answers what the chart drew, newest last (at most 5,000; 500 when limit is not given), up to the clock. Each element is read as a bar — here, a brick: open and close are its two edges, rising when close is above open; high and low reach past them only where wicks are on:

FieldWhat it is
time, ordinalthe element’s address: the open time (UTC milliseconds) of the time candle whose prices completed it, and its place among the elements that one candle made — a fast hour can make several
open, high, low, closeits prices, as above
volumethe ticks of the candles it holds
formingtrue for the last element while it is still being built; it may change or vanish

An indicator on this chart is computed on these elements by default — study_attach with "on": "candles" computes it on the time candles behind them instead.

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_="renko")
drawn = client.data.chart_elements_get(chart, limit=20)
for e in drawn["elements"]:
    print("element:", e)

JSJavaScript

await client.chart.setType({ chart, type: "renko" });
const drawn = await client.data.chartElementsGet({ chart, limit: 20 });
for (const e of drawn.elements) {
  console.log("element:", e);
}

C#C#

await client.Chart.SetType(chart, type: "renko");
var drawn = await client.Data.ChartElementsGet(chart, limit: 20);
foreach (var e in drawn!["elements"]!.AsArray())
{
    Console.WriteLine($"element: {e}");
}

GOGo

_ = must(client.Chart.SetType(ctx, mcp.ChartSetTypeArgs{Chart: chart, Type: mcp.Ptr[string]("renko")}))
drawn := must(client.Data.ChartElementsGet(ctx, mcp.DataChartElementsGetArgs{Chart: chart, Limit: mcp.Ptr[int64](20)}))
for _, e := range at(drawn, "elements").([]any) {
	fmt.Println("element:", e)
}

Java

client.chart.setType(new Bentrix.ChartApi.SetTypeArgs(chart).type("renko"));
Object drawn = client.data.chartElementsGet(new Bentrix.DataApi.ChartElementsGetArgs(chart).limit(20L));
for (Object e : (List<Object>) at(drawn, "elements")) {
    System.out.println("element:" + " " + e);
}

C++C++

client.chart.set_type(ChartApi::SetTypeArgs(chart).type("renko"));
auto drawn = client.data.chart_elements_get(DataApi::ChartElementsGetArgs(chart).limit(20));
for (const Json &e : drawn["elements"].arr()) {
    std::cout << "element:" << " " << e.dump() << std::endl;
}

Julia

client.chart.set_type(chart; type_ = "renko")
drawn = client.data.chart_elements_get(chart; limit = 20)
for e in drawn["elements"]
    println("element:", " ", e)
end

RR

client$chart$set_type(chart, type = "renko")
drawn <- client$data$chart_elements_get(chart, limit = 20)
for (e in drawn$elements) {
  cat("element:", format(e), "\n")
}

RRust

client.chart().set_type(mcp::ChartSetTypeArgs::new(chart.clone()).type_("renko"))?;
let drawn = client.data().chart_elements_get(mcp::DataChartElementsGetArgs::new(chart.clone()).limit(20))?;
for e in drawn["elements"].as_array().into_iter().flatten() {
    println!("element: {}", e);
}

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed