xGhozt Pattern StatisticsUnlock the power of candlestick patterns with this comprehensive indicator. It automatically identifies and calculates the historical statistics of popular formations like Large Green/Red, Hammer, Doji, Bullish/Bearish Engulfing patterns.
An insights into each pattern's probability of an 'Up', 'Down', or 'Flat' outcome on the **next bar** and over a user-defined **N subsequent bars**. All statistics are presented in a customizable, interactive table directly on your chart, highlighting the most frequent outcomes. Visual markers are plotted to help you spot patterns instantly.
Corak Harmonic
JD-MONEY 2 ENTRADAS/DIAJD-MONEY FIXED Strategy - For Intraday Trading
A simple and straightforward strategy, with clear rules and optimized parameters for intraday trading.
**Features:**
✅ **Two configurable trading times**
✅ **Defined risk management** (fixed stop and take)
✅ **Clear logic** for entries and exits
✅ No rebounds or pyramiding
Ideal for traders seeking a disciplined and straightforward approach.
*Configure the times according to your preference and let the strategy identify opportunities!*
*Note: Always trade with appropriate risk management. Past results do not guarantee future performance.*
CME_MINI:NQ1!
*Script by José Doroteu*
Auto Harmonic Screener - UltimateX [Trendoscope®]🎲 Introduction to Auto Harmonic Screener UltimateX
The Auto Harmonic Screener UltimateX is a sophisticated TradingView indicator designed to automatically detect and screen for a wide range of harmonic patterns across multiple zigzag levels. It builds on the foundation of harmonic trading principles, using recursive zigzag analysis to identify potential reversal zones based on Fibonacci ratios. This indicator complements the Auto Harmonic Pattern UltimateX by focusing on screening functionality rather than isolated pattern detection. This is script is designed and optimized to be used with Pine Screener
The indicator produces harmonic patterns on the chart. As an indicator, it does not offer more than what Auto Harmonic Pattern UltimateX offers. However, the major difference is that Auto Harmonic Pattern UltimateX concentrates on the usage as indicator and providing stats and back test data based on historical patterns whereas this script is optimized to be used with Pine Screener to screen across 100s of symbols at once to find out potential patterns across the market.
🎲 Core Mechanics: How the Indicator Works
🎯 Zigzag Pivot Detection
The indicator starts by calculating zigzag pivots. Zigzag identifies swing highs and lows by filtering price movements based on a minimum length (default: 8 bars) and depth (default: 100 pivots).
You can opt to use close prices instead of high/low for zigzag calculation (via Use Close Prices ), which smooths out noise in volatile markets but may miss extreme swings.
Zigzag is recursive: It begins with a base level (level 0) and generates higher levels by combining pivots from lower levels. This allows scanning for patterns at various scales, from short-term to long-term structures.
New pivots trigger pattern scans only when confirmed
🎯 Harmonic Pattern Scanning
Patterns are scanned using the last 5 zigzag pivots: X (oldest), A, B, C, D (newest)
The scan compares price ratios (e.g., AB/XA, BC/AB, CD/BC, XD/XA) against predefined Fibonacci-based ranges for each pattern type, with an adjustable error threshold (default: 8%).
Log scale scanning (Scanning under Log Scale ) can be enabled for assets with exponential growth (e.g., cryptocurrencies), ensuring ratios are calculated proportionally.
Strict mode ( Strict Ratio Scanning Mode ) disables error additions when ratio ranges vary, prioritizing accuracy over quantity of detections.
Detected patterns are stored in an array and checked for duplicates (based on pivot indices) to avoid redundancy.
The Potential Reversal Zone (PRZ) is calculated as a range where the D point should land for pattern completion.
🎯 Pattern Categories and Types
Classic Patterns : Standard harmonic formations like Gartley, Bat, Butterfly, Crab, Deep Crab, Cypher, Shark, Nenstar,
Anti/Alternate Patterns : Variations with inverted or extended ratios, such as Anti Gartley, Anti Bat, Anti Butterfly, Anti Crab, Anti Cypher, Anti Shark, Anti Nenstar, Navarro.
Non-Standard Patterns : Less common structures like 5-0, Three Drives, or Black Swan, White Swan, 121, Sea Pony, Leonardo, Total.
You can enable/disable categories or individual patterns via inputs. The indicator uses a map to track active patterns and scans only those selected
🎯 Trade Monitoring and Confirmation
Patterns identified are monitored for entry, failure and success. Patterns are kept on the chart until they are either invalidated, stopped or reaches the target. The status of the pattern is also used during the filtering of patterns using Pine Screener
🎯 Output and Signals
The following plots are displayed in data window mode. These plots are used in Pine Screener for filtering symbols based on the presence of patterns.
Bullish (Awaiting Entry) : Plots 1 if there is a bullish pattern awaiting entry
Bullish (In Trade) : Plots 1 if there is a bullish pattern that has reached Entry and in trade.
Bearish (Awaiting Entry) : Plots 1 if there is a bearish pattern awaiting entry
Bearish (In Trade) : Plots 1 if there is a bearish pattern that has reached Entry and in trade.
🎲 Detailed Input Parameters
The indicator offers extensive customization through grouped inputs. Here's a breakdown:
🎯 Zigzag Parameters :
Use Close Prices (bool, default: false): Switches zigzag to use close prices for pivots, reducing sensitivity to wicks.
Length (int, default: 8, min: 3): Minimum bars between pivots; higher values filter more noise but may miss small patterns.
Depth (int, default: 100, max: 500): Maximum pivots stored; affects recursive zigzag levels and performance.
🎯 Generic Settings
Base (string, default: 'correction'): Determines the wave (impulse/correction) used for target projections. Options include 'min'/'max' for conservative/aggressive targets, or 'AD'/'CD' for specific legs.
Error Percent (int, default: 8, 0-20): Tolerance for ratio matches; lower = fewer but more accurate patterns.
Strict Ratio Scanning Mode (bool, default: false): Enforces exact ratios without error buffer for varying ranges.
Log Scale (two bools): Separate toggles for scanning patterns vs. projecting targets.
🎯 Trade Settings
Stop/Entry/Target (floats): Ratios for trade levels (stop=0.0 default, entry=0.3, target=0.618). Stop at 0.0 means no stop (use with caution); entry/target based on PRZ extension.
🎯 Display Settings
Draw (bool, default: true): Enables pattern drawings. When running in pine screener, this can be turned off
Theme (enum, default: DARK): Auto-generates colors (light/dark shades); or CUSTOM with 22 user-defined colors.
XABCD/Ratios (bools, default: true): Show/hide pivot labels and ratio annotations.
Label Size (string, default: small): Size for on-chart labels (tiny to huge).
🎲 Using with Pine Screener
Pine Screener is a powerful tradingview utility that allows users to build complex programmable screeners using Pinescript®. This script is designed in an optimized way in order to work with Pine Screener. Hence, the display of the indicator is limited. In order to use this script with pine screener, we need to follow these steps.
Prepare your watchlist
Pine screener works on a watchlist with less than 1000 symbols in them. We can use built-in tradingview screeners to perform initial screening based on broad categories. This can be as simple as filtering based on market cap. This initial filtering is only required if the number of symbols are more than 1000.
Load the watchlist and indicator to pine screener
Go to screener menu and load Pine Screener.
Once done, load the watchlist and indicator. Set filtering criteria, timeframe and indicator settings. And then press Scan to filter the symbols that match given criteria.
For more details, please watch the video published under the below idea.
Advanced Hurst Cycle + VTL + Turning Points| Timeframe | Cycle Base | Use Case | Notes |
| ------------ | ---------- | ------------------ | ------------------------- |
| 5-min | 16–20 bars | Intraday scalping | Tight SL, fast moves |
| 15-min / 1hr | 20–40 bars | Intraday to swing | Good for options intraday |
| Daily | 20–40 bars | Multi-day swings | Ideal for Futures/ST BTST |
| Weekly | 13–26 bars | Position/Investing | For macro turns |
Guide to Trading with JM Hurst Cycles in TradingView
1. What is JM Hurst Cycle Theory?
JM Hurst proposed that financial markets move in harmonically related cycles. These cycles can help traders
forecast turning points in markets using time-based analysis rather than just price.
Key Concepts:
- Cycle Nesting: Smaller cycles exist within larger ones.
- Harmonic Ratios: Each cycle is typically double the length of the smaller one (e.g., 20, 40, 80).
- Turning Points: When multiple cycles bottom together, strong reversals occur.
- Tools: FLD (Future Line of Demarcation), VTL (Valid Trend Lines).
2. TradingView Script Features
The provided Pine Script v5 implements:
- FLDs (shifted SMAs) for base and harmonic cycles.
- VTLs: Drawn between major pivot highs/lows to confirm trend reversals.
- Cycle Turning Points: Detected using pivot logic and cycle phase.
- Optional: Sine wave to visualize cycle rhythm.
Inputs:
- Base Cycle Length: Set the expected cycle duration (e.g., 20 bars).
- FLD/VTL/Turn toggles to customize chart view.
3. How to Trade with This Script
1. Set 'Base Cycle Length' to 20, 40, or 80 depending on your market and timeframe.
2. Watch for price crossing the FLD:
- Bullish Signal: Price crosses above FLD near cycle bottom.
- Bearish Signal: Price breaks below FLD near cycle top.
3. Use VTL for confirmation:
Guide to Trading with JM Hurst Cycles in TradingView
- Break of upward VTL from cycle lows = bearish shift.
- Break of downward VTL from cycle highs = bullish shift.
4. Use turning point markers:
- Triangle up (green): Probable cycle bottom - watch for long.
- Triangle down (red): Probable cycle top - prepare for exit or short.
Tips:
- Align multiple cycle lengths for stronger confirmation.
- Use with other technical indicators like RSI/MACD for confluence.
- Avoid trading just before major news events - cycles can distort.
4. Example Strategy
If base cycle is 20 bars:
- Wait for triangle up (cycle low) near FLD.
- Confirm price crosses above FLD.
- Ensure VTL from prior lows is intact or just broken upward.
- Enter long; set stop below recent low.
Opposite for shorts at triangle down + FLD break down + VTL break.
5. Final Notes
This script offers a time-based visual trading method inspired by JM Hurst. It's most powerful when used with
patience, confirmation, and alignment across cycles.
You can adjust cycle lengths or refine pivots based on your trading timeframe and asset class.
For best results, backtest cycle behavior on your instrument before live trading.
N-Pattern Detector (Advanced Logic)Introduction
The N-Pattern Detector (Advanced Logic) is a powerful Pine Script-based tool designed to identify a specific price structure known as the "N-pattern", which often indicates trend continuation or potential breakout points in the market. This pattern combines zigzag pivot logic, retracement filters, volume confirmation, and trend alignment, offering high-probability trading signals.
It is ideal for traders who want to automate pattern detection while applying smart filters to reduce false signals in various markets — including stocks, forex, crypto, and indices.
What is the N-Pattern?
The N-pattern is a 3-leg price formation consisting of points A-B-C-D. It typically follows this structure:
Bullish N-Pattern:
A → Low Pivot
B → Higher High (Impulse)
C → Higher Low (Retracement)
D → Breakout above B (Confirmation)
Bearish N-Pattern:
A → High Pivot
B → Lower Low (Impulse)
C → Lower High (Retracement)
D → Breakdown below B (Confirmation)
The pattern essentially reflects a trend–pullback–breakout structure, making it suitable for continuation trades.
Key Features
1. Intelligent ZigZag Pivot Detection
Uses pivot highs/lows to define key swing points (A, B, C).
Adjustable ZigZag depth to control pattern sensitivity.
Filters noise and avoids false signals in volatile markets.
2. Retracement Validation
Validates the B→C leg as a proper pullback using Fibonacci-based thresholds.
User-defined min and max retracement settings (e.g., 38.2% to 78.6% of A→B leg).
3. Trend Filter via EMA
Filters patterns based on trend direction using a customizable EMA (e.g., 200 EMA).
Only detects bullish patterns above EMA and bearish patterns below EMA (optional).
4. Volume Confirmation
Ensures that impulse legs (A→B, C→D) are supported by stronger volume than the correction leg (B→C).
Adds another layer of confirmation and reliability to detected patterns.
5. Target Projections
Automatically draws 100% A→B projected target from point C.
Optional Fibonacci extensions at 1.272 and 1.618 levels for take-profit planning.
Visually plotted on the chart with colored dashed/dotted lines.
6. Clear Visuals & Labels
Connects all pattern points with colored lines.
Clearly labels points A, B, C, D on the chart.
Uses customizable colors for bullish and bearish patterns.
Includes real-time alerts when a valid pattern is detected.
How to Use It
Add to Chart
Apply the indicator to any chart and time frame. It works across all asset classes.
Adjust Inputs (Optional)
Set ZigZag Depth to control pivot detection sensitivity.
Define Min/Max Retracement levels to match your trading style.
Enable or disable Trend and Volume filters for cleaner signals.
Customize EMA length (default: 200) for trend validation.
Wait for Pattern Confirmation
The indicator constantly scans for valid N-patterns.
A pattern is confirmed only after point D forms (breakout or breakdown).
You’ll see the full pattern drawn with target levels.
Set Alerts
Alerts trigger automatically on confirmation of a bullish or bearish pattern.
You can customize these in TradingView’s alerts panel.
Zembala_DMarkThis indicator uses a specific candle-counting technique to identify potential short-term exhaustion points in price action.
It works by comparing the current candle’s closing price to the closing price 9 candles earlier and maintains two separate counts:
Buy Count (13B): Increases when the current close is lower than the close 9 bars ago.
Sell Count (13S): Increases when the current close is higher than the close 9 bars ago.
When either count reaches 13 consecutive conditions, a signal is displayed:
13B (green triangle up) suggests downside exhaustion and a possible short-term rebound.
13S (red triangle down) suggests upside exhaustion and a potential short-term pullback.
These signals are not traditional buy/sell recommendations but instead highlight areas of potential trend fatigue or price extremes. This logic is loosely inspired by bar-counting methods used in certain sequential strategies, but simplified and adapted for general use without reliance on any proprietary methodology.
Zembala_DMarkThis indicator uses a specific candle-counting technique to identify potential short-term exhaustion points in price action.
It works by comparing the current candle’s closing price to the closing price 9 candles earlier and maintains two separate counts:
Buy Count (13B): Increases when the current close is lower than the close 9 bars ago.
Sell Count (13S): Increases when the current close is higher than the close 9 bars ago.
When either count reaches 13 consecutive conditions, a signal is displayed:
13B (green triangle up) suggests downside exhaustion and a possible short-term rebound.
13S (red triangle down) suggests upside exhaustion and a potential short-term pullback.
These signals are not traditional buy/sell recommendations but instead highlight areas of potential trend fatigue or price extremes. This logic is loosely inspired by bar-counting methods used in certain sequential strategies, but simplified and adapted for general use without reliance on any proprietary methodology.
Raicher Strategy 3Presenting an enhanced version of the classic Raicher Strategy, refined to minimize noise and amplify meaningful signals.
This update incorporates all the moving averages I've utilized over the past few years, along with the flexibility to switch between Simple Moving Average (SMA), Exponential Moving Average (EMA), and Weighted Moving Average (WMA).
I hope you enjoy this iteration! Your feedback is greatly appreciated!
Pattern Detector [theUltimator5]🎯 Overview
The Pattern Detector is a comprehensive technical analysis indicator that automatically identifies and visualizes multiple pattern types on your charts. Built with advanced ZigZag technology and sophisticated pattern recognition algorithms, this tool helps traders spot high-probability trading opportunities across all timeframes and markets.
✨ Key Features
🔍 Multi-Pattern Detection System
Harmonic Patterns: Butterfly, Gartley, Bat, and Crab patterns with precise Fibonacci ratios
Classic Reversal Patterns: Head & Shoulders and Inverse Head & Shoulders
Double Patterns: Double Tops and Double Bottoms with extreme validation
Wedge Patterns: Rising and Falling Wedges with volume confirmation
📊 Advanced ZigZag Engine
Customizable sensitivity (5-50 levels)
Depth multiplier for multi-timeframe analysis
Real-time pivot detection with noise filtering
Option to display ZigZag lines only for pure price action analysis
🎨 Visualization
Clean pattern lines with distinct color coding
Point labeling system (X, A, B, C, D for harmonics / LS, H, RS for H&S)
Pattern name displays with bullish/bearish direction
Price target projections with arrow indicators
Subtle pattern fills for enhanced visibility
🛠️ Settings & Configuration
Core ZigZag Settings
ZigZag Sensitivity (5-50): Controls pattern detection sensitivity. Lower values detect more patterns but may include noise. Higher values focus on major swings only.
ZigZag Depth Multiplier (1-5): Multiplies sensitivity for deeper analysis. Level 1 = most responsive, Level 5 = major swings only.
Pattern Detection Toggles
Show ZigZag Lines Only: Displays pure ZigZag without pattern detection for price structure analysis
Detect Harmonic Patterns: Enable/disable Fibonacci-based harmonic pattern detection
Detect Head & Shoulders: Toggle classic reversal pattern identification
Detect Double Tops/Bottoms: Enable double pattern detection with extreme validation
Detect Wedge Patterns: Toggle wedge pattern detection with volume confirmation
Display Options
Show Pattern Names: Display pattern names directly on chart (e.g., "Butterfly (Bullish)")
Show Point Labels: Add lettered labels at key pattern points for structure identification
Project Harmonic Targets: Show projected completion points for incomplete harmonic patterns
📈 Pattern Types Explained
Harmonic Patterns 🦋
Advanced Fibonacci-based patterns that provide high-probability reversal signals:
Butterfly: AB=0.786 XA, BC=0.382-0.886 AB, CD=1.618-2.24 BC
Gartley: AB=0.618 XA, BC=0.382-0.886 AB, CD=1.272-1.618 BC
Bat: AB=0.382-0.50 XA, BC=0.382-0.886 AB, CD=1.618-2.24 BC
Crab: AB=0.382-0.618 XA, BC=0.382-0.886 AB, CD=2.24-3.618 BC
Head & Shoulders 👤
Classic three-peak reversal pattern indicating trend exhaustion:
Standard H&S: Bearish reversal at tops
Inverse H&S: Bullish reversal at bottoms
Automatic neckline validation and price target calculation
Double Patterns 📊
Powerful reversal patterns with extreme validation:
Double Top: Two similar highs with valley between (bearish)
Double Bottom: Two similar lows with peak between (bullish)
Includes lookback period validation to ensure patterns are significant extremes
Wedge Patterns 📐
Continuation/reversal patterns with converging trend lines:
Rising Wedge: Converging upward slopes (typically bearish)
Falling Wedge: Converging downward slopes (typically bullish)
Volume confirmation required for increased accuracy
🎯 Trading Applications
Entry Signals
Harmonic Patterns: Enter at point D completion with targets at point A
H&S Patterns: Enter on neckline break with calculated targets
Double Patterns: Enter on support/resistance break with measured moves
Wedge Patterns: Enter on breakout direction with volume confirmation
Risk Management
Use pattern structure for logical stop placement
Pattern invalidation levels provide clear exit rules
Multiple pattern confirmation increases probability
Multi-Timeframe Analysis
Higher ZigZag depth for longer-term patterns
Lower sensitivity for short-term trading patterns
Combine with other timeframes for confluence
⚙️ Optimal Settings
For Day Trading (1m-15m charts)
ZigZag Sensitivity: 5-9
Depth Multiplier: 1-2
Enable all pattern types for maximum opportunities
For Swing Trading (1H-4H charts)
ZigZag Sensitivity: 9-15
Depth Multiplier: 2-3
Focus on harmonic and H&S patterns
For Position Trading (Daily+ charts)
ZigZag Sensitivity: 15-25
Depth Multiplier: 3-5
Emphasize major harmonic and double patterns
🔧 Technical Specifications
Maximum Lookback: 5000 bars for comprehensive analysis
Pattern Overlap Prevention: Intelligent filtering prevents duplicate patterns
Performance Optimized: Efficient algorithms for real-time detection
Volume Integration: Advanced volume analysis for wedge confirmation
Fibonacci Precision: 10% tolerance for harmonic ratio validation
📚 How to Use
Add to Chart: Apply indicator to any timeframe/market
Configure Settings: Adjust sensitivity based on trading style
Enable Patterns: Toggle desired pattern types
Analyze Results: Look for completed patterns with clear structure
Plan Trades: Use price targets and pattern invalidation for trade management
Perfect for both novice and experienced traders seeking systematic pattern recognition with visualization and entry/exit signals.
TRharmonic Ultimate+# TRharmonic Ultimate+ Harmonic Pattern Indicator
## Scientific Overview
TRharmonic Ultimate+ represents an advanced implementation of harmonic pattern recognition based on Scott Carney's original research and established Fibonacci retracement principles. Unlike many existing harmonic indicators in the market that suffer from repainting issues and inaccurate ratio calculations, this indicator employs rigorous mathematical validation and real-time confirmation mechanisms.
## Technical Innovation
The indicator utilizes multi-depth ZigZag analysis ranging from 7 to 28 periods with configurable step sizes, ensuring robust pivot point detection without retrospective bias. Each pattern is validated against precise Fibonacci ratios with tolerance ranges of 0-5%, maintaining mathematical accuracy while accommodating market volatility.
## Pattern Recognition Engine
The system identifies 24 distinct harmonic patterns including classic formations (Gartley, Bat, Butterfly, Crab, Cypher, Shark, Dragon), advanced structures (5-0, Three-Drives, Wolfe Wave), ABCD variations, and inverse patterns (Anti-Gartley, Anti-Bat, etc.). While core patterns follow Scott Carney's original specifications, additional patterns were derived from extensive research compiled through Forex Factory community insights, with only statistically consistent formations integrated after rigorous backtesting and validation procedures. Notably, this represents the first market implementation of Wolfe Wave patterns based on Elliott Wave principles, combining Linda Raschke's geometric concepts with Ralph Elliott's wave theory for enhanced pattern recognition accuracy. Each pattern undergoes geometric validation to ensure structural integrity and prevent false positives commonly observed in conventional harmonic tools.
## MACD Confirmation System
To address the confirmation limitations present in many market indicators, TRharmonic Ultimate+ integrates a zero-lag MACD with adaptive RMA smoothing. This mechanism provides directional bias confirmation, significantly reducing false signals and enhancing trade entry precision.
## Real-Time Execution
The indicator operates without repainting, delivering confirmed signals only after bar closure. Pattern completion triggers immediate alerts with calculated entry points, stop-loss levels, and multiple take-profit targets based on Fibonacci extension levels. The built-in deduplication system prevents multiple alerts for identical patterns within specified bar ranges.
## Risk Management Integration
Each detected pattern includes comprehensive trading levels: entry at completion point, stop-loss at critical Fibonacci levels, and three progressive take-profit targets. The indicator maintains a maximum of 5 active patterns simultaneously, ensuring clear market analysis without visual clutter.
## Advanced Features
The system incorporates Telegram integration for remote notifications, adaptive color themes for optimal chart visibility, and pattern classification by point structure (4-point, 5-point, 6-point). Time-based validation for ABCD patterns and geometric constraints for complex formations ensure mathematical precision often lacking in alternative solutions.
## Market Application
TRharmonic Ultimate+ addresses common deficiencies in harmonic pattern recognition by implementing Scott Carney's original specifications with modern algorithmic precision. The indicator serves as a reliable tool for identifying high-probability reversal zones while maintaining strict adherence to established harmonic trading principles.
Normalized Open InterestNormalized Open Interest (nOI) — Indicator Overview
What it does
Normalized Open Interest (nOI) transforms raw futures open-interest data into a 0-to-100 oscillator, so you can see at a glance whether participation is unusually high or low—similar in spirit to an RSI but applied to open interest. The script positions today’s OI inside a rolling high–low range and paints it with contextual colours.
Core logic
Data source – Loads the built-in “_OI” symbol that TradingView provides for the current market.
Rolling range – Looks back a user-defined number of bars (default 500) to find the highest and lowest OI in that window.
Normalization – Calculates
nOI = (OI – lowest) / (highest – lowest) × 100
so 0 equals the minimum of the window and 100 equals the maximum.
Visual cues – Plots the oscillator plus fixed horizontal levels at 70 % and 30 % (or your own numbers). The line turns teal above the upper level, red below the lower, and neutral grey in between.
User inputs
Window Length (bars) – How many candles the indicator scans for the high–low range; larger numbers smooth the curve, smaller numbers make it more reactive.
Upper Threshold (%) – Default 70. Anything above this marks potentially crowded or overheated interest.
Lower Threshold (%) – Default 30. Anything below this marks low or capitulating interest.
Practical uses
Spot extremes – Values above the upper line can warn that the long side is crowded; values below the lower line suggest disinterest or short-side crowding.
Confirm breakouts – A price breakout backed by a sharp rise in nOI signals genuine engagement.
Look for divergences – If price makes a new high but nOI does not, participation might be fading.
Combine with volume or RSI – Layer nOI with other studies to filter false signals.
Tips
On intraday charts for non-crypto symbols the script automatically fetches daily OI data to avoid gaps.
Adjust the thresholds to 80/20 or 60/40 to fit your market and risk preferences.
Alerts, shading, or additional signal logic can be added easily because the oscillator is already normalised.
The Butterfly [theUltimator5]This is a technical analysis tool designed to automatically detect and visualize Butterfly harmonic patterns based on recent market pivot structures. This indicator uses a unique plotting and detection algorithm to find and display valid Butterfly patterns on the chart.
The indicator works in real-time and historically by identifying major swing highs and lows (pivots) based on a user-defined ZigZag length. It then evaluates whether the most recent price structure conforms to the ideal proportions of a bullish or bearish Butterfly pattern. If the ratios between price legs XA, AB, BC, and projected CD meet defined tolerances, the pattern is plotted on the chart along with a projected D point for potential reversal.
Key Features:
Automatic Pivot Detection: The script analyzes recent price action to construct a ZigZag pattern, identifying swing points as potential X, A, B, and C coordinates.
Butterfly Pattern Validation: The pattern is validated against traditional Fibonacci ratios:
--AB should be approximately 78.6% of XA.
--BC must lie between 38.2% and 88.6% of AB.
--CD is projected as a multiple of BC, with user control over the ratio (e.g., 1.618–2.24).
Bullish and Bearish Recognition: The pattern logic detects both bullish and bearish Butterflies, automatically adjusting plotting direction and color themes.
Custom Ratio Tolerance: Users can define how strictly the AB/XA and BC/AB legs must adhere to ideal ratios, using a percentage-based tolerance slider.
Fallback Detection Logic: If a new pattern is not identified in recent bars, the script performs a backward search on the last four pivots to find the most recent valid pattern.
Force Mode: A toggle allows users to force the drawing of a Butterfly pattern on the most recent pivot structure, regardless of whether the ideal Fibonacci rules are satisfied.
Dynamic Visualization:
--Clear labeling of X, A, B, C, and D points.
--Colored connecting lines and filled triangles to visualize structure.
--Optional table displaying key Fibonacci ratios and how close each leg is to ideal values.
Inputs:
Length: Controls the sensitivity of the ZigZag pivots. Smaller values result in more frequent pivots.
Tolerance (%): Adjustable threshold for acceptable deviation in AB/XA and BC/AB ratios.
CD Length Multiplier: Projects point D by multiplying the BC leg using a value between 1.618 and 2.24.
Force New Pattern: Overrides validation checks to display a Butterfly structure on recent pivots regardless of ratio accuracy.
Show Table: Enables a table showing calculated ratios and deviations from the ideal.
Multi-Timeframe Wolfe Wave StrategyThis invite-only strategy implements an advanced multi-timeframe Wolfe Wave pattern recognition system specifically designed for institutional-grade algorithmic trading environments.
**Core Mathematical Framework:**
The strategy employs sophisticated mathematical calculations across 10 distinct timeframes (377, 233, 144, 89, 55, 34, 21, 13, 8, 5 periods), utilizing Elliott Wave ratio theory combined with proprietary algorithmic enhancements. Unlike standard Wolfe Wave implementations that rely on visual pattern recognition, this system uses quantitative analysis to identify precise entry and exit points.
**Technical Implementation:**
• **Pattern Detection Algorithm:** Calculates price relationships using configurable ratio sets including Fibonacci sequences, Elliott Wave ratios, Golden Ratio, Harmonic Patterns, Pi-based calculations, and custom mathematical progressions
• **Multi-Timeframe Confluence:** Simultaneously analyzes patterns across all timeframes to ensure signal reliability and reduce false positives
• **Dynamic Target Calculation:** Employs advanced mathematical modeling to project optimal profit targets based on historical price behavior and pattern completion theory
• **Risk Management Engine:** Implements position-based stop losses calculated as percentages of target profits, with liquidation price monitoring for leveraged positions
**Originality and Innovation:**
This implementation differs significantly from traditional Wolfe Wave indicators through several key innovations:
1. **Algorithmic Pattern Validation:** Uses mathematical confirmation across multiple timeframes rather than subjective visual analysis
2. **Adaptive Ratio Selection:** Offers 24 different ratio calculation methods, allowing optimization for various market conditions
3. **Institutional Integration:** Features comprehensive webhook messaging for automated execution via external trading systems
4. **Advanced Position Management:** Includes sophisticated position sizing controls with maximum concurrent position limits
**Strategy Logic:**
For bullish conditions, the algorithm identifies when price action meets specific mathematical criteria:
- Point validation through ratio analysis between swing highs/lows
- Confluence confirmation across multiple timeframes
- Minimum profit threshold filtering to ensure trade quality
- Dynamic stop-loss positioning based on pattern geometry
The mathematical approach uses proprietary calculations that extend beyond traditional Fibonacci levels, incorporating elements from chaos theory, fractal geometry, and advanced statistical analysis.
**Risk Management Features:**
• Configurable stop-loss percentages relative to profit targets
• Maximum position limits to control portfolio exposure
• Liquidation price monitoring for margin trading
• Time-based filtering options for market session control
• Minimum profit threshold settings to filter low-quality signals
**Intended Markets and Conditions:**
Optimized for cryptocurrency markets with high volatility and sufficient liquidity. Works effectively in trending and ranging market conditions due to its multi-timeframe approach. Best suited for assets with clear swing structure and adequate price movement.
**Performance Characteristics:**
The strategy is designed for active trading with frequent position entries across multiple timeframes. Position holding periods vary from short-term scalping to medium-term swing trading depending on pattern completion timeframes.
**Technical Requirements:**
Requires understanding of advanced pattern recognition theory, risk management principles, and algorithmic trading concepts. Users should be familiar with Wolfe Wave methodology and Elliott Wave theory fundamentals.
DCI### 📌 **DCI – Direction Correlation Index**
#### 🔹 **What It Is**
The **Direction Correlation Index (DCI)** is a tool for measuring how closely a group of up to 10 symbols move together in both *trend correlation* and *short-term direction*. It helps identify whether a group of assets is acting in unison or moving independently.
---
#### ⚙️ **How It Works**
DCI outputs three key metrics:
1. **Average Correlation**
* Measures the average of all pairwise correlations between the selected symbols.
* Prices are first standardized using a z-score (based on simple moving average and standard deviation over a user-defined lookback period).
* Correlation is calculated using Pearson’s method for all 45 symbol pairs.
* Result ranges from:
* `+1.00` = strong positive correlation
* `0.00` = no correlation
* `-1.00` = strong inverse correlation
2. **Direction Agreement %**
* Checks whether each symbol is moving up or down compared to its previous bar.
* Calculates the percentage of symbols moving in the same direction.
* For example: if 7 of 10 symbols are moving up and 3 are moving down, the direction agreement is 70%.
3. **Strong Correlation Count**
* Counts how many of the 45 symbol pairs have an absolute correlation above `0.7`.
* Helps highlight how many pairs are currently highly correlated.
---
#### 📈 **How to Use It**
1. **Select Symbols**
* In the **Settings**, you can input up to 10 custom symbols. These can be stocks, indices, forex pairs, crypto, or any tradable asset.
2. **Adjust the Lookback Period**
* Defines how many bars back are used to calculate z-scores and correlations.
* Default is `12`. Use shorter periods for faster response; longer periods for smoother, slower data.
3. **Interpret the Table (Plotted on Chart)**
* **Avg Corr**: Tells you how much the group is co-moving. High correlation often reflects unified market behavior.
* **Dir Agr %**: Shows directional sync. High values mean most instruments are trending the same way in the current bar.
* **> 0.7**: The number of pairs currently strongly correlated (|corr| > 0.7).
---
#### 🧠 **Practical Usage Tips**
* Use DCI to monitor **sector alignment**, **portfolio behavior**, or **market group momentum**.
* Confirm trend strength by checking if high correlation aligns with a strong direction agreement.
* Low correlation + mixed direction can signal **choppy or indecisive markets**.
* High correlation + strong direction = **trend confirmation** across your selected instruments.
- Made with DeepSeek
Cap's Dual Auto Fib RetracementThis will draw both a bullish retracement and a bearish retracement. It's defaulted to just show the 0.618 level as I feel like this is the "make or break" level.
- A close below the bullish 0.618 retracement would be considered very bearish.
- A close above the bearish 0.618 would be considered very bullish.
(You can still configure whichever levels you want, however.)
This script was removed by TradingView last time it was published. I couldn't find another script that would provide both bearish/bullish retracements, so I'm assuming this is "original" enough. Maybe it was removed because the description wasn't long enough, so...
Detailed Description:
This indicator automatically plots Fibonacci retracement levels based on zigzag pivot points for both bullish (low-to-high) and bearish (high-to-low) price movements. It identifies key pivot points using a customizable deviation multiplier and depth setting, then draws Fibonacci levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1) with user-defined visibility and colors for each level.
Features:
Deviation: Adjusts sensitivity for detecting pivots (default: 2).
Depth: Sets minimum bars for pivot calculation (default: 10).
Extend Lines: Option to extend lines left, right, or both.
Show Prices/Levels: Toggle price and level labels, with options for value or percentage display.
Labels Position: Choose left or right label placement.
Background Transparency: Customize fill transparency between levels.
Alerts: Triggers when price crosses any Fibonacci level.
Usage: Apply to any chart to visualize potential support/resistance zones. Adjust settings to suit your trading style. Requires sufficient data; use lower timeframes or reduce depth if pivots are not detected.
Note: This is a technical analysis tool and does not provide trading signals or financial advice. Always conduct your own research.
Triangle Asc/Descending Patterns [Drobode]█ DESCRIPTION
The script automatically tracks the descending or ascending triangle pattern. The script provides advanced settings, allowing you to adjust the pattern accuracy from high to low depending on your needs and technical analysis style. The main goal of the script is to facilitate the routine work of a trader in identifying certain trading situations (patterns). However, you should understand that the script is not a full-fledged self-sufficient strategy, in case of receiving a signal, it is recommended that you additionally conduct a comprehensive thorough analysis before taking trading actions. The script can be useful for traders of all levels, both beginners and experienced analysts. This variation of the script, in case of identifying a pattern, draws a contour triangle with the background color of the figure. The ascending triangle has a blue color, the descending triangle has a red color. The logic of the script provides that one of the legs (one side) of the triangle is always a horizontal line, simultaneously being a line of resistance or support, other variations of triangle patterns are not tracked. According to generally defined beliefs and observations of pattern formation, a descending and ascending triangle may indicate a possible breakdown of the conditional horizontal level to which the price of the instrument has approached, however, at the same time it is necessary to deeply analyze many other factors at this point, in particular, such as volumes, consolidation, volatility, and so on.
█ SCRIPT SETTINGS
By default, the script was pre-developed and tested on the M15 timeframe with the USDT.P crypto futures instruments.
Alert
The Alert function in the script is enabled by default, you just need to activate the Alert in the TradingView window and select the signal source - Triangle Asc/Descending Patterns .
The notification provides the following information (example):
Triangle_Ascending
Ticker- EGLDUSDT.P
Price-19.754
Timeframe- 15
Period length-160
Periods length
The script allows you to set the period length (number) of bars on which the calculation will be performed. Different periods make it possible to cover more timeframes (in particular, larger timeframes). The calculation is performed simultaneously on all periods, but you can turn off "Period length 3" and "Period length 4" by clicking on the check mark, this can speed up the script. The following period values are set by default: "Period length 1" – 80,
"Period length 2" – 160, "Period length 3" – 300, "Period length 4" – 681.
Percentage deviation of extremes
The next settings are the percentage deviation from the hypotenuse and horizontal leg, which creates the zone in which the extremes of the bars that will form the triangle shape should be. The smaller the deviation, the greater the accuracy and the closer to the hypotenuse and leg the bar extrema should be, however, in this case the number of pattern identifications will be smaller. By default, the deviation zone from the hypotenuse "Deflection zone of tangents to the hypotenuse" is - 0.4%, the deviation zone from the horizontal leg "Tangent deviation zone horizontal leg" is - 0.08%.
The presence of extrema at certain points on the sides of a triangle
The last block of settings are the conditions that increase the accuracy of the proportions of the pattern figure. These settings are aimed at confirming the presence of extrema in certain areas along the hypotenuse and horizontal leg. Thus, enabling "Extrema on the horizontal leg almost along the entire length" means that only those triangles will be tracked in which the horizontal leg zone has extrema almost along the entire length of this leg, this increases the accuracy but reduces the number of detected patterns. "Extremes present on second half of horizontal leg (more than 50%)" assumes that only those triangles will be tracked in which the extrema are present on the second half of the length of the given leg (more than 50%) in the zone of the horizontal leg. "Presence of an extrema in the middle region of the hypotenuse" assumes that only those triangles will be tracked in which the extrema are present on a certain segment of length in the central region of the hypotenuse.
Spectral Order Flow Resonance (SOFR) Spectral Order Flow Resonance (SOFR)
See the Market’s Hidden Rhythms—Trade the Resonance, Not the Noise!
The Spectral Order Flow Resonance (SOFR) is a next-generation tool for traders who want to go beyond price and volume, tapping into the underlying “frequency signature” of order flow itself. Instead of chasing lagging signals or reacting to surface-level volatility, SOFR lets you visualize and quantify the real-time resonance of market activity—helping you spot when the crowd is in sync, and when the regime is about to shift.
What Makes SOFR Unique?
Not Just Another Oscillator:
SOFR doesn’t just measure momentum or volume. It applies spectral analysis (using Fast Fourier Transform) to normalized order flow, extracting the dominant cycles and their resonance strength. This reveals when the market is harmonizing around key frequencies—often the precursor to major moves.
Regime Detection, Not Guesswork:
By tracking harmonic alignment and phase coherence across multiple Fibonacci-based frequencies, SOFR identifies when the market is entering a bullish, bearish, or neutral resonance regime. This is visualized with a dynamic dashboard and info line, so you always know the current state at a glance.
Dynamic Dashboard:
The on-chart dashboard color-codes each key metric—regime, dominant frequency, harmonic alignment, phase coherence, and energy concentration—so you can instantly gauge the strength and direction of the current resonance. No more guesswork or clutter.
Universal Application:
Works on any asset, any timeframe, and in any market—futures, stocks, crypto, forex. If there’s order flow, SOFR can reveal its hidden structure.
How Does It Work?
Order Flow Normalization:
SOFR calculates the net buying/selling pressure and normalizes it using a rolling mean and standard deviation, making the signal robust across assets and timeframes.
Spectral Analysis:
The script applies FFT to the normalized order flow, extracting the magnitude and phase of several key frequencies (typically Fibonacci numbers). This allows you to see which cycles are currently dominating the market.
Resonance & Regime Logic:
When multiple frequencies align and exceed a dynamic resonance threshold, and phase coherence is high, SOFR detects a “resonance regime”—bullish, bearish, or neutral. This is when the market is most likely to experience a strong, sustained move.
Visual Clarity:
The indicator plots each frequency’s magnitude, highlights the dominant one, and provides a real-time dashboard with color-coded metrics for instant decision-making.
SOFR Dashboard Metrics Explained
Regime:
What it means: The current “state” of the market as detected by SOFR—Bullish, Bearish, or Neutral.
Why it matters: The regime tells you whether the market’s order flow is resonating in a way that favors upward moves (Bullish), downward moves (Bearish), or is out of sync (Neutral). This helps you align your trades with the prevailing market force, or stand aside when there’s no clear edge.
Dominant Freq:
What it means: The most powerful frequency (cycle length, in bars) currently detected in the order flow.
Why it matters: Markets often move in cycles. The dominant frequency shows which cycle is currently driving price action, helping you time entries and exits with the market’s “heartbeat.”
Harmonic Align:
What it means: The number of key frequencies (out of 3) that are currently in resonance (above threshold).
Why it matters: When multiple frequencies align, it signals that different groups of traders (with different time horizons) are acting in concert. This increases the probability of a strong, sustained move.
Phase Coh.:
What it means: A measure (0–100%) of how “in sync” the phases of the key frequencies are.
Why it matters: High phase coherence means the market’s cycles are reinforcing each other, not cancelling out. This is a classic signature of trending or explosive moves.
Energy Conc.:
What it means: The concentration of spectral energy in the dominant frequency, relative to the average.
Why it matters: High energy concentration means the market’s activity is focused in one cycle, increasing the odds of a decisive move. Low concentration means the market is scattered and less predictable.
How to Use
Bullish Regime:
When the dashboard shows a green regime and high harmonic alignment, the market is in a bullish resonance—look for long opportunities or trend continuations.
Bearish Regime:
When the regime is red and alignment is high, the market is in a bearish resonance—look for short opportunities or trend continuations.
Neutral Regime:
When the regime is gray or alignment is low, the market is out of sync—consider waiting for clearer signals or using other tools.
Combine with Your Strategy:
Use SOFR as a confirmation tool, a filter for trend/range conditions, or as a standalone regime detector. The dashboard’s color-coded metrics help you instantly spot when the market is entering or exiting resonance.
Inputs Explained
FFT Window Length :
Controls the number of bars used for spectral analysis. Higher values smooth the signal, lower values make it more sensitive.
Order Flow Period:
Sets the lookback for normalizing order flow. Shorter periods react faster, longer periods are smoother.
Fibonacci Frequencies:
Choose which cycles to analyze. Default values (5, 8, 13) capture common market rhythms.
Resonance Threshold:
Sets how strong a frequency’s signal must be to count as “in resonance.” Lower for more signals, higher for stricter filtering.
Signal Smoothing & Amplify:
Fine-tune the display for your chart and asset.
Dashboard & Info Line Toggles:
Show or hide the on-chart dashboard and info line as needed.
Why This Matters
Most indicators show you what just happened. SOFR shows you when the market is entering a state of resonance—when crowd behavior is most likely to produce powerful, sustained moves. By visualizing the hidden structure of order flow, you gain a tactical edge over traders who only see the surface.
For educational purposes only. Not financial advice. Always use proper risk management.
Use with discipline. Trade your edge.
— Dskyz, for DAFE Trading Systems
Gartley 222 Strategy (Final Full Version)Gartley 222 Strategy (Bullish Pattern) — Repaint-Free, Backtestable
This strategy is based on the classic Gartley 222 harmonic pattern, originally introduced by H.M. Gartley in Profits in the Stock Market (1935). It identifies potential bullish reversal zones by detecting a five-point retracement structure (X-A-B-C-D) using pivot points and Fibonacci confluence.
🧠 Strategy Logic:
Detects valid pivot-based X, A, B, C points
Validates Gartley ratios:
AB = 61.8%–78.6% of XA
CD = 78.6%–88.6% of AB
Enters long at point D only after pivot confirmation (non-repainting)
Exits at 127% Fibonacci extension of XA or on stop loss
🔍 Features:
✅ Repaint-free and fully backtestable
✅ Visual X–A–B–C–D pattern lines on chart
✅ Customizable pivot length, risk, and reward ratios
✅ Alerts for real-time Gartley Buy pattern completion
Ideal for swing traders using 4H or Daily timeframes on trending instruments like NIFTY, BANKNIFTY, or major stocks.
RunRox - Harmonic Patterns📐 RunRox - Harmonic Pattern indicator , we are pleased to present our new, built upon sophisticated logic for identifying and plotting harmonic formations directly on your charts. Significant effort and research have been invested into the development of this indicator, and now it is ready to be included in our premium indicator package.
In this post, we will provide a comprehensive overview of our indicator, describing all its key features, capabilities, and possible use cases. We strongly recommend reading the entire post thoroughly to fully understand the logic and operation behind our new Harmonic Pattern indicator.
📜 A BRIEF HISTORY
Harmonic patterns are specialized chart formations based on Fibonacci ratios, used by traders to identify potential reversal points in financial markets. Originally introduced by H.M. Gartley in the 1930s and later refined by Scott Carney, harmonic patterns became widely recognized for their effectiveness in forecasting precise turning points and market reversals. Over the years, these patterns have become an essential tool for traders employing technical analysis.
📌 INDICATOR FEATURES
Identification of 3 pattern sets:
✅ 5 Classic Chart Patterns:
Head and Shoulders, Triangle, Wedge, Flag, Double Top/Bottom
✅ 11 Harmonic Patterns:
Bat, Alternate Bat, Butterfly, Crab, Deep Crab, Gartley, Shark, Cypher, 5-0 Pattern, AB=CD, 3-Drive
✅ 10 Non-standard Harmonic Patterns:
Nen Star, White Swan, Black Swan, Anti-Bat, Anti-Butterfly, Anti-Crab, Anti-Gartley, Anti-Shark, Anti-Cypher, Anti-Nen Star
Additional features:
Built-in backtesting system
Pattern win-rate calculation
Flexible Stop Loss settings
Flexible Take Profit settings
Customizable pattern detection parameters
Advanced trailing stop functionality
Flexible notification system
And much more.
Below is a screenshot visually illustrating all the classic chart patterns that our indicator identifies on the chart.
This is how the 11 harmonic patterns visually appear on the chart.
10 Non-standard harmonic patterns visually represented on the chart.
🔸 XABCD are standard letters representing specific points used in forming harmonic patterns. The sequence always begins with the point X as the initial reference point, followed by points ABCD, which together complete the harmonic pattern.
These points are identified using a specialized method, scanning through thousands of potential points on the chart simultaneously. The indicator analyzes numerous potential formations, selecting and displaying only those patterns that meet specific validation criteria. This meticulous process ensures that only valid and accurate patterns appear on your chart, as illustrated in the screenshot below.
🔸 Ratio: Between the points XABCD, you’ll notice the “Ratio,” indicating the proportional relationships required between these points to correctly form harmonic patterns. The indicator displays a pattern on the chart only when these ratio conditions are precisely met, thereby maximizing accuracy and ensuring the validity of identified patterns. This aspect is clearly demonstrated in the screenshot below.
🔸 TP and SL levels: For each identified pattern, we also display recommended Take Profit (TP) and Stop Loss (SL) levels directly on the chart. Additionally, we provide a suggested entry price (Entry Level). It is important to note that entering a trade requires the price to retrace into the specified Entry Level zone. Therefore, you must wait until the price returns to this zone for the pattern to be considered fully formed and ready for entry.
Using the Butterfly pattern as an example, we’ve illustrated all the key components of a pattern. Our indicator offers extensive customization, allowing you to finely adjust everything from the acceptable Ratio ranges to Stop Loss and Take Profit levels, among many other parameters. Below, we’ll discuss the indicator’s capabilities and its customizable settings in detail.
📶 ACTIVE PATTERNS PANEL
In the screenshot above, you can see the panel displaying all active patterns currently formed on the chart, including the pattern direction, entry price, two take profit levels, and the stop loss level. This provides a quick and clear overview of the available patterns on your chart, significantly speeding up your trading process.
Additionally, you can fully customize this panel, adjusting its position, size, or even completely removing it if you prefer.
📊 PATTERN STATISTICS
The Pattern Statistics Panel displays historical performance results for all patterns. The indicator automatically performs backtesting for each pattern based on historical data, taking into account all user-defined settings. Results are conveniently presented in this panel.
This feature is highly practical as it allows you to quickly evaluate the effectiveness of each pattern directly on your chart. As a result, you can easily identify which patterns are performing best and which patterns might be less effective and therefore unsuitable for trading on the current instrument.
Furthermore, the panel organizes patterns into specific categories Classical, Harmonic, and Anti-Harmonic and separates results by trade direction (Long or Short). This helps you quickly determine the optimal trading direction for each pattern category.
⚙️ INDICATOR SETTINGS
Now, it’s time to discuss the indicator settings in detail and describe all the available options and features that you can customize according to your preferences.
🔶 Detection Settings
In the screenshot above, you see the first settings block with the following options:
FastMode – When activated, only patterns are displayed on the chart, without the results table. This significantly speeds up the pattern rendering process and makes the script run faster.
Error % – Allows you to specify a permissible deviation from the ideal XABCD parameters. By increasing this percentage, the indicator will detect more patterns, but they will deviate from the ideal ratio proportions by the percentage you’ve set.
Search Priority – Choose between “Large First” or “Small First” pattern prioritization. With “Large First,” the indicator prioritizes detecting larger patterns first; smaller patterns are only displayed if no suitable large patterns are available, and vice versa.
ZigZag Period – Determines the period for the ZigZag structure used as a foundation for pattern detection. It’s an essential parameter that directly affects the number and quality of detected patterns.
Pattern Size – Specify the desired size of patterns in terms of the number of bars on the chart.
Remove patterns older than, bars – Allows you to remove old patterns from the chart and prevent their display if they formed more than a set number of bars ago (default is 200 bars).
🔶 Entry / Target / StopLoss Settings
In the screenshot above, you can see the settings related to configuring your preferred entry points, target levels, and stop-loss strategies. Below is a detailed explanation of each option:
Trade Direction – Both / Long / Short - Choose the direction in which you want to trade. Selecting “Both” will search for patterns in both directions, while “Long” or “Short” will filter the patterns to show only those that align with the selected direction.
Entry % - This sets the entry level as a percentage of the pattern’s total size. It determines how far from the pattern’s starting point the entry will be placed.
Target 1 - Also defined as a percentage of the pattern size. This represents the distance from the entry point to the first take profit level.
Target 2 - Optionally, you can enable a second take profit level and set the percentage distance for it.
Stop-Loss Type - Choose from six different stop-loss types: Invalidation Price, Last Pivot, %, % of pattern size, Pips, or Risk/Reward ratio. Each provides flexibility depending on your trading style.
Stop-Loss SL Value - This is the specific value related to the chosen stop-loss type. For example, if you choose the “%” type, this setting will define the percentage used to place the Stop Loss level.
Using the Shark pattern as an example, let’s demonstrate how the entry, target, and stop-loss levels function. Based on the overall size of the pattern, you can input the desired percentage values for your trade entry, target, and stop-loss levels, and the indicator will automatically calculate their exact placement relative to the pattern’s structure.
You can also choose alternative stop-loss methods, such as Risk/Reward, in which case the stop-loss will be dynamically calculated based on the risk-to-reward ratio you define.
It’s also important to note that for harmonic patterns, the height of the pattern is calculated based on the segment from point C to point D. However, for the Black Swan pattern, the measurement is taken from point A to point D. This distinction should be kept in mind when configuring your stop-loss levels.
Additionally, classic patterns each have their own unique method for calculating pattern height, depending on the specific structure.
🔶 Trailing Stop Settings
These settings are designed to help improve your strategy’s results, especially if you use break-even stop-loss adjustments after reaching specific targets, which can help increase your win rate.
Move SL to Break-even after reaching Target 1 - Enabling this option will automatically move the stop-loss to the entry level (break-even) once the price hits the first target (Target 1).
Trailing Stop Type - Choose from three trailing stop types: Percentage (%), % of pattern size, Pips
Trailing Stop Value - Enter the desired value for the chosen trailing stop type. For example, if you selected %, the number entered will be treated as a percentage. If you chose Pips, it will be the number of pips for the trailing stop.
Enable Trailing Stop at reaching - This setting defines when the trailing stop should be activated. You can choose from four options: Target 1, %, % of pattern size, Pips
Trailing After Value - This works in combination with the previous setting. If you choose one of the three non-Target options, this field lets you enter the specific value that will trigger the trailing stop.
🔶 Display Settings
In the screenshot above, you can see the Display Settings section, which allows you to fully customize the visual appearance of patterns on your chart according to your preferences.
You can choose to show or hide pattern labels (XABCD), ratio values, entry/TP/SL levels, and pattern fill for better visual clarity.
Additionally, you can set the maximum number of active patterns displayed on the chart, as well as view the historical formations of any specific pattern to analyze how it appeared in past price action.
🔶 Dashboard | Pattern Table
In the screenshot above, you can see the settings for two tables: one displaying the results of each pattern , and the other showing active patterns currently on the chart. Both tables offer flexible customization options, allowing you to adjust their color schemes, sizes, and on-screen positions to best fit your workflow.
🔶 Patterns Setting
For each individual pattern, you can customize its appearance by selecting your preferred color , adjusting its transparency , or even hiding it entirely from the chart if you don’t wish to display it.
🔶 Notifications
You can easily configure notifications for various events, such as the appearance of a new pattern or when the price reaches the entry level of a trade.
Additionally, a dedicated panel allows you to use macros for advanced customization of your alerts, so you can tailor the notifications exactly to your needs and trading style.
List of Supported Placeholders:
{{event}} - Event name ('New Pattern', 'Target 1', etc.)
{{pattern}} - Pattern name ('Bat', 'Crab', etc.)
{{event_price}} - Event Price (entry price for entry event, sl price for sl event, etc.)
{{sl}} - Stop-loss price
{{entry}} - Entry Price
{{target1}}, {{target2}} - Target Prices
{{invalidation}} - Invalidation Price
{{exchange}} - Exchange ('Binance')
{{ticker}} - Ticker ('BTCUSD')
{{interval}} - Timeframe ('1s', '1', 'D')
{{open}}-{{close}}-{{high}}-{{low}} - Candle price values
{{volume}} - Candle volume
{{time}} - Candle open time in UTC timezone
{{timenow}} - Signal time in UTC timezone
{{syminfo.currency}} - 'USD' for BTCUSD pair
{{syminfo.basecurrency}} - 'BTC' for BTCUSD pair
✅ USAGE METHODS
The indicator and its patterns can be used as a standalone trading strategy, providing clear entry points, stop-loss levels, and take-profit targets - without the need for any additional tools or indicators.
However, for optimal results, we recommend integrating the indicator with your existing trading strategy. Using it as a confluence tool - alongside other technical indicators or as a complement to your fundamental analysis - can significantly enhance your decision-making and improve overall performance!
🟠 Disclaimer
Past performance is not indicative of future results. To trade successfully, it is crucial to have a thorough understanding of the market context and the specific situation at hand. Always conduct your own research and analysis before making any trading decisions.
Swing High/Low Scalper(Mastersinnifty)Overview
The Swing High/Low Scalper is designed for traders seeking structured entries and disciplined stop-loss planning during momentum shifts. It combines smoothed Force Index readings with swing high/low analysis to identify moments where both momentum and structural price levels align.
When a new directional bias is confirmed, the indicator plots clear entry signals and dynamically calculates the nearest logical stop-loss level based on recent swing points.
---
Core Logic
- Force Index Bias Detection
- The Force Index (price × volume change) is smoothed with an EMA to determine sustained bullish or bearish momentum.
- Signal Memory and Noise Reduction
- The indicator remembers the last signal (buy/sell) and only triggers a new signal when the bias changes, helping avoid redundant entries in sideways or noisy conditions.
- Swing-based Stop-Loss Calculation
- Upon signal confirmation, the script automatically plots a stop-loss label near the most recent swing low (for buys) or swing high (for sells).
- If conditions are extreme, fallback safety checks are used to validate the stop-loss placement.
---
Key Features
- Dynamic, structure-based stop-loss plots at every trade signal.
- Visual background bias:
- Green tint = Bullish bias
- Red tint = Bearish bias
- Minimalist and clean chart visualization for easy interpretation.
- Designed for scalability across timeframes (from 1-minutes to daily charts).
---
Why It’s Unique
- Unlike simple momentum oscillators or swing indicators, this tool integrates a state-tracking mechanism.
- A signal is only generated when a true shift in directional force occurs and swing structure supports the move, seeking to catch only meaningful changes rather than every minor fluctuation.
- This dual-filter approach emphasizes quality over quantity, aiming for disciplined entries with risk levels derived from actual price behavior, not arbitrary formulas.
---
How to Use
- Apply the Script to your desired chart and timeframe.
- Look for Signals:
- Green Up Arrow = Buy Signal
- Red Down Arrow = Sell Signal
- Observe Stop-Loss Labels
- Use the plotted SL labels for setting exit points based on recent swing structure.
- Monitor Background Bias:
- Green or Red background hints at prevailing directional momentum.
---
Important Disclaimer
This tool is intended to assist technical analysis and trade planning.
It does not provide financial advice or guarantee any future performance.
Always use additional risk management practices when trading.
Mingo Smart Entry Master 1H-15M - HTF BOS Zones + TP/SL📛 Script Title:
Smart Entry Master 1H–15M – HTF BOS Zones + TP/SL + Dashboard
🧠 What This Script Does:
This script is a higher-timeframe smart entry strategy designed to:
Detect Break of Structure (BOS) on the 1-hour timeframe
Draw Buy/Sell zones automatically on the chart
Provide clear SL & TP lines for trades
Use optional Smart Sell Detection to improve signal quality
Show a dashboard with live signal status
Keep the chart clean by removing old zones and labels
Ideal for intraday swing traders and confirmation-based scalpers looking to trade based on HTF structure + clean zone visualization.
📊 How the Strategy Works:
1. 🧱 Break of Structure (BOS) Detection (1H)
Script uses 1-hour swing highs/lows (swingLen) to define structure
If the 1H candle closes above a swing high → Buy Setup
If the 1H candle closes below a swing low → Sell Setup
🧠 Optional: Smart Sell Detection
Adds a buffer: compares close to lowest low in a lookback window (to reduce fake sells)
🔥 How to Use This Script in Real Trading:
Use on 15M chart to trade, but zones are based on 1H structure
When a Buy or Sell zone appears, check:
Is price tapping into the zone?
Did a clean BOS occur?
SL/TP lines give a ready-made trade plan
Wait for confirmation (price reaction, candle pattern, volume spike)
Set your alert for auto-trading or manual entry
Dkoderweb repainting issue fix strategyHarmonic Pattern Recognition Trading Strategy
This TradingView strategy called "Dkoderweb repainting issue fix strategy" is designed to identify and trade harmonic price patterns with optimized entry and exit points using Fibonacci levels. The strategy implements various popular harmonic patterns including Bat, Butterfly, Gartley, Crab, Shark, ABCD, and their anti-patterns.
Key Features
Pattern Recognition: Identifies 17+ harmonic price patterns including standard and anti-patterns
Fibonacci-Based Entries and Exits: Uses customizable Fibonacci levels for precision entries, take profits, and stop losses
Alternative Timeframe Analysis: Option to use higher timeframes for pattern identification
Heiken Ashi Support: Optional use of Heiken Ashi candles instead of regular candlesticks
Visual Indicators:
Pattern visualization with ZigZag indicator
Buy/sell signal markers
Color-coded background to highlight active trade zones
Customizable Fibonacci level display
How It Works
The strategy uses a ZigZag-based pattern identification system to detect pivot points
When a valid harmonic pattern forms, the strategy calculates the optimal entry window using the specified Fibonacci level (default 0.382)
Entries trigger when price returns to the entry window after pattern completion
Take profit and stop loss levels are automatically set based on customizable Fibonacci ratios
Visual alerts notify you of entries and exits
The strategy tracks active trades and displays them with background color highlights
Customizable Settings
Trade size
Entry window Fibonacci level (default 0.382)
Take profit Fibonacci level (default 0.618)
Stop loss Fibonacci level (default -0.618)
Alert messages for entries and exits
Display options for specific Fibonacci levels
Alternative timeframe selection
This strategy is designed to fix repainting issues that are common in harmonic pattern strategies, ensuring more reliable signals and backtesting results.
Dkoderweb repainting issue fix indicator# Harmonic Pattern Trading Indicator for TradingView
This indicator, called "Dkoderweb repainting issue fix indicator," is designed to identify and trade harmonic chart patterns in financial markets. It uses Fibonacci relationships between price points to detect various patterns like Bat, Butterfly, Gartley, Crab, Shark, and others.
## Key Features:
- **Pattern Recognition**: Automatically identifies over a dozen harmonic patterns including standard and anti-patterns
- **Customizable Settings**: Options to use Heikin Ashi candles and alternate timeframes
- **Fibonacci Levels**: Configurable display of key Fibonacci retracement levels
- **Entry and Exit Signals**: Clear buy/sell signals with visual triangles above/below bars
- **Trade Management**: Automatic take-profit and stop-loss levels based on Fibonacci relationships
- **Visual Aids**: Color-coded backgrounds to highlight active trade zones
- **Alert System**: Customizable alert messages for trade entries and exits
## How It Works:
The indicator uses a zigzag function to identify significant price pivots, then analyzes the relationships between these pivots to detect specific harmonic patterns. When a valid pattern forms and price reaches the entry zone (defined by a Fibonacci level), the indicator generates a trade signal.
Each pattern has specific Fibonacci ratio requirements between its points, and the indicator continuously scans for these relationships. Trade management is handled automatically with predefined take-profit and stop-loss levels.
This version specifically addresses repainting issues that are common in pattern-detection indicators, making it more reliable for both backtesting and live trading.