BOCS Adaptive🚀 BOCS Adaptive - Advanced Dynamic Volatility Breakout Channel System
Enhanced version of AlgoAlpha's Smart Money Breakout Channels with adaptive ATR-based risk management for professional-grade trading signals.
📜 CREDITS & ATTRIBUTION:
This indicator is based on the original "Smart Money Breakout Channels" by AlgoAlpha (). Full credit goes to AlgoAlpha for the innovative breakout channel detection methodology. This enhanced version adds adaptive ATR-based TP/SL functionality and advanced volume analysis features.
🔬 THE BOCS METHODOLOGY EXPLAINED:
What is BOCS?
BOCS (Breakout Channel System) is AlgoAlpha's sophisticated algorithm that identifies high-probability breakout opportunities by analyzing normalized price volatility patterns. Unlike traditional support/resistance methods, BOCS uses mathematical normalization to detect when markets are consolidating before explosive moves.
📊 HOW THE CHANNEL DETECTION WORKS (Original AlgoAlpha Method):
Step 1: Price Normalization
Calculates the highest high and lowest low over a specified period (default 100 bars)
Normalizes current price position within this range: (close - lowest) / (highest - lowest)
This creates a 0-1 scale that works across all markets and timeframes
Step 2: Volatility Analysis
Applies standard deviation to the normalized price over 14 periods
Identifies volatility peaks and troughs using specialized algorithms
Tracks volatility cycles to predict consolidation phases
Step 3: Channel Formation
Detects when volatility crosses from high to low (consolidation begins)
Creates dynamic channels using the highest/lowest points during consolidation
Channels automatically expand/contract based on price action
Minimum 10-bar duration ensures meaningful consolidation patterns
Step 4: Breakout Detection
Strong Closes Mode: Requires >50% of candle body outside channel (reduces false signals from wicks)
Any Touch Mode: Triggers on any price movement outside channel boundaries
Volume confirmation analysis validates breakout strength
🆕 ENHANCED FEATURES (This Version):
⚡ Adaptive ATR Risk Management:
Revolutionary Volatility-Based TP/SL System:
Traditional fixed pip/tick stops don't account for changing market conditions. This enhanced version adds ATR (Average True Range) multipliers to create dynamic TP/SL levels that automatically adjust to current volatility.
ATR Calculation Process:
Select any timeframe for ATR source (1min, 5min, 15min, etc.)
Uses customizable period length (default 14) for smoothing
Calculates: TP Distance = ATR × Multiplier
Updates continuously as market volatility changes
Example Setup:
Chart: 5-minute NQ futures
ATR Source: 1-minute timeframe
Current 1min ATR: 4.36 points
TP1 Multiplier: 2.0 → TP1 = 8.72 points from entry
TP2 Multiplier: 3.5 → TP2 = 15.26 points from entry
SL Multiplier: 1.0 → SL = 4.36 points from entry
📈 ENHANCED VOLUME ANALYSIS SYSTEM:
Three Advanced Volume Modes (Enhanced from Original):
1. Volume Mode:
Displays total volume relative to 20-period moving average
Visual transparency indicates volume strength
Helps identify accumulation/distribution phases
2. Comparison Mode:
Separates up volume (green) vs down volume (red)
Shows buying vs selling pressure within channels
Critical for breakout direction bias
3. Delta Mode:
Calculates net volume delta (up volume - down volume)
Positive delta = buying pressure (above midline)
Negative delta = selling pressure (below midline)
Uses multi-timeframe data for granular analysis
🎯 VOLUME CONFIRMATION ALGORITHM (Enhanced):
Breakout Validation System:
Compares breakout volume to 20-period average
CONFIRMED: Volume >120% of average (strong breakout)
WEAK: Volume 80-120% of average (proceed with caution)
FAILED: Volume <80% of average (likely false breakout)
Volume Gauge Feature (New):
Real-time volume delta visualization
Color-coded pressure indicator (red to green spectrum)
Shows current positioning within high/low volume range
Updates continuously during active channels
📊 COMPREHENSIVE TRADE MONITORING (Enhanced):
Real-Time Analysis Table:
Trade status and direction
Channel formation status
Current ATR value and timeframe
Calculated TP/SL distances with multipliers
Last breakout analysis with volume confirmation
Current vs average volume comparison
Volume strength rating (Very High/High/Normal/Low)
🔔 INTELLIGENT ALERT SYSTEM (Enhanced):
Six Alert Types:
New Channel Formation - Consolidation pattern detected
Bullish Breakout - Upward channel break with entry price
Bearish Breakout - Downward channel break with entry price
Take Profit 1 Hit - First target reached (New)
Take Profit 2 Hit - Second target reached (New)
Stop Loss Hit - Risk management triggered (New)
🎨 VISUAL FEATURES (Enhanced):
Channel Visualization (Original AlgoAlpha Design):
Semi-transparent main channel box
Colored upper/lower zones (red=resistance, green=support)
Dashed center line for reference
Volume bars within channels
Real-time volume gauge (new)
TP/SL Display (New Enhancement):
White entry line with price label
Green TP lines with distance calculations
Red SL line with distance calculation
Customizable line lengths and colors
Shows both price levels AND point distances
⚙️ ADVANCED CUSTOMIZATION (Enhanced):
Original AlgoAlpha Settings:
Nested channels (multiple overlapping) or single channel mode
Strong closes only vs any touch breakouts
Normalization and detection lengths
Volume analysis timeframe selection
New ATR Risk Management Settings:
Independent ATR timeframe selection
Customizable ATR calculation period
Separate multipliers for TP1, TP2, and SL
Toggle TP2 on/off as needed
Enhanced Display Options:
Four table positions with offset controls
Three table sizes (Small/Normal/Large)
Volume text sizing and positioning
Complete color customization
Show/hide individual components
📈 OPTIMAL USE CASES:
Scalping (1-5 minute charts):
Use 1-minute ATR for responsive risk management
Enable strong closes mode for cleaner signals
Monitor volume confirmation closely
Day Trading (5-30 minute charts):
Use 5-minute ATR for balanced approach
Enable nested channels for multiple setups
Focus on volume delta for direction bias
Swing Trading (1-4 hour charts):
Use 15-30 minute ATR for stable levels
Longer detection periods for significant channels
Emphasize volume confirmation for major moves
📊 COMPATIBLE MARKETS:
✅ Forex pairs (EUR/USD, GBP/USD, USD/JPY, etc.)
✅ Stock indices (SPY, QQQ, IWM, DIA)
✅ Futures (ES, NQ, YM, RTY, CL, GC)
✅ Individual stocks (AAPL, TSLA, GOOGL, etc.)
✅ Cryptocurrencies (BTC, ETH, altcoins)
✅ Commodities (Gold, Silver, Oil, etc.)
🙏 ACKNOWLEDGMENTS:
Special thanks to AlgoAlpha for creating the original Smart Money Breakout Channels indicator and sharing it with the TradingView community. Their innovative approach to breakout detection formed the foundation for this enhanced version. Please support the original creator by checking out their other excellent indicators.
⚠️ RISK DISCLAIMER:
This indicator is designed for educational and analytical purposes only. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results. The BOCS Adaptive system, while sophisticated, should be used as part of a comprehensive trading strategy that includes proper risk management, position sizing, and market analysis. Always conduct your own due diligence and consider consulting with a qualified financial advisor before making trading decisions. No system can guarantee profitable trades, and users should never risk more than they can afford to lose.
NASDAQ 100 E-MINI FUTURES
QQQ Ladder → Adjusted to Active Ticker (5s & 10s)This indicator allows you to a grid of QQQ levels directly on futures chart like NQ, MNQ, ES and MES, automatically adjusting for the spread between the displayed symbol and QQQ. This is particularly useful for traders who perform technical analysis on QQQ but execute trades on Futures.
Features:
Renders every 5 and 10 points steps of QQQ in your current chart.
The script adjusts these levels in real-time based on the current spread between QQQ and the displayed symbol!
Plots updated horizontal lines that move with the spread
Supports Multiple Tickers, ES1!, MES1!, NQ1!, MNQ1! SPY and SPX500USD.
NDX Ladder → Adjusted to Active Ticker (5s & 10s)This indicator allows you to a grid of NDX levels directly on the NQ! (E-mini NASDAQ 100 Futures) chart, automatically adjusting for the spread between NDX and NQ1!. This is particularly useful for traders who perform technical analysis on SPX but execute trades on NQ1!.
Features:
Renders every 5 and 10 points steps of the NDX in your current chart.
The script adjusts these levels in real-time based on the current spread between NDX and NQ / MNQ
Plots updated horizontal lines that move with the spread
FlowStateTrader FlowState Trader - Advanced Time-Filtered Strategy
## Overview
FlowState Trader is a sophisticated algorithmic trading strategy that combines precision entry signals with intelligent time-based filtering and adaptive risk management. Built for traders seeking to achieve their optimal performance state, FlowState identifies high-probability trading opportunities within user-defined time windows while employing dynamic trailing stops and partial position management.
## Core Strategy Philosophy
FlowState Trader operates on the principle that peak trading performance occurs when three elements align: **Focus** (precise entry signals), **Flow** (optimal time windows), and **State** (intelligent position management). This strategy excels at finding reversal opportunities at key support and resistance levels while filtering out suboptimal trading periods to keep traders in their optimal flow state.
## Key Features
### 🎯 Focus Entry System
**Support/Resistance Zone Trading**:
- Dynamic identification of key price levels using configurable lookback periods
- Entry signals triggered when price interacts with these critical zones
- Volume confirmation ensures genuine breakout/reversal momentum
- Trend filter alignment prevents counter-trend disasters
**Entry Conditions**:
- **Long Signals**: Price closes above support buffer, touches support level, with above-average volume
- **Short Signals**: Price closes below resistance buffer, touches resistance level, with above-average volume
- Optional trend filter using EMA or SMA for directional bias confirmation
### ⏰ FlowState Time Filtering System
**Comprehensive Time Controls**:
- **12-Hour Format Trading Windows**: User-friendly AM/PM time selection
- **Multi-Timezone Support**: UTC, EST, PST, CST with automatic conversion
- **Day-of-Week Filtering**: Trade only weekdays, weekends, or both
- **Lunch Hour Avoidance**: Automatically skips low-volume lunch periods (12-1 PM)
- **Visual Time Indicators**: Background coloring shows active/inactive trading periods
**Smart Time Features**:
- Handles overnight trading sessions seamlessly
- Prevents trades during historically poor performance periods
- Customizable trading hours for different market sessions
- Real-time trading window status in dashboard
### 🛡️ Adaptive Risk Management
**Multi-Level Take Profit System**:
- **TP1**: First profit target with optional partial position closure
- **TP2**: Final profit target for remaining position
- **Flexible Scaling**: Choose number of contracts to close at each level
**Dynamic Trailing Stop Technology**:
- **Three Operating Modes**:
- **Conservative**: Earlier activation, tighter trailing (protect profits)
- **Balanced**: Optimal risk/reward balance (recommended)
- **Aggressive**: Later activation, wider trailing (let winners run)
- **ATR-Based Calculations**: Adapts to current market volatility
- **Automatic Activation**: Engages when position reaches profitability threshold
### 📊 Intelligent Position Sizing
**Contract-Based Management**:
- Configurable entry quantity (1-1000 contracts)
- Partial close quantities for profit-taking
- Clear position tracking and P&L monitoring
- Real-time position status updates
### 🎨 Professional Visualization
**Enhanced Chart Elements**:
- **Entry Zone Highlighting**: Clear visual identification of trading opportunities
- **Dynamic Risk/Reward Lines**: Real-time TP and SL levels with price labels
- **Trailing Stop Visualization**: Live tracking of adaptive stop levels
- **Support/Resistance Lines**: Key level identification
- **Time Window Background**: Visual confirmation of active trading periods
**Dual Dashboard System**:
- **Strategy Dashboard**: Real-time position info, settings status, and current levels
- **Performance Scorecard**: Live P&L tracking, win rates, and trade statistics
- **Customizable Sizing**: Small, Medium, or Large display options
### ⚙️ Comprehensive Customization
**Core Strategy Settings**:
- **Lookback Period**: Support/resistance calculation period (5-100 bars)
- **ATR Configuration**: Period and multipliers for stops/targets
- **Reward-to-Risk Ratios**: Customizable profit target calculations
- **Trend Filter Options**: EMA/SMA selection with adjustable periods
**Time Filter Controls**:
- **Trading Hours**: Start/end times in 12-hour format
- **Timezone Selection**: Four major timezone options
- **Day Restrictions**: Weekend-only, weekday-only, or unrestricted
- **Session Management**: Lunch hour avoidance and custom periods
**Risk Management Options**:
- **Trailing Stop Modes**: Conservative/Balanced/Aggressive presets
- **Partial Close Settings**: Enable/disable with custom quantities
- **Alert System**: Comprehensive notifications for all trade events
### 📈 Performance Tracking
**Real-Time Metrics**:
- Net profit/loss calculation
- Win rate percentage
- Profit factor analysis
- Maximum drawdown tracking
- Total trade count and breakdown
- Current position P&L
**Trade Analytics**:
- Winner/loser ratio tracking
- Real-time performance scorecard
- Strategy effectiveness monitoring
- Risk-adjusted return metrics
### 🔔 Alert System
**Comprehensive Notifications**:
- Entry signal alerts with price and quantity
- Take profit level hits (TP1 and TP2)
- Stop loss activations
- Trailing stop engagements
- Position closure notifications
## Strategy Logic Deep Dive
### Entry Signal Generation
The strategy identifies high-probability reversal points by combining multiple confirmation factors:
1. **Price Action**: Looks for price interaction with key support/resistance levels
2. **Volume Confirmation**: Ensures sufficient market interest and liquidity
3. **Trend Alignment**: Optional filter prevents counter-trend positions
4. **Time Validation**: Only trades during user-defined optimal periods
5. **Zone Analysis**: Entry occurs within calculated buffer zones around key levels
### Risk Management Philosophy
FlowState Trader employs a three-tier risk management approach:
1. **Initial Protection**: ATR-based stop losses set at strategy entry
2. **Profit Preservation**: Trailing stops activate once position becomes profitable
3. **Scaled Exit**: Partial profit-taking allows for both security and potential
### Time-Based Edge
The time filtering system recognizes that not all trading hours are equal:
- Avoids low-volume, high-spread periods
- Focuses on optimal liquidity windows
- Prevents trading during news events (lunch hours)
- Allows customization for different market sessions
## Best Practices and Optimization
### Recommended Settings
**For Scalping (1-5 minute charts)**:
- Lookback Period: 10-20
- ATR Period: 14
- Trailing Stop: Conservative mode
- Time Filter: Major session hours only
**For Day Trading (15-60 minute charts)**:
- Lookback Period: 20-30
- ATR Period: 14-21
- Trailing Stop: Balanced mode
- Time Filter: Extended trading hours
**For Swing Trading (4H+ charts)**:
- Lookback Period: 30-50
- ATR Period: 21+
- Trailing Stop: Aggressive mode
- Time Filter: Disabled or very broad
### Market Compatibility
- **Forex**: Excellent for major pairs during active sessions
- **Stocks**: Ideal for liquid stocks during market hours
- **Futures**: Perfect for index and commodity futures
- **Crypto**: Effective on major cryptocurrencies (24/7 capability)
### Risk Considerations
- **Market Conditions**: Performance varies with volatility regimes
- **Timeframe Selection**: Lower timeframes require tighter risk management
- **Position Sizing**: Never risk more than 1-2% of account per trade
- **Backtesting**: Always test on historical data before live implementation
## Educational Value
FlowState serves as an excellent learning tool for:
- Understanding support/resistance trading
- Learning proper time-based filtering
- Mastering trailing stop techniques
- Developing systematic trading approaches
- Risk management best practices
## Disclaimer
This strategy is for educational and informational purposes only. Past performance does not guarantee future results. Trading involves substantial risk of loss and is not suitable for all investors. Users should thoroughly backtest the strategy and understand all risks before live trading. Always use proper position sizing and never risk more than you can afford to lose.
---
*FlowState Trader represents the evolution of systematic trading - combining classical technical analysis with modern risk management and intelligent time filtering to help traders achieve their optimal performance state through systematic, disciplined execution.*
NDX Levels Adjusted to Active TickerThis indicator allows you to plot custom NDX levels directly on the NQ1! (E-mini NASDAQ-100 Futures) chart, automatically adjusting for the spread between NDX and NQ1!. This is particularly useful for traders who perform technical analysis on NDX but execute trades on NQ1!.
Features:
Input up to three NDX key levels to track (e.g., 23000, 24000, 25000).
The script adjusts these levels in real-time based on the current spread between NDX and NQ1!
Displays the spread in the chart header for quick reference
Plots updated horizontal lines that move with the spread
Includes optional labels showing the spread periodically to reduce clutter
Supports Multiple Tickers: NQ1!, QQQ, NAS100 and NAS100USD.
Ideal for futures traders who want SPX context while trading NQ1!, QQQ, NAS100 or NAS100USD..
Circuit Breaker - MFFUThis Indicator Is Used To Protect User From Over Trading After Market Hit The Circuit Breakers.
The CME Exchange Usually Halts Trading If Market Hit + or - 7%.
To Protect Users From Extreme Volatile Condition MFFU, Halts Trading If Market Hits + or - 5%.
This Indicator helps us to plot the circuit breaking lines helping us to when to stop trading.
Average Candle Size (Points)ATR but with the ability to add threshold lines (UP TO 3) that help gauge how volatile the market is. Also, note that the default threshold values are set up for NQ Futures so you will need to change your values to your specific needs.
Bull Flag DetectionThe FuturesGod bull flag indicator aims to identify the occurrence of bull flags.
Bull flags are a popular trading pattern that allows users to gauge long entries into a given market. Flags consist of a pole that is followed by either a downward or sideways consolidation period.
This script can be used on any market but was intended for futures (NQ, ES) trading on the intraday timeframe.
The script does the following:
1. Identifies the occurrence of a flag pole. This is based on a lookback period and percentage threshold decided by the user.
2. Marks the consolidation area after the pole occurrence using swing highs and swing lows.
3. Visually the above is represented by a shaded green area.
4. When a pole is detected, it is marked by a downward off-white triangle. Note that if the percentage threshold is reached several times on the same upward climb, the script will continue to identify points where the threshold for pole detection is met.
5. Also visualized are the 20, 50 and 200 period exponential moving averages. The area between the 20 and 50 EMAs are shaded to provide traders a visual of a possible support area.
ICT Index ScheduleNew ICT student here, decided to compile the daily schedule and salient levels for London and New York index sessions into one place to aid my learning – thought others might benefit from this too :)
The script works with whatever timezone setting, however make sure to change your timezone to New York time if you want to have the proper time-price alignment (I personally find it helpful when studying).
Here's a legend of all the elements displayed at once:
London only:
New York only:
// Couldn't find a comprehensive script with all the elements included, s/o to @the1dv for their Days of Week script.
Pre Market \ Opening Range High LowGreen vertical lines are showing pre market open and then the opening range as the first hour of market NYSE market open
Pre market high and low are blue lines | intraday opening range high low are in white
Trades are taken in the current direction above | below range breaks with the direction of price action using the moving averages
Price breaking through moving averages and a range is the optimal trade to enter - exit at next range for target - stop loss below the lower | higher moving average depending on short or long
A break above or below the intraday high or low and pre market high or low can give massive profits trailing your stop loss as price runs
Using MA 5 and 12 to filter out entries and exits above or below the ranges short or long is also another strategy to implement
BEST TIME FRAME TO USE IS 5 MINUTE
Equity Index Extended HoursHighlights the extended hours/Globex session for US Equity Index Futures.
Overnight Bollinger Band ExtremesThis script is a combination of my overnight fakeout script and bollinger band color bars. It's designed to be used on CME/CBOT Equity Indexes during their GLOBEX session. It uses the built in Bollinger Band script and highlights bars that exceed the upper/lower bands during the overnight session.
Equity Index Overnight FakeoutThis script highlights when price violates the highest high or lowest low within the user's selected lookback period, with the caveat that it occurs during the GLOBEX session. The script is designed to work exclusively with the trading hours for CME and CBOT Equity Index futures. I'm planning to make a more customizable version down the line.
My reasoning behind this very simple script is that the low liquidity and participation of the overnight session creates a tendency for moves at extremes to mean revert. Let me know what you think.