OPEN-SOURCE SCRIPT

Session Breakouts & Trend Indicator

351
# Session Breakouts & Trend Indicator

This indicator identifies high-probability trading opportunities by tracking key intraday sessions and their breakouts while aligning them with the overall market trend direction.

## What Makes This Indicator Unique

Unlike standard breakout indicators that only identify when price crosses a threshold, this indicator:
- Dynamically identifies and tracks important daily sessions (default: AM 09:00-10:00 and PM 15:00-16:00)
- Determines trend direction using a triple EMA system (20/50/200)
- Shows when breakouts align with the overall trend (higher probability setups)
- Provides visual confirmation with session ranges, breakout levels, and background highlighting
- Includes a comprehensive information panel showing trend/session alignment

## How It Works

The indicator tracks two important daily sessions:
1. **AM Session**: Typically the first hour of trading (default: 09:00-10:00)
2. **PM Session**: Typically the last hour of trading (default: 15:00-16:00)

For each session, it:
- Marks the high and low range
- Establishes breakout levels above/below these ranges
- Detects when price breaks beyond these levels
- Determines if the breakout aligns with the prevailing trend

The trend is calculated using three EMAs (20, 50, 200) for reliable trend identification.

## How To Use

1. Apply the indicator to your chart (works best on 5-minute timeframes)
2. Adjust session times to match your trading schedule if needed
3. Watch for breakouts above session highs (bullish) or below session lows (bearish)
4. Check the information panel to see if the breakout aligns with the trend
5. Enter trades in the direction of trend-aligned breakouts for higher probability setups
6. Set stop losses below the opposite side of the session range

## Settings

- **Session Times**: Customize AM and PM session times
- **EMA Lengths**: Adjust trend determination sensitivity
- **Visualization Options**: Toggle display of sessions, breakouts, and VWAP
- **Alert Settings**: Configure alerts for breakouts and trend-aligned conditions

This indicator is valuable for day traders and swing traders looking for objective entry points with higher probability of success.

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.