Skip to main content

Module line_break

Module line_break 

Source
Expand description

Line Break chart transformation.

A Line Break chart extends the current direction when the selected price passes the last line’s extreme. A reversal requires a break past the opposite extreme of the configured number of preceding lines. Use to_line_break_lines to transform OHLCV bars without rendering.

  • to_line_break_lines converts OHLCV bars into line-break lines.
  • detect_signal classifies the relationship between the last two lines as a continuation or reversal.

Structs§

LineBreakConfig
Configuration for the Line Break chart transformation.
LineBreakLine
A single line (block) in a Line Break chart.

Enums§

LineBreakSignal
Signal generated from the last two lines of a Line Break chart.
LineDirection
Direction of a single line in a Line Break chart.

Functions§

detect_signal
Classify the signal produced by the last two lines in the sequence.
to_line_break_lines
Convert bar data to Line Break lines