OPEN-SOURCE SCRIPT
EMA Crossover Cloud w/Range-Bound Filter

A focused 1-minute EMA crossover trading strategy designed to identify high-probability momentum trades while filtering out low-volatility consolidation periods that typically result in whipsaw losses. Features intelligent range-bound detection and progressive market attention alerts to help traders manage focus and avoid overtrading during unfavorable conditions.
Key Features:
EMA Crossover Signals: 10/20 EMA crossovers with volume surge confirmation (1.3x 20-bar average)
Range-Bound Filter: Automatically detects when price is consolidating in tight ranges (0.5% threshold) and blocks trading signals during these periods
Progressive Consolidation Stages: Visual alerts progress through Range Bound (red) → Coiling (yellow) → Loading (orange) → Trending (green) to indicate market compression and potential breakout timing
Market Attention Gauge: Helps manage focus between active trading and other activities with states: Active (watch close), Building (check frequently), Quiet (check occasionally), Dead (handle other business)
Smart RSI Exits: Cloud-based and RSI extreme level exits with conservative stop losses
Dual Mode Operation: Separate settings allow full backtesting performance while providing visual stay-out warnings for manual trading
How to Use:
Entry Signals: Trade aqua up-triangles (long) and orange down-triangles (short) when they appear with volume confirmation
Stay-Out Warnings: Ignore gray "RANGE" triangles - these indicate crossovers during range-bound periods that should be avoided
Monitor Top-Right Display:
Range: Current 60-bar dollar range
Attention: Market activity level for focus management
Status: Consolidation stage (trade green/yellow, avoid red, prepare for orange)
Position Sizing: Default 167 shares per signal, optimized for the crossover frequency
Alerts: Enable consolidation stage alerts and market attention alerts for automated notifications
Recommended Settings:
Timeframe: 1-minute charts
Symbol: Optimized for volatile stocks like TSLA
"Apply Filter to Backtest": Keep OFF for realistic backtesting, ON to see filtered results
Risk Management:
The strategy includes built-in overtrading protection by identifying and blocking trades during low-volatility periods. The progressive consolidation alerts help identify when markets are "loading" for significant moves, allowing traders to position appropriately for higher-probability setups.
Key Features:
EMA Crossover Signals: 10/20 EMA crossovers with volume surge confirmation (1.3x 20-bar average)
Range-Bound Filter: Automatically detects when price is consolidating in tight ranges (0.5% threshold) and blocks trading signals during these periods
Progressive Consolidation Stages: Visual alerts progress through Range Bound (red) → Coiling (yellow) → Loading (orange) → Trending (green) to indicate market compression and potential breakout timing
Market Attention Gauge: Helps manage focus between active trading and other activities with states: Active (watch close), Building (check frequently), Quiet (check occasionally), Dead (handle other business)
Smart RSI Exits: Cloud-based and RSI extreme level exits with conservative stop losses
Dual Mode Operation: Separate settings allow full backtesting performance while providing visual stay-out warnings for manual trading
How to Use:
Entry Signals: Trade aqua up-triangles (long) and orange down-triangles (short) when they appear with volume confirmation
Stay-Out Warnings: Ignore gray "RANGE" triangles - these indicate crossovers during range-bound periods that should be avoided
Monitor Top-Right Display:
Range: Current 60-bar dollar range
Attention: Market activity level for focus management
Status: Consolidation stage (trade green/yellow, avoid red, prepare for orange)
Position Sizing: Default 167 shares per signal, optimized for the crossover frequency
Alerts: Enable consolidation stage alerts and market attention alerts for automated notifications
Recommended Settings:
Timeframe: 1-minute charts
Symbol: Optimized for volatile stocks like TSLA
"Apply Filter to Backtest": Keep OFF for realistic backtesting, ON to see filtered results
Risk Management:
The strategy includes built-in overtrading protection by identifying and blocking trades during low-volatility periods. The progressive consolidation alerts help identify when markets are "loading" for significant moves, allowing traders to position appropriately for higher-probability setups.
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.
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.
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.