Bentrix Docs
HomePricingDashboard

Flat top/bottom

Channels3 anchorscan be filledin every package

Three anchors: the first two are a sloped line, and the third sets a level drawn over the same span of time, so one side of the band is flat.

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

123Anchor 2The sloped side, second turnWhat it drawsa band narrowing or wideningagainst one level, with thearea between filled when fillAnchor 1The sloped side, first turnAnchor 3The flat side's price
  1. 1Press on anchor 1
  2. 2Drag: a ghost of the whole tool follows the pointer
  3. 3Release on anchor 2
  4. 4Anchor 3 placed for you: drag each to its place
Placed by Bentrix’s own code on the sample bars. The placement plays once as you reach the figure.

03What you see

A band with one sloped side and one level side over the same span of time, tinted when fill is on.

What it shows

It shows a band narrowing or widening against one level, with the area between filled when fill is on.

04Where it comes from

The shape of the ascending and descending triangles in Edwards and Magee: rising lows under a flat ceiling, or falling highs over a flat floor.

05How it is placed

  1. Open the chart's Tools column and choose Line tools › Flat top/bottom.
  2. Press on the sloped side, first turn, drag to the sloped side, second turn, and release. A ghost of the whole tool follows the pointer while you drag.
  3. The remaining anchor — the flat side's price — is placed for you at a default distance. Drag each handle to where it belongs.
  4. With the magnet on, an anchor dropped near a candle's open, high, low or close snaps to it.

Its anchors

  1. 1The sloped side, first turn
  2. 2The sloped side, second turn
  3. 3The flat side's price

Put the first two anchors on the sloped side's turns and the third on the flat side's price.

06The geometry

One side is the line through the first two anchors; the other is the constant P3 over the same bars. The band's height at bar b is

h(b)=|P3−(P1+m(b−b1))|
bi, Pithe bar and the price of anchor i
mthe slope of the line through the first two anchors
h(b)the band's height at bar b

which shrinks to zero where the sloped side meets the level.

07Settings and defaults

Flat top/bottomits properties window
Anchors3Each 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

Narrowing against a level. Readers watch price being squeezed between the slope and the flat side.

Which side gives. Classical charting reads the flat side as the one under pressure; what actually happens is watched bar by bar.

Where in the shape. A move out of it in the first two thirds is read differently from one near the point.

09What it does not tell you

!

The shape shows a range narrowing. It does not say which way price leaves it.

10Limits and common misreadings

The flat side is rarely exact; highs a few points apart are treated as one level.

Shapes are named afterwards.

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 › Line tools › Flat top/bottom.
  • 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 flat_top_bottom, 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": "flat_top_bottom",
    "anchors": [
      {
        "t_ms": 1710151200000,
        "price": 1.085
      },
      {
        "t_ms": 1710172800000,
        "price": 1.0862
      },
      {
        "t_ms": 1710194400000,
        "price": 1.0874
      }
    ]
  }
}

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