OPEN-SOURCE SCRIPT
Session Breakouts & Trend Indicator

# 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.
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.
Open-source script
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.
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.
Open-source script
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.
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.