Viprasol Elite Advanced Pattern Scanner# 🚀 Viprasol Elite Advanced Pattern Scanner
## Overview
The **Viprasol Elite Advanced Pattern Scanner** is a sophisticated technical analysis tool designed to identify high-probability double bottom (DISCOUNT) and double top (PREMIUM) patterns with unprecedented accuracy. Unlike basic pattern detectors, this elite scanner employs an AI-powered quality scoring system to filter out false signals and highlight only the most reliable trading opportunities.
## 🎯 Key Features
### Advanced Pattern Detection
- **DISCOUNT Patterns** (Double Bottoms): Identifies bullish reversal zones where price may bounce
- **PREMIUM Patterns** (Double Tops): Detects bearish reversal zones where price may decline
- Multi-point validation system (5-point structure)
- Symmetry analysis with customizable tolerance
### 🤖 AI Quality Scoring System
Each pattern receives a quality score (0-100) based on:
- **Symmetry Analysis** (32% weight): How closely the two bottoms/tops match
- **Trend Context** (22% weight): Strength of the preceding trend using ADX
- **Volume Profile** (22% weight): Volume confirmation at key points
- **Pattern Depth** (16% weight): Significance of the pattern's price range
- **Structure Quality** (16% weight): Overall pattern formation quality
Quality Grades:
- ⭐ **ELITE** (88-100): Highest probability setups
- ✨ **VERY STRONG** (77-87): Strong trade opportunities
- ✓ **STRONG** (67-76): Valid patterns with good potential
- ○ **VALID** (65-66): Acceptable patterns meeting minimum criteria
### 🎯 Intelligent Target System
Three target modes per pattern direction:
- **Conservative**: 0.618 Fibonacci extension (safer, closer targets)
- **Balanced**: 1.0 extension (moderate risk/reward)
- **Aggressive**: 1.618 extension (higher risk/reward)
Targets automatically adjust based on pattern quality score.
### 🔧 Advanced Filtering Options
- **Volatility Filter (ATR)**: Excludes patterns during extreme volatility
- **Momentum Filter (ADX)**: Ensures sufficient trend strength
- **Liquidity Filter (Volume)**: Confirms adequate trading volume
### 📊 Pattern Lifecycle Management
- Real-time neckline tracking with extension multiplier
- Pattern invalidation after extended wait period
- Breakout/breakdown confirmation
- Reversal detection (pattern failure scenarios)
- Target achievement tracking
### 🌈 Premium Visual System
- Color-coded quality levels
- Cyber-themed color scheme (Neon Green/Hot Pink/Purple/Cyan)
- Transparent fills for pattern zones
- Dynamic labels with pattern information
- Elite dashboard showing live pattern stats
## 📈 How To Use
### Basic Setup
1. Add indicator to your chart
2. Enable desired patterns (DISCOUNT and/or PREMIUM)
3. Adjust quality threshold (default: 65) - higher = fewer but better signals
4. Set your preferred target mode
### Trading DISCOUNT Patterns (Bullish)
1. Wait for pattern detection (labeled points 1-4)
2. Check quality score on dashboard
3. Entry on breakout above neckline (point 5)
4. Stop loss below the lowest bottom
5. Target shown automatically based on your mode
6. ⚠️ Watch for pattern failure (break below bottoms = SHORT signal)
### Trading PREMIUM Patterns (Bearish)
1. Wait for pattern detection (labeled points 1-4)
2. Check quality score on dashboard
3. Entry on breakdown below neckline (point 5)
4. Stop loss above the highest top
5. Target shown automatically based on your mode
6. ⚠️ Watch for pattern failure (break above tops = LONG signal)
## ⚙️ Input Settings Guide
### 🔍 Detection Engine
- **Left/Right Pivots**: Higher = fewer but cleaner patterns (default: 6/4)
- **Min Pattern Width**: Minimum bars between bottoms/tops (default: 12)
- **Symmetry Tolerance**: Max % difference allowed between levels (default: 1.8%)
- **Extension Multiplier**: How long to wait for breakout (default: 2.2x pattern width)
### ⭐ Quality AI
- **Min Quality Score**: Only show patterns above this score (default: 65)
- **Weight Distribution**: Customize what matters most (symmetry/trend/volume/depth/structure)
### 🔧 Filters
- **Volatility Filter**: Avoid choppy markets (recommended: ON)
- **Momentum Filter**: Ensure trend strength (recommended: ON)
- **Liquidity Filter**: Volume confirmation (recommended: ON)
### 💎 Target System
- Choose target aggression for each pattern type and direction
- Higher quality patterns get adjusted targets automatically
## 🎨 Visual Customization
- Adjust colors for DISCOUNT/PREMIUM patterns
- Set quality-based color coding
- Customize label sizes
- Toggle dashboard visibility and position
- Show/hide historical patterns
## 🚨 Alert System
Set up TradingView alerts for:
- 🚀 **LONG Signals**: DISCOUNT breakout, PREMIUM failure
- 📉 **SHORT Signals**: PREMIUM breakdown, DISCOUNT failure
- ✅ **Target Achievement**: When price hits your target
## 💡 Pro Tips
1. **Higher Timeframes = Better Signals**: Patterns on 4H, Daily, Weekly are more reliable
2. **Quality Over Quantity**: Focus on ELITE and VERY STRONG grades
3. **Combine with Trend**: DISCOUNT in uptrend, PREMIUM in downtrend = best results
4. **Watch Pattern Failures**: Failed patterns often provide strong counter-trend signals
5. **Adjust for Your Style**: Intraday traders use Conservative, swing traders use Aggressive
## 🔒 Pattern Invalidation
Patterns become invalid if:
- No breakout/breakdown within extension period
- Support/resistance levels are broken prematurely
- Pattern shown in faded colors = no longer active
## ⚠️ Risk Disclaimer
This indicator is a tool for technical analysis and does not guarantee profitable trades. Always:
- Use proper risk management
- Combine with other analysis methods
- Never risk more than you can afford to lose
- Past performance does not indicate future results
การวิเคราะห์แนวโน้ม
Harmonic Sniper Trigger [Fisher] - PyraTime**Concept: Precision Momentum**
The Harmonic Sniper Trigger is a custom-tuned implementation of the Fisher Transform, designed specifically to identify sharp market reversals with zero lag. Unlike standard moving averages that react slowly to price changes, the Fisher Transform uses Gaussian probability to convert price into a normal distribution, creating clear, sharp turning points.
This indicator serves as the *Trigger* component of the PyraTime system. While Time Cycles tell you *when* to look, this indicator tells you *what* to do.
Key Features
Visual Signal Markers : Prints clear "B" (Buy) and "S" (Sell) labels on the oscillator pane for instant recognition.
Trend Fills : Dynamic Green/Red shading between the signal lines makes it easy to identify trend direction at a glance.
Integrated Alerts: Fully compatible with TradingView alerts, allowing you to be notified the second momentum flips.
How to Use This Indicator
This tool is designed to filter out noise and identify the exact moment a trend reverses.
1. Wait for the Setup: Do not trade every signal. This indicator is most powerful when price is approaching a key support/resistance level or a specific Time Pivot.
2. The Trigger: When the Fisher line crosses the Signal line (changing from Red to Green or vice versa), it confirms that momentum has mathematically shifted.
3. The Execution: Use this crossover as your entry signal *only* if it aligns with your broader market thesis.
Best Practice:
Use this in conjunction with a Time-Cycle indicator (such as the GPM Architecture).
Scenario: Price hits a Vertical Time Line.
Action: Wait for this Fisher indicator to print a "B" or "S".
Result: You enter exactly at the pivot, minimizing drawdown.
Disclaimer: This tool is for technical analysis purposes only. Past performance does not guarantee future results.
Zig Zag & Trendlines with Dynamic Threshold ATRPercentage Zig Zag with Dynamic Threshold
This Pine Script indicator is an advanced Zig Zag tool that identifies and tracks price pivots based on a percentage move required for reversal, offering a clear visual representation of volatility-adjusted trends.
Core Functionality (The Reversal Threshold):
Unlike standard Zig Zag indicators that use a fixed price difference, this indicator calculates the required reversal size (%X) dynamically using the Average True Range (ATR).
It calculates the ATR as a percentage of the current price (ATR%).
The final threshold is this ATR% multiplied by a user-defined factor (default 3x).
This means the reversal threshold is wider during volatile periods and narrower during quiet periods, adapting automatically to market conditions. Users can optionally revert to a fixed percentage if desired.
Trend Extension Lines:
The indicator draws two unique, dynamic trend lines connecting the last two significant Highs and the last two significant Lows. Crucially, these lines do not wait for the entire Zig Zag leg to confirm:
If the price is actively forming a new up-leg, the High Extension Line connects the last confirmed High to the current extreme high of the active move.
The Low Extension Line functions similarly for the downtrend.
This feature allows the user to visualize dynamic support and resistance levels based on the current, active trend structure defined by the percentage threshold.
Order Blocks V5 by GaryIn financial markets, Order Blocks are a powerful Price Action concept representing large-scale buying/selling by institutional investors or major capital at specific price ranges. They often signal potential reversals or trend continuations. However, standard Order Block definitions are often overly broad, generating excessive noise in real-market conditions and leading to misjudgments.
Order Blocks V5 was developed to address this pain point. It integrates complementary technical tools and flexible analysis logic to help you screen high-quality, reliable trading opportunities.
Core Features & Functions:
1. Dual Structure Detection
Swing Order Blocks: Identifies large-scale Order Blocks formed on the primary trend structure based on your custom Swing Length (e.g., 50 bars). These blocks typically indicate significant market turning points.
Internal Order Blocks: Detects smaller-scale Order Blocks within trends using a shorter Internal Structure Length (e.g., 5 bars). This helps capture short-term pullback and reversal opportunities.
2. Complementary Technical Tools for Filtering
Built-in Bollinger Bands (For Reference): The indicator displays Bollinger Bands (customizable length and standard deviation) directly on the chart. While it doesn’t include automatic Bollinger Bands filtering logic, you can use this tool to assess market volatility and overbought/oversold conditions manually. For example, prioritize Internal Order Block signals when price touches or nears the upper/lower bands—adding a discretionary filter to reduce false signals.
Moving Averages for Trend Context: Integrated with 5-period, 10-period, 20-period, 40-period, and 60-period EMAs. Use these to judge the current trend direction:
Focus on bullish Order Block signals when EMAs are in a bullish alignment (uptrend).
Focus on bearish Order Block signals when EMAs are in a bearish alignment (downtrend).
This helps you trade with the trend and filter low-quality counter-trend signals.
3. "Touch & Reversal" Signals
The indicator not only marks Order Blocks but also intelligently monitors price interactions with them. A price retest of an Order Block is inherently noteworthy.
More importantly, when price touches an Order Block and then:
Breaks above the high of the touch bar (for bullish Order Blocks), or
Breaks below the low of the touch bar (for bearish Order Blocks),
The indicator instantly generates prominent labels like B-SOB (Buy - Swing Order Block) or S-IOB (Sell - Internal Order Block) on the chart—signaling a potential reversal confirmed by market action.
4. Highly Customizable
Tailor the indicator to your trading style and instruments with adjustable parameters:
Display colors and transparency for both Order Block types.
Detection lengths for swing and internal structures.
Option to remove Order Block boxes after price breaks.
Sensitivity of Touch & Reversal signals (e.g., max signals per block, minimum bars between touches).
Toggle visibility of Bollinger Bands and individual EMAs.
How to Use Order Blocks V5 to Enhance Your Trading?
1. Identify Trend Direction: Use the built-in EMA system (e.g., 20/40/60 EMA alignment) to determine if the market is in an uptrend, downtrend, or consolidation.
2. Locate Key Zones: Focus on green (bullish) and red (bearish) Order Block boxes automatically drawn on the chart—these are potential support/resistance areas.
3. Apply Discretionary Filtering:
Use Bollinger Bands to gauge volatility: Avoid signals in narrow-range (low-volatility) markets; prioritize signals when price approaches extreme bands.
Combine with trend direction from EMAs to filter 逆势 (counter-trend) signals.
4. Wait for Confirmation:
Conservative Strategy: Enter trades only after price retests an Order Block and triggers a Touch & Reversal signal (e.g., B-... or S-... labels).
Aggressive Strategy: Monitor price when it first touches an Order Block, combining with indicators like RSI or MACD to identify potential entry points.
5. Risk Management: Place stop-loss orders outside the Order Block box to filter false breaks.
Risk Disclaimer: No indicator guarantees 100% win rate. Use this tool as part of your trading system, combine it with other analysis methods, and strictly follow risk management rules.
Download, test it out, and share your feedback in the comments!
EMA Scalp PRO ema cros+heikin-ashi-vol-atr EMA Scalp PRO – indicator is a visual scalping helper designed mainly for crypto pairs on lower timeframes (10–30m). It is NOT an automated trading strategy but a trend and momentum signal tool that helps the user take more disciplined entries.
Core logic:
• Core signals when EMA 9 crosses EMA 21 (bullish or bearish crossover)
• Higher–timeframe trend filter with EMA 144 and optional EMA 200
• Momentum filter with RSI
• Liquidity/volume filter using Volume SMA with a dynamic multiplier
• Directional filter using Heikin Ashi trend (bull / bear)
• Consolidation detection with ATR, EMA distance and ADX, plus a separate breakout condition
• Cooldown bars after each signal to reduce overtrading and noise
The script plots:
• Long / Short signals with labels directly on the chart
• Exit signals when EMA 9 makes a reverse crossover against EMA 21
• An information table (mode, trend, market state, ATR ratio, RSI, volume, etc.) to quickly assess current market conditions
Important:
• This indicator is strictly for educational and informational purposes.
• It does NOT provide financial or investment advice.
• The user must apply their own risk management (position sizing, SL/TP) and always test the tool on historical data or in paper trading before using it in live markets.
Tomie Tèo EMA 9 / 21EMA 9 / 21 Crossover momentum Signal. If retest happens after Crossover show obvious correlation with crossover => Enter
Apex Trend & Liquidity Master (SMC)v7.2The Apex Trend & Liquidity Master (SMC)v7.2 is a comprehensive trading system designed to solve a specific problem: how to integrate Trend Following, Classic Supply & Demand, and Smart Money Concepts (SMC) onto a single chart without creating visual chaos.
Most indicators force traders to choose between high-lag trend filters or noisy price action concepts. This script combines both into a unified workflow. It uses a sophisticated "Ghost Mode" transparency engine to keep internal market structures subtle, ensuring the trader's focus remains on price action and the dominant trend.
Core Philosophy
This tool operates on the principle of "External Trend, Internal Liquidity." It forces the trader to respect the macro direction (Trend Cloud) while using micro-structure (FVGs, Order Blocks) for precision entries.
Key Features
Trend Architecture (The Context) The foundation of the script is a dynamic Hull Moving Average (HMA) combined with ATR volatility bands. This creates a "Trend Cloud" that visualizes the dominant market state.
Teal Cloud: Bullish Context (Look for Longs).
Maroon Cloud: Bearish Context (Look for Shorts).
Classic Liquidity (The Targets) The script identifies major Swing Highs and Swing Lows based on pivot sensitivity. These are rendered as solid blocks and represent "External Liquidity." These are your primary Take Profit targets or major reversal zones.
Smart Money Concepts (The Entry) The script automatically detects internal market structure, including:
BOS (Break of Structure): Signals trend continuation.
CHoCH (Change of Character): Signals potential trend reversal.
Order Blocks & FVGs: Institutional footprints that act as magnets for price. These feature "Ghost Mode" styling (high transparency, no borders) and "Auto-Mitigation" (they are deleted immediately when price closes through them) to keep the chart clean.
Signal & Risk Engine
Entry Signals: Momentum-based Buy/Sell labels that filter out chop using ADX.
Trailing Stop: A Chandelier-style ATR trailing stop line to assist in trade management and locking in profits.
Visual Legend & Color Hierarchy
To allow for instant chart processing, the colors follow a strict hierarchy:
Context (Dark/Deep Colors): The Trend Cloud and Bar Colors use Deep Teal and Maroon. These indicate the background environment.
Action (Neon Colors): Signals, BOS/CHoCH lines, and the Trailing Stop use Neon Green and Neon Red. These require immediate attention.
Major Levels (Solid Colors): Classic Supply & Demand zones use Standard Forest Green and Brick Red. These are hard targets.
Internal Zones (Pale/Ghost Colors): Order Blocks and FVGs use Pale Mint and Pale Rose with high transparency. These are background areas of interest for entries.
How to Use This Indicator
For the highest probability setups, use a "Confluence Approach" rather than trading signals in isolation:
Identify Direction: Look at the Trend Cloud. Do not trade against the color of the cloud.
Wait for Pullback: Wait for price to retrace into a "Ghost Zone" (Fair Value Gap or Order Block) nested inside the trend.
Wait for Trigger: Look for a Neon "Buy" or "Sell" signal, or a BOS line break in the direction of the trend.
Manage Risk: Use the Trailing Stop line to manage your position.
Target Liquidity: Aim for the solid Classic Supply/Demand zones as exit points.
Settings & Customization
Trend Length: Default is 55 (Swing). Lower this to 20-30 for Scalping.
Signal Toggles: Signals and Trailing Stops are enabled by default but can be toggled off for a pure price-action view.
Sensitivity: The Pivot Lookback (Default 10) controls how many Supply/Demand zones appear.
Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice. Trading in financial markets involves a high degree of risk, and you should not trade with money you cannot afford to lose. Past performance of any trading system or methodology is not necessarily indicative of future results. Always perform your own due diligence and use proper risk management.
價漲量增 + 力度 + 艾爾德 精簡版這是一套結合三大核心邏輯的多維強勢趨勢偵測系統:
PUVU 價漲量增:確認價格突破是否具備真實量能。
Strength 力度指標:整合 ROC、RSI 斜率、MACD 動能三項數據,轉換為 0–100 的標準化強度分數。
Elder Impulse System:以視覺化 K 棒顏色呈現趨勢動能變化。
此外,本工具加入 Trend Bias 趨勢偏向濾網、極端反手模式、精準信號三角形與可視化面板,
可用於判斷市場是否具備持續性動能、突破是否可信、反轉是否具備條件。
本指標適用於:
趨勢交易
波段突破
盤整突破偵測
高勝率強勢區辨識
多品種分析(加密貨幣、外匯、指數、股票)
此版本可用於觀察趨勢方向、尋找可能的交易機會與賣出時機。
For English users:
This script provides trend analysis, volume confirmation, strength scoring, and impulse-based visualization to assist traders in identifying potential breakouts and market conditions.
Bookmap Style Aggressor Bubbles
This indicator is designed to emulate the visual aesthetic of professional Order Flow software (such as Bookmap) directly within TradingView. It replaces the traditional candlestick view with a clean "Microstructure" Step Line and highlights significant volume events using dynamic "Aggressor Bubbles."
This tool is perfect for traders who practice Order Flow analysis, Scalping, or VSA (Volume Spread Analysis) and want to visualize the relative intensity of buyers and sellers without the noise of traditional wicks and bodies.
1. How it Works
Since TradingView Pine Script operates on OHLCV (Level 1) data, this indicator uses a heuristic model to approximate Order Flow dynamics:
Aggressor Bubbles (Volume Spikes):
The script calculates a Relative Volume (RVOL) metric by comparing the current bar's volume against a 50-period Simple Moving Average (SMA).
If the current volume exceeds a user-defined threshold (e.g., 2.0x the average), a bubble is plotted.
Size: The bubble size scales dynamically based on how massive the volume spike is (Small, Normal, Large, Huge).
Direction (Color): The aggressor side is approximated using the price action of the bar. If Close >= Open, it is treated as Buy Aggression (Green). If Close < Open, it is treated as Sell Aggression (Red).
Microstructure Price Line:
Standard candles can obscure the immediate path of price. This indicator includes a Step Line option that plots the closing price. This mimics the "Last Price" feed seen in DOM-based software, allowing you to see exactly where price held or broke.
2. Features
Smart Filtering: Filters out low-volume noise. You only see bubbles when "Whales" or significant liquidity changes occur.
Visual Customization: Fully adjustable colors for Buy/Sell bubbles and the price line.
Alert System: Includes a built-in alert that triggers whenever a significant Aggressor Bubble appears, allowing you to be notified of high-activity moments instantly.
Clean Aesthetic: Optimized for Dark Mode/Black backgrounds.
3. How to Use
Chart Setup (Important): For the best experience, hide your standard candles. Go to Chart Settings > Symbol and uncheck Body, Borders, and Wick.
Settings: Set your background to Black.
Interpretation:
Breakouts: Look for large bubbles pushing price through a key level. This indicates strong momentum.
Absorptions: Look for large bubbles appearing at the top/bottom of a range without price follow-through. This often suggests a reversal (Passive limit orders absorbing the aggressive market orders).
4. Technical Disclosure & Limitations
Please note that TradingView Pine Script provides access to OHLCV (History) data, not historical Tick-by-Tick or Level 2 (Depth of Market) data. Therefore, this indicator is a simulation. The "Aggressor" side is derived from bar direction, and the bubbles represent executed volume per bar, not individual tick clusters. It is intended for visual analysis and identifying high-volume nodes relative to recent history.
Renko ScalperWhat it is-
A lightweight Renko Scalper that combines Renko brick direction with an internal EMA trend filter and MACD confirmation to signal high-probability short-term entries. EMAs are used internally (hidden from the chart) so the visual remains uncluttered.
Signals-
Buy arrow: Renko direction turns bullish AND EMA trend up AND MACD histogram positive.
Sell arrow: Renko direction turns bearish AND EMA trend down AND MACD histogram negative.
Consecutive same-direction signals are suppressed (only one arrow per direction until opposite signal).
Visuals-
Buy / Sell arrows (large) above/below bars.
Chart background tints green/red after the respective signal for easy glance recognition.
Inputs:-
Renko Box Size (points)
EMA Fast / EMA Slow
MACD fast/slow/signal lengths
How to use-
Add to chart
Use smaller Renko box sizes for scalping, larger for swing-like entries.
Confirm signal with price action and volume—this indicator is a signal generator, not a full automated system.
Use alerts (built in) to receive Buy / Sell arrow notifications.
Alerts-
Buy Arrow — buySignal
Sell Arrow — sellSignal
Buy Background / Sell Background — background-color state alerts
Recommended settings-
Timeframes: 1m–15m for scalping, 5m for balanced intraday.
Symbols: liquid futures/currency pairs/major crypto.
Disclaimer
This script is educational and not financial advice. Backtest and forward test on a demo account before live use. Past performance is not indicative of future results. Use proper risk management.
Grok/Claude Turtle Soup Strategy # 🥣 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."* 🥣
Traffic Lights - BETA ZONESTraffic Lights - BETA ZONES
Overview
The Traffic Light indicator is a simple, visual tool designed to help traders gauge market bias, trend strength, and momentum at a glance. It displays three rows of colored dots (like a traffic light) in a separate pane below your chart:
• Green: Bullish signal (go/buy bias).
• Red: Bearish signal (stop/sell bias).
• Orange: Neutral or caution (mixed/uncertain conditions).
This indicator combines price action (via EMA positioning), trend direction (via RSI), and momentum expansion (via RSI + MACD histogram) to provide a layered view of the market. When all three rows align as green or red, it generates Buy or Sell labels on the main chart for potential entry signals.
It's non-repainting in its core logic (Row 2 uses delayed RSI comparison to avoid noise), making it reliable for live trading. Best used on trending markets like forex, stocks, or crypto on timeframes from 15M to Daily.
How It Works
The indicator evaluates three independent "rows" of conditions, each represented by a colored dot:
1. Row 1: Price Action Signal (EMA Touch) This row assesses the overall trend bias based on price's position relative to a slow EMA (default: 50-period).
o Green: Price is cleanly above the EMA (bullish bias).
o Red: Price is cleanly below the EMA (bearish bias).
o Orange: Price is "touching" or within a volatility buffer around the EMA (neutral/caution). The "touch zone" is defined by ATR padding, which can be toggled off for a stricter (green/red only) mode.
2. Row 2: Buyers/Sellers Trend (RSI) This row tracks the underlying trend of buyer/seller strength using RSI (default: 14-period on close). To reduce noise and repainting, it uses a delayed comparison (RSI vs. RSI ):
o Green: RSI is rising (buyers gaining strength).
o Red: RSI is falling (sellers gaining strength). No orange here—it's purely directional.
3. Row 3: Buyers/Sellers Signal (RSI + MACD Histogram) This row focuses on momentum expansion, requiring alignment across RSI zones and MACD histogram:
o Green: RSI > 50 (bull zone), MACD hist > 0 (positive), and histogram is expanding upward.
o Red: RSI < 50 (bear zone), MACD hist < 0 (negative), and histogram is expanding downward.
o Orange: Any mismatch (e.g., pullbacks, consolidations, or weak momentum). MACD defaults: Fast=12, Slow=26, Signal=9.
Signals
• Buy Signal: Triggers a "Buy" label below the bar when all three rows turn green for the first time (crossover from non-aligned).
• Sell Signal: Triggers a "Sell" label above the bar when all three rows turn red for the first time. These are conservative signals—use them for trend confirmation or entries in alignment with your strategy. They don't repaint once fired.
Inputs & Customization
All inputs are grouped for easy tweaking:
• Row 1: Price Action Signal
o Slow EMA Length (default: 50): Adjusts the trend baseline.
o EMA Timeframe (default: empty/current): Use a higher timeframe (e.g., "240" for 4H) for multi-timeframe analysis.
o Enable Orange 'Touch' Zone (default: true): Toggle for strict (green/red only) vs. touch mode.
o ATR Length (default: 3): Volatility period for touch padding.
o Touch Padding (ATR mult, default: 0.15): Widens the orange buffer; set to 0 for wick-touch only.
• Row 2: Buyers/Sellers Trend (RSI)
o RSI Length (default: 14): Period for RSI calculation.
o RSI Source (default: close): Change to high/low/open for different sensitivities.
• Row 3: Buyers/Sellers Signal (RSI + MACD hist)
o MACD Fast/Slow/Signal Lengths (defaults: 12/26/9): Standard MACD settings.
Usage Tips
• Trend Trading: Wait for all-green for long entries or all-red for shorts. Use in conjunction with support/resistance.
• Scalping/Intraday: Enable orange touch zone for more nuance in choppy markets; disable for cleaner signals in trends.
• Multi-Timeframe: Set Row 1 EMA to a higher TF for "big picture" bias while keeping others on current.
• Risk Management: Always combine with stop-losses (e.g., below recent lows for buys). Backtest on your asset/timeframe.
• Limitations: In ranging markets, orange dots may dominate—pair with volatility filters like ADX. Not a standalone system; use as a confirmation tool.
If you have feedback or suggestions, drop a comment below! Happy trading 🚦
Gaussian Hidden Markov ModelA Hidden Markov Model (HMM) is a statistical model that assumes an underlying process is a Markov process with unobservable (hidden) states. In the context of financial data analysis, a HMM can be particularly useful because it allows for the modeling of time series data where the state of the market at a given time depends on its state in the previous time period, but these states are not directly observable from the market data. When we say that a state is "unobservable" or "hidden," we mean that the true state of the process generating the observations at any time is not directly visible or measurable. Instead, what is observed is a set of data points that are influenced by these hidden states.
The HMM uses a set of observed data to infer the sequence of hidden states of the model (in our case a model with 3 states and Gaussian emissions). It comprises three main components: the initial probabilities, the state transition probabilities, and the emission probabilities. The initial probabilities describe the likelihood of starting in a particular state. The state transition probabilities describe the likelihood of moving from one state to another, while the emission probabilities (in our case emitted from Gaussian probability density functions, in the image red yellow and green Laplace probability densitty functions) describe the likelihood of the observed data given a particular state.
MODEL FIT
Posterior
By default, the indicator displays the posterior distribution as fitted by training a 3-state Gaussian HMM. The posterior refers to the probability distribution of the hidden states given the observed data. In the case of your Gaussian HMM with three states, the posterior represents the probabilities that the model assigns to each of these three states at each time point, after observing the data. The term "posterior" comes from Bayes' theorem, where it represents the updated belief about the model's states after considering the evidence (the observed data).
In the indicator, the posterior is visualized as the probability of the stock market being in a particular volatility state (high vol, medium vol, low vol) at any given time in the time series. Each day, the probabilities of the three states sum to 1, with the plot showing color-coded bands to reflect these state probabilities over time. It is important to note that the posterior distribution of the model fit tells you about the performance of the model on past data. The model calculates the probabilities of observations for all states by taking into account the relationship between observations and their past and future counterparts in the dataset. This is achieved using the forward-backward algorithm, which enables us to train the HMM.
Conditional Mean
The conditional mean is the expected value of the observed data given the current state of the model. For a Gaussian HMM, this would be the mean of the Gaussian distribution associated with the current state. It’s "conditional" because it depends on the probabilities of the different states the model is in at a given time. This connects back to the posterior probability, which assigns a probability to the model being in a particular state at a given time.
Conditional Standard Deviation Bands
The conditional standard deviation is a measure of the variability of the observed data given the current state of the model. In a Gaussian HMM, each state has its own emission probability, defined by a Gaussian distribution with a specific mean and standard deviation. The standard deviation represents how spread out the data is around the mean for each state. These bands directly relate to the emission probabilities of the HMM, as they describe the likelihood of the observed values given the current state. Narrow bands suggest a lower standard deviation, indicating the model is more confident about the data's expected range when in that state, while wider bands indicate higher uncertainty and variability.
Transition Matrix
The transition matrix in a HMM is a key component that characterizes the model. It's a square matrix representing the probabilities of transitioning from one hidden state to another. Each row of the transition matrix must sum up to 1 since the probabilities of moving from a given state to all possible subsequent states (including staying in the same state) must encompass all possible outcomes.
For example, we can see the following transition probabilities in our model:
Going from state X: to X (0.98), to Y (0.02), to Z (0)
Going from state Y: to X (0.03), to Y (0.96), to Z (0.01)
Going from state Z: to X (0), to Y (0.11), to Z (0.89)
MODEL TEST
When the "Test Out of Sample” option is enabled, the indicator plots models out-of-sample predictions. This is particularly useful for real-time identification of market regimes, ensuring that the model's predictive capability is rigorously tested on unseen data. The indicator displays the out of sample posterior probabilities which are calculated using the forward algorithm. Higher probability for a particular state indicate that the model is predicted a higher likelihood that the market is currently in that state. Evaluating the models performance on unseen data is crucial in understanding how well the model explains data that are not included in its training process.
THF Ultimate AIO Scalper & Trend PRO This is a comprehensive "All-In-One" trading suite designed to identify high-probability setups by combining **Trend Following**, **Price Action (FVG)**, and **Ichimoku Cloud** systems.
The indicator is designed to be "Ready-to-Trade" out of the box, with all major confluence filters active by default. It helps traders avoid false signals by ensuring that momentum, trend, and support/resistance levels are in alignment.
### 🛠️ Key Features & Components:
**1. Trend & Scalp Engine:**
* **Scalp Signals:** Fast EMA crossovers (7/21) for quick entries.
* **Trend Filter:** Signals are filtered by a long-term SMA (200) to ensure you are trading with the dominant trend.
* **Golden/Death Cross:** Automatically highlights major trend shifts (SMA 50 crossing SMA 200).
**2. Price Action (Fair Value Gaps):**
* **FVG Detection:** Highlights unmitigated Bullish and Bearish imbalance zones. These act as high-probability targets or re-entry zones.
* **Dashboard:** A built-in panel tracks the number of active vs. mitigated gaps.
* **Mitigation Lines:** Automatically draws lines when price tests an FVG level.
**3. Ichimoku Cloud Overlay:**
* Displays the full Ichimoku system (Tenkan, Kijun, and Kumo Cloud) to identify dynamic support/resistance and trend strength.
* **Usage:** Perfect for confirming breakout signals when price is above/below the Cloud.
**4. Momentum & Volume:**
* **Volume Coloring:** Bars are colored based on relative volume strength.
* **RSI & MACD:** Integrated buy/sell signals to spot overbought/oversold conditions instantly.
### 🎯 How to Trade (Confluence Strategy):
The power of this script lies in **Confluence** (multiple indicators agreeing):
* **Buy Setup:**
1. Price is above the **Ichimoku Cloud** and **SMA 200**.
2. Wait for a **"SCALP BUY"** signal or **"Trend BUY"** label.
3. Confirm that price is reacting to a **Bullish FVG** (Green Box).
4. **RSI/MACD** should show bullish momentum.
* **Sell Setup:**
1. Price is below the **Ichimoku Cloud** and **SMA 200**.
2. Wait for a **"SCALP SELL"** signal.
3. Confirm rejection from a **Bearish FVG** (Red Box).
---
**CREDITS & ATTRIBUTION:**
* **Fair Value Gap Logic:** This script utilizes the open-source FVG calculation method originally developed by **LuxAlgo**. We have integrated this logic with our custom trend system to provide a complete trading view.
* **Trend Logic:** Custom compilation of Moving Average crossovers and Ichimoku standard calculations.
*Disclaimer: This tool is for educational purposes only. Always manage your risk.*
Hurst Exponent - Detrended Fluctuation AnalysisIn stochastic processes, chaos theory and time series analysis, detrended fluctuation analysis (DFA) is a method for determining the statistical self-affinity of a signal. It is useful for analyzing time series that appear to be long-memory processes and noise.
█ OVERVIEW
We have introduced the concept of Hurst Exponent in our previous open indicator Hurst Exponent (Simple). It is an indicator that measures market state from autocorrelation. However, we apply a more advanced and accurate way to calculate Hurst Exponent rather than simple approximation. Therefore, we recommend using this version of Hurst Exponent over our previous publication going forward. The method we used here is called detrended fluctuation analysis. (For folks that are not interested in the math behind the calculation, feel free to skip to "features" and "how to use" section. However, it is recommended that you read it all to gain a better understanding of the mathematical reasoning).
█ Detrend Fluctuation Analysis
Detrended Fluctuation Analysis was first introduced by by Peng, C.K. (Original Paper) in order to measure the long-range power-law correlations in DNA sequences . DFA measures the scaling-behavior of the second moment-fluctuations, the scaling exponent is a generalization of Hurst exponent.
The traditional way of measuring Hurst exponent is the rescaled range method. However DFA provides the following benefits over the traditional rescaled range method (RS) method:
• Can be applied to non-stationary time series. While asset returns are generally stationary, DFA can measure Hurst more accurately in the instances where they are non-stationary.
• According the the asymptotic distribution value of DFA and RS, the latter usually overestimates Hurst exponent (even after Anis- Llyod correction) resulting in the expected value of RS Hurst being close to 0.54, instead of the 0.5 that it should be. Therefore it's harder to determine the autocorrelation based on the expected value. The expected value is significantly closer to 0.5 making that threshold much more useful, using the DFA method on the Hurst Exponent (HE).
• Lastly, DFA requires lower sample size relative to the RS method. While the RS method generally requires thousands of observations to reduce the variance of HE, DFA only needs a sample size greater than a hundred to accomplish the above mentioned.
█ Calculation
DFA is a modified root-mean-squares (RMS) analysis of a random walk. In short, DFA computes the RMS error of linear fits over progressively larger bins (non-overlapped “boxes” of similar size) of an integrated time series.
Our signal time series is the log returns. First we subtract the mean from the log return to calculate the demeaned returns. Then, we calculate the cumulative sum of demeaned returns resulting in the cumulative sum being mean centered and we can use the DFA method on this. The subtraction of the mean eliminates the “global trend” of the signal. The advantage of applying scaling analysis to the signal profile instead of the signal, allows the original signal to be non-stationary when needed. (For example, this process converts an i.i.d. white noise process into a random walk.)
We slice the cumulative sum into windows of equal space and run linear regression on each window to measure the linear trend. After we conduct each linear regression. We detrend the series by deducting the linear regression line from the cumulative sum in each windows. The fluctuation is the difference between cumulative sum and regression.
We use different windows sizes on the same cumulative sum series. The window sizes scales are log spaced. Eg: powers of 2, 2,4,8,16... This is where the scale free measurements come in, how we measure the fractal nature and self similarity of the time series, as well as how the well smaller scale represent the larger scale.
As the window size decreases, we uses more regression lines to measure the trend. Therefore, the fitness of regression should be better with smaller fluctuation. It allows one to zoom into the “picture” to see the details. The linear regression is like rulers. If you use more rulers to measure the smaller scale details you will get a more precise measurement.
The exponent we are measuring here is to determine the relationship between the window size and fitness of regression (the rate of change). The more complex the time series are the more it will depend on decreasing window sizes (using more linear regression lines to measure). The less complex or the more trend in the time series, it will depend less. The fitness is calculated by the average of root mean square errors (RMS) of regression from each window.
Root mean Square error is calculated by square root of the sum of the difference between cumulative sum and regression. The following chart displays average RMS of different window sizes. As the chart shows, values for smaller window sizes shows more details due to higher complexity of measurements.
The last step is to measure the exponent. In order to measure the power law exponent. We measure the slope on the log-log plot chart. The x axis is the log of the size of windows, the y axis is the log of the average RMS. We run a linear regression through the plotted points. The slope of regression is the exponent. It's easy to see the relationship between RMS and window size on the chart. Larger RMS equals less fitness of the regression. We know the RMS will increase (fitness will decrease) as we increases window size (use less regressions to measure), we focus on the rate of RMS increasing (how fast) as window size increases.
If the slope is < 0.5, It means the rate of of increase in RMS is small when window size increases. Therefore the fit is much better when it's measured by a large number of linear regression lines. So the series is more complex. (Mean reversion, negative autocorrelation).
If the slope is > 0.5, It means the rate of increase in RMS is larger when window sizes increases. Therefore even when window size is large, the larger trend can be measured well by a small number of regression lines. Therefore the series has a trend with positive autocorrelation.
If the slope = 0.5, It means the series follows a random walk.
█ FEATURES
• Sample Size is the lookback period for calculation. Even though DFA requires a lower sample size than RS, a sample size larger > 50 is recommended for accurate measurement.
• When a larger sample size is used (for example = 1000 lookback length), the loading speed may be slower due to a longer calculation. Date Range is used to limit numbers of historical calculation bars. When loading speed is too slow, change the data range "all" into numbers of weeks/days/hours to reduce loading time. (Credit to allanster)
• “show filter” option applies a smoothing moving average to smooth the exponent.
• Log scale is my work around for dynamic log space scaling. Traditionally the smallest log space for bars is power of 2. It requires at least 10 points for an accurate regression, resulting in the minimum lookback to be 1024. I made some changes to round the fractional log space into integer bars requiring the said log space to be less than 2.
• For a more accurate calculation a larger "Base Scale" and "Max Scale" should be selected. However, when the sample size is small, a larger value would cause issues. Therefore, a general rule to be followed is: A larger "Base Scale" and "Max Scale" should be selected for a larger the sample size. It is recommended for the user to try and choose a larger scale if increasing the value doesn't cause issues.
The following chart shows the change in value using various scales. As shown, sometimes increasing the value makes the value itself messy and overshoot.
When using the lowest scale (4,2), the value seems stable. When we increase the scale to (8,2), the value is still alright. However, when we increase it to (8,4), it begins to look messy. And when we increase it to (16,4), it starts overshooting. Therefore, (8,2) seems to be optimal for our use.
█ How to Use
Similar to Hurst Exponent (Simple). 0.5 is a level for determine long term memory.
• In the efficient market hypothesis, market follows a random walk and Hurst exponent should be 0.5. When Hurst Exponent is significantly different from 0.5, the market is inefficient.
• When Hurst Exponent is > 0.5. Positive Autocorrelation. Market is Trending. Positive returns tend to be followed by positive returns and vice versa.
• Hurst Exponent is < 0.5. Negative Autocorrelation. Market is Mean reverting. Positive returns trends to follow by negative return and vice versa.
However, we can't really tell if the Hurst exponent value is generated by random chance by only looking at the 0.5 level. Even if we measure a pure random walk, the Hurst Exponent will never be exactly 0.5, it will be close like 0.506 but not equal to 0.5. That's why we need a level to tell us if Hurst Exponent is significant.
So we also computed the 95% confidence interval according to Monte Carlo simulation. The confidence level adjusts itself by sample size. When Hurst Exponent is above the top or below the bottom confidence level, the value of Hurst exponent has statistical significance. The efficient market hypothesis is rejected and market has significant inefficiency.
The state of market is painted in different color as the following chart shows. The users can also tell the state from the table displayed on the right.
An important point is that Hurst Value only represents the market state according to the past value measurement. Which means it only tells you the market state now and in the past. If Hurst Exponent on sample size 100 shows significant trend, it means according to the past 100 bars, the market is trending significantly. It doesn't mean the market will continue to trend. It's not forecasting market state in the future.
However, this is also another way to use it. The market is not always random and it is not always inefficient, the state switches around from time to time. But there's one pattern, when the market stays inefficient for too long, the market participants see this and will try to take advantage of it. Therefore, the inefficiency will be traded away. That's why Hurst exponent won't stay in significant trend or mean reversion too long. When it's significant the market participants see that as well and the market adjusts itself back to normal.
The Hurst Exponent can be used as a mean reverting oscillator itself. In a liquid market, the value tends to return back inside the confidence interval after significant moves(In smaller markets, it could stay inefficient for a long time). So when Hurst Exponent shows significant values, the market has just entered significant trend or mean reversion state. However, when it stays outside of confidence interval for too long, it would suggest the market might be closer to the end of trend or mean reversion instead.
Larger sample size makes the Hurst Exponent Statistics more reliable. Therefore, if the user want to know if long term memory exist in general on the selected ticker, they can use a large sample size and maximize the log scale. Eg: 1024 sample size, scale (16,4).
Following Chart is Bitcoin on Daily timeframe with 1024 lookback. It suggests the market for bitcoin tends to have long term memory in general. It generally has significant trend and is more inefficient at it's early stage.
Chandelier Exit + Pivots + MA + Swing High/LowIt combines four indicators.
For use in the Hero course.
Support & Resistance + VolumeThis script is an advanced technical analysis tool designed to automatically identify institutional Support and Resistance zones, while analyzing the activity (Volume) within these zones. It automatically cleans up the chart to keep only relevant information.
Key Features:
Automatic Zone Detection:
Supports (Green): Identified based on major swing lows (Pivots).
Resistances (Red): Identified based on major swing highs (Pivots).
The width of the zones automatically adapts to market volatility (based on ATR) to remain relevant regardless of the timeframe.
Smart Merging:
To avoid cluttering the chart with overlapping lines, the script detects if a new support or resistance forms within an existing zone.
If so, it does not create a new box but expands the existing zone. This allows you to visualize consolidated "liquidity zones" rather than scattered lines.
Cumulative Volume Profile:
This is the core strength of this indicator. It calculates the total volume traded inside each zone since its creation.
Every time price revisits a zone, the candle's volume is added to the total.
Display: Volume is shown as whole numbers with a $ symbol (e.g., 300 500$) for precise reading.
Interpretation: A zone with very high volume indicates a strong battle between buyers and sellers, making the zone harder to break.
Historical Management (Broken Zones):
If the price crosses and closes beyond a zone (valid breakout), the zone changes appearance immediately.
It turns Gray, stops extending to the right, and the label displays the text "Cassé" (Broken). This allows you to keep a visual trace of past key levels without disturbing current analysis.
Advanced S&D Engine | ZikZak-Trader30About This Script
This is a fully custom-built Supply & Demand Zone detection engine for TradingView written by ZikZak-Trader30 (Kotdwar, UK). The script identifies potential key supply and demand zones based on market structure and pattern logic widely used by professional traders.
Detected Patterns:
RBR (Rally-Base-Rally, demand)
DBD (Drop-Base-Drop, supply)
RBD (Rally-Base-Drop, supply)
DBR (Drop-Base-Rally, demand)
Features Highlight
Detailed configurable zone filtering (freshness, gap detection, time spent, width, Fibonacci confluence, etc.)
Fair and adjustable scoring system for zone strength
Automatic management/removal of old or retested/violated zones
Optional Fibonacci level confluence and dynamic labeling
Transparency Statement
How It Works:
This script uses well-known price action concepts and compares candles’ movement, consolidation, and breakout patterns to mark S&D zones.
There are no repaints or future leaks: all logic is based entirely on historical and current bars.
Parameters and variables are fully described in the script inputs. The zone scoring and removal logic is also visible in the code for transparency.
IMPORTANT: Usage & Fair-Use Policy
This script is provided for educational and informational purposes only.
It should not be considered as financial advice or a trading signal.
Trading/investing involves risk—always do your own research or consult a financial advisor before making trading decisions.
Past performance or backtest results are not necessarily indicative of future results.
License & Fair Use
The code is original, written by ZikZak-Trader30.
All logic and comments are visible for users to study, adapt, or improve for personal, non-commercial use within TradingView.
You may NOT resell, repackage, or repost this script as your own.
If you fork or publicly remix/adapt the script, please credit "ZikZak-Trader30" and do not remove this disclosure section.
If you use ideas or snippets, kindly reference this script and author.
Absolutely NO plagiarized or resold code is permitted. This script is not for re-sale.
Acknowledgements
This indicator was inspired by years of price action study and usage of public S&D scripts. While the pattern logic is classic in nature, the version and scoring are original.
No proprietary datasets or paid logic from other sources are included.
Minor ideas on zone freshness and Fibonacci blending are common in the TradingView S&D community and have been custom-implemented here.
THF Scalp & Trend + FVG [English]This indicator is a comprehensive "All-In-One" trading suite designed for Scalpers and Day Traders who look for confluence between Trend Following indicators and Price Action (Fair Value Gaps).
It combines two powerful concepts into a single chart overlay:
1. Moving Average Crossovers & Trend Filtering (THF Logic).
2. Fair Value Gaps (FVG) detection for entry/exit targets.
### 🛠️ Key Features:
**1. Trend & Scalp Signals:**
- **Scalp Signals:** Based on fast EMA crossovers (default 7/21). These signals can be filtered by a long-term SMA (200) to ensure you are trading with the major trend.
- **Trend Signals:** Identifies stronger trend shifts using EMA 21 crossing SMA 50.
- **Major Crosses:** Automatically highlights Golden Cross (SMA 50 > 200) and Death Cross events.
**2. Price Action (FVG - Fair Value Gaps):**
- Integrated **LuxAlgo's Fair Value Gap** logic to identify imbalances in the market.
- Displays Bullish/Bearish zones which act as magnets for price or support/resistance levels.
- Includes a Dashboard to track mitigated vs. unmitigated zones.
**3. Momentum & Volume Confluence:**
- **Visual Volume:** Candles are colored based on volume relative to the average (Volume SMA).
- **RSI & MACD Signals:** Optional overlays to spot overbought/oversold conditions or momentum shifts directly on the chart.
### 🎯 How to Use:
- **For Scalping:** Wait for a "SCALP BUY" signal while the price is above the SMA 200 (Trend Filter). Use the FVG boxes as potential Take Profit targets.
- **For Trend Trading:** Look for the "Trend BUY" label and confirm with the Golden Cross.
- **Stop Loss:** Can be placed below the recent swing low or below the EMA 50.
----------------------------------------------------------------
**CREDITS & ATTRIBUTION:**
This script is a mashup of custom trend logic and open-source community codes.
- **Fair Value Gap:** Full credit goes to **LuxAlgo** for the FVG detection algorithm and dashboard logic. This script utilizes their open-source calculation methods to enhance the trend strategy.
- **Trend Logic:** Based on classic Moving Average crossover strategies tailored for scalping.
*Disclaimer: This tool is for educational purposes only. Always manage your risk.*
Swing v 3Swing v.3 Indicator Description
Swing v.3 is an advanced swing analysis indicator with deep liquidity and volume analysis, designed to identify institutional movements and high-probability reversal points:
Key Components:
🎯 Swing Points Detection:
Intelligent detection of swing highs and lows (SH/SL)
Proper sequencing of peaks and valleys (prevents duplicates)
Identifies strong swings (★) based on high volume
Automatic support and resistance level mapping
📊 Delta Volume Analysis:
Calculates buying/selling pressure for each candle
Identifies strong swings based on Delta threshold
Filters by positive buying or negative selling pressure
Displays detailed liquidity ratios (buy/sell volumes)
⚡ Displacement Candles:
Detects powerful momentum candles with rapid price movement
Multiple conditions: large body, small wicks, high volume
ATR filter to measure strength relative to volatility
Color-codes candles by strength rating
🔍 Wave Analysis:
Tracks waves between swing points
Calculates cumulative buy/sell volume per wave
Detects bullish/bearish divergence patterns
Alerts for fake breakouts and strong accumulation
📊 Live Dashboard:
Real-time statistics for swings and liquidity
Measures price proximity to support/resistance levels
Current Delta information and active wave data
Proximity alerts for nearby key levels
⚙️ Additional Features:
Color-codes candles for strong swing points
Multiple filters for precision (Delta, volume, ATR)
Detailed tooltips for each marker
Flexible color and display settings
The indicator helps traders identify strong reversal points, institutional liquidity zones, and high-momentum candles for more accurate trading decisions.
وصف مؤشر Swing v.3
Swing v.3 هو مؤشر متقدم لتحليل نقاط التأرجح (السوينق) والزخم السعري مع تحليل عميق للسيولة وحجم التداول:
المكونات الرئيسية:
🎯 نقاط السوينق (Swing Points):
كشف نقاط التأرجح العليا والسفلى (SH/SL) بطريقة ذكية
ترتيب صحيح للقمم والقيعان (يمنع التكرار)
تحديد السوينقات القوية (★) بناءً على حجم التداول العالي
رسم مستويات الدعم والمقاومة تلقائياً
📊 تحليل Delta Volume:
حساب ضغط الشراء/البيع لكل شمعة
تحديد السوينقات القوية بناءً على Delta
فلترة حسب ضغط الشراء الإيجابي أو البيع السلبي
عرض نسب السيولة التفصيلية (شراء/بيع)
⚡ شموع Displacement (الإزاحة السريعة):
كشف الشموع القوية ذات الحركة السريعة
شروط متعددة: جسم كبير، ذيول صغيرة، حجم تداول عالي
فلتر ATR لقياس القوة نسبة للتقلبات
تلوين الشموع حسب قوتها
🔍 تحليل الموجات (Wave Analysis):
تتبع الموجات بين السوينقات
حساب إجمالي حجم الشراء/البيع لكل موجة
كشف التباين الإيجابي/السلبي (Divergence)
تنبيهات الاختراق الوهمي والتجميع القوي
📊 لوحة المعلومات (Dashboard):
عرض إحصائيات حية للسوينقات والسيولة
قياس قرب السعر من مستويات الدعم/المقاومة
معلومات Delta الحالية والموجة النشطة
تنبيهات للمستويات القريبة
⚙️ المميزات الإضافية:
تلوين الشموع للسوينقات القوية
فلاتر متعددة للدقة (Delta، حجم التداول، ATR)
معلومات تفصيلية في Tooltips لكل علامة
إعدادات مرنة للألوان والعرض
Smart Money ProSmart Money Pro V 8.1 is an advanced trading indicator that tracks institutional "smart money" movements using multiple Smart Money Concepts (SMC) techniques:
Market Structure: Identifies Change of Character (CHoCH), Break of Structure (BOS), and Internal/External Market Structure (IDM)
Order Blocks: Detects demand/supply zones including EXT OB, IDM OB, SCOB, and mitigation/breaker blocks
Order Flow: Tracks major and minor order flows with mitigation levels
Fair Value Gaps (FVG): Highlights price inefficiencies and imbalance zones
Liquidity Levels: Maps liquidity sweeps and key pivot levels
Price Structure: Shows OTE (Optimal Trade Entry) zones, PDH/PDL (Previous Day High/Low), equilibrium levels, and swing sweeps
Candle Patterns: Detects Inside and Outside bars
The indicator helps traders identify institutional entry/exit points, liquidity grabs, and high-probability trading zones.
Smart Money Pro V 8.1 هو مؤشر متقدم لتتبع تحركات المؤسسات المالية "الأموال الذكية" باستخدام مفاهيم Smart Money Concepts (SMC):
هيكل السوق: يحدد تغيير الاتجاه (CHoCH)، كسر الهيكل (BOS)، والهيكل الداخلي/الخارجي (IDM)
مناطق الطلب والعرض: يكتشف Order Blocks بأنواعها (EXT OB, IDM OB, SCOB) ومناطق الاختراق والتخفيف
تدفق الأوامر: يتتبع التدفقات الرئيسية والثانوية مع مستويات التخفيف
فجوات القيمة العادلة (FVG): يبرز مناطق عدم الكفاءة السعرية وعدم التوازن
مستويات السيولة: يرسم مصائد السيولة والنقاط المحورية الرئيسية
هيكل السعر: يعرض مناطق OTE (نقاط الدخول المثلى)، أعلى/أدنى سعر سابق (PDH/PDL)، مستويات التوازن، وكسر القمم/القيعان
أنماط الشموع: يكتشف شموع Inside و Outside Bar
Trend Pullback S-MSNRThis Indicator Identify two Major Time Frames for Trend Selection and Pullback.
NY time 10:00 AM to 10:15 AM zone will decide for trend.
NY time 10:30 AM to 11:30 AM zone will Pullback and Follow the Previous Trend.
Use S-MSNR Strategy for these two time Zone.






















