Vegas & DSLVegas & DSL is a trend identification indicator that combines a trend moving average structure with Dynamic State Logic (DSL). Based on the classic Vegas channel, it uses EMA13, EMA21, EMA144, and EMA169 to depict the short-to-medium-term and medium-to-long-term trend framework of the market. It also introduces high and low bands based on HMA (Hull Moving Average) to determine the strength or weakness of prices within a certain period.
The core of the indicator is the DSL state machine system: by detecting when the price continuously stays above the high or low band across several candlesticks, it generates a stable bullish or bearish state. When a bullish state is established, the system marks LP (low point support), representing sustained price strength; when a bearish state is established, it marks HP (high point resistance), reflecting the dominant downward trend. Because the states are "persistent," they do not frequently reverse due to short-term disturbances, making the trend signals smoother and more reliable.
Vegas Structure is responsible for depicting trend channels, while DSL is responsible for trend confirmation. The combination of the two can capture the start of a trend and filter out noise, making it a trend tracking and structure positioning tool suitable for both short-term and long-term trading.
Göstergeler ve stratejiler
Rate Of Change With HistogramCustomized standard ROC indicator to represent as Histogram instead of standard line
DWM HLOC, Mid & WicksSimple, yet effective.
1. Automatically calculate and projects key price levels from a previous period (Yesterday, OR Last Week / Month) onto the current trading session. It acts as an immediate Support & Resistance map based on historical price action.
2. Multi-Timeframe Logic
Modes --
Daily Mode: Projects yesterday's data onto today.
Weekly Mode: Projects last week's data onto the current week.
3. Key Levels Visualized The script calculates seven distinct price levels:
OHLC: Previous Open, High, Low, and Close.
Equilibrium (Mid): The exact 50% mark between the previous High and Low.
Wick Midpoints (New):
Upper Wick 50%: The midpoint between the High and the top of the body.
Lower Wick 50%: The midpoint between the Low and the bottom of the body.
4. Smart "Gap" Visualization The script uses unique starting points to help traders visualize market gaps:
Standard Levels (High, Low, Open, Mids): These lines originate from the Previous Period's Open, showing the full context of the level relative to time.
Close Level: This line originates from the Current Period's Open. This visually highlights the "Gap" (the jump in price between where the market closed previously and where it opened today).
5. Full Customization
Aesthetics: Every line can be individually toggled on/off.
Styling: Users can independently change the color, line style (Solid, Dotted, Dashed), and thickness for every specific level.
First Green/Red Day of Week (Break Prior Day)gives you the first red day or candle of the week that closes below the low of the previous day and the first green day or candle of the week that closes above the high of the previous day
Psychological levelsADVANCED PSYCHOLOGICAL LEVELS - PROFESSIONAL FOREX INDICATOR
This highly customizable indicator automatically identifies and visualizes all major psychological price levels across any Forex chart. Psychological levels represent critical price zones where traders naturally congregate their orders due to human psychology's attraction to round numbers. These levels consistently act as powerful support and resistance zones in the market.
🎯 KEY FEATURES:
✅ Four Distinct Level Types - Choose from 100-pip, 50-pip, 25-pip, and 10-pip psychological levels
✅ Individual Color Customization - Each level type has its own customizable zone and line colors
✅ Separate Zone Width Control - Adjust zone width independently for each level type
✅ Universal Forex Compatibility - Automatically adapts to JPY pairs and all other currency pairs
✅ Extended Coverage - Displays levels far beyond the visible chart area for comprehensive analysis
✅ Fixed Positioning - Levels remain stationary when scrolling or zooming
✅ Fully Customizable Styling - Choose between solid, dashed, or dotted line styles
📊 LEVEL TYPES EXPLAINED:
🔴 100-pip Levels (e.g., EUR/USD: 1.1000, 1.1100, 1.1200 | USD/JPY: 150.00, 151.00, 152.00)
The most significant psychological barriers in Forex trading
Major round numbers where institutional traders place large orders
Strongest support and resistance zones with highest reaction probability
Essential for swing trading and position trading strategies
Default color: Red (highest importance)
🟠 50-pip Levels (e.g., EUR/USD: 1.1050, 1.1150, 1.1250 | USD/JPY: 150.50, 151.50, 152.50)
Secondary psychological levels positioned midway between 100-pip levels
Important intermediate zones for profit-taking and order clustering
Highly effective for day trading strategies
Reliable targets for partial profit exits
Default color: Orange (medium-high importance)
🔵 25-pip Levels (e.g., EUR/USD: 1.1025, 1.1075, 1.1125 | USD/JPY: 150.25, 150.75, 151.25)
Quartile levels providing granular market structure
Perfect for scalping and short-term trading approaches
Excellent confluence zones with technical indicators
Ideal for tight stop-loss placement
Default color: Blue (medium importance)
🟢 10-pip Levels (e.g., EUR/USD: 1.1010, 1.1020, 1.1030 | USD/JPY: 150.10, 150.20, 150.30)
Most detailed psychological levels for precision trading
Optimal for micro scalping and high-frequency strategies
Provides fine-grained market structure analysis
Useful for optimizing entry and exit timing
Default color: Green (detailed analysis)
⚙️ CUSTOMIZATION OPTIONS:
Color Settings (Individual for Each Level):
Zone Color - Customize fill color with adjustable transparency
Line Color - Set center line color independently
Default color scheme uses traffic light logic (Red → Orange → Blue → Green)
Zone Width Settings (Separate for Each Level):
100-pip Levels: Default 10 pips (wider zones for major levels)
50-pip Levels: Default 7 pips (medium zones)
25-pip Levels: Default 5 pips (smaller zones)
10-pip Levels: Default 3 pips (narrowest zones for precision)
Display Settings:
Line Style: Choose between Solid, Dashed, or Dotted
Line Thickness: Adjustable from 1 to 5 pixels
Level Selection: Toggle each level type on/off independently
💡 TRADING APPLICATIONS:
📈 Support & Resistance Identification
Instantly recognize where price is likely to react
Identify key reversal zones before they occur
Combine with price action for high-probability setups
🎯 Optimal Entry & Exit Points
Enter trades at psychological support/resistance
Set realistic profit targets at the next psychological level
Improve win rate by trading with market psychology
🛡️ Strategic Stop-Loss Placement
Position stops just beyond psychological levels to avoid stop hunts
Reduce premature stop-outs by understanding where others place stops
Protect profits by moving stops to psychological levels
💰 Profit Target Optimization
Set take-profit orders at psychological levels where profit-taking occurs
Scale out positions at multiple psychological levels
Maximize gains by understanding where demand/supply shifts
📊 Breakout Trading
Identify when price decisively breaks through major psychological barriers
Trade momentum when psychological levels are breached
Confirm breakouts using multiple level types as confluence
⚖️ Risk Management Enhancement
Calculate better risk-reward ratios using psychological levels
Size positions based on distance to next psychological level
Improve overall trading consistency
🔬 WHY PSYCHOLOGICAL LEVELS WORK:
Psychological levels are self-fulfilling prophecies in financial markets. Because thousands of traders worldwide monitor the same round numbers, these levels naturally attract significant order flow:
Order Clustering: Pending buy/sell orders accumulate at round numbers
Profit Taking: Traders instinctively close positions at psychological levels
Stop Hunts: Market makers often push price to psychological levels to trigger stops
Institutional Activity: Banks and funds use round numbers for large order placement
Pattern Recognition: Human brains naturally gravitate toward simple, round numbers
📋 TECHNICAL SPECIFICATIONS:
✓ Pine Script Version 6 (latest)
✓ Compatible with all Forex pairs (majors, minors, exotics)
✓ Works on all timeframes (M1 to Monthly)
✓ Automatic JPY pair detection and adjustment
✓ Maximum 500 lines and 500 boxes for optimal performance
✓ Levels extend infinitely across the chart
✓ No repainting - levels are fixed once drawn
✓ Efficient calculation prevents performance issues
✓ Clean visualization without chart clutter
👥 IDEAL FOR:
Day Traders: Use 100-pip and 50-pip levels for intraday setups
Swing Traders: Focus on major 100-pip levels for multi-day positions
Scalpers: Enable 25-pip and 10-pip levels for precision entries
Position Traders: Use 100-pip levels for long-term support/resistance analysis
Beginner Traders: Learn to recognize important market structure easily
Algorithm Developers: Incorporate psychological levels into automated strategies
🚀 HOW TO USE:
Add the indicator to any Forex chart
Select which level types you want to display (100, 50, 25, 10)
Customize colors to match your chart theme
Adjust zone widths based on your trading style and timeframe
Choose line style (solid, dashed, or dotted)
Watch for price reactions at the highlighted psychological zones
Use the levels to plan entries, exits, and stop-loss placement
💎 BEST PRACTICES:
✓ Combine with candlestick patterns for confirmation signals
✓ Wait for price action confirmation before entering trades
✓ Use multiple timeframes to identify the most significant levels
✓ Disable 10-pip levels on higher timeframes to reduce visual noise
✓ Enable only 100-pip levels for clean, uncluttered analysis on Daily/Weekly charts
✓ Adjust zone widths based on pair volatility (wider for volatile pairs)
✓ Use color coding to instantly recognize level importance
⚡ PERFORMANCE OPTIMIZED:
This indicator is engineered for maximum efficiency:
Smart calculation only within visible price range
Duplicate prevention system avoids overlapping levels
Optimized loops with early break conditions
Extended coverage (500 bars) without performance degradation
Handles thousands of levels across all timeframes smoothly
🎨 VISUAL DESIGN:
The default color scheme follows intuitive importance levels:
Red (100-pip): Highest importance - major barriers
Orange (50-pip): Medium-high importance - secondary levels
Blue (25-pip): Medium importance - tertiary levels
Green (10-pip): Detailed analysis - precision levels
This traffic-light inspired system allows instant visual recognition of level significance.
📚 EDUCATIONAL VALUE:
Beyond being a trading tool, this indicator serves as an excellent educational resource for understanding market psychology and how professional traders think. It visually demonstrates where the "crowd" is likely to place orders, helping you develop better market intuition.
🔄 CONTINUOUS UPDATES:
This indicator displays levels dynamically based on the current price range, ensuring you always see relevant psychological levels no matter where price moves on the chart.
✨ WHAT MAKES THIS INDICATOR UNIQUE:
Unlike simple horizontal line indicators, this advanced tool offers:
Individual customization for each level type (colors, widths)
Automatic currency pair detection and adjustment
Visual zones (not just lines) for better support/resistance visualization
Extended coverage ensuring levels are always visible
Professional color-coding system for instant level importance recognition
Performance-optimized for handling hundreds of levels simultaneously
⭐ PERFECT FOR ALL TRADING STYLES:
Whether you're a conservative position trader looking at weekly charts or an aggressive scalper on 1-minute timeframes, this indicator adapts to your needs. Simply enable the appropriate level types and adjust the visualization to match your strategy.
Ehlers Dominant Cycle Stochastic RSIEhlers Enhanced Cycle Stochastic RSI
OVERVIEW
The Ehlers Enhanced Cycle Stochastic RSI is a momentum oscillator that automatically adjusts its lookback periods based on the dominant market cycle. Unlike traditional Stochastic RSI which uses fixed periods, this indicator detects the current cycle length and scales its calculations—making it responsive in fast markets and stable in slow ones.
The indicator combines John Ehlers' digital signal processing research with the classic Stochastic RSI indicator, then adds a confirmation system to ensure cycle measurements are reliable.
THE THEORY
Traditional oscillators use fixed lookback periods (ie, 14-bar RSI). This creates a fundamental problem: markets don't move in fixed cycles. A 14-period RSI might capture the rhythm perfectly during one market phase, then completely miss it when conditions change.
Ehlers' research demonstrated that price data contains measurable cyclical components. If you can detect the dominant cycle length, you can tune your indicators to match it—like tuning a radio to the right frequency.
This indicator takes that concept further by using three independent cycle detection methods and only trusting the measurement when they agree:
Hilbert Transform — A mathematical technique from signal processing that extracts cycle period from the phase relationship between price and its derivative. It is fast but can be noisy.
Autocorrelation Periodogram — Measures how similar the price series is to lagged versions of itself. The lag with highest correlation reveals the dominant cycle. More stable than Hilbert, but slightly slower to adapt.
Goertzel Algorithm (DFT) — A frequency-domain approach that calculates spectral power at each candidate period. Identifies which frequencies contain the most energy.
When all three methods converge on similar period estimates, confidence is high. When they disagree, the market may be in a non-cyclical or in transition.
HOW IT CHANGES THE STOCHASTIC RSI
Standard Stochastic RSI:
1. Calculate RSI with fixed period (14 bars)
2. Apply Stochastic formula over fixed period (14 bars)
3. Smooth with fixed periods
Ehlers Enhanced Cycle Stochastic RSI:
1. Detect dominant cycle using three methods
2. Confirm cycle measurement (methods must agree)
3. Calculate RSI with period scaled to the detected cycle
4. Apply Stochastic formula with cycle-scaled lookback
5. Smooth adaptively
The result: when the market is cycling quickly (say, 15-bar cycles), the indicator uses shorter periods and responds faster. When the market stretches into longer cycles (such as 40-bar cycles), it automatically extends its lookback to avoid whipsaws.
The Period Multipliers let you fine-tune this relationship:
• 1.0 = Use the full detected cycle (smoother, fewer signals)
• 0.5 = Use half the cycle (more responsive, catches turns earlier)
INTERPRETATION
Reading the Oscillator:
• K Line (Blue) — The main signal line. Moves between 0 and 100.
• D Line (Orange) — Smoothed version of K. Use for confirmation.
• Above 80 — Overbought. Momentum stretched to upside.
• Below 20 — Oversold. Momentum stretched to downside.
• Crossovers — K crossing above D suggests bullish momentum shift; K crossing below D suggests bearish.
Spectral Dilation (optional):
When enabled, applies a bandpass filter before cycle detection. This isolates the frequency band of interest and reduces noise. Useful for:
• Very noisy instruments
• Lower timeframes
• When confidence stays persistently low
Gold AI RSI Monitor [Stacked + KNN]Here is a comprehensive description and user guide for the Gold AI RSI Monitor. You can copy and paste this into the "Description" field if you publish the script on TradingView, or save it for your own reference.
Gold AI RSI Monitor
🚀 Overview
The Gold AI RSI Monitor is a next-generation dashboard designed specifically for trading volatile assets like Gold (XAUUSD). It completely reimagines the traditional RSI by "stacking" 10 different timeframes (from 1-minute to Monthly) into a single, vertical view.
Integrated into this dashboard is a K-Nearest Neighbors (KNN) Machine Learning algorithm. This AI analyzes historical price action to find patterns similar to the current market and predicts the next likely move with a confidence score.
📊 Visual Guide: How to Read the Chart
1. The "Stacked" Lanes Instead of switching timeframes constantly, this indicator displays them all at once using vertical offsets.
Bottom Lane (0-100): 1-Minute RSI
Middle Lanes: 5m, 15m, 30m, 1H, 2H, 4H, Daily
Top Lane (900-1000): Monthly RSI
2. Gradient Color System The RSI lines change color based on momentum strength:
🔴 Red: Oversold / Bearish (Approaching 30 or lower)
🟡 Yellow: Neutral (Around 50)
🟢 Green: Overbought / Bullish (Approaching 70 or higher)
3. Tracker Lines Each timeframe has a dotted horizontal line extending to the right. This allows you to instantly see the exact RSI value for every timeframe without squinting.
🤖 The AI Engine (KNN)
The "AI" component uses a K-Nearest Neighbors algorithm.
Learning: It scans the last 1,000 bars of history.
Matching: It finds the 5 historical moments that look mathematically identical to the current market conditions (based on RSI and Volatility).
Predicting: It checks if price went UP or DOWN after those historical matches.
The Signals:
Buying Signal: If the majority of historical matches resulted in a price increase, the AI triggers a BUY.
Selling Signal: If the majority resulted in a drop, the AI triggers a SELL.
🎯 How to Trade with This Indicator
1. The "Crosshair" Signal
When the AI detects a high-probability setup, a massive Crosshair appears on your chart:
Green Crosshair: Strong BUY signal.
Red Crosshair: Strong SELL signal.
Note: The crosshair consists of a thick vertical line and a dashed horizontal line intersecting at the signal candle.
2. Timeframe Alignment (Confluence)
Do not rely on the AI alone. Look at the stacked RSIs:
Strong Long: The AI shows a Green Crosshair AND the lower timeframes (1m, 5m, 15m) are all turning Green/upward.
Strong Short: The AI shows a Red Crosshair AND the lower timeframes are turning Red/downward.
3. Support & Resistance Zones
Bottom Dotted Line (30): Support. If RSI hits this and turns up, it's a buying opportunity.
Top Dotted Line (70): Resistance. If RSI hits this and turns down, it's a selling opportunity.
⚙️ Settings Guide
RSI Length: Default is 14. Lower (e.g., 7) makes it faster/choppier; higher (e.g., 21) makes it smoother.
Enable AI Signals: Toggles the KNN calculation on/off.
Neighbors (K): How many historical matches to check. Default is 5.
Increase to 9-10 for fewer, more conservative signals.
Decrease to 3 for faster, more aggressive signals.
AI Timeframe: CRITICAL SETTING.
If left empty, the AI calculates based on your current chart.
Recommendation: For Gold scalping, set this to 15m or 1h. This ensures the AI looks at the bigger trend even if you are zooming in on the 1-minute chart.
⚠️ Disclaimer
This tool is for educational and analytical purposes. The "AI" is a statistical probability algorithm based on past performance, which is not indicative of future results. Always manage your risk.
Institutional Moving Averages (50/100/200)A streamlined Moving Average suite designed for institutional-style trend analysis. This indicator plots the three most critical trend baselines used by traders and funds:
50 MA (Blue): Short-term trend and momentum.
100 MA (Orange): Medium-term support/resistance.
200 MA (Purple): Long-term trend definition (Bull/Bear line).
Features:
Fully Customizable: Switch between SMA, EMA, WMA, RMA, or HMA.
Clean Visuals: Optimized colors for dark and light themes.
Native Performance: Uses standard TradingView plotting for maximum speed and compatibility with the "Style" tab visibility settings.
Slow Stochastic 3-Minute Signalsdisplay B for buy signal, s for sell signal for slow stochastic 3 minute time frame
MA Groups with ShiftsThis indicator plots up to five groups of moving averages of user-selectable types. Each group consists of a base moving average and its 5- and 10-period shifted values.
The purpose of this indicator is to gauge the strength of the trend.
new alertable spacemanhope these alerts work. open to fixes
slight modification to Key Levels SpacemanBTC IDWM script
credit: spacemanbtc
S&P 500 Scalper Pro [Trend + MACD] 5 minfor scalping 5 min S&P on 5 min chart put SL on 20 min ma and take 2:1 risk
Rakesh's Ultimate Trading SystemKey Features:
1. Multi-Confirmation System
5 total signals working together:
MTF Supertrend (Monthly + Weekly + Daily alignment)
Ichimoku Cloud (Price vs Cloud + Tenkan/Kijun cross)
Gann HiLo Activator (Trend direction)
Darvas Box (Breakout/Breakdown)
Current timeframe Supertrend
2. Smart Signal Generation
You set minimum confirmations (1-5) needed for a signal
STRONG BUY = When X out of 5 indicators confirm bullish
STRONG SELL = When X out of 5 indicators confirm bearish
Shows confirmation count on each signal label (e.g., "4/5")
3. Comprehensive Dashboard
Shows real-time status of:
✓ Each indicator's current signal
✓ Overall market direction
✓ Bullish vs Bearish confirmation count
✓ Color-coded for quick decision making
4. All Indicators Plotted
Ichimoku Cloud - Green/Red cloud with Tenkan/Kijun lines
Gann HiLo - Dynamic support/resistance line
Darvas Box - Top and bottom box levels
Background colors - Show breakouts and overall trend
5. Built-in Alerts
Automatic alerts when strong buy/sell signals trigger
Shows how many confirmations fired
How to Use:
Conservative Trading (Recommended):
Set "Minimum Confirmations" to 4 or 5
Only trade when almost all indicators align
Fewer signals but higher probability
Moderate Trading:
Set to 3 confirmations
Balanced approach - good signals, not too rare
Aggressive Trading:
Set to 2 confirmations
More signals but require your own filtering
Customization Options:
All indicators can be toggled on/off:
Show/hide individual Supertrend timeframes
Show/hide Ichimoku Cloud
Show/hide Gann HiLo
Show/hide Darvas Box
Show/hide Dashboard
Adjustable parameters for each indicator:
Supertrend: ATR period, Factor
Ichimoku: Tenkan, Kijun, Senkou periods
Gann: HiLo period
Darvas: Box length
Trading Strategy Examples:
1. Ultra-Safe Entry:
Wait for 5/5 confirmations
Enter on next candle
Use Gann line as stop-loss
2. Breakout Trading:
Watch for Darvas Box breakout
Confirm with 3+ other indicators
Ride the trend
3. Trend Following:
MTF Supertrend shows main trend
Use Ichimoku cloud for support/resistance
Enter on Gann/Darvas confirmations
This is a professional-grade system, Rakesh! It filters out false signals by requiring multiple confirmations. Much more refined than single-indicator systems! 🚀
Want me to adjust anything or add more features?Ris this also for tradingviewYes, absolutely! This is 100% for TradingView, just like the first one!
How to Add This to TradingView:
Same steps as before:
Copy the code from the artifact above
Go to TradingView.com
Open Pine Editor (bottom of chart)
Click "Open" → "New blank indicator"
Paste the code
Click "Save" and name it (e.g., "Advanced MTF System")
Click "Add to Chart"
What You'll See on Your Chart:
✅ Ichimoku Cloud - Green/Red cloud visualization
✅ Gann HiLo Line - Green when bullish, Red when bearish
✅ Darvas Box - Box top and bottom levels
✅ Buy/Sell Labels - "STRONG BUY 4/5" or "STRONG SELL 3/5"
✅ Dashboard Table - Top right corner showing all indicator statuses
✅ Background colors - Subtle green/red when strong signals appear
It Works With:
✅ Stocks (NSE, BSE, US markets)
✅ Forex
✅ Crypto
✅ Commodities
✅ Indices (Nifty, Bank Nifty, etc.)
Settings Panel:
When you add it to chart, click the ⚙️ settings icon to customize:
Toggle indicators on/off
Adjust minimum confirmations (2, 3, 4, or 5)
Fine-tune each indicator's parameters
channel no warnings - Indicators w/EMA CloudEMA cloud showing up and down trend for any stock and any time interval
Grok/Claude Turtle Soup Alert SystemReplaces previous Turtle Soup Strategy/Indicator as Tradingview will not let me update it.
# 🥣 Turtle Soup Strategy (Enhanced)
## A Mean-Reversion Strategy Based on Failed Breakouts
---
## Historical Origins
### The Original Turtle Traders (1983-1988)
The Turtle Trading system is one of the most famous experiments in trading history. In 1983, legendary commodities trader **Richard Dennis** made a bet with his partner **William Eckhardt** about whether great traders were born or made. Dennis believed trading could be taught; Eckhardt believed it was innate.
To settle the debate, Dennis recruited 23 ordinary people through newspaper ads—including a professional blackjack player, a fantasy game designer, and an accountant—and taught them his trading system in just two weeks. He called them "Turtles" after turtle farms he had visited in Singapore, saying *"We are going to grow traders just like they grow turtles in Singapore."*
The results were extraordinary. Over the next five years, the Turtles reportedly earned over **$175 million in profits**. The experiment proved Dennis right: trading could indeed be taught.
#### The Original Turtle Rules:
- **Entry:** Buy when price breaks above the 20-day high (System 1) or 55-day high (System 2)
- **Exit:** Sell when price breaks below the 10-day low (System 1) or 20-day low (System 2)
- **Stop Loss:** 2x ATR (Average True Range) from entry
- **Position Sizing:** Based on volatility (ATR)
- **Philosophy:** Pure trend-following—catch big moves by riding breakouts
The Turtle system was a **trend-following** strategy that assumed breakouts would lead to sustained trends. It worked brilliantly in trending markets but suffered during choppy, range-bound conditions.
---
### The Turtle Soup Strategy (1990s)
In the 1990s, renowned trader **Linda Bradford Raschke** (along with Larry Connors) observed something interesting: many of the breakouts that the Turtle system traded actually *failed*. Price would spike above the 20-day high, trigger Turtle buy orders, then immediately reverse—trapping the breakout traders.
Raschke realized these failed breakouts were predictable and tradeable. She developed the **Turtle Soup** strategy, which does the *exact opposite* of the original Turtle system:
> *"Instead of buying the breakout, we wait for it to fail—then fade it."*
The name "Turtle Soup" is a clever play on words: the strategy essentially "eats" the Turtles by trading against them when their breakouts fail.
#### Original Turtle Soup Rules:
- **Setup:** Price makes a new 20-day high (or low)
- **Qualifier:** The previous 20-day high must be at least 3-4 days old (not a fresh breakout)
- **Entry Trigger:** Price reverses back inside the channel (failed breakout)
- **Entry:** Go SHORT (against the failed breakout above), or LONG (against the failed breakdown below)
- **Philosophy:** Mean-reversion—fade false breakouts and profit from trapped traders
#### Turtle Soup Plus One Variant:
Raschke also developed a more conservative variant called "Turtle Soup Plus One" which waits for the *next bar* after the breakout to confirm the failure before entering. This reduces false signals but may miss some opportunities.
---
## Our Enhanced Turtle Soup Strategy
We have taken the classic Turtle Soup concept and enhanced it with modern technical indicators and filters to improve signal quality and adapt to today's markets.
### Core Logic Preserved
The fundamental strategy remains true to Raschke's original concept:
| Turtle (Original) | Turtle Soup (Our Strategy) |
|-------------------|---------------------------|
| BUY breakout above 20-day high | SHORT when that breakout FAILS |
| SELL breakout below 20-day low | LONG when that breakdown FAILS |
| Trend-following | Mean-reversion |
| "The trend is your friend" | "Failed breakouts trap traders" |
---
### Enhancements & Improvements
#### 1. RSI Exhaustion Filter
**Addition:** RSI must confirm exhaustion before entry
- **For SHORT entries:** RSI > 60 (buyers exhausted)
- **For LONG entries:** RSI < 40 (sellers exhausted)
**Why:** The original Turtle Soup had no momentum filter. Adding RSI ensures we only fade breakouts when the market is showing signs of exhaustion, significantly reducing false signals. This enhancement was inspired by later traders who found RSI extremes (originally 90/10, softened to 60/40) dramatically improved win rates.
#### 2. ADX Trending Filter
**Addition:** ADX must be > 20 for trades to execute
**Why:** While the original Turtle Soup was designed for ranging markets, we found that requiring *some* trend strength (ADX > 20) actually improves results. This ensures we're trading in markets with enough directional movement to create meaningful failed breakouts, rather than random noise in dead markets.
#### 3. Heikin Ashi Smoothing
**Addition:** Optional Heikin Ashi calculations for breakout detection
**Why:** Heikin Ashi candles smooth out price noise and make trend reversals more visible. When enabled, the strategy uses HA values to detect breakouts and failures, reducing whipsaws from erratic price spikes.
#### 4. Dynamic Donchian Channels with Regime Detection
**Addition:** Color-coded channels based on market regime
- 🟢 **Green:** Bullish regime (uptrend + DI+ > DI- + OBV bullish)
- 🔴 **Red:** Bearish regime (downtrend + DI- > DI+ + OBV bearish)
- 🟡 **Yellow:** Neutral regime
**Why:** Visual regime detection helps traders understand the broader market context. The original Turtle Soup had no regime awareness—our enhancement lets traders see at a glance whether conditions favor the strategy.
#### 5. Volume Spike Detection (Optional)
**Addition:** Optional filter requiring volume surge on the breakout bar
**Why:** Failed breakouts are more significant when they occur on high volume. A volume spike on the breakout bar (default 1.2x average) indicates more traders got trapped, creating stronger reversal potential.
#### 6. ATR-Based Stops and Targets
**Addition:** Configurable ATR-based stop losses and profit targets
- **Stop Loss:** 1.5x ATR (default)
- **Profit Target:** 2.0x ATR (default)
**Why:** The original Turtle Soup used fixed stop placement. ATR-based stops adapt to current volatility, providing tighter stops in calm markets and wider stops in volatile conditions.
#### 7. Signal Cooldown
**Addition:** Minimum bars between trades (default 5)
**Why:** Prevents overtrading during choppy conditions where multiple failed breakouts might occur in quick succession.
#### 8. Real-Time Info Panel
**Addition:** Comprehensive dashboard showing:
- Current regime (Bullish/Bearish/Neutral)
- RSI value and zone
- ADX value and trending status
- Breakout status
- Bars since last high/low
- Current setup status
- Position status
**Why:** Gives traders instant visibility into all strategy conditions without needing to check multiple indicators.
---
## Entry Rules Summary
### SHORT Entry (Fading Failed Breakout Above)
1. ✅ Price breaks ABOVE the 20-period Donchian high
2. ✅ Previous 20-period high was at least 1 bar ago
3. ✅ Price closes back BELOW the Donchian high (failed breakout)
4. ✅ RSI > 60 (exhausted buyers)
5. ✅ ADX > 20 (trending market)
6. ✅ Cooldown period met
→ **Enter SHORT**, betting the breakout will fail
### LONG Entry (Fading Failed Breakdown Below)
1. ✅ Price breaks BELOW the 20-period Donchian low
2. ✅ Previous 20-period low was at least 1 bar ago
3. ✅ Price closes back ABOVE the Donchian low (failed breakdown)
4. ✅ RSI < 40 (exhausted sellers)
5. ✅ ADX > 20 (trending market)
6. ✅ Cooldown period met
→ **Enter LONG**, betting the breakdown will fail
---
## Exit Rules
1. **ATR Stop Loss:** Position closed if price moves 1.5x ATR against entry
2. **ATR Profit Target:** Position closed if price moves 2.0x ATR in favor
3. **Channel Exit:** Position closed if price breaks the exit channel in the opposite direction
4. **Mid-Channel Exit:** Position closed if price returns to channel midpoint
---
## Best Market Conditions
The Turtle Soup strategy performs best when:
- ✅ Markets are prone to false breakouts
- ✅ Volatility is moderate (not too low, not extreme)
- ✅ Price is oscillating within a broader range
- ✅ There are clear support/resistance levels
The strategy may struggle when:
- ❌ Strong trends persist (breakouts follow through)
- ❌ Volatility is extremely low (no meaningful breakouts)
- ❌ Markets are in news-driven directional moves
---
## Default Settings
| Parameter | Default | Description |
|-----------|---------|-------------|
| Lookback Period | 20 | Donchian channel period |
| Min Bars Since Extreme | 1 | Bars since last high/low |
| RSI Length | 14 | RSI calculation period |
| RSI Short Level | 60 | RSI must be above this for shorts |
| RSI Long Level | 40 | RSI must be below this for longs |
| ADX Length | 14 | ADX calculation period |
| ADX Threshold | 20 | Minimum ADX for trades |
| ATR Period | 20 | ATR calculation period |
| ATR Stop Multiplier | 1.5 | Stop loss distance in ATR |
| ATR Target Multiplier | 2.0 | Profit target distance in ATR |
| Cooldown Period | 5 | Minimum bars between trades |
| Volume Multiplier | 1.2 | Volume spike threshold |
---
## Philosophy
> *"The Turtle system made millions by following breakouts. The Turtle Soup strategy makes money when those breakouts fail. In trading, there's always someone on the other side of the trade—this strategy profits by being the smart money that fades the trapped breakout traders."*
The beauty of the Turtle Soup strategy is its elegant simplicity: it exploits a known, repeatable pattern (failed breakouts) while using modern filters (RSI, ADX) to improve timing and reduce false signals.
---
## Credits
- **Original Turtle System:** Richard Dennis & William Eckhardt (1983)
- **Turtle Soup Strategy:** Linda Bradford Raschke & Larry Connors (1990s)
- **RSI Enhancement:** Various traders who discovered RSI extremes improve reversal detection
- **This Implementation:** Enhanced with Heikin Ashi smoothing, regime detection, ADX filtering, and comprehensive visualization
---
*"We're not following the turtles—we're making soup out of them."* 🥣
Weekly Open + Monday High/Low (After Monday Close)b]Description
This indicator marks key weekly reference levels based on Monday’s price behavior.
It automatically detects each trading week and tracks:
• Weekly Open – the first traded price of the new week
• Monday High – the highest price reached on Monday
• Monday Low – the lowest price reached on Monday
Logic
The Monday range is fully captured only after Monday has closed .
No levels are plotted during Monday.
Starting from Tuesday, the indicator displays thin dots showing the completed Monday High, Monday Low, and Weekly Open for the remainder of the week.
When a new week begins, the indicator resets automatically and begins tracking the new week’s Monday.
Customization
The user can choose colors for:
• Monday High/Low
• Weekly Open
Purpose
This indicator helps traders visualize weekly structure, monitor weekly opening levels, and quickly identify Monday’s range for weekly bias analysis or strategy development.
It can also be used to manually backtest Monday range strategies .
Simple GapsSimple gaps indicator that shows gap downs or gap up.
It contains two filter
atr filter
To filter out small gaps from bigger gaps.
This is an extra option and is best left false.
Session filter
To remove gaps from lower time frames (outside of regular hours).
6/20 EMA Crossover MarksPuts a green arrow or red arrow at the bottom of the chart when the 6 period EMA crosses above (or below) the 20 period EMA.
In settings you can move the arrow marks to be at the bar etc.
This is a simplified way to see moving average convergence/divergence crossovers.






















