Indicadores e estratégias
Profitable Loser Model [MMT]Profitable Loser Model
Overview
The Profitable Loser Model is a powerful PineScript v6 indicator designed to enhance your trading by visualizing key price levels, session open zones, Fibonacci retracements, and premium/discount zones. This overlay indicator provides traders with a customizable toolkit to analyze market structure across any timeframe, making it ideal for intraday and swing trading strategies.
Features
Open Zone Visualization
- Plots a box based on the open and close of the first candle in a user-defined timeframe (default: 5-minute).
- Customizable box color, projection offset, and label size (Tiny, Small, Normal, Large).
- Displays a timeframe label (e.g., "5m Open Zone") for quick reference, toggleable on/off.
Session Open Lines
- Optionally draws horizontal lines at key session opens (8:30 AM, 9:30 AM, 1:30 PM, Midnight, New York time).
- Customize line color, style (Solid, Dashed, Dotted), width, and label size for each session.
- Perfect for identifying critical intraday price levels.
Premium and Discount Zones
- Highlights premium (above midpoint) and discount (below midpoint) zones based on session high/low.
- Toggleable with customizable colors and projection offsets.
- Helps traders spot overbought/oversold areas for potential mean-reversion trades.
Fibonacci Retracement Levels
- Plots user-defined Fibonacci levels (default: 0.23, 0.35, 0.5, 0.62, 0.705, 0.79, 0.886, 1, 1.1).
- Customizable line style, width, color, and labels (showing percentage and/or price).
- Dynamically adjusts based on price movement relative to the open zone.
Take Profit (TP) and Stop Loss (SL) Levels
- Highlights TP (default: 0.23) and SL (default: 1.1) Fibonacci levels with distinct colors.
- Fully customizable to align with your risk-reward strategy.
How It Works
- Session Detection : Resets daily (or per user-defined timeframe) to capture the first candle's open, high, low, and close.
- Open Zone : Draws a box between the open and close, extended forward by the projection offset.
- Session Lines : Plots lines at specified session opens with customizable styles and labels.
- Fibonacci Retracement : Adjusts levels dynamically based on session high/low and price action.
- Premium/Discount Zones : Calculated from the session range midpoint, updated in real-time.
Settings
- Open Zone :
- Timeframe (default: 5m), Calculate Timeframe (default: Daily).
- Toggle label, adjust size, box color, and projection offset.
- Session Open Lines :
- Enable/disable lines for 8:30 AM, 9:30 AM, 1:30 PM, Midnight.
- Customize color, style, width, label size, and vertical offset.
- Premium/Discount Zones :
- Toggle visibility, set colors, and adjust projection offset.
- Fibonacci Retracement :
- Toggle visibility, set custom levels, line style, width, color, and label options.
- Adjust projection offset.
- TP/SL :
- Set TP/SL Fibonacci levels and colors.
Use Cases
- Intraday Trading : Use session open lines and open zones to trade key market hours.
- Swing Trading : Leverage Fibonacci levels for potential reversal or continuation zones.
- Risk Management : Set precise TP/SL levels based on Fibonacci retracements.
- Market Structure : Identify overbought/oversold zones with premium/discount areas.
Notes
- Optimized with `dynamic_requests = true` for efficient real-time data handling.
- Visual elements (boxes, lines, labels) are cleaned up at the start of each new session.
- Session lines use New York time (`America/New_York`) for alignment with major markets.
Angled Gann Time-Price Squares with S/RThis is a Pine Script indicator that implements Angled Gann Time-Price Squares based on W.D. Gann's trading theory. Here's what it does:
Core Functionality
Detects pivot highs and lows using a configurable lookback period
Creates angled squares by connecting pivot points to current price action when specific geometric conditions are met
Validates square formation by checking if the price movement follows proper Gann angles (typically 45°, 135°, etc.) within a tolerance range
Key Features
Real-time square tracking: Shows both completed squares and forming squares in progress
Support/Resistance levels: Automatically generates S/R lines from:
Square edge extensions
Diagonal extensions (pivot centers)
Quarter/half levels within squares (25%, 50%, 75%)
Visual feedback: Color-coded squares (green for up, red for down, orange for forming)
Projection lines: Predicts where squares might complete based on Gann angle theory
Gann Theory Application
The indicator follows Gann's principle that time and price move in geometric harmony. It looks for price movements that form perfect squares when plotted on a chart, where the diagonal of the square represents the natural flow of price and time at specific angles.
The generated support/resistance levels are particularly valuable because they're based on completed geometric patterns rather than just horizontal price levels, making them potentially more significant according to Gann methodology.
Liquidity Spectrum Visualizer [BigBeluga]🔵 OVERVIEW
The Liquidity Spectrum Visualizer is a smart tool for exposing hidden liquidity zones by combining a dynamic volume profile, clear liquidity levels, and intuitive volume bubbles directly on your price chart. It shows you exactly where significant volume is clustering inside your chosen lookback period — highlighting where big market participants may be defending price or planning breakouts.
🔵 CONCEPTS
Volume Profile Bins: Breaks your custom lookback range into 100 fine price bins, calculating total volume per bin to create a precise vertical liquidity histogram.
Liquidity Levels: Bins with high relative volume automatically plot as horizontal lines — thicker and brighter lines signal stronger liquidity concentrations.
Dynamic Coloring: Profile bins and liquidity levels adjust their colors live based on whether current price is trading above (support) or below (resistance).
Volume Bubbles: Each candle displays a bubble at its HLC3 price —
- The bubble’s size shows relative candle volume.
- Its color gradient indicates bullish or bearish volume: greenish for bullish candles, orange for bearish.
Bubble Labels: The largest bubbles automatically label the actual volume amount, revealing big hidden flows.
Range Box High/Low: Marks the absolute swing high and low inside the lookback window, clearly framing the active liquidity zone.
🔵 FEATURES
Smart, auto-scaled volume profile up to 200 candles (or custom).
Liquidity levels with dynamic thickness and color based on real-time volume.
Bubbles sized and colored to show both volume magnitude and bullish/bearish bias.
Largest bubbles labeled for fast detection of high-impact bars.
High and low price labels clearly show the analyzed range.
Toggle Volume Profile, Liquidity Levels, and Bubbles independently.
🔵 HOW TO USE
Watch for thick, bright liquidity levels — these zones mark where large orders or stop clusters are likely hidden.
Use dynamic coloring: if price is above a level, it’s support; if below, it’s resistance.
Pay special attention to big bubbles: these mark sudden spikes in traded volume and can signal absorption, traps, breakouts or significant price levels.
Combine with your existing confluence tools to confirm breakouts or fakeouts around visible liquidity clusters.
🔵 CONCLUSION
The Liquidity Spectrum Visualizer transforms hidden order flow into an intuitive, color-coded map. You see at a glance where price is absorbing, consolidating, or ready to break — all powered by real-time volume behavior and smart visuals. It’s a must-have tool for traders who want to read liquidity and react ahead of the crowd.
🧠 ProMA+TP/SL🧠 ProMA+TP/SL — Intelligent Trend Reversal Signal with Auto TP/SL & R:R Zones
🔍 Overview
ProMA+TP/SL is a smart trend reversal signal system that detects confirmed shifts in trend using a triple moving average (MA) method. It plots one-time buy/sell signals, automatic or custom Take Profit (TP) and Stop Loss (SL) zones, and a Risk:Reward (R:R) label — all visualized on the chart.
This indicator is optimized for:
✅ Stock Market (India) — Intraday, Swing, Positional
✅ Crypto Markets — Scalping, Intraday, Swing, Positional
| Strategy Type | Fast MA | Mid MA | Slow MA |
| ------------- | ------- | ------ | ------- |
| Scalping | 5 | 13 | 21 |
| Intraday | 10 | 20 | 50 |
| Swing | 20 | 50 | 100 |
| Positional | 20 | 50 | 200 |
MA Type: Choose between EMA (default) and SMA
Dynamic MA lengths automatically adjust based on selected strategy type
| Condition | Logic |
| ------------------- | ---------------------------------------------------------------------------- |
| **Bullish** | Fast MA > Mid MA > Slow MA (and previous ≠ Bullish) |
| **Bearish** | Fast MA < Mid MA < Slow MA (and previous ≠ Bearish) |
| **One-Time Signal** | Signal fires only at new trend confirmation |
| **Session Lock** | For Indian stocks, signals are active only between **9:15 AM – 3:15 PM IST** |
| Setting | Behavior |
| ---------------------- | ---------------------------------------------- |
| Market = Stock (India) | Scalping is automatically switched to Intraday |
| Warning | A visual ⚠️ label appears to notify the trader |
| Strategy Type | TP (%) | SL (%) |
| ------------- | ------ | ------ |
| Scalping | 0.3 | 0.2 |
| Intraday | 0.5 | 0.3 |
| Swing | 1.5 | 1.0 |
| Positional | 3.0 | 1.5 |
🛠️ Custom TP/SL override available via settings
TP and SL levels plotted as lines with % labels
Entry, TP, SL, and R:R zones are automatically visualized
📐 R:R Label Calculation
Component Description
📌 Entry Horizontal line at signal candle’s close
🎯 TP Target line calculated using strategy %
🛑 SL Stop line calculated using strategy %
🔁 R:R Displayed as R:R = 2.5, shows reward/risk ratio
🟡 Candle Coloring Scheme
Trend State Color
Bullish 🟢 Green
Bearish 🔴 Red
Neutral 🟡 Yellow
Helps traders visually interpret trend status at a glance.
📈 Signal Visualization
Signal Type Marker
Buy 🔼 Green triangle below bar
Sell 🔽 Red triangle above bar
Only one signal appears per trend reversal to reduce noise.
✅ Best For:
📊 Intraday and Swing traders
💡 Traders who want clean entry/exit with R:R clarity
📉 Crypto and Indian stock market participants
🔕 Users who prefer no repeated signals in same trend
⚠️ Disclaimer:
This tool is meant for educational and planning purposes only.
Always confirm with price action, volume, or other confluences before trading.
This is not financial advice. Backtest thoroughly before use.
Divergence Strategy [Trendoscope®]🎲 Overview
The Divergence Strategy is a sophisticated TradingView strategy that enhances the Divergence Screener by adding automated trade signal generation, risk management, and trade visualization. It leverages the screener’s robust divergence detection to identify bullish, bearish, regular, and hidden divergences, then executes trades with precise entry, stop-loss, and take-profit levels. Designed for traders seeking automated trading solutions, this strategy offers customizable trade parameters and visual feedback to optimize performance across various markets and timeframes.
For core divergence detection features, including oscillator options, trend detection methods, zigzag pivot analysis, and visualization, refer to the Divergence Screener documentation. This description focuses on the strategy-specific enhancements for automated trading and risk management.
🎲 Strategy Features
🎯Automated Trade Signal Generation
Trade Direction Control : Restrict trades to long-only or short-only to align with market bias or strategy goals, preventing conflicting orders.
Divergence Type Selection : Choose to trade regular divergences (bullish/bearish), hidden divergences, or both, targeting reversals or trend continuations.
Entry Type Options :
Cautious : Enters conservatively at pivot points and exits quickly to minimize risk exposure.
Confident : Enters aggressively at the latest price and holds longer to capture larger moves.
Mixed : Combines conservative entries with delayed exits for a balanced approach.
Market vs. Stop Orders: Opt for market orders for instant execution or stop orders for precise price entry.
🎯 Enhanced Risk Management
Risk/Reward Ratio : Define a risk-reward ratio (default: 2.0) to set profit targets relative to stop-loss levels, ensuring consistent trade sizing.
Bracket Orders : Trades include entry, stop-loss, and take-profit levels calculated from divergence pivot points, tailored to the entry type and risk-reward settings.
Stop-Loss Placement : Stops are strategically set (e.g., at recent pivot or last price point) based on entry type, balancing risk and trade validity.
Order Cancellation : Optionally cancel pending orders when a divergence is broken (e.g., price moves past the pivot in the wrong direction), reducing invalid trades. This feature is toggleable for flexibility.
🎯 Trade Visualization
Target and Stop Boxes : Displays take-profit (lime) and stop-loss (orange) levels as boxes on the price chart, extending 10 bars forward for clear visibility.
Dynamic Trade Updates : Trade visualizations are added, updated, or removed as trades are executed, canceled, or invalidated, ensuring accurate feedback.
Overlay Integration : Trade levels overlay the price chart, complementing the screener’s oscillator-based divergence lines and labels.
🎯 Strategy Default Configuration
Capital and Sizing : Set initial capital (default: $1,000,000) and position size (default: 20% of equity) for realistic backtesting.
Pyramiding : Allows up to 4 concurrent trades, enabling multiple divergence-based entries in trending markets.
Commission and Margin : Accounts for commission (default: 0.01%) and margin (100% for long/short) to reflect trading costs.
Performance Optimization : Processes up to 5,000 bars dynamically, balancing historical analysis and real-time execution.
🎲 Inputs and Configuration
🎯Trade Settings
Direction : Select Long or Short (default: Long).
Divergence : Trade Regular, Hidden, or Both divergence types (default: Both).
Entry/Exit Type : Choose Cautious, Confident, or Mixed (default: Cautious).
Risk/Reward : Set the risk-reward ratio for profit targets (default: 2.0).
Use Market Order : Enable market orders for immediate entry (default: false, uses limit orders).
Cancel On Break : Cancel pending orders when divergence is broken (default: true).
🎯Inherited Settings
The strategy inherits all inputs from the Divergence Screener, including:
Oscillator Settings : Oscillator type (e.g., RSI, CCI), length, and external oscillator option.
Trend Settings : Trend detection method (Zigzag, MA Difference, External), MA type, and length.
Zigzag Settings : Zigzag length (fixed repaint = true).
🎲 Entry/Exit Types for Divergence Scenarios
The Divergence Strategy offers three Entry/Exit Type options—Cautious, Confident, and Mixed—which determine how trades are entered and exited based on divergence pivot points. This section explains how these settings apply to different divergence scenarios, with placeholders for screenshots to illustrate each case.
The divergence pattern forms after 3 pivots. The stop and entry levels are formed on one of these levels based on Entry/Exit types.
🎯Bullish Divergence (Reversal)
A bullish divergence occurs when price forms a lower low, but the oscillator forms a higher low, signaling a potential upward reversal.
💎 Cautious:
Entry : At the pivot high point for a conservative entry.
Exit : Stop-loss at the last pivot point (previous low that is higher than the current pivot low); take-profit at risk-reward ratio. Canceled if price breaks below the pivot (if Cancel On Break is enabled).
Behavior : Enters after confirmation and exits quickly to limit downside risk.
💎Confident:
Entry : At the last pivot low, (previous low which is higher than the current pivot low) for an aggressive entry.
Exit : Stop-loss at recent pivot low, which is the lowest point; take-profit at risk-reward ratio. Canceled if price breaks below the pivot. (lazy exit)
Behavior : Enters early to capture trend continuation, holding longer for gains.
💎Mixed:
Entry : At the pivot high point (conservative).
Exit : Stop-loss at the recent pivot point that has resulted in lower low (lazy exit). Canceled if price breaks below the pivot.
Behavior : Balances entry caution with extended holding for trend continuation.
🎯Bearish Divergence (Reversal)
A bearish divergence occurs when price forms a higher high, but the oscillator forms a lower high, indicating a potential downward reversal.
💎Cautious:
Entry : At the pivot low point (lower high) for a conservative short entry.
Exit : Stop-loss at the previous pivot high point (previous high); take-profit at risk-reward ratio. Canceled if price breaks above the pivot (if Cancel On Break is enabled).
Behavior : Enters conservatively and exits quickly to minimize risk.
💎Confident:
Entry : At the last price point (previous high) for an aggressive short entry.
Exit : Stop-loss at the pivot point; take-profit at risk-reward ratio. Canceled if price breaks above the pivot.
Behavior : Enters early to maximize trend continuation, holding longer.
💎Mixed:
Entry : At the previous piot high point (conservative).
Exit : Stop-loss at the last price point (delayed exit). Canceled if price breaks above the pivot.
Behavior : Combines conservative entry with extended holding for downtrend gains.
🎯Bullish Hidden Divergence (Continuation)
A bullish hidden divergence occurs when price forms a higher low, but the oscillator forms a lower low, suggesting uptrend continuation. In case of Hidden bullish divergence, b]Entry is always on the previous pivot high (unless it is a market order)
💎Cautious:
Exit : Stop-loss at the recent pivot low point (higher than previous pivot low); take-profit at risk-reward ratio. Canceled if price breaks below the pivot (if Cancel On Break is enabled).
Behavior : Enters after confirmation and exits quickly to limit downside risk.
💎Confident:
Exit : Stop-loss at previous pivot low, which is the lowest point; take-profit at risk-reward ratio. Canceled if price breaks below the pivot. (lazy exit)
Behavior : Enters early to capture trend continuation, holding longer for gains.
🎯Bearish Hidden Divergence (Continuation)
A bearish hidden divergence occurs when price forms a lower high, but the oscillator forms a higher high, suggesting downtrend continuation. In case of Hidden Bearish divergence, b]Entry is always on the previous pivot low (unless it is a market order)
💎Cautious:
Exit : Stop-loss at the latest pivot high point (which is a lower high); take-profit at risk-reward ratio. Canceled if price breaks above the pivot (if Cancel On Break is enabled).
Behavior : Enters conservatively and exits quickly to minimize risk.
💎Confident/Mixed:
Exit : Stop-loss at the previous pivot high point; take-profit at risk-reward ratio. Canceled if price breaks above the pivot.
Behavior : Uses the late exit point to hold longer.
🎲 Usage Instructions
🎯Add to Chart:
Add the Divergence Strategy to your TradingView chart.
The oscillator and divergence signals appear in a separate pane, with trade levels (target/stop boxes) overlaid on the price chart.
🎯Configure Settings:
Adjust trade settings (direction, divergence type, entry type, risk-reward, market orders, cancel on break).
Modify inherited Divergence Screener settings (oscillator, trend method, zigzag length) as needed.
Enable/disable alerts for divergence notifications.
🎯Interpret Signals:
Long Trades: Triggered on bullish or bullish hidden divergences (if allowed), shown with green/lime lines and labels.
Short Trades: Triggered on bearish or bearish hidden divergences (if allowed), shown with red/orange lines and labels.
Monitor lime (target) and orange (stop) boxes for trade levels.
Review strategy performance metrics (e.g., profit/loss, win rate) in the strategy tester.
🎯Backtest and Optimize:
Use TradingView’s strategy tester to evaluate performance on historical data.
Fine-tune risk-reward, entry type, position sizing, and cancellation settings to suit your market and timeframe.
For questions, suggestions, or support, contact Trendoscope via TradingView or official support channels. Stay tuned for updates and enhancements to the Divergence Strategy!
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.
Essa - Enhanced Fibonacci Confluence ToolkitA precision-engineered trading tool designed to identify high-probability reversal zones using price action alone. This version expands on traditional Fibonacci confluence techniques by integrating a multi-tiered market structure framework and advanced state management.
Key Features:
Fully automated CHoCH (Change of Character) detection
Tiered market structure logic (Short, Intermediate, Long-Term)
Dynamic Area of Interest (AOI) zone rendering
Automatic Fibonacci retracement plotting from swing highs/lows
Customisable Fibonacci levels (0% to 100%, including 23.6%, 61.8%, 65%, 78.6%)
Real-time Fibonacci invalidation logic with on-chart alerts
Bullish and bearish engulfing candle detection with structure-based filtering
Configurable swing labels (◉, △▽, H/L) with size control
Adjustable CHoCH line styles and widths
Optional display of Fibonacci level labels
Modular and efficient codebase with object-oriented architecture
Originally inspired by the LuxAlgo Fibonacci Confluence Toolkit (v5). Credit to LuxAlgo for the foundational concept.
Momentum Candle V2 by Sekolah Trading📌 Momentum Candle V2 by Sekolah Trading – Pair-Based Volatility & Wick Ratio Filter
This script provides a structured and adaptive approach to detecting high-probability momentum candles in intraday markets. It dynamically adjusts pip thresholds and wick filtering conditions based on the selected symbol and timeframe, making it highly practical for real-time trading.
🔍 Concept and Originality
Momentum Candle V2 by Sekolah Trading implements a custom-built methodology combining:
Dynamic Pip Calibration
For each supported instrument (e.g., XAUUSD, USDJPY, GBPUSD, AUDUSD, EURUSD, BTCUSD), the user can define a pip threshold that determines the minimum valid body size for momentum candles. These thresholds are tailored for each pair and timeframe (M5, M15, H1), ensuring the logic adjusts to different volatility profiles.
Wick-to-Body Ratio Filtering
The script filters out candles with large wicks by requiring that total wick length (upper + lower) be no more than 30% of the full candle range. This helps identify decisive candles with minimal rejection.
Directional Validation
Bullish momentum is defined as: Close > Open with a shorter upper wick.
Bearish momentum is: Close < Open with a shorter lower wick.
Real-Time Timing Filter
Alerts are only triggered when the current candle is between 20 and 90 seconds from closing, which reduces noise and encourages confirmation-based entry.
Non-Repainting Logic
All calculations run in real-time with confirmed candles only — no lookahead or future leak.
📊 Visual Output – How to Read the Chart
When the conditions above are met, the script displays triangle markers on the chart:
🔺 Red downward triangle above the candle: valid bearish momentum signal
🔻 Blue upward triangle below the candle: valid bullish momentum signal
These shapes appear on live bars during the final moments of the candle to alert traders to potential confirmed momentum.
🔔 Alert Conditions
Two alert types are provided:
Momentum Bullish: Large bullish candle with small upper wick, during last 20–90s of bar
Momentum Bearish: Large bearish candle with small lower wick, same timing window
Alerts are designed for precision entries at candle close.
🧭 How to Use
Apply the script to a 5m, 15m, or 1h chart.
Configure pip thresholds for your preferred pairs from the input settings.
Watch for triangle markers near the close of each candle:
Blue = potential bullish momentum
Red = potential bearish momentum
Set alerts:
Go to Alerts → Select Momentum Bullish or Momentum Bearish
Frequency: Once Per Bar
Customize message: e.g. “Momentum Bullish on XAUUSD M15”
Combine signals with:
EMA, S/R, or trend filters
Volume/Order Flow
Liquidity zone or breakout context
🛡️ Why This Script Is Closed-Source
This script uses proprietary logic developed by Sekolah Trading, including:
Custom pip calibration engine
Adaptive wick filtering
Real-time entry validation with triangle plots
While the code is protected, the methodology has been explained transparently here in accordance with TradingView publishing rules.
⚠️ Disclaimer
This script is provided for educational and technical analysis purposes only.
It does not guarantee results or provide financial advice. Always verify trades with your own strategy and risk controls.
Author: Sekolah Trading
Version: Momentum Candle V2
Built with Pine Script v6
Momentum Shift Pro [YourName]📊 Premium Order Block + Breaker Block + Momentum Indicator
🔹 Developed by: markking77
📬 Telegram Support: FOREX GOLD KILLER
📡 Join Channel for Signals & Updates:
👉 t.me
This indicator identifies momentum shifts using a smoothed momentum calculation. It plots dynamic shift zones consisting of five levels that expand or contract based on price action. When momentum rises, the indicator creates an upward shift zone, and when momentum falls, it generates a downward shift zone. The shift zones dynamically react to price, stopping extension when a level is crossed.
🔵Key Features:
Smoothed Momentum Calculation:
➣ Utilizes a Hull Moving Average (HMA) to smooth momentum and reduce noise.
➣ Identifies momentum shifts with crossovers between the current momentum value and its previous state.
➣ Uses a gradient color scheme to highlight momentum strength.
snapshot
Dynamic Shift Zones:
➣ When momentum rises, the indicator plots an upper shift zone with five incremental levels.
snapshot
➣ When momentum falls, a lower shift zone is formed with five descending levels.
snapshot
➣ Each level within the shift zone represents a progressively stronger momentum shift.
Level Extension Control:
➣ Shift zones stop extending once a level is crossed by price.
➣ Levels closer to price act as key momentum resistance or support zones.
➣ If price retraces after a shift, the remaining levels stay intact for further reference.
snapshot
Momentum Direction Indications:
➣ Labels (▲ and ▼) appear at momentum shift points to indicate rising or falling momentum.
snapshot
🔵Usage:
Momentum-Based Entries: Identify momentum shifts early by using shift zones as confirmation for trade entries.
Trend Continuation & Exhaustion: Observe which shift levels price respects—if momentum shift zones hold, the trend may continue; if they break, momentum may reverse.
Dynamic Support & Resistance: Use the five-level shift zones as temporary support and resistance areas that adapt to momentum shifts.
Momentum Strength Analysis: If price moves through multiple shift levels in one direction, it signals strong momentum in that direction.
Momentum Shift is a powerful tool for traders looking to analyze momentum shifts with structured visual zones. By combining smoothed momentum calculations with dynamic shift zones, this indicator provides a clear view of market momentum and helps traders navigate price action effectively.
Fibonacci Retracement levels Automatically D/W/MIndicator Description: Fibonacci Retracement levels Automatically
Fibonacci retracement levels based on the day, week, month High Low range and Fibonacci retracement levels draws automatically .This Pine Script indicator is designed to plot Fibonacci retracement levels based on the high and low prices of a user-selected timeframe (Daily, Weekly, or Monthly). It identifies bullish or bearish candles in the chosen timeframe, draws key price levels, and overlays Fibonacci retracement lines and semi-transparent colored boxes to highlight potential support and resistance zones. The indicator dynamically updates with each new period and extends lines, labels, and boxes to the current bar for real-time visualization. Key Features
1. Timeframe Selection: Users can choose the timeframe for analysis: Daily, Weekly, or Monthly via an input dropdown. The indicator retrieves the open, high, low, and close prices for the selected timeframe using `request.security`.
2. High and Low Tracking : Tracks the highest high and lowest low within the selected timeframe. Stores these values and their corresponding bar indices in arrays (`whigh`, `wlow`, `whighIdx`,`wlowIdx`). Limits the array size to the most recent period to optimize performance.
3. Bullish and Bearish Candle Detection : Identifies whether the previous period’s candle is bullish (`close > open`) or bearish (`close < open`). Uses this to determine the direction for Fibonacci retracement calculations. Bullish candle: Fibonacci levels are drawn from low to high
Bearish candle: Fibonacci levels are drawn from high to low
4. Fibonacci Retracement Levels : Plots Fibonacci levels at 0.236, 0.382, 0.5, 0.618, and 0.786 between the high and low of the period. For bullish candles, levels are calculated from the low (support) to the high (resistance). For bearish candles, levels are calculated from the high (resistance) to the low (support). Each Fibonacci level is drawn as a horizontal line with a unique color:
- 0.236: Blue
- 0.382: Purple
- 0.5: Yellow
- 0.618: Teal
- 0.786: Fuchsia
5. Visual Elements: - High/Low Lines and Labels: Draws a red line and label for the previous period’s high. Draws a green line and label for the previous period’s low. Fibonacci Lines and Labels: Each Fibonacci level has a horizontal line and a label displaying the ratio.
Colored Boxes: Semi-transparent boxes are drawn between consecutive Fibonacci levels (including high and low) to highlight zones.
6. Dynamic Updates:
- At the start of a new period (e.g., new week for Weekly timeframe), the indicator:
- Clears previous Fibonacci lines, labels, and boxes.
- Recalculates the high and low for the new period.
- Redraws lines, labels, and boxes based on the new data.
- Extends all lines, labels, and boxes to the current bar index for real-time tracking.
7. Performance Optimization:
- Deletes old lines, labels, and boxes to prevent clutter.
- Limits the storage of highs and lows to the most recent period.
How It Works
1. Initialization: Defines variables for tracking bullish/bearish candles, lines, labels, and arrays for Fibonacci levels and boxes. Sets up color arrays for Fibonacci lines and boxes with distinct, semi-transparent colors.
2. Data Collection: Fetches the previous period’s OHLC (open, high, low, close) using `request.security`. Detects new periods (e.g., new week or month) using `ta.change(time(tf))`.
3. Fibonacci Calculation: On a new period, stores the high and low prices and their bar indices.
- Identifies the maximum high and minimum low from the stored data. - Calculates Fibonacci levels based on the range (`maxHigh - minLow`) and the direction (bullish or bearish).
4. Drawing:
- Draws high/low lines and labels at the identified price levels. Plots Fibonacci retracement lines and labels for each ratio. Creates semi-transparent boxes between Fibonacci levels to visually distinguish zones.
5. Updates:
- Extends all lines, labels, and boxes to the current bar index when a new period is detected. Clears old Fibonacci elements to avoid overlap and ensure clarity.
Usage
- Purpose: This indicator is useful for traders who use Fibonacci retracement levels to identify potential support and resistance zones in financial markets.
- Application:
- Select the desired timeframe (Daily, Weekly, Monthly) via the input settings.
- The indicator automatically plots the previous period’s high/low and Fibonacci levels on the chart.
- Use the labeled Fibonacci levels and colored boxes to identify key price zones for trading decisions.
- Customization:
- Modify the `timeframe` input to switch between Daily, Weekly, or Monthly analysis.
- Adjust the `fibLineColors` and `fibFillColors` arrays to change the visual appearance of lines and boxes.
- The indicator is designed for use on TradingView with Pine Script.
- The maximum array size for highs/lows is limited to 1 period in this version (can be adjusted by modifying the `array.shift` logic).
- The indicator dynamically updates with each new period, ensuring real-time relevance.
This indicator make educational purpose use only
EdgeXplorer - Support vs ResistanceEdgeXplorer – Support vs Resistance
Spot the battle zones. Catch the breakouts. Ride the volume.
EdgeXplorer – Support vs Resistance is your visual compass for identifying institutional support and resistance levels in real time. By dynamically detecting pivot zones, tracking volume shifts, and highlighting high-conviction breakouts, this tool gives traders a clean, no-fluff map of where price is likely to react, reject, or rip through.
No guesswork — just clear structure and smarter signal flow.
⸻
🧱 What It Does
This tool automatically maps support and resistance zones based on swing pivots, overlays visual boxes on your chart, and triggers breakout signals when those zones are tested with volume confirmation. It’s built for traders who want more than just lines — they want intent.
⸻
⚙️ Core Components
Component Description
🟩 Support Boxes Detected from pivot lows, with label and visual zone
🟥 Resistance Boxes Detected from pivot highs, styled for clean contrast
📉 Breakout Signals Volume-validated support/resistance breaks
🕳️ Wick Detectors Wick rejections after breakout attempts (false breaks)
🎨 Visual Styling Auto-colored candles at pivots + zone label toggles
⸻
🔍 How It Works
1. Pivot Logic:
The script uses a flexible left/right pivot length (default 15) to detect local highs/lows that form reliable turning points. These are your anchors for support/resistance zones.
2. Zone Construction:
Each pivot creates a dynamic price zone with adjustable thickness. These zones are plotted as shaded rectangles, giving you real-time visual structure.
3. Breakout Detection:
When price crosses a zone and the volume oscillator confirms strength, the script triggers a B (Breakout) label above/below the bar.
4. Wick Filters:
It also highlights W (Wick) setups — signs of false breaks or stop hunts — based on wick-to-body comparisons. These can be excellent reversal signals when confirmed.
⸻
🛠️ Custom Settings
Setting What It Controls
🔁 Pivot Left/Right Controls how far left/right the script looks for highs/lows
🔻 Volume Threshold Sets how strong the volume shift must be to trigger breakouts
🎨 Zone Height Adjusts how thick each S/R box appears
🟢 Show Zones Toggle visual boxes on/off
🔔 Show Breaks Turn on/off the breakout + wick signals
🏷️ Show Labels Toggle support/resistance text labels
⸻
📈 Use Cases
• Breakout Traders:
Watch for high-volume breaks of resistance/support with clean confirmation. Enter on candle closes or wick rejections.
• Range Traders:
Use zones as reversal points during sideways markets. The wick markers help filter traps.
• Swing & Intraday Scalping:
Zoom out for higher timeframes to establish zones, then drill down to 1m–15m for breakout execution using the live signals.
• Liquidity Hunters:
Combine this with internal order blocks or EQH/EQL markers. S/R zones = liquidity pools.
⸻
🔔 Built-In Alerts
✅ Resistance Breakout
✅ Support Breakdown
Get notified in real-time when key zones get broken with strong volume follow-through.
TrendZonesTrendZones
This is an indicator which I use, have tested, tweaked and added features to for use in my trend following investing system. I got the idea for it when for some reason I was looking for a dynamic reference to measure the height of a channel or something. In search of this I made MA’s of the high and low borders of a Donchian channel which turned out to be two near parallel and stunningly smooth curves. This visual was so appealing that I immediately tried to turn it into a replacement for the KeltCOG which I previously used in my system. First I created a curve in the middle of the upper and lower curves, which I called COG (Center Of Gravity). Then I decided to enter only one lookback and let the script create a Donchian channel with half the lookback and use this to create the curves with an MA of whole lookback. For this reason the minimum lookback is set to 14, enough room for the Donchian Channel of 7 periods. This Donchian ChanneI has a special way of calculating the borders, involving a 5 period Median value. Thanks to this these borders are really a resistance and support level, which won’t change at a whim, e.g. when a ‘dead cat bounce’ occurs. I prevented the Donchian channel to show itself between the curves and only pop out from behind these. These pop outs now function as “strong trend zones”. I gave it colors (blue:-strong up, green: moderate up, orange: moderate down, red: strong down, near COG: gray, curves horizontal: gray) and it looked very appealing. I tested it in different time frames. In some weekend, when I was bored, I observed for a few hours the minute chart of bitcoin. It turned out that you can reliably tell that an uptrend ends when the candles go under the COG beginning a downtrend. Uptrend starts again once the candles go above COG. As Trends on minute charts only last around half an hour, this entertainment made the potential of this indicator very clear to me in just one afternoon.
Risk Management, Safe Level and Logical Stops.
In the inputs are settings for “Risk Tolerance”, and to activate “Show Logical Stop Level” (activated in example chart) and “Show Safe Level”. As a rule of thump a trade should not expose the invested capital to a risk of losing more than 2 percent. I divided my investment capital in ten equal parts which are allocated to ten different stocks or other instruments or kept liquid. This means that when a position is closed by triggering a Stop with a loss of 20 percent, the invested capital suffers only 2 percent (20% x 10% = 2%). This is why the value for “Risk Tolerance” has a default of 20. Because I put my Stops on the lower curve, a “Safe Level” can be calculated such that when you buy for a price below or at this level, the stop will protect the position sufficiently. Because I only buy when the instrument is in uptrend, the buying price should be between COG and Safe Level. Although I never do that, putting the stop at other curves is feasible and when you want to widen the stop (I never lower my stops btw) in a downtrend situation, even 1 ATR below the “Low Border”. I call these “Logical Stop Levels”, marked with dark green circles on the lower curve when safe buying by placing the Stoploss on this curve is possible, gray circles on the other curves, on the Upper Curve navy when price enters very profitable level. In a downtrend situation maroon circles appear.
Target lines
When I open a position I always set a Stoploss and a Target, for this purpose two types of Target values can be set and corresponding Target lines activated. These lines are drawn above the “High Border” at the set distance. If one expects some price to be used, differences will occur.
Other Features
Support Zone, this is 1 ATR below the “Low Border”, the maroon circles of the “Logal Stops” are placed on this “Support level”.
Stop distance and Channel Width. (activated in example chart) These are reported in a two cell table in the right lower corner of the main panel. I created this because I want to be able to check the volatility, whether the channel shows a situation in which safe buying in most levels of the channel is possible or what risk you take when you buy now and set the Stop at the nearest logical level (which is not always the “Lower curve”). This feature comes in handy for creating a setup I propose in the “Day Trading Fantasy” below.
Some General and User Settings. I never activate this, perhaps you will.
Use Of TrendZones In My System.
Create a list of stocks in uptrend. I define ‘stock in uptrend’ as in uptrend zone in all three monthly, weekly and daily charts, all three should at the same time be in uptrend. The advantage of TrendZones is that you can immediately see in which zone the candle moves.
Opening a position in a stock from the above list. I do this only when in both the daily and weekly the green dot on the lower curve indicates a buying opportunity. This is usually not the case in most of the items of the list, this feature thus provides a good timing for opening a position. Sometimes you need to wait a few weeks for this to happen.
Setting a target over a position. For this I use the Target percent line of the weekly chart with the default value of 10.
Updating the Stoploss and Target values. Every week or two weeks I set these to the new values of the “Lower Curve” and the Target line of the weekly. Attention: never shift down Stops, only up or let them stay the same when the curve moves down. I never use Stop levels on other curves.
I Check the charts whenever I like to do this. Close the position when the uptrend obviously shifts down. Otherwise I let the profits run until the Target triggers which closes the position with some profit.
For selecting stocks an checking charts for volume events, I also use a subpanel indicator called “TZanalyser”, which borrows the visual of my “Fibonacci Zone Oscillator”, is based on TrendZones and includes code from my REVE indicators. I intend to publish that as well.
Day Trading Fantasy.
Day trading is an attempt to earn a dime by opening a position in the morning and close it during the day again with a profit (or a loss). Before the market closes, you close all day trading positions.
In my fantasy the “Logical Stop Level” is repurposed for use as entry point and the ATR-based Target line is used to provide a target setting in an intraday chart, like e.g. 15 minute. To do this the “Safe Level” should be limited to between Channel width and COG. This can be done by showing “Safe Level” and “Channel Width” and then set “Risk Tolerance” to around the shown Channel Width. In this setting you can then wait for the green circle to show up for entering your trade and protect it with the stop.
I don’t know if this works fine or if it’s better than other day trade systems, because I don’t do day trading.
Take care and have fun.
Bollingr+supertrend
📘 Bollinger Bands + Supertrend (Buy/Sell Area Notes)
1. Bollinger Bands consist of a moving average (Basis) and upper/lower bands based on standard deviation.
2. Price near lower band may indicate a potential buy area (oversold).
3. Price near upper band may indicate a potential sell area (overbought).
4. Band squeeze shows low volatility — often followed by a breakout (good for entries).
5. Supertrend uses ATR and price to determine trend direction with green (up) and red (down) lines.
6. Supertrend flips from red to green → indicates a possible Buy signal.
7. Supertrend flips from green to red → indicates a possible Sell signal.
8. Best Buy Area: When Supertrend turns green and price is near or below the lower Bollinger Band.
9. Best Sell Area: When Supertrend turns red and price is near or above the upper Bollinger Band.
10. Use both indicators together to confirm trend direction and time entries more reliably.
Would you like a chart example or image to visualize these Buy/Sell zones?
Volumatic + Adaptive Trend Flow [Fusion] by Ignotus📌 Description
```
This script combines two public open source indicators available on TradingView:
1. Volumatic Variable Index Dynamic Average
© BigBeluga
License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International https:creativecommons.org/licenses/by-nc-sa/4.0/
Original link:
2. Adaptive Trend Flow
© QuantAlgo
License: Mozilla Public License 2.0 (MPL-2.0)
https:mozilla.org/MPL/2.0/
Original link:
This indicator merges both scripts without modifying their internal logic, maintaining all their functionality, settings, and alerts.
This work is a custom compilation for educational and analytical purposes, complying with the attribution and redistribution terms of both licenses.
I do not claim to be the author of the original code for either indicator.
⚠️ Note on the CC BY-NC-SA license:
The license for the first indicator prohibits commercial use without explicit permission.
Therefore, this script should not be used for commercial purposes without the authorization of the original creator (BigBeluga).
```
---
✅ What does this indicator include?
This indicator combines two powerful tools in a single script:
🔹 Volumatic Variable Index Dynamic Average
- Volume and trend-based indicator.
- Detects liquidity zones and dynamic support/resistance.
- Uses VIDYA (Variable Index Dynamic Average) along with ATR to identify trend changes.
- Includes visual volume signals, dynamic support/resistance lines, and smart labels.
🔹 Adaptive Trend Flow
- Adaptive indicator for market volatility.
- Identifies bullish and bearish trends using calculations based on EMAs and standard deviation.
- Includes candle color, dynamic background, entry/exit signals, and built-in alerts.
---
🛡️ Responsible Use
- This indicator is NOT designed for automatic trading and does not guarantee profits.
- It is recommended to use it as a technical analysis tool, always under your own supervision and discretion.
- Do not use this script for commercial purposes or on external platforms without the explicit consent of the original authors.
---
📣 Credits
- Creator of the combined indicator: Ignotus
- Original source of the indicators: TradingView
- Final result license: MPL-2.0 (except where otherwise indicated by copyright of the original author)
Pivot Channel LevelsPivot Channel Levels
Indicator Description
“Pivot Channel Levels” is an advanced technical analysis tool that identifies key price pivots (highs and lows) and creates dynamic support and resistance levels based on the wicks of candles at these points (or bodies if wicks are minimal). The indicator analyzes the volume at the time of a pivot’s formation, displaying its value and percentage change relative to the volume’s simple moving average (SMA).
It does not generate buy/sell signals but provides a clear visualization of market structure, helping traders identify potential price reaction zones and assess the strength of market movements.
Why Are Wicks Important?
Candle wicks at price pivots indicate significant market reactions in key areas. Depending on the context, they may signal rejection, testing, or absorption of a support or resistance level. Long wicks often appear where large players are active, and the marked zones are frequently retested. The indicator allows for quick identification and observation of their impact on future price action.
Why Use It?
- Precise Support and Resistance Levels: The indicator draws price channels based on candle wicks at pivots (or bodies if wicks are absent), enabling better identification of zones where price may react.
- Volume Analysis: It shows how the volume at a pivot differs from the average, indicating potential activity by large players or key market moments.
- Visual Clarity: Colored lines, channel fills, and clear labels facilitate quick chart analysis, even on short timeframes.
- Flexibility: Adjustable pivot length, volume average, and label colors allow customization to various trading strategies.
How It Works
- Pivot Detection: Automatically identifies local highs and lows based on the “Pivot Length” parameter (default: 20 candles). This means a pivot appears on the chart with a 20-candle delay. Reducing this value allows faster pivot detection (after fewer candles), increasing their number but potentially generating more noise.
- Channel Creation: Draws support and resistance levels based on the wicks of candles at pivot points (or bodies if wicks are minimal) with a delay to confirm zones. A pivot channel is drawn until the next pivot is identified, but if not previously broken, it remains valid as active support or resistance.
- Volume Analysis: Displays the volume at the pivot’s formation and its percentage change relative to the volume’s SMA.
- Visualization: Pivot and channel levels are shown as lines with fills, and labels display volume and its deviation from the average.
Trading Applications
- Swing Trading: Use pivot levels and channels to identify price reversal points or consolidation zones.
- Scalping: Monitor price reactions to channels on short timeframes, especially with high volume.
- Faster Pivot Identification: Switch to a lower timeframe (e.g., from H1 to M15) to identify pivots more quickly, allowing earlier reactions to price changes.
- Market Context Analysis: High volume at pivots may indicate significant levels likely to be retested.
- Combining with Other Tools: The indicator pairs well with Fibonacci retracement, supply/demand zones, or oscillators like RSI.
Settings and Customization
- Pivot Length: Determines how many candles back and forward are analyzed to detect pivots (default: 20). A smaller value increases sensitivity, a larger one enhances stability.
- Volume Average: Length of the SMA for volume (default: 20). Adjust to better reflect market characteristics.
- Label Colors: Choose colors for bullish and bearish pivot labels to match your chart style.
Usage Examples
- Identifying Key Zones: If the price approaches a pivot level with high volume (e.g., +50% relative to SMA), it may signal strong support or resistance.
- Breakout Confirmation: A channel breakout with high volume can indicate trend continuation.
- Price Reaction Analysis: Long wicks at pivots with high volume may signal level rejection by large players.
Notes for Users
- The indicator performs best on highly liquid markets (e.g., Forex, indices, cryptocurrencies).
- On short timeframes (e.g., M1, M5), it may generate more noise—adjust “Pivot Length” to suit your needs.
- Consider combining with other indicators to confirm signals derived from pivot and volume analysis.
Support and Resistance Levels with BreaksThis indicator identifies dynamic support and resistance levels using pivot point analysis and provides clear trading signals when these levels are broken with volume confirmation. Enhanced version with improved signal clarity for better trading decisions.
## 🔧 Key Features
### Support & Resistance Detection
- Automatically identifies key pivot high and low levels
- Draws clear visual lines (red for resistance, blue for support)
- Configurable sensitivity with left/right bar settings
### Enhanced Trading Signals
- **BUY** signals when resistance is broken with volume confirmation
- **SELL** signals when support is broken with volume confirmation
- **Bull Wick** alerts for potential reversals at resistance
- **Bear Wick** alerts for potential reversals at support
### Volume Confirmation
- Built-in volume oscillator using 5 and 10-period EMAs
- Filters out low-volume false breakouts
- Adjustable volume threshold (default: 20%)
### Complete Alert System
- Support Broken alerts
- Resistance Broken alerts
- Bull Wick reversal alerts
- Bear Wick reversal alerts
## ⚙️ Settings
- **Show Breaks**: Toggle signal display
- **Left Bars**: Pivot detection lookback (default: 15)
- **Right Bars**: Pivot detection lookforward (default: 15)
- **Volume Threshold**: Minimum volume increase for valid signals (default: 20%)
## 📈 Best For
- Swing trading strategies
- Breakout confirmation
- Support/resistance trading
- Volume-based entry signals
## 🔍 How It Works
1. Identifies pivot highs/lows using configurable periods
2. Calculates volume oscillator for confirmation
3. Generates BUY signals on resistance breaks with volume
4. Generates SELL signals on support breaks with volume
5. Detects wick patterns for potential reversals
## 📋 Updates in This Version
- Enhanced BUY/SELL signal clarity (replaced generic "B" labels)
- Added Bull Wick and Bear Wick alert conditions
- Updated to Pine Script v6 compatibility
- Improved signal filtering and accuracy
## ⚠️ Disclaimer
This indicator is for educational and informational purposes only. Always conduct your own analysis and risk management before making trading decisions. Past performance does not guarantee future results.
---
**Original Script**: "Support and Resistance Levels with Breaks" by LuxAlgo
**License**: CC BY-NC-SA 4.0
**Enhanced by**: profitgang
**Version**: Pine Script v6
GainzAlgo V2 [Alpha]// © GainzAlgo
//@version=5
indicator('GainzAlgo V2 ', overlay=true, max_labels_count=500)
show_tp_sl = input.bool(true, 'Display TP & SL', group='Techical', tooltip='Display the exact TP & SL price levels for BUY & SELL signals.')
rrr = input.string('1:2', 'Risk to Reward Ratio', group='Techical', options= , tooltip='Set a risk to reward ratio (RRR).')
tp_sl_multi = input.float(1, 'TP & SL Multiplier', 1, group='Techical', tooltip='Multiplies both TP and SL by a chosen index. Higher - higher risk.')
tp_sl_prec = input.int(2, 'TP & SL Precision', 0, group='Techical')
candle_stability_index_param = 0.7
rsi_index_param = 80
candle_delta_length_param = 10
disable_repeating_signals_param = input.bool(true, 'Disable Repeating Signals', group='Techical', tooltip='Removes repeating signals. Useful for removing clusters of signals and general clarity.')
GREEN = color.rgb(29, 255, 40)
RED = color.rgb(255, 0, 0)
TRANSPARENT = color.rgb(0, 0, 0, 100)
label_size = input.string('huge', 'Label Size', options= , group='Cosmetic')
label_style = input.string('text bubble', 'Label Style', , group='Cosmetic')
buy_label_color = input(GREEN, 'BUY Label Color', inline='Highlight', group='Cosmetic')
sell_label_color = input(RED, 'SELL Label Color', inline='Highlight', group='Cosmetic')
label_text_color = input(color.white, 'Label Text Color', inline='Highlight', group='Cosmetic')
stable_candle = math.abs(close - open) / ta.tr > candle_stability_index_param
rsi = ta.rsi(close, 14)
atr = ta.atr(14)
bullish_engulfing = close < open and close > open and close > open
rsi_below = rsi < rsi_index_param
decrease_over = close < close
var last_signal = ''
var tp = 0.
var sl = 0.
bull_state = bullish_engulfing and stable_candle and rsi_below and decrease_over and barstate.isconfirmed
bull = bull_state and (disable_repeating_signals_param ? (last_signal != 'buy' ? true : na) : true)
bearish_engulfing = close > open and close < open and close < open
rsi_above = rsi > 100 - rsi_index_param
increase_over = close > close
bear_state = bearish_engulfing and stable_candle and rsi_above and increase_over and barstate.isconfirmed
bear = bear_state and (disable_repeating_signals_param ? (last_signal != 'sell' ? true : na) : true)
round_up(number, decimals) =>
factor = math.pow(10, decimals)
math.ceil(number * factor) / factor
if bull
last_signal := 'buy'
dist = atr * tp_sl_multi
tp_dist = rrr == '2:3' ? dist / 2 * 3 : rrr == '1:2' ? dist * 2 : rrr == '1:4' ? dist * 4 : dist
tp := round_up(close + tp_dist, tp_sl_prec)
sl := round_up(close - dist, tp_sl_prec)
if label_style == 'text bubble'
label.new(bar_index, low, 'BUY', color=buy_label_color, style=label.style_label_up, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bar_index, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_triangleup, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bar_index, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_arrowup, textcolor=TRANSPARENT, size=label_size)
label.new(show_tp_sl ? bar_index : na, low, 'TP: ' + str.tostring(tp) + ' SL: ' + str.tostring(sl), yloc=yloc.price, color=color.gray, style=label.style_label_down, textcolor=label_text_color)
if bear
last_signal := 'sell'
dist = atr * tp_sl_multi
tp_dist = rrr == '2:3' ? dist / 2 * 3 : rrr == '1:2' ? dist * 2 : rrr == '1:4' ? dist * 4 : dist
tp := round_up(close - tp_dist, tp_sl_prec)
sl := round_up(close + dist, tp_sl_prec)
if label_style == 'text bubble'
label.new(bear ? bar_index : na, high, 'SELL', color=sell_label_color, style=label.style_label_down, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_triangledown, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_arrowdown, textcolor=TRANSPARENT, size=label_size)
label.new(show_tp_sl ? bar_index : na, low, 'TP: ' + str.tostring(tp) + ' SL: ' + str.tostring(sl), yloc=yloc.price, color=color.gray, style=label.style_label_up, textcolor=label_text_color)
alertcondition(bull or bear, 'BUY & SELL Signals', 'New signal!')
alertcondition(bull, 'BUY Signals (Only)', 'New signal: BUY')
alertcondition(bear, 'SELL Signals (Only)', 'New signal: SELL')
Tnup Zones 2025This indicator marks zones where price has a high probability of rejection/bouncing off of
Essa - Market Structure DetectorA comprehensive tool for identifying real-time market structure patterns using pivot analysis, adaptive volatility filtering, and multi-timeframe confluence. This script highlights higher highs (HH), higher lows (HL), lower highs (LH), and lower lows (LL), while offering intelligent confirmations and optional visual aids.
Key Features:
Dynamic detection of HH, HL, LH, LL based on pivot structures
Adaptive sensitivity using ATR-based volatility filters
Confirmation logic based on breakout alignment
Optional ZigZag line rendering between key pivots
Customisable labels with confluence indicators
Multi-timeframe pattern scanning with auto-scaling timeframes
Info panel showing current pattern, trend bias, mode, and structure across 5 higher timeframes
Built-in alerts for structure shifts and high-confluence setups
This tool is ideal for traders who rely on structure-based entries, multi-timeframe confluence, and precision pattern recognition to anticipate trend reversals or continuations with high confidence.
EdgeXplorer – Smart Money StructureEdgeXplorer – Smart Money Structure
A full-spectrum price action tool built to track BOS/CHoCH, swing pivots, order blocks, and institutional liquidity zones — all on one clean chart.
Designed for serious price action traders, this engine gives you a real-time visual breakdown of market structure the way smart money sees it. Whether you’re a scalper, intraday trader, or swing strategist — this tool helps you track momentum shifts, trend flips, and liquidity traps with clarity.
⸻
🧠 What It Does
EdgeXplorer – Smart Money Structure detects and visualizes:
• Break of Structure (BOS) and Change of Character (CHoCH) patterns
• Swing vs. Internal trend structure
• Order blocks with mitigation tracking
• Liquidity points (Equal Highs & Lows)
• Fair Value Gaps (FVGs) and price imbalances
• Premium/Discount zones based on range extremes
All of this is plotted live with customizable visual styles, trend logic, and alert support — no repainting, no guessing.
⸻
⚙️ How It Works (Plain English)
The script uses pivot highs/lows to define structural points on the chart. From there:
• A BOS marks a continuation of the current trend (price breaks the most recent high/low in trend direction).
• A CHoCH flags a potential reversal (price breaks against the current trend direction).
• Structure is tracked internally (short-term pivots) and on a swing basis (larger moves).
• Order blocks are identified at structural breaks using volatility filtering (ATR or Range logic), then highlighted and monitored for mitigation.
• You can also display liquidity pools (Equal Highs/Lows) and FVG zones for imbalance-based setups.
• Optional trend coloring lets you visually follow directional bias.
⸻
📈 Visual Elements Breakdown
Element Meaning
🟢/🔴 BOS or CHoCH Labels Show trend continuation or reversal (internal + swing)
🔷 Zones Order Blocks (bullish/bearish, internal or swing, with mitigation filter)
🔺 HH / HL / LH / LL High/low swing labels based on pivot relationships
🔲 Gray Zones Mitigated order blocks (already tapped)
📊 Background Color Optional trend-based candle coloring
⚪ Fair Value Gaps Imbalance zones between candles
📍 EQH/EQL Equal High / Equal Low liquidity zones
⸻
🔧 Inputs & Settings
🧭 Structure Modes:
• Historical = Plots all historical BOS/CHoCH events
• Present = Keeps the chart clean by only showing the latest active structure
🔁 Internal vs Swing:
• Internal Structure = Short-term pivots (fast reaction, more signals)
• Swing Structure = Higher timeframe trend (stronger confirmation)
🎯 Order Block Filters:
• Choose between ATR-based (volatility-adjusted) or Cumulative Range (fixed width)
• Define how many OB zones to display per structure type
• Enable/disable mitigated OB highlights
💡 Visual Customization:
• Toggle colored vs. monochrome labels
• Turn on/off trend-based candle coloring
• Set custom colors for all bullish/bearish elements
🔍 Liquidity Tools:
• Show Equal High/Low zones with sensitivity threshold
• Display Fair Value Gaps with optional auto-filtering
• Highlight premium/discount zones relative to swing range
⸻
🧠 How to Interpret the Chart
Use BOS/CHoCH for:
• Spotting trend reversals (CHoCH = possible flip)
• Confirming momentum continuation (BOS = trend intact)
Use Order Blocks for:
• Entry areas after a break — especially if price retraces to an unmitigated OB
• Smart money footprints — these zones often align with institutional volume
Use Liquidity Zones for:
• Fade or trap setups — EQH/EQL often precede false breakouts
• Confirming areas where smart money may engineer stops or reactions
Use Premium/Discount Zones to:
• Avoid chasing — enter where price is undervalued (discount) or take profit where it’s overvalued (premium)
⸻
📊 Strategy Tips
• Scalpers: Focus on internal CHoCH + OB zones on 1m–15m
• Swing traders: Watch for swing CHoCH + OB alignment on 1h–4h
• Breakout traders: Use BOS labels with EQH/EQL sweep confirmation
• Confluence traders: Stack internal + swing + OB + FVG for high-probability setups
⸻
📣 Alerts Included:
✅ Internal BOS / CHoCH
✅ Swing BOS / CHoCH
Get notified instantly when structure shifts — no need to babysit the chart.
Institutional Sweep Zone (Range-Based)Institutional Sweep Zone (Range-Based)
This indicator models potential stop sweep zones based on institutional capital ranges, helping traders visualize where high-probability liquidity grabs are likely to occur.
Unlike traditional volatility bands, this tool estimates price movement by calculating how far a specific amount of capital—entered into the market—can push price. By defining a lower and upper capital range (in millions of USD), the indicator dynamically draws bands representing the distance institutions could realistically move price in either direction.
It supports directional control, allowing you to focus on long sweeps, short sweeps, or both simultaneously. The pip cost is auto-calibrated based on the selected currency pair, making it highly adaptive to major FX pairs.
Key Features:
-Capital input range (in millions of USD)
-Directional sweep targeting: Long, Short, or Both
-Auto-detection of pip value based on FX pair
-Visual sweep zone mapped above and below current price
-Designed to highlight areas of institutional stop hunts
Why use it?
-Helps avoid setting stops inside common sweep zones
-Improves trade survivability when paired with higher timeframe strategies
-Offers a unique way to view price through an institutional lens
Created by: The_Forex_Steward
Explore more advanced tools and concepts on my TradingView profile.
Trend+Volume Divergence + Order Block Detector
The best in TF 5M
The script combines an order block detector (inspired by LuxAlgo) with a trend and volume divergence entry system.
The first part identifies both bullish and bearish order blocks based on volume pivots. These are typically zones where price has shown a high probability of reversal or strong reaction.
The order block algorithm uses recent volume pivots to detect likely institutional trading zones, marking them with colored boxes (green for bullish, red for bearish).
Bullish order blocks form when the price shows a volume-based pivot to the downside, suggesting possible accumulation at support.
Bearish order blocks appear at volume pivots to the upside, indicating likely distribution or resistance.
The script removes (“mitigates”) these order blocks when price action confirms that the zone is no longer respected.
Average (midpoint) order block levels are drawn as dashed or dotted lines based on your settings for visualization.
Whenever a new order block forms or is mitigated, alert conditions can be triggered.
The trend entry system computes and plots an Exponential Moving Average (EMA, default length 21) on the chart for basic trend detection.
A trend shift is detected when price crosses the EMA (from below is bullish, from above is bearish).
Additional confirmation for trade entries is provided by simple volume divergence logic:
Bullish if price is down but current volume exceeds prior volume.
Bearish if price is up but current volume is lower than the previous bar.
Large BUY (aqua up-triangle) and SELL (fuchsia down-triangle) arrows mark optimal entry points where both trend change and volume divergence are detected together.
Smaller triangles (‘Buy?’ or ‘Sell?’) are plotted where only a trend crossover is detected without supporting volume divergence.
The background color of the chart changes according to trend direction: green when price is above the EMA, red when below.
All major signals (order blocks and entry conditions) can generate alerts for automated or manual trade notifications.
The script is fully configurable via input parameters for block length, visualization style, EMA length, and mitigation settings.
The logic is suitable for scalping and short-term trading, especially on assets like gold (XAUUSD), but can be applied to any instrument or timeframe.
The script relies solely on built-in Pine functions and does not require external libraries or premium data.
The marked order blocks visually help traders identify zones with high probability of rejection or breakout.
By combining institutional-level order flows (via order block logic) with individual supply-demand signals (trend and volume divergence), the script aims to give robust entry ideas with clear visual cues on the chart.
National Financial Conditions Index (NFCI)This is one of the most important macro indicators in my trading arsenal due to its reliability across different market regimes. I'm excited to share this with the TradingView community because this Federal Reserve data is not only completely free but extraordinarily useful for portfolio management and risk assessment.
**Important Disclaimers**: Be aware that some NFCI components are updated only monthly but carry significant weighting in the composite index. Additionally, the Fed occasionally revises historical NFCI data, so historical backtests should be interpreted with some caution. Nevertheless, this remains a crucial leading indicator for financial stress conditions.
---
## What is the National Financial Conditions Index?
The National Financial Conditions Index (NFCI) is a comprehensive measure of financial stress and liquidity conditions developed by the Federal Reserve Bank of Chicago. This indicator synthesizes over 100 financial market variables into a single, interpretable metric that captures the overall state of financial conditions in the United States (Brave & Butters, 2011).
**Key Principle**: When the NFCI is positive, financial conditions are tighter than average; when negative, conditions are looser than average. Values above +1.0 historically coincide with financial crises, while values below -1.0 often signal bubble-like conditions.
## Scientific Foundation & Research
The NFCI methodology is grounded in extensive academic research:
### Core Research Foundation
- **Brave, S., & Butters, R. A. (2011)**. "Monitoring financial stability: A financial conditions index approach." *Economic Perspectives*, 35(1), 22-43.
- **Hatzius, J., Hooper, P., Mishkin, F. S., Schoenholtz, K. L., & Watson, M. W. (2010)**. "Financial conditions indexes: A fresh look after the financial crisis." *US Monetary Policy Forum Report*, No. 23.
- **Kliesen, K. L., Owyang, M. T., & Vermann, E. K. (2012)**. "Disentangling diverse measures: A survey of financial stress indexes." *Federal Reserve Bank of St. Louis Review*, 94(5), 369-397.
### Methodological Validation
The NFCI employs Principal Component Analysis (PCA) to extract common factors from financial market data, following the methodology established by **English, W. B., Tsatsaronis, K., & Zoli, E. (2005)** in "Assessing the predictive power of measures of financial conditions for macroeconomic variables." The index has been validated through extensive academic research (Koop & Korobilis, 2014).
## NFCI Components Explained
This indicator provides access to all five official NFCI variants:
### 1. **Main NFCI**
The primary composite index incorporating all financial market sectors. This serves as the main signal for portfolio allocation decisions.
### 2. **Adjusted NFCI (ANFCI)**
Removes the influence of credit market disruptions to focus on non-credit financial stress. Particularly useful during banking crises when credit markets may be impaired but other financial conditions remain stable.
### 3. **Credit Sub-Index**
Isolates credit market conditions including corporate bond spreads, commercial paper rates, and bank lending standards. Important for assessing corporate financing stress.
### 4. **Leverage Sub-Index**
Measures systemic leverage through margin requirements, dealer financing, and institutional leverage metrics. Useful for identifying leverage-driven market stress.
### 5. **Risk Sub-Index**
Captures market-based risk measures including volatility, correlation, and tail risk indicators. Provides indication of risk appetite shifts.
## Practical Trading Applications
### Portfolio Allocation Framework
Based on the academic research, the NFCI can be used for portfolio positioning:
**Risk-On Positioning (NFCI declining):**
- Consider increasing equity exposure
- Reduce defensive positions
- Evaluate growth-oriented sectors
**Risk-Off Positioning (NFCI rising):**
- Consider reducing equity exposure
- Increase defensive positioning
- Favor large-cap, dividend-paying stocks
### Academic Validation
According to **Oet, M. V., Eiben, R., Bianco, T., Gramlich, D., & Ong, S. J. (2011)** in "The financial stress index: Identification of systemic risk conditions," financial conditions indices like the NFCI provide early warning capabilities for systemic risk conditions.
**Illing, M., & Liu, Y. (2006)** demonstrated in "Measuring financial stress in a developed country: An application to Canada" that composite financial stress measures can be useful for predicting economic downturns.
## Advanced Features of This Implementation
### Dynamic Background Coloring
- **Green backgrounds**: Risk-On conditions - potentially favorable for equity investment
- **Red backgrounds**: Risk-Off conditions - time for defensive positioning
- **Intensity varies**: Based on deviation from trend for nuanced risk assessment
### Professional Dashboard
Real-time analytics table showing:
- Current NFCI level and interpretation (TIGHT/LOOSE/NEUTRAL)
- Individual sub-index readings
- Change analysis
- Portfolio guidance (Risk On/Risk Off)
### Alert System
Professional-grade alerts for:
- Risk regime changes
- Extreme stress conditions (NFCI > 1.0)
- Bubble risk warnings (NFCI < -1.0)
- Major trend reversals
## Optimal Usage Guidelines
### Best Timeframes
- **Daily charts**: Recommended for intermediate-term positioning
- **Weekly charts**: Suitable for longer-term portfolio allocation
- **Intraday**: Less effective due to weekly update frequency
### Complementary Indicators
For enhanced analysis, combine NFCI signals with:
- **VIX levels**: Confirm stress readings
- **Credit spreads**: Validate credit sub-index signals
- **Moving averages**: Determine overall market trend context
- **Economic surprise indices**: Gauge fundamental backdrop
### Position Sizing Considerations
- **Extreme readings** (|NFCI| > 1.0): Consider higher conviction positioning
- **Moderate readings** (|NFCI| 0.3-1.0): Standard position sizing
- **Neutral readings** (|NFCI| < 0.3): Consider reduced conviction
## Important Limitations & Considerations
### Data Frequency Issues
**Critical Warning**: While the main NFCI updates weekly (typically Wednesdays), some underlying components update monthly. Corporate bond indices and commercial paper rates, which carry significant weight, may cause delayed reactions to current market conditions.
**Component Update Schedule:**
- **Weekly Updates**: Main NFCI composite, most equity volatility measures
- **Monthly Updates**: Corporate bond spreads, commercial paper rates
- **Quarterly Updates**: Banking sector surveys
- **Impact**: Significant portion of index weight may lag current conditions
### Historical Revisions
The Federal Reserve occasionally revises NFCI historical data as new information becomes available or methodologies are refined. This means backtesting results should be interpreted cautiously, and the indicator works best for forward-looking analysis rather than precise historical replication.
### Market Regime Dependency
The NFCI effectiveness may vary across different market regimes. During extended sideways markets or regime transitions, signals may be less reliable. Consider combining with trend-following indicators for optimal results.
**Bottom Line**: Use NFCI for medium-term portfolio positioning guidance. Trust the directional signals while remaining aware of data revision risks and update frequency limitations. This indicator is particularly valuable during periods of financial stress when reliable guidance is most needed.
---
**Data Source**: Federal Reserve Bank of Chicago
**Update Frequency**: Weekly (typically Wednesdays)
**Historical Coverage**: 1973-present
**Cost**: Free (public Fed data)
*This indicator is for educational and analytical purposes. Always conduct your own research and risk assessment before making investment decisions.*
## References
Brave, S., & Butters, R. A. (2011). Monitoring financial stability: A financial conditions index approach. *Economic Perspectives*, 35(1), 22-43.
English, W. B., Tsatsaronis, K., & Zoli, E. (2005). Assessing the predictive power of measures of financial conditions for macroeconomic variables. *BIS Papers*, 22, 228-252.
Hatzius, J., Hooper, P., Mishkin, F. S., Schoenholtz, K. L., & Watson, M. W. (2010). Financial conditions indexes: A fresh look after the financial crisis. *US Monetary Policy Forum Report*, No. 23.
Illing, M., & Liu, Y. (2006). Measuring financial stress in a developed country: An application to Canada. *Bank of Canada Working Paper*, 2006-02.
Kliesen, K. L., Owyang, M. T., & Vermann, E. K. (2012). Disentangling diverse measures: A survey of financial stress indexes. *Federal Reserve Bank of St. Louis Review*, 94(5), 369-397.
Koop, G., & Korobilis, D. (2014). A new index of financial conditions. *European Economic Review*, 71, 101-116.
Oet, M. V., Eiben, R., Bianco, T., Gramlich, D., & Ong, S. J. (2011). The financial stress index: Identification of systemic risk conditions. *Federal Reserve Bank of Cleveland Working Paper*, 11-30.