OPEN-SOURCE SCRIPT
Mis à jour

Best Fracktals

871
Key Features:
Fractal Detection: The script detects both top and bottom fractals using custom logic based on candle body highs and lows, not wicks.

Customizable Parameters:

Number of candles (len) to check on each side of the central bar to determine if it forms a fractal.

Number of fractals (fractalCount) to remember and draw lines for.

Visual Indicators:

A red downward triangle marks top fractals above the bar.

A green upward triangle marks bottom fractals below the bar.

Fractal Lines:

Draws up to fractalCount horizontal lines across the chart at the levels of the most recent fractals.

Lines update dynamically as new fractals are detected.

Logic Overview:
Top Fractal: The central candle has a higher body high than surrounding candles.

Bottom Fractal: The central candle has a lower body low than surrounding candles.

Ensures no duplicate fractals are marked on equal highs or lows.
Notes de version
"Best Fractals" Indicator – Modified Version
This updated version of the "Best Fractals" TradingView indicator introduces the following improvements:

✅ Changes Implemented:
Line Color Changed to Black:

The horizontal lines that represent recent fractal levels are now drawn in black instead of red (for tops) and green (for bottoms).

This helps ensure better visibility across various chart backgrounds.

Fractal Marker Position Adjusted (Bottom Fractals):

The bottom fractal triangle markers are now positioned closer to the candles by reducing the offset from -len to -1.

This provides a more visually aligned and natural placement relative to price action.

🔧 Unchanged Features:
Top and bottom fractals are still identified using custom logic based on the candle body highs and lows (not wicks).

Triangular markers are shown above or below bars.

Up to a specified number (fractalCount) of recent fractals are used to draw persistent horizontal lines.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.