Bentrix Docs
HomePricingDashboard

Rectangle

Shapes2 anchorscan be filledin every package

Two opposite corners.

The box is the time range and the price range they span, taken as minimum and maximum on each axis, so the click order does not matter and a corner dragged past its partner flips the box rather than inverting it. Read its height in price before reading its shape: a box shorter than the round-trip cost of dealing (the spread and commission of one trade in and out) encloses a range trading it would consume.

01The tool, live

Live figureDrag anchor 1 or 2. Scroll to zoom, drag the bars to pan.

Placed and drawn by Bentrix’s own code over the same synthetic bars on every page — an illustration of the tool’s geometry, not a market.

02Its parts, named

12Anchor 2The opposite cornerAnchor 1One cornerWhat it drawsthe time interval and theprice interval that regioncovers, and nothing else - a
  1. 1Press on anchor 1
  2. 2Drag: a ghost of the whole tool follows the pointer
  3. 3Release on anchor 2
Placed by Bentrix’s own code on the sample bars. The placement plays once as you reach the figure.

03What you see

A box over a span of time and a range of price. Click order does not matter; with fill on, the box is tinted.

What it shows

It shows the time interval and the price interval that region covers, and nothing else - a rectangle makes no claim about what happens inside it.

04Where it comes from

Rectangles — trading ranges between two levels — are among the patterns catalogued by Richard Schabacker in the 1930s and by Edwards and Magee.

05How it is placed

  1. Open the chart's Tools column and choose Shapes › Rectangle.
  2. Press on one corner, drag to the opposite corner, and release. A ghost of the whole tool follows the pointer while you drag.
  3. With the magnet on, an anchor dropped near a candle's open, high, low or close snaps to it.

Its anchors

  1. 1One corner
  2. 2The opposite corner

Put it around a region worth naming: a session, a consolidation, a gap.

06The geometry

[min(b1,b2), max(b1,b2)]×[min(P1,P2), max(P1,P2)]
bi, Pithe bar and the price of anchor i

A corner dragged past its partner flips the box rather than turning it inside out.

07Settings and defaults

Rectangleits properties window
Anchors2Each is a moment and a price, never a pixel: the tool stays on its bars through a zoom, another interval or older history.
FilloffTurned on, it tints the area the tool encloses.
Colour, width and line stylethe chart's ink, width 1Width from 1 to 5; Solid, Dash, Dot or Dash-dot.
TextnoneA name written on the tool.
Visibilityevery intervalThe intervals the tool is drawn on.
LockoffA locked tool is not moved by a drag.

08Readings — what traders look for

A range. Readers box a consolidation and watch which side price leaves by, and whether it comes back.

A zone of support or resistance drawn as a band rather than a line.

A session or an event window, to compare what happened inside with what came after.

Height as a yardstick. The classical reading compares the move after a range with the range's own height.

09What it does not tell you

!

A box names a region. It does not make its edges matter.

10Limits and common misreadings

Edges are choices: wick to wick and close to close give different boxes.

A range is only known to be one in hindsight.

11On other chart types

A drawing is fixed to moments and prices, so it keeps its place on every chart type. On a chart built by price or by activity — Renko, Range bars, Point & Figure, Kagi, Line break — each anchor stands on the brick, bar or column that holds its moment. No chart type refuses a drawing.

12In Bentrix

  • Where it is: the chart's Tools column › Shapes › Rectangle.
  • Its properties: select the tool and open its properties window; the small bar that floats beside a selected tool has its lock.
  • Undo: Ctrl+Z takes back the last drawing step on that chart.
  • In a pane: every tool can also be placed in an indicator's own pane.

13From an agent or a program

An agent or a program places the tool with object_place: the chart, the kind rectangle, and its anchors in placement order, each a moment (t_ms, milliseconds since 1970 on the workbench's feed) and a price. Acting on a chart needs the lab permission, and tools that act are part of Plus.

{
  "name": "object_place",
  "arguments": {
    "chart": "<chart uri>",
    "kind": "rectangle",
    "anchors": [
      {
        "t_ms": 1710151200000,
        "price": 1.085
      },
      {
        "t_ms": 1710172800000,
        "price": 1.0862
      }
    ]
  }
}

object_move moves its anchors, object_change its look, object_find lists a chart's drawings and object_delete removes one. All of them are in the MCP reference, and every SDK language has the same calls.

15Sources

  1. Edwards, Robert D., and John Magee. Technical Analysis of Stock Trends. 1948; 9th ed., CRC Press, 2007.

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