OPEN-SOURCE SCRIPT
已更新 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.
發行說明
"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.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。