This Pine Script indicator, "Last Bullish High & Lowest Low Tracker with Timeframe Background and Fill", is designed to visually track bullish and bearish trends based on price action on the current chart and a user-defined timeframe. It provides dynamic line plotting, area fills, and background coloring to represent trend alignment between the current chart and the selected timeframe.
Features and Functionalities Tracks Bullish Highs and Bearish Lows:
The script identifies: Bullish High: The highest price reached after a bullish (green) candle. Bearish Low: The lowest price reached after a bearish (red) candle. It dynamically updates these levels based on the price movements. Line Plotting:
Current Chart Lines: The Plotted Bullish High line (green/red) indicates the last bullish high. The Lowest Low line (green/red) indicates the last bearish low. Selected Timeframe Lines: A separate set of lines is plotted for the user-defined timeframe (e.g., daily, weekly): A Bullish High Line for the selected timeframe (lighter green). A Lowest Low Line for the selected timeframe (lighter red). Dynamic Area Fills:
The area between the Plotted Bullish High and Lowest Low is filled: Green Fill: When both lines are green (indicating a bullish alignment). Red Fill: When both lines are red (indicating a bearish alignment). For the selected timeframe: The area between the timeframe-specific Bullish High and Lowest Low is similarly filled with lighter colors. Background Color Based on Timeframe Alignment:
The background color represents the trend alignment on the selected timeframe: Green Background: When the timeframe’s Bullish High is rising and Lowest Low is rising (bullish trend). Red Background: When the timeframe’s Bullish High is falling and Lowest Low is falling (bearish trend). What It’s For This indicator is designed for traders who want to:
Visualize Trends Across Timeframes:
It helps identify when the current chart’s trend aligns with a higher timeframe trend (e.g., daily, weekly). Useful for multi-timeframe analysis. Spot Bullish and Bearish Trends:
The color-coded lines and fills clearly show the dominant trend on both the current chart and the selected timeframe. Plan Trades Based on Trend Alignment:
When the current chart and selected timeframe show the same trend: Both lines and fills turn green (bullish). Both lines and fills turn red (bearish). This alignment is a potential signal for entering long or short trades. Identify Reversals and Divergences:
Divergence between the current chart and timeframe trends (e.g., green on one, red on the other) may indicate trend weakening or reversal. Visual Elements Lines:
Solid lines (current chart): Represent the Plotted Bullish High and Lowest Low. Dashed/lighter lines (selected timeframe): Represent the timeframe-specific Bullish High and Lowest Low. Fills:
Green/Red fills highlight trend zones: On the current chart (darker). On the selected timeframe (lighter). Background:
The entire chart background turns green or red based on the selected timeframe’s trend alignment. Summary This indicator is ideal for traders who want a clear visual representation of price trends and multi-timeframe alignment. It simplifies trend-following strategies by providing:
Easy-to-interpret fills and background colors. Clear bullish and bearish zones. Multi-timeframe trend confirmation.
Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.
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.