PROTECTED SOURCE SCRIPT
Bull Trend Bear Trend - Inspired By Sci the Goat

Bull Trend Bear Trend - Market Structure & S/R Indicator
A comprehensive swing trading indicator that identifies market structure, support/resistance zones, and trend-based entry signals for intraday and swing traders.
Key Features:
📊 Market Structure Detection
Automatically identifies Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL)
Labels Equal Highs (EH) and Equal Lows (EL) for consolidation zones
Clear visual labels on swing points for easy trend analysis
🎯 Dynamic Support & Resistance
Detects consolidation zones where price has bounced multiple times (2+ touches)
Yellow horizontal lines mark current top resistance and bottom support
Focuses on most recent and relevant S/R levels to reduce chart clutter
Transparent yellow bars highlight when price approaches key levels
📈 1HR Trend Analysis
Real-time trend status displayed in top-right corner
"BULL" (green) or "BEAR" (red) indicator based on 1hr market structure
Helps align lower timeframe trades with higher timeframe trend
🎨 Visual Entry Signals
Green bars + triangle arrows for buy signals (bullish market structure + momentum)
Red bars + triangle arrows for sell signals (bearish market structure + momentum)
Signals only trigger when trend structure aligns with momentum indicators (RSI, MACD, EMA)
How To Use:
Check the 1HR TREND display to know the overall market direction
Wait for price to approach yellow S/R zones
Look for HH/HL pattern in uptrend or LH/LL pattern in downtrend
Enter on green (buy) or red (sell) signal bars with confirmation arrows
Best used on 5min and 15min timeframes for entries while respecting 1hr trend
Settings:
Swing Lookback: Controls sensitivity of swing point detection (default: 5)
S/R Lookback Period: Historical range for support/resistance (default: 20)
S/R Threshold %: Distance from S/R to trigger alerts (default: 2%)
Equal High/Low Threshold: Tolerance for detecting equal levels (default: 0.3%)
Alerts Available:
Buy Signal: Bullish market structure entry detected
Sell Signal: Bearish market structure entry detected
Near S/R: Price approaching major support/resistance zone
Best For:
Swing trading on 1hr timeframe
Intraday scalping on 5min/15min with 1hr trend confirmation
Identifying institutional support/resistance zones
Structure-based trading strategies
Note: This indicator combines multiple timeframe analysis, market structure, and momentum confirmation. Always use proper risk management and confirm signals with your trading strategy.
A comprehensive swing trading indicator that identifies market structure, support/resistance zones, and trend-based entry signals for intraday and swing traders.
Key Features:
📊 Market Structure Detection
Automatically identifies Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL)
Labels Equal Highs (EH) and Equal Lows (EL) for consolidation zones
Clear visual labels on swing points for easy trend analysis
🎯 Dynamic Support & Resistance
Detects consolidation zones where price has bounced multiple times (2+ touches)
Yellow horizontal lines mark current top resistance and bottom support
Focuses on most recent and relevant S/R levels to reduce chart clutter
Transparent yellow bars highlight when price approaches key levels
📈 1HR Trend Analysis
Real-time trend status displayed in top-right corner
"BULL" (green) or "BEAR" (red) indicator based on 1hr market structure
Helps align lower timeframe trades with higher timeframe trend
🎨 Visual Entry Signals
Green bars + triangle arrows for buy signals (bullish market structure + momentum)
Red bars + triangle arrows for sell signals (bearish market structure + momentum)
Signals only trigger when trend structure aligns with momentum indicators (RSI, MACD, EMA)
How To Use:
Check the 1HR TREND display to know the overall market direction
Wait for price to approach yellow S/R zones
Look for HH/HL pattern in uptrend or LH/LL pattern in downtrend
Enter on green (buy) or red (sell) signal bars with confirmation arrows
Best used on 5min and 15min timeframes for entries while respecting 1hr trend
Settings:
Swing Lookback: Controls sensitivity of swing point detection (default: 5)
S/R Lookback Period: Historical range for support/resistance (default: 20)
S/R Threshold %: Distance from S/R to trigger alerts (default: 2%)
Equal High/Low Threshold: Tolerance for detecting equal levels (default: 0.3%)
Alerts Available:
Buy Signal: Bullish market structure entry detected
Sell Signal: Bearish market structure entry detected
Near S/R: Price approaching major support/resistance zone
Best For:
Swing trading on 1hr timeframe
Intraday scalping on 5min/15min with 1hr trend confirmation
Identifying institutional support/resistance zones
Structure-based trading strategies
Note: This indicator combines multiple timeframe analysis, market structure, and momentum confirmation. Always use proper risk management and confirm signals with your trading strategy.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.