OPEN-SOURCE SCRIPT
Telah dikemas kini Best Fracktals

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.
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.
Nota Keluaran
"Best Fractals" Indicator – Modified VersionThis 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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.