Skip to main content

Module renko

Module renko 

Source
Expand description

StatRenko / StatPointFigure: time-independent price charts built from a box size. Prices are read from y in data order (time order).

  • Renko: a new brick of height box_size whenever the price closes a full box above the last brick’s top or below its bottom (so a reversal needs a two-box move). Output: one row per brick with x (brick number), ymin/ymax, y (= ymax) and direction ("up"/"down").
  • Point & figure: columns of X (rising) and O (falling) boxes; a column extends while the price moves on by whole boxes and reverses after a reversal-box move against it. Output: one row per box with x (column number), y (box centre), ymin/ymax and mark ("X"/"O").

Structs§

StatPointFigure
Point-and-figure stat behind geom_point_figure.
StatRenko
Renko stat behind geom_renko.

Functions§

point_figure_boxes
Point-and-figure columns: (column, box low, is_x) per box, for box size b and a reversal-box reversal.
renko_bricks
Renko bricks (low, high, up) for prices with box size b.