Pivot Breakouts with MA Filter This script identifies pivot breakouts (both bullish and bearish) using support and resistance levels and overlays breakout labels, arrows, and customizable Moving Averages. It allows traders to fine-tune their analysis with multiple options to customize the display and behavior of the breakout signals.
Key Features:
Pivot Support and Resistance:
Support is defined by the lowest low in a given range (using the lookback period). Resistance is defined by the highest high in a given range (using the lookback period). The script draws support and resistance boxes on the chart when these levels change, providing clear visual markers for potential breakout areas.
Breakout Detection:
Bullish Breakout: A breakout above resistance and the price is above the selected moving average (MA). Bearish Breakout: A breakdown below support and the price is below the selected MA. Breakout events trigger labels indicating "Resistance Breakout" (for bullish) and "Support Breakout" (for bearish). The option to show Breakout Labels (with customizable colors) is available in the settings.
Moving Average Filter:
You can select the type of moving average (SMA or EMA) to use for filtering breakout signals. MA Filter Length: This input allows you to set the period of the moving average to act as a filter for breakout conditions. This helps ensure the breakout aligns with the broader trend. Multiple Moving Averages (Optional):
You can add up to four different moving averages (SMA or EMA), each with its own length and color. You have the option to toggle each moving average on or off and adjust their appearance settings (color and length). The script supports dynamic plots for each moving average, helping to visualize multiple trends at once.
Breakout Arrows:
The script can display arrows (or other shapes) below the bar for bullish breakouts and above the bar for bearish breakouts. Arrows are optional and can be turned on/off in the settings. You can customize the shape of the arrows (e.g., arrow, circle, square, or even a large or small triangle). Customizable Colors and Labels:
The color of the breakout labels and arrows can be customized in the settings to make them fit your chart's style and personal preferences.
Alerts:
Alerts can be set for new support and resistance levels, as well as when breakouts occur (either bullish or bearish). The alert system helps to notify traders when significant price action takes place without needing to constantly monitor the chart.
Settings:
Select Moving Average Type (SMA or EMA) MA Filter Length: Length of the moving average used for filtering breakout conditions. Lookback Range: Determines the range over which the pivot points (support and resistance) are calculated. Breakout Labels: Option to turn on/off breakout labels, and customize label colors. Show Breakout Arrows: Enable or disable breakout arrows with shape options (arrow, circle, square, large triangle, small triangle). Multiple Moving Averages: Option to show up to 4 MAs with customizable colors and lengths.
Skrip sumber terbuka
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.