Overview of the Fractal Lines Button Indicator

The “fractal-lines-button” indicator automatically detects fractals on the chart and extends horizontal lines from them. It highlights both upward and downward fractals with customizable line styles and colors. A simple toggle button allows users to quickly show or hide these lines, keeping the chart clean when needed.
This indicator is especially useful for identifying key levels where price has previously reversed, making it helpful for breakout or reversal strategies.
How to Use It in Practice

In live trading, this tool can be used to:
- Automatically map support and resistance zones using fractals.
- Identify strong reversal points based on repeated fractal levels.
- Quickly declutter the chart using the Fractal toggle button.
- Visually distinguish between bullish and bearish fractals with color-coded lines.
This makes it a practical tool for price action traders and those who rely on chart structure.
Parameter Explanations

Maxbar
Defines the maximum number of bars to process for fractal detection. Useful for controlling indicator performance.
Up_Fractal_Color
Color of the upward (bullish) fractal symbol.
Up_Fractal_Symbol
Code for the graphical symbol used to mark bullish fractals.
Down_Fractal_Color
Color of the downward (bearish) fractal symbol.
Down_Fractal_Symbol
Code for the graphical symbol used to mark bearish fractals.
Extend_Line
If true, horizontal lines are extended from each fractal point.
Extend_line_to_Background
Places the extended lines in the background layer of the chart.
Show_Validation_Candle
If enabled, shows a marker on the candle that validates the fractal.
Up_Fractal_Extend_Line_Color
Color for the horizontal line extending from an upward fractal.
Up_Fractal_Extend_Width
Thickness of the line drawn from an upward fractal.
Up_Fractal_Extend_Style
Style of the line (solid, dashed, etc.) extending from upward fractals.
Down_Fractal_Extend_Line_Color
Color for the line from a downward fractal.
Down_Fractal_Extend_Width
Line thickness from downward fractals.
Down_Fractal_Extend_Style
Line style for bearish fractals.
button_note1 / button_note2
Just comment lines used for visual grouping inside the settings — no functional impact.
chart btn.corner for anchoring
Specifies where on the chart the toggle button is displayed (e.g. top-left, bottom-right).
btn_text
Text displayed on the toggle button.
btn_font
Font style used on the button.
btn_font size
Font size used for button text.
btn_text_ON_color
Color of the button text when the fractal lines are active.
btn_background_color
Background color of the button.
btn_border_color
Border color of the button.
btn_x / btn_y
X and Y offset values for the button’s screen position.
btn_width / btn_height
Sets the size of the toggle button in pixels.
