PROTECTED SOURCE SCRIPT
godConsecutive2Bars

godConsecutive2Bars detects sequences of two consecutive bars sharing the same directional bias, such as two bullish bars (both closing higher than their open) or two bearish bars (both closing lower), to signal potential momentum continuation or reversal setups. This Pine Script indicator highlights these patterns on TradingView charts with visual markers like background colors or shapes, helping traders spot short-term trends in stocks, forex, or crypto. Users can customize sensitivity via input parameters for bar direction (close vs. open, high-low range) and alerts for backtesting strategies.Key FeaturesIdentifies exactly two consecutive bullish or bearish bars, ignoring longer streaks to focus on early momentum.Plots shapes or colors on the second bar for quick visual scanning across multiple timeframes.Includes optional volume filter to confirm patterns only on above-average volume bars �.Usage TipsApply to 5-15 minute charts for day trading entries, entering long after two green candles in an uptrend.Combine with support/resistance levels; exit on the next opposite bar or trailing stop.Enable alerts for "2 Bullish" or "2 Bearish" to automate notifications in your Webull or TradingView workflow.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.