VSA-Stopping VolumeVSA Stopping Volume Indicator
Stopping Volume occurs when candles show decreasing body sizes (narrow spreads) while volume steadily increases.
Example chart:
As you see:
3 consecutive candles in same direction (all green OR all red)
Body sizes (spreads) decreasing progressively: Candle 1 > Candle 2 > Candle 3
Volume increasing progressively: Volume 1 < Volume 2 < Volume 3
This pattern indicates price absorption - increased buying/selling pressure but declining price movement, often signaling exhaustion and potential reversal.
Indicator Features
This indicator detects Stopping Volume candlestick clusters with two signal types:
🔹 BUY/SELL Signals: Generated when pattern occurs at support/resistance zones
🔹 Directional Alerts (▲-green, ▼-red): Generated when pattern occurs outside key levels
Trading Guidelines:
⚠️ Auto-drawn S/R zones are reference only - manual level plotting recommended for accuracy
📊 Best for scalping: M5, M10, M15 timeframes
🛡️ Stop Loss: Place beyond the S/R zone you're trading
🎯 Take Profit: Based on your risk management
Key Concept: Volume expansion + price contraction = potential reversal, especially at SnR levels.
Perfect for scalpers looking to catch reversals at critical zones!
Indicators and strategies
Time Frame Color ClassifierTime Frame Colour Classifier
A professional Pine Script indicator that provides instant visual identification of trading sessions through intelligent colour-coded backgrounds.
Key Features
📅 Daily Session Colours
- Monday: Green | Tuesday: Blue | Wednesday: Yellow | Thursday: Red | Friday: Purple
📊 Weekly Classification
- Week 1-5 : Colour-coded by week of the month using the same colour scheme
## How It Works
Intraday Charts (1min-4H) : Shows daily colours - every candle on Monday displays green background, Tuesday shows blue, etc.
Daily/Weekly Charts : Switches to weekly colours - all days in Week 1 show green, Week 2 shows blue, etc.
Professional Applications
✅ Multi-Timeframe Analysis : Seamlessly switch between timeframes whilst maintaining visual context
✅ Session Recognition : Instantly identify which trading day you're analysing
✅ Pattern Analysis : Spot recurring patterns on specific days of the week
✅ Strategy Development : Incorporate temporal factors into trading strategies
✅ Performance Attribution : Correlate results with specific trading sessions
Customisation Options
- Toggle daily/weekly colours on/off
- Fully customisable colour schemes
- Adjustable background transparency
- Optional day labels
Technical Details
- Pine Script v5for optimal performance
- Automatic timeframe detection - no manual configuration required
- Minimal resource usage - won't slow down your charts
- Works on all chart types and timeframes
Perfect For
- Day traders switching between multiple timeframes
- Swing traders analysing weekly patterns
- Algorithmic strategy development
- Multi-timeframe market analysis
- Trading education and research
---
Developed by @wyckoffnawaf
Transform your chart analysis with visual timeframe clarity
Strict S&D Zones with Real BoS (Wick Breaks)Marking supply and demand zones for you before a 3 candle push. Accurate for supply and demand zones
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
MA Band Zones with AlertsThis is a simple script with alerts.
Its a tool, helps traders, who works on price average range, to identify zones away from Moving average + and - side.
it will work on sma, ema, wma.
custom TF
custom source
alert 5 alert variation to choose from.
there is small glitch, kindly uncheck both the background boxes in in the input setting. it will removed in the next version
KZ TRADING _ BOT RSI,STOCH, MO HINH NENBot trade demo for m15 . it suitable for XAU, U.J. use RSI + Stoch RSI and candless pattem
Multi-Timeframe Fibonacci Retracement [HG]# 🌀 Fibonacci Multi-Timeframe Indicator
## 🌟 Overview
An advanced Fibonacci-based indicator utilizing three distinct timeframes (5, 14, and 34 periods) to provide comprehensive market analysis. This powerful tool combines short-term momentum with medium and long-term trend perspectives, all based on the mathematical precision of Fibonacci sequence numbers.
## 🔧 Core Features
### 📊 Triple Fibonacci System
- **Fast Signal (5 periods)**: Ultra-responsive for scalping and quick entries
- **Medium Signal (14 periods)**: Balanced approach for swing trading
- **Slow Signal (34 periods)**: Long-term trend identification and confirmation
- **Fibonacci Harmony**: All periods based on authentic Fibonacci sequence
### 🎯 Multi-Timeframe Analysis
- **Convergence Signals**: When all three timeframes align
- **Divergence Detection**: Early warning of potential reversals
- **Momentum Layers**: Different speed signals for complete market picture
- **Trend Strength**: Measured through multiple Fibonacci perspectives
## 🎨 Customization Options
### 🎭 Visual Configuration
- **Individual Colors**: Separate color schemes for each timeframe
- **Line Styles**: Solid, Dashed, or Dotted options for clear differentiation
- **Line Thickness**: Adjustable width (1-5 pixels) for optimal visibility
- **Transparency Control**: Fine-tune opacity for overlapping signals
### ⚙️ Technical Parameters
- **Source Selection**: Configurable input (Close, Open, High, Low, HLC3)
- **Smoothing Options**: Additional filtering for cleaner signals
- **Alert System**: Notifications for convergence and crossover events
- **Display Toggle**: Enable/disable individual timeframe components
## 📈 Trading Applications
### 🎯 Signal Generation
- **Triple Confirmation**: Highest probability when all timeframes agree
- **Early Entry**: Fast signal (5) for quick market entries
- **Trend Confirmation**: Slow signal (34) validates overall direction
- **Exit Timing**: Medium signal (14) for optimal trade management
### 🔍 Market Analysis
- **Trend Identification**: Clear visualization of market direction
- **Momentum Shifts**: Early detection through Fibonacci relationships
- **Support/Resistance**: Dynamic levels based on Fibonacci calculations
- **Market Cycles**: Natural rhythm recognition through mathematical harmony
### ⚡ Trading Strategies
- **Scalping**: Ultra-fast 5-period signals for quick profits
- **Swing Trading**: 14-period balance for medium-term positions
- **Position Trading**: 34-period confirmation for long-term holds
- **Confluence Trading**: Maximum edge when all signals align
## 🚀 Key Benefits
✅ **Fibonacci Precision** - Mathematical accuracy of golden ratio sequences
✅ **Multi-Timeframe Edge** - Complete market perspective in one indicator
✅ **Natural Market Rhythm** - Fibonacci numbers reflect market psychology
✅ **Versatile Application** - Works across all markets and timeframes
✅ **High Probability Setups** - Triple confirmation reduces false signals
✅ **Professional Grade** - Institution-quality analysis tools
## 💡 Pro Trading Tips
- Wait for triple alignment for highest probability trades
- Use fast signal for entries, slow signal for trend bias
- Monitor divergences between timeframes for reversal opportunities
- Combine with support/resistance for confluence trading
- Scale position sizes based on timeframe agreement strength
## 🔢 Fibonacci Magic
The periods 5, 14, and 34 are not random - they represent consecutive Fibonacci numbers that naturally resonate with market movements and trader psychology, providing optimal market timing and trend analysis.
---
*Perfect for traders seeking mathematical precision combined with multi-timeframe market analysis.*
Linear Regression Channels📈 Linear Regression Channels
🌟 Overview
A professional dual linear regression channel indicator designed for comprehensive trend analysis. This powerful tool provides simultaneous short-term and long-term trend perspectives through two independent regression channels with customizable standard deviation bands.
🔧 Core Features
📊 Dual Channel System
Channel 1: 43-period regression analysis for long-term trend identification
Channel 2: 20-period regression analysis for short-term momentum tracking
Independent Configuration: Each channel fully customizable with separate parameters
Real-Time Updates: Dynamic calculations with every new candle
📐 Standard Deviation Bands
Multiple Levels: Configurable deviation bands (1σ, 2σ, 3σ)
Dynamic Support/Resistance: Automatically calculated price levels
Trend Boundaries: Clear visualization of trend strength and direction
Statistical Precision: Mathematically accurate regression calculations
🎨 Customization Options
🎭 Visual Styling
Individual Colors: Separate color schemes for each channel
Line Styles: Choose between Solid, Dashed, or Dotted lines
Line Width: Adjustable thickness (1-5 pixels) for optimal visibility
Extension Options: Project lines into the future for analysis
⚙️ Technical Parameters
Period Length: Fully adjustable lookback periods
Source Selection: Choose from Close, Open, High, Low, or custom sources
Deviation Levels: Customizable standard deviation multipliers
Display Control: Toggle individual channels on/off
📈 Trading Applications
🎯 Trend Analysis
Dual Timeframe Perspective: Simultaneous short and long-term view
Trend Confirmation: When both channels align in direction
Trend Strength: Measured by price position within channels
🔍 Support & Resistance
Dynamic Levels: Standard deviation bands as S/R zones
Channel Boundaries: Natural support and resistance areas
Confluence Trading: Multiple level confirmations
⚡ Entry & Exit Signals
Channel Breakouts: Trend continuation opportunities
Mean Reversion: Trades back to center line
Channel Crossovers: When price moves between timeframes
🚀 Key Benefits
✅ Multi-Timeframe Analysis - Complete market perspective
✅ Mathematical Precision - Least squares regression accuracy
✅ High Customization - Adaptable to any trading style
✅ Clean Interface - Professional chart appearance
✅ Performance Optimized - Smooth real-time operation
✅ Versatile Application - Works on all markets and timeframes
💡 Professional Usage
Combine both channels for confluence signals
Use longer channel for overall trend bias
Trade shorter channel signals within longer trend
Monitor channel width for volatility analysis
Essential tool for traders seeking precise trend analysis and dynamic support/resistance levels.
Recent Swing High/Low Linesit gives the recent swing highs and lows.
for options buyers, they can simply enter on a trade when an opposite option (at the money) goes below the recent swing low.
Japanese Candlestick PatternsCandlestick Pattern Detector – Your Smart Market Insight Tool
Unlock the hidden language of price action with the Candlestick Pattern Detector, an advanced TradingView indicator meticulously crafted to identify powerful candlestick formations in real time. Whether you are a day trader seeking sharp reversals, a swing trader scouting for trend continuations, or an investor who values precise entry signals, this indicator is your indispensable trading companion.
The Candlestick Pattern Detector continuously scans every bar on your chart and highlights over 30 classic and advanced candlestick patterns, including dojis, engulfing candles, hammers, shooting stars, morning stars, evening stars, haramis, and more. Each detected pattern is labeled directly on the chart, providing crystal-clear visual signals without clutter. Customizable settings allow you to choose which patterns to monitor, fine-tune sensitivity, and adjust label colors and styles to match your personal trading aesthetic.
Beyond merely spotting patterns, this indicator empowers traders to understand the psychological forces driving the market. Bullish and bearish signals help you gauge potential trend reversals, momentum shifts, or periods of consolidation. By integrating these time-tested price action signals into your strategy, you gain a powerful edge in anticipating market moves before they unfold.
Key Features:
Detects 30+ popular candlestick patterns in real time
Clear on-chart labels and color-coded signals
Customizable alerts for immediate trading opportunities
Adjustable sensitivity for noise reduction
Perfect for intraday, swing, or long-term trading
Elevate your trading precision and confidence with the Candlestick Pattern Detector. Let the market’s story reveal itself, candle by candle.
Robbin hoodsomething good, this is ewrfiwevdcbdkjsdbvkj vasfdkjvsdvkjae dk;v asd vk;jsbdvkaeskv jkjsD v.kj awerekrv
Digit Sum Mark (3/6/9 + Price ~33 ±15)This indicator highlights the price bars where the digit sum of high or low equals 3, 6, or 9, and the closing price is within a specific range (around ₹33 ±15, i.e., mod 100 ∈ ).
✨ Key Features:
Calculates digit sum of high and low values.
Adds +1 if the decimal portion > 0.50 (smart rounding logic).
Only activates when close price mod 100 is between 18 to 48, a zone inspired by the resonance around 33.
Marks the chart with green downward arrows (for high) and red upward arrows (for low) when digit sum = 3, 6, or 9.
📌 Inspired by Gann numerology and price vibration logic – especially the powerful influence of 3, 6, and 9 as noted by Nikola Tesla.
🚨 Best used on intraday or positional charts where price oscillates frequently around round figures.
🧠 Try pairing this with support/resistance tools for better accuracy!
Daily SMA Levels on Intraday📌 Indicator Overview: Daily SMA Levels on Intraday
🔧 What It Does
- Plots horizontal lines for up to eight daily SMAs: 5, 10, 20, 50, 100, 150, 200
- Displays dynamic labels at the end of each line showing both the SMA name and current value
- Works on intraday timeframes, pulling daily calculations for reference
- Lets you toggle each SMA line individually from the settings
- Offers three line styles—Solid, Dashed, and Dotted
- Includes a line thickness slider, giving you visual control
- Positions labels with left-pointing arrows for visual alignment without clutter
💡 Benefits of This Indicator,
🎯 Precision Entry & Exit Zones
Daily SMAs often act as support or resistance levels on lower timeframes. This indicator shows where these zones are in real time—even on a 1-minute chart.
🔍 Visual Trend Context
You see instantly if price is above or below critical SMAs like the 50 or 200, helping gauge bullish vs bearish bias.
⏱️ Intraday Awareness Without Clutter
Instead of switching to a daily chart, you can stay zoomed in and still track major daily trend lines.
Think of it like your intraday roadmap showing where institutional players might have interest—and where price could react.
10 EMA, 20 EMA & 50 SMAThis script plots three key moving averages on the price chart to help identify trends and potential trade opportunities:
10 EMA (Exponential Moving Average):
A fast-reacting average that captures short-term price momentum. Useful for spotting quick trend changes.
20 EMA (Exponential Moving Average):
A medium-term average that smooths out more noise while still being responsive to price changes.
50 SMA (Simple Moving Average):
A widely-used long-term trend indicator. It smooths price data over a longer period and is often used to define overall market direction.
EMA/SMA Distance Percentage TableThis TradingView indicator, "EMA/SMA Distance Percentage Table," is designed to help traders and analysts quickly assess the current price's relationship to key Exponential Moving Averages (EMAs) and Simple Moving Averages (SMAs).
Here's a breakdown of what it does:
Calculates Multiple Moving Averages: It computes EMAs for lengths 10, 30, 50, and 200, and SMAs for lengths 50 and 200. These are commonly used moving averages in technical analysis.
Measures Percentage Distance: For each of these moving averages, it calculates the percentage difference between the current closing price and the moving average's value. This indicates how far, in percentage terms, the price has deviated from that average. A positive percentage means the price is above the MA, while a negative percentage means it's below.
Displays Data in a Table: All the calculated information (MA type and length, its current value, and the percentage distance) is presented in a clear, organized table on the chart. This allows for quick at-a-glance monitoring.
Customizable Visibility: Users have the flexibility to show or hide the plots of the EMAs and SMAs on the chart, as well as the entire data table, through the indicator's settings.
Purpose:
The primary purpose of this indicator is to provide a concise overview of price momentum and potential overbought/oversold conditions relative to various moving averages. Traders often use the distance from MAs to:
Identify Trend Strength: A large distance from a long-term MA might suggest a strong trend.
Spot Potential Reversals: If the price is significantly extended from an MA, it might indicate that a pullback or reversal is due.
Confirm Support/Resistance: Moving averages often act as dynamic support or resistance levels, and their distance can provide context.
In essence, it helps you quickly see if the price is "stretched" or "compressed" relative to its historical averages, which can be valuable for making trading decisions.
Stochastic Trend Signal with MultiTF FilterIndicator Overview – Multi-Timeframe Stochastic Signal
This custom TradingView indicator combines multi-timeframe Stochastic analysis to generate high-probability, trend-following trading signals. It integrates:
Stochastic on the current timeframe to identify potential entry zones (overbought/oversold).
Stochastic on the 1D (daily) timeframe to confirm short-term trend direction.
Stochastic on the 1W (weekly) timeframe to filter out signals that go against the broader market trend.
🔔 Buy signals are triggered only when:
1D Stochastic > 50 (bullish bias),
Current timeframe Stochastic ≤ 20 (oversold),
After the first bullish candle,
And 1W Stochastic does not contradict the direction (must not be bearish).
🔻 Sell signals are triggered only when:
1D Stochastic < 50 (bearish bias),
Current timeframe Stochastic ≥ 80 (overbought),
After the first bearish candle,
And 1W Stochastic does not contradict the direction (must not be bullish).
The indicator also includes visual highlights:
✅ Green or red background when 1D and 1W trends align clearly.
⚠️ Gray background when 1D and 1W trends conflict — a warning to avoid low-probability setups.
📌 This indicator works best on the 4-hour (H4) timeframe, offering a balanced view between short-term signals and higher timeframe trend filters.
Exponential-Decay Cumulative Spread (Cycle-Tuned)## Indicator Overview
**Exponential-Decay Cumulative Spread (Cycle-Tuned)** – short title **LambdaCumDelta** – tracks the percentage spread between CEXs BTC spot prices.
By clipping outliers, applying an exponential-decay running sum, and comparing that sum to rolling percentile bands, the script flags potential **cycle bottoms** and **cycle tops** whenever the cumulative spread stays beyond extreme thresholds for three consecutive bars.
---
### Core Logic
1. **Price Spread**
`spread_pct = (cexA – cexB) / cexB × 100`.
2. **Outlier Suppression**
* Calculates the **90-day standard deviation σ** of `spread_pct`.
* Uses a **clip coefficient `k_clip`** (0.5–5.0) to cap the spread at `±k_clip × σ`, damping single-day anomalies.
3. **Exponential-Decay Sum**
* Applies a decay factor **λ** (0.50–0.999):
```
CumΔₜ = spread_clipₜ + λ × CumΔₜ₋₁
```
* Larger λ → longer memory half-life.
4. **Rolling Percentile Bands**
* Uses a **365-bar window** to derive dynamic percentile thresholds.
* Upper / Lower bands are set by **perc\_hi** and **perc\_lo** (e.g., 85 % and 15 %).
5. **Signal Definition**
* **Bullish** (cycle bottom): `CumΔ` above the upper band for **3 straight bars**.
* **Bearish** (cycle top): `CumΔ` below the lower band for **3 straight bars**.
---
### Chart Elements
| Plot | Style | Meaning |
| --------------- | ----------------- | ----------------------------------- |
| **CumΔ** | Teal thick line | Exponential-decay cumulative spread |
| Upper Threshold | Green thin line | Rolling upper percentile |
| Lower Threshold | Red thin line | Rolling lower percentile |
| Background | Faded green / red | Bullish / bearish signal zone |
---
### Key Inputs
| Input | Default | Purpose |
| -------------------- | ------- | ------------------------------- |
| **Decay factor λ** | 0.95 | Memory length of CumΔ |
| **Clip coefficient** | 2.0 | Multiple of σ for outlier cap |
| **Upper percentile** | 85 | Cycle-bottom trigger percentile |
| **Lower percentile** | 15 | Cycle-top trigger percentile |
---
### Practical Tips
1. **Timing bias**
* Green background often precedes mean-reversion of the spread – consider scaling into longs or covering shorts.
* Red background suggests stretched positive spread – consider trimming longs or lightening exposure.
2. **Combine with volume, trend filters (MA, MACD, etc.)** to weed out false extremes.
3. Designed for **daily charts**; ensure both exchange feeds are synchronized.
---
### Alerts
Two built-in `alertcondition`s fire when bullish or bearish criteria are met, enabling push / email / webhook notifications.
---
### Disclaimer
This script is for educational and research purposes only and is **not** financial advice. Test thoroughly and trade at your own risk.
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
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.
EMA Flip + RSI Rejection with Easier Fractal Filter (Boosted)SQUEEZE & FLIP for spotting LPSs and LPSYz. This Indicator identifies LPS and LPSYS
Tnup Zones 2025This indicator marks zones where price has a high probability of rejection/bouncing off of