Fibonacci 5 Candles Retracement
================================================================================
FIBONACCI 5 CANDLES RETRACEMENT - STRATEGY GUIDE
================================================================================
WHAT DOES THIS STRATEGY DO?
---------------------------
This strategy automatically identifies market trends and uses Fibonacci
retracements to find the best entry points. The idea is simple: when price
makes a strong movement (trend), it often pulls back before continuing in
the same direction. The strategy captures these "pullbacks" to enter at the
right moment.
HOW IT WORKS?
-------------
1. TREND DETECTION
The strategy looks for 5 consecutive candles of the same color:
- 5 red candles = BEARISH trend (price falls)
- 5 green candles = BULLISH trend (price rises)
2. CALCULATION OF START AND END POINTS
For a BEARISH trend (5 red candles):
- START: The highest point between the first red candle and the previous one
- END: The lowest point reached during the 5 candles (and beyond, if the
trend continues)
For a BULLISH trend (5 green candles):
- START: The lowest point between the first green candle and the previous one
- END: The highest point reached during the 5 candles (and beyond, if the
trend continues)
3. DYNAMIC UPDATE
The END point updates automatically if price continues to move in the
direction of the trend, creating new highs (for bullish trends) or new
lows (for bearish trends).
4. TREND END
Normal Mode:
- BEARISH trend ends when a candle closes above the previous candle's open
- BULLISH trend ends when a candle closes below the previous candle's open
"Extended Trend" mode (optional):
- The trend remains active until a candle closes beyond the dynamic 50%
retracement level
- When this happens, the END point "freezes" (stops updating), but the
trend can continue
5. FIBONACCI RETRACEMENT CALCULATION
Once START and END are identified, the strategy automatically calculates
Fibonacci levels. IMPORTANT: for retracements and pending orders, we
consider START as 100% and END as 0%, because we work on the part of the
trend that is recovered (the pullback).
The retracement levels are:
- 70% = level closest to START (smallest retracement)
- 60% = second level
- 50% = central level (often used for entry)
- 25% = level closest to END (largest retracement)
6. PENDING ORDER PLACEMENT
When a trend is identified and completed, the strategy automatically places
a pending order (limit order) at one of the selectable Fibonacci levels.
Available levels:
- 25%: closest to END
- 50%: central level (balanced)
- 60%: closest to START
- 70%: very close to START
The order direction depends on the trend:
- BEARISH trend → SHORT order (bet that price falls)
- BULLISH trend → LONG order (bet that price rises)
Stop Loss and Take Profit (for retracements):
- Stop Loss: always at START level
- Take Profit: always at END level
EXTENDED TAKE PROFIT:
If the order is executed (filled), the strategy can apply an "Extended
Take Profit" if configured. IMPORTANT: for the extended TP calculation,
we consider START as 0% and END as 100% (the original trend movement).
For example, if you set 3%, the Take Profit will be at 103% of the
original trend movement instead of 100%.
AVAILABLE FILTERS
-----------------
1. MINIMUM TREND (pips)
Filters trends that are too small. If a trend is below the set value:
- START and END labels become gray (instead of red/green)
- No pending order is placed
- The trend is still displayed on the chart
Useful for avoiding trading movements that are too small.
2. EMA FILTER
Uses two moving averages (EMA 50 and EMA 200) to filter direction:
- If active: places LONG orders only when EMA50 > EMA200 (uptrend)
- If active: places SHORT orders only when EMA50 < EMA200 (downtrend)
Useful for trading only in the direction of the main trend.
3. EXTENDED TREND
Modifies how the trend is considered "completed":
- If disabled: uses normal logic (opposite candle)
- If active: the trend remains in formation until a candle closes beyond
the dynamic 50%. When this happens, END freezes but the trend can continue.
Useful for capturing longer trends and extended movements.
VISUALIZATION
-------------
The strategy displays on the chart:
1. START AND END LABELS
- Red color for bearish trends
- Green color for bullish trends
- Gray color if the trend is not valid (too small)
- Remain visible even when new trends form
2. START AND END LINES
- Horizontal lines indicating the start (START) and end (END) points of the trend
- White color by default, customizable from the settings panel
- Update dynamically when the END point changes
- Can be shown or hidden via the "Show Start/End Lines" option
3. FIBONACCI LINES
The strategy shows horizontal lines at retracement levels:
- Line at 50% (yellow by default)
- Line at 25% (green by default)
- Line at 60% (azure by default)
- Line at 70% (red by default)
COLOR CUSTOMIZATION:
All line colors can be customized from the settings panel in the
"LINE COLORS" section:
- Start/End Line Color: customize the color of START and END lines
- 50% Line Color: customize the color of the 50% line
- 25% Line Color: customize the color of the 25% line
- 60% Line Color: customize the color of the 60% line
- 70% Line Color: customize the color of the 70% line
Lines update dynamically when the END point changes and can be shown or
hidden individually via options in the "VISUALIZATION" section.
4. PENDING ORDER LABELS
Show pending order information:
- Direction (LONG or SHORT)
- Entry price
- Stop Loss
- Take Profit
Positioned far from the chart to avoid cluttering the visualization.
ALERTS
------
If enabled, alerts send notifications when:
1. PENDING ORDER CREATED
When a new pending order is placed, with all information.
2. PENDING ORDER UPDATED
When the pending order is updated (for example, if the level changes or
if the END point moves).
3. ORDER OPENED
When the pending order is executed (filled) and the position is opened.
Alerts can be configured in TradingView to send notifications via email,
SMS, or other platforms.
RECOMMENDED SETTINGS
--------------------
To get started, you can use these settings:
VISUALIZATION:
- Show all lines and labels to see how it works
- Show Start/End Lines: true (to display lines at START and END points)
- Customize line colors in the "LINE COLORS" section according to your preferences
STRATEGY:
- Pending Order Level: 50% (balanced)
- Extended TP: 0% (use standard TP at 100%)
FILTERS:
- Minimum Trend: 0 pips (disabled initially)
- Use EMA Filter: false (disabled initially)
- Extended Trend: false (use normal logic)
ALERTS:
- Enable Alerts: true (if you want to receive notifications)
PRACTICAL EXAMPLE
-----------------
Scenario: Bearish Trend
1. Price forms 5 consecutive red candles
2. The strategy identifies:
- START = 1.2000 (highest point)
- END = 1.1900 (lowest point)
- Range = 100 pips
3. Calculates Fibonacci levels (for retracements: START = 100%, END = 0%):
- 100% = 1.2000 (START)
- 70% = 1.1930
- 60% = 1.1940
- 50% = 1.1950
- 25% = 1.1975
- 0% = 1.1900 (END)
4. If you set "Pending Order Level" to 50%:
- Places a SHORT pending order at 1.1950 (50% retracement)
- Stop Loss at 1.2000 (START = 100%)
- Take Profit at 1.1900 (END = 0%)
5. If price rises and touches 1.1950:
- The order is executed
- Opens a SHORT position
- If price falls to 1.1900 → Take Profit (profit)
- If price rises to 1.2000 → Stop Loss (loss)
IMPORTANT NOTE
--------------
This strategy is a technical analysis tool. Like all trading strategies,
it does not guarantee profits. Trading involves risks and you can lose money.
Always use appropriate risk management and test the strategy on historical
data before using it with real money.
LICENSE
-------
This code is open source and available for modification. You are free to
use, modify, and distribute this strategy. If you republish or share a
modified version, please kindly mention the original author.
================================================================================
Candlestick analysis
Auto Fib Retracement Advanced//@version=5
indicator("Auto Fib Retracement Advanced", overlay=true, max_lines_count=500) // Increase max_lines_count
leftBars = input.int(10, "Pivot Left Bars")
rightBars = input.int(10, "Pivot Right Bars")
extendRight = input.bool(true, "Extend Lines Right")
swingHigh = ta.pivothigh(high, leftBars, rightBars)
swingLow = ta.pivotlow(low, leftBars, rightBars)
var float lastHighPrice = na
var int lastHighBar = na
var float lastLowPrice = na
var int lastLowBar = na
// Arrays to store line IDs for management
var lines = array.new_line()
levels_values = array.from(0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0)
// Update pivot points and redraw lines when a new pivot is confirmed
if not na(swingHigh) or not na(swingLow)
if not na(swingHigh)
lastHighPrice := swingHigh
lastHighBar := bar_index
if not na(swingLow)
lastLowPrice := swingLow
lastLowBar := bar_index
// Delete existing lines before drawing new ones
for i = 0 to array.size(lines) - 1
line.delete(array.get(lines, i))
array.clear(lines)
if not na(lastHighPrice) and not na(lastLowPrice)
isUptrend = lastHighPrice > lastLowPrice
fibRange = math.abs(lastHighPrice - lastLowPrice)
// Draw new lines
for i = 0 to array.size(levels_values) - 1
levelValue = array.get(levels_values, i)
priceLevel = isUptrend ? lastLowPrice + fibRange * levelValue : lastHighPrice - fibRange * levelValue
// Use line.new to create persistent horizontal lines
newLine = line.new(x1=lastLowBar, y1=priceLevel, x2=bar_index + (extendRight ? 500 : 0), y2=priceLevel, color=color.gray, style=line.style_dashed)
array.push(lines, newLine)
Volume-Confirmed Reversal Engine [Scalping-Algo]█ VOLUME-CONFIRMED REVERSAL ENGINE
A reversal detection system combining price action exhaustion with volume confirmation to identify high-probability turning points.
█ WHAT MAKES THIS ORIGINAL?
Unlike oscillators (RSI, Stochastic) that signal at arbitrary levels, VCRE uses a TWO-STEP CONFIRMATION process:
1. ANCHOR CANDLE: Detects when price closes beyond ALL recent candles (not just one), indicating true exhaustion
2. VOLUME VALIDATION: Requires 2x average volume to confirm institutional participation
3. BREAKOUT CONFIRMATION: Waits for price to break back through anchor range before signaling
4. QUALITY SCORING: Rates each signal 1-4 stars based on multiple confluence factors
█ HOW IT WORKS
STEP 1 - ANCHOR DETECTION
• Bullish: Close drops below the LOW of ALL previous N candles + high volume
• Bearish: Close rises above the HIGH of ALL previous N candles + high volume
• This identifies potential exhaustion points with institutional participation
STEP 2 - CONFIRMATION
• Bullish signal: Price must close ABOVE anchor candle's high
• Bearish signal: Price must close BELOW anchor candle's low
• Must occur within specified bars or setup is cancelled
STEP 3 - SCORING (1-4 Stars)
★ Confirmation occurred
★ Anchor had exceptional volume (>2x avg)
★ Confirmation candle has strong volume (>1.2x avg)
★ Aligned with macro trend (200 EMA)
█ HOW TO USE
SIGNALS
• Green "B" = BUY signal | Red "S" = SELL signal
• More stars (★) = Higher probability setup
SETUP BOXES
• Green box = Bullish setup forming, waiting for confirmation
• Red box = Bearish setup forming, waiting for confirmation
DASHBOARD
• Shows status, confirmation countdown, and volume condition
█ RECOMMENDED SETTINGS
| Style | Lookback | Confirm | Volume Multi |
|--------------|----------|---------|--------------|
| Scalping | 10-15 | 2-3 | 1.5x |
| Day Trading | 15-25 | 3-4 | 2.0x |
| Swing | 20-30 | 3-5 | 2.0-2.5x |
█ KEY PARAMETERS
• Candle Lookback: Candles to check for breakout (higher = stronger signals)
• Confirm Within: Max bars for confirmation (lower = faster signals)
• Anchor Volume Multiplier: Volume threshold for anchor candle
• Macro Trend EMA: Trend filter for scoring (default 200)
█ ALERTS
• Buy/Sell Signal - Any confirmation
• High-Quality Buy/Sell - 3+ star signals only
• Setup Detected - When anchor forms (before confirmation)
█ TIPS
• Focus on 3-4 star signals for best results
• Signals near support/resistance add confluence
• Use stop-loss beyond anchor candle extreme
• Test on demo before live trading
Works on all markets: Stocks, Forex, Crypto, Futures
ICT Concepts [Kodexius]ICT Concepts is an all in one, chart overlay toolkit that combines several widely used ICT style components into a single, modular workflow. It is designed to help you map higher timeframe context, track directional structure, and refine execution areas with imbalance and liquidity concepts, without turning the chart into a cluttered drawing board.
Instead of plotting everything indefinitely, each module focuses on “live relevance” and chart readability. Zones, lines, and labels are managed with sensible limits so the most recent and most meaningful structures remain visible while older objects are automatically retired.
Because the system is modular, you can run it like a complete toolkit:
- Use multi timeframe Order Blocks to define high probability zones
- Use Market Structure (BOS and MSS) for bias and context
- Validate intent with SMT Divergence when you want intermarket confirmation
- Refine with Imbalances (FVG, BPR, CE) and Liquidity Sweeps
- Add timing structure via Killzones and risk structure via auto Fibonacci
🔹 Features
🔸 Multi Timeframe Order Blocks (3 candle displacement OB)
The OB engine detects a strict 3 candle displacement sequence (bull and bear) and projects the “order block candle” as a forward extending zone. Detection can run on the chart timeframe or on a user selected higher timeframe and then be displayed on your execution chart.
🔸 Overlap Control
Before adding a new OB, the script checks overlap against existing zones of the same direction. If a new zone intersects an existing one, it is ignored to reduce redundant stacking in the same price area.
🔸 Automatic Extension and Mitigation for Order Blocks
OB zones extend forward on every bar and are removed once mitigation is confirmed. Mitigation is evaluated by close breaking decisively beyond the relevant boundary:
- Bullish OB mitigates when close prints below the OB bottom
- Bearish OB mitigates when close prints above the OB top
🔸 Market Structure (BOS and MSS)
Market Structure is built from swing pivots using a configurable pivot length. When price closes through the latest swing, the script prints a structure event:
BOS (Break of Structure) for continuation
MSS (Market Structure Shift) for a directional change
To keep the chart readable, older structure drawings are capped by history limits.
🔸 SMT Divergence with optional mini panel
SMT can compare the current instrument with a user selected symbol to highlight divergence at swing points. A divergence is flagged when one market makes a new swing extreme while the other fails to confirm.
Optional: a compact right side “compare symbol” candle panel can be enabled so you can visually confirm what the secondary market is doing without leaving the chart.
🔸 Imbalances: FVG, BPR, and CE modes
You can choose between three imbalance views depending on your style:
FVG mode: Fair Value Gaps are plotted as extending zones
CE mode: Consequent Encroachment is visualized using a midpoint line and a half zone fill
BPR mode: Balanced Price Range is formed when a new FVG overlaps an opposing FVG, producing a “balanced” region that often behaves differently than a standalone gap
🔸 Automatic extension, limits, and mitigation for imbalances
Imbalance objects extend forward until mitigated. Mitigation uses wick based logic:
Bullish imbalance mitigates when price wicks below the zone bottom
Bearish imbalance mitigates when price wicks above the zone top
The script also enforces per side limits and removes older items to keep performance stable.
🔸 Liquidity sweeps (buyside and sellside)
The liquidity module tracks swing highs and lows and marks sweep events when price runs the level and then closes back through it, which often behaves like a rejection signal. Sweeps are visualized with a level line plus a small sweep highlight box, with an optional history cap.
🔸 Auto anchored Fibonacci (EQ and OTE focus)
Fibonacci levels are automatically anchored using the most recent structure context so you do not need to manually re draw fibs every time the market evolves. EQ and OTE focused bands are plotted to support common premium discount style workflows, with optional extra levels if desired.
🔸 Killzones (session boxes with optional range tracking)
Asian, London Open, New York AM, and New York PM killzones can be displayed using UTC-5 session definitions. Session boxes dynamically expand as new highs and lows are formed during the session, and historical zones can be retained up to a user set count. Rendering is restricted to intraday timeframes up to 60 minutes for clean scaling and performance.
🔹 Calculations
1) Order Block detection (3 candle displacement)
The OB pattern is defined inside detectLogic() . The zone boundaries always come from candle (the middle candle of the 3 candle sequence).
detectLogic() =>
bool isBull = open > close and close > open and close > open and low < low and close > high
bool isBear = open < close and close < open and close < open and high > high and close < low
[isBull, high , low , time , isBear, high , low , time ]
Interpretation (bullish side):
Candle is bearish
Candle is bullish (the OB candle)
Current candle is bullish and closes above high
low undercuts low to form the sweep style condition
Bearish logic is the mirrored inverse.
2) Multi timeframe projection and duplicate control
If the timeframe input is set, detections are computed on that timeframe and projected onto the current chart using request.security . A last processed time check prevents duplicate prints.
=
request.security(syminfo.tickerid, i_tf, detectLogic())
var int lastBullTime = 0
var int lastBearTime = 0
if mtf_isBull and mtf_bullTime != lastBullTime
lastBullTime := mtf_bullTime
if mtf_isBear and mtf_bearTime != lastBearTime
lastBearTime := mtf_bearTime
3) OB overlap validation and mitigation
Overlap is checked before pushing a new zone, then zones are extended and removed once mitigated by close.
method hasOverlap(array OBs, float top, float bottom) =>
bool overlap = false
if OBs.size() > 0
for i = 0 to OBs.size() - 1
OB item = OBs.get(i)
if (top < item.top and top > item.bottom) or (bottom > item.bottom and bottom < item.top)
overlap := true
break
overlap
method isMitigated(OB this, float currentClose) =>
this.isBull ? (currentClose < this.bottom) : (currentClose > this.top)
4) Market Structure: pivots, BOS, and MSS
Swings are derived from pivots; then BOS/MSS prints when price crosses the latest swing. The script tracks trend state to decide whether the break is continuation (BOS) or shift (MSS).
float ph = ta.pivothigh(i_structLen, i_structLen)
float pl = ta.pivotlow(i_structLen, i_structLen)
bool brokenHigh = ta.crossover(close, lastHigh)
bool brokenLow = ta.crossunder(close, lastLow)
// drawStructure(..., "BOS", ...) or drawStructure(..., "MSS", ...) depending on trend state
5) SMT Divergence conditions
SMT uses pivot highs/lows on both instruments. A bearish SMT prints when the main chart makes a higher high but the compare symbol fails to exceed its prior high. A bullish SMT prints when the main chart makes a lower low but the compare symbol fails to make a lower low.
bool bearishSmt = not na(smtAHighPrev) and not na(smtBHighPrev) and (smtAHighLast > smtAHighPrev) and (smtBHighLast <= smtBHighPrev)
bool bullishSmt = not na(smtALowPrev) and not na(smtBLowPrev) and (smtALowLast < smtALowPrev) and (smtBLowLast >= smtBLowPrev)
6) FVG detection, BPR construction, and CE level
FVGs are detected via a classic 3 bar gap condition. When a new FVG overlaps an opposing FVG, the script builds a BPR using the intersecting region. CE is the midpoint (top + bottom) / 2, plotted as a dashed line plus a half fill box.
bool fvgBullDetected = low > high
bool fvgBearDetected = high < low
// CE
float ceLevel = (this.top + this.bottom) / 2
Imbalance mitigation uses wick logic:
method isMitigated(FVG this, float currentHigh, float currentLow) =>
this.isBull ? (currentLow < this.bottom) : (currentHigh > this.top)
7) Liquidity sweep trigger
A sweep is confirmed only when price runs the pivot level and closes back through it (reject style).
bool sweepBull = i_showLiq and not na(liqLastLow) and not liqLastLowSwept and low < liqLastLow and close > liqLastLow
bool sweepBear = i_showLiq and not na(liqLastHigh) and not liqLastHighSwept and high > liqLastHigh and close < liqLastHigh
8) Killzone session mapping
Sessions are defined in UTC-5 using time() session strings.
string kzTz = "UTC-5"
kzInSession(string sess) =>
not na(time(timeframe.period, sess, kzTz))
bool inAsian = kzInSession("2000-0000")
bool inLondon = kzInSession("0200-0500")
bool inNY = kzInSession("0830-1100")
SCOTTGO - MOMO RVOL Trend Painter V2 (Elite Pro)SCOTTGO - MOMO RVOL Trend Painter V2 (Elite Pro)
This professional-grade trend-following indicator identifies high-probability "Elite" entry points by combining Relative Volume (RVOL) with strict trend alignment and momentum filters. It is designed to filter out market noise and highlight only the most significant institutional moves.
Core Features
Elite Signal Logic: Triggers only when high RVOL (default >2.0x) aligns with a confirmed trend (Price vs. VWAP & 9EMA) and positive momentum (RSI & MACD).
Dynamic Bar Coloring: Instantly paints bars Green (Bullish) or Red (Bearish) when all "Elite" criteria are met.
Smart Labeling: Labels are corner-anchored to the left of the signal bar. This prevents visual clutter and ensures labels never obstruct new price action.
Detailed Tooltips: Hover over any "Elite" flag to see a comprehensive breakdown of the specific metrics (RVOL value, Trend status, RSI, and MACD) that triggered the signal.
Key Components
RVOL Threshold: Adjustable sensitivity to volume spikes.
Trend Filter: Optional requirement for price to stay above/below VWAP and the 9EMA.
Momentum Filters: Integrated RSI and MACD confirmation to avoid "exhaustion" trades.
Visual Customization: Full control over label spacing, colors, and opacity.
How to use: Look for the ⭐ ELITE flags as confirmation for trend continuation or high-volume breakouts. Use the triangles for precise candle entry points.
Disclaimer: Technical analysis tools are for informational purposes only. Trading involves significant financial risk.
Proactive Execution MachineProactive Execution Machine: Multi-State Momentum Engine
Overview
The Proactive Execution Machine is a comprehensive trading workspace designed to filter market noise and highlight high-probability execution windows. It combines Dynamic Supply/Demand Zones, Manual Level Proximity, and a proprietary Dual-Candle Momentum Scoring system to categorize the market into specific "States" in real-time.
Instead of a simple arrow, this script provides a System Status dashboard that tells you exactly what phase the market is in—whether it's "Level Absorption," a "Demand Vortex," or a "Tired Trend. "Core Components
1. The Momentum Gauge (Bottom Left)
This table provides a deep-dive into order flow by scoring the last two candles based on:
Close Location: Where price closed relative to its range (Upper, Middle, Lower).
Body-to-Wick Ratio: Measuring the "effort vs. result" of the move.
Range Relativity: Whether the current bar is an "Inside" or "Outside" bar relative to the previous candle.
Slope (Linear Regression): A real-time trendline of momentum strength to see if conviction is accelerating or decelerating.
2. Dynamic State Engine The script automatically identifies and colors the chart into three primary zones:
Supply Zone (Red): The upper 30% of the recent price discovery range.
Demand Zone (Green): The lower 30% of the recent price discovery range.
Proximity Zones: When price nears your Manual Levels (PDH, PDL, NY Open, etc.), the engine switches priority to monitor for "Breakouts" or "Level Attacks."
3. System Status (Bottom Right)The dynamic HUD changes size and color based on conviction levels. It will notify you of specific market conditions:
Supply/Demand Overrun: When momentum is so strong it is smashing through reversal zones. Level Absorption/Stalling: When price reaches a key level but momentum has "flattened," suggesting a potential reversal or high-volume churn.
Buy/Sell Now: High-conviction signals triggered only when Location (Zone) and Momentum (Score) align.
How to Trade with the "Machine"
For Trend Followers: Look for the status "TREND (ACTIVE)" combined with a Momentum Score of $\pm 4$ or higher.
For Reversion Traders: Watch for "WATCH LONGS/SHORTS" when price enters a Supply or Demand zone. Wait for the status to flip to "BUY/SELL NOW" as momentum begins to shift back toward the mean.
For Level Traders: Input your daily levels (VAH, VAL, POC) in the settings. The machine will automatically prioritize these levels, changing status to "AT LEVEL" the moment price enters your specified proximity.
Key Settings
Manual Levels: Input up to 5 custom price levels for the proximity engine.
Proximity Sensitivity: Adjust how close price must be to a level (in points/pips) to trigger an "At Level" state.
Aggression (1-5): Tuning the pivot detection. Lower numbers respond faster to micro-structure; higher numbers focus on major swing points.
Visual Coding
Candle bodies are colored to assist with single candle pattern detection:
Lime/Pink Bar Highlights: The script uses a custom color engine to highlight "Shaved" (Marubozu) bars.
Lime indicates aggressive bullish conviction, while Pink (Fuchsia) highlights aggressive bearish conviction.
Green indicates bull engulfing candle
Red indicates bear engulfing candle
Orange is an outside bar
Yellow an inside bar
Gray a Doji bar
Black all other bars
Dynamic Zones: The chart features two primary background areas:
Red Zone (Top): The Supply Zone, identifying where sellers historically reclaim control.
Green Zone (Bottom): The Demand Zone, identifying where buyers historically step in.
System Status HUD (Bottom Right): This is the "brain" of the machine. The text size is adjusted to attract the trader's attention when the slope of the momentum increases above 5 (bullish expansion) or greater than - 5 (Bearish expansion). The system status changes color based on the market state too:
HUD Coloring:
Aqua: Active Bullish Trend.
Gray: Bull trend tired.
Orange: Active Bearish Trend.
Gray: Bear trend tired.
Red: For sell now.
Green: For buy now.
Lime: Bull price level under attack.
Marron: Bear price level under attack.
Gray: Price level absorption.
Yellow: Price at level and stalling.
Maroon: An "Overrun" or "Vortex" where price is smashing through supply/demand with extreme momentum.
The text size serves as a "Volatility Alarm." * When the text is Small, the market is in a "sideways" or "absorbing" state. You should be cautious about entering new trend trades.
When the text is Large, the Machine has detected that "Aggressive" participants have entered the order flow. This is your cue that a "Level Attack" or a "Trend Breakout" is currently in progress.
The 1-Minute Tactical Setup Guide:
Proactive Execution Machine Operating on the 1-minute (1m) timeframe requires a balance between speed and noise filtration. Because the Proactive Execution Machine uses a "State Engine" logic, it is uniquely suited for the high-velocity environment of the NY Open.
I follow these three tactical steps to optimize the chart for the 1m timeframe:
Step 1: Calibrate the "Proximity Sensitivity" On a 1m chart, a "Level" isn't a single price—it's a zone.
Adjustment: In the script settings, set your Proximity Sensitivity to a value that represents the average "noise" of your instrument.
For ES (S&P 500 Futures): 1.5 to 2.5 points.
For NQ (Nasdaq Futures): 5 to 10 points.
For Forex (EURUSD): 1 to 2 pips.
The Goal: You want the "AT LEVEL" status to trigger just as price is "sniffing" the level, giving you time to prepare your order before the touch.
Step 2: Watch the "History" Column in the Momentum Gauge
The bottom-left table is your most important tool for the 1m chart. It shows you the momentum of the last three bars ($T-0$, $T-1$, $T-2$).
Momentum Sequence: Look for a "Sequence of Three." If you see $T-2$ (Neutral), $T-1$ (Long), and $T-0$ (STR Long), you have a momentum explosion.
The Trap: If you see STR LONG followed immediately by a NEUTRAL bar while in a Supply Zone, the "Machine" will shift to "SUPPLY STALLING." This is your signal to tighten your trailing stop or take profit—it means the bulls are hitting a wall of sell orders.
Step 3: The "Level Attack" Execution
The script features a unique state called "LEVEL ATTACK." This is designed specifically for breakout/breakdown traders.
The Setup: Price is approaching a Manual Level (like the NY Open or PDH).
The Signal: If the status changes to "LEVEL ATTACK (BULL)," it means the momentum score is high ($>3$) and the slope is positive while within the proximity of the level.
The Action: This is a "Proactive" entry. Instead of waiting for the candle to close above the level, you are entering as the "Machine" detects institutional pressure "attacking" the level.
Daily Routine for the "Machine"
1) 09:25 AM: Input your 5 manual levels (PDH, PDL, NY Open, VAH, VAL).
2) 09:30 AM: Wait for the first 5 minutes of volatility to settle.
3) The Window: Look for the System Status to move from "IDLE" to a colored state.
4) The Trigger: Never take a signal if the Momentum Gauge is in the "Neutral" (Yellow) zone. Only execute when the gauge shows LONG/SHORT or STR LONG/STR SHORT.
Quantum Flow [JOAT]Quantum Flow Nexus - Advanced Multi-Dimensional Flow Analysis
Overview
Quantum Flow Nexus is an open-source overlay indicator that combines custom EMA-based flow calculations with order flow analysis, multi-timeframe correlation, and liquidity zone detection. It provides traders with a structured framework for analyzing market momentum and identifying potential entry points based on multiple confirming factors.
What This Indicator Does
The indicator calculates several analytical components:
Quantum Flow Oscillator - A custom oscillator built from multiple EMA layers at different depths
Flow Momentum - Rate of change of the flow oscillator
Order Flow Delta - Buy vs sell volume pressure estimation
Smart Money Index - Volume-weighted directional bias metric
Multi-Timeframe Entanglement - Price correlation across 15m and 60m timeframes
Liquidity Zones - Historical swing high/low levels with volume significance
Wave Function State - Momentum-based decisiveness detection
How It Works
The core quantum oscillator uses a custom EMA calculation with depth layering:
quantumOscillator(series float src, simple int len, simple int depth) =>
float osc = 0.0
for i = 1 to depth
int fastLen = len / i
int slowLen = len * i
float emaFast = quantumEMA(src, fastLen)
float emaSlow = quantumEMA(src, slowLen)
osc += (emaFast - emaSlow) / depth
osc
This creates a multi-layered view of momentum by comparing EMAs at progressively different speeds.
Signal Generation
Basic signals occur when:
Bullish: Flow crosses above lower band + positive momentum + positive order flow delta
Bearish: Flow crosses below upper band + negative momentum + negative order flow delta
Strong signals require additional confirmation:
Smart Money Index above/below threshold (50/-50)
Entanglement score above 50%
Wave function in collapsed state (decisive momentum)
Confluence Score Calculation
The indicator combines multiple factors into a single confluence percentage:
float confluenceScore = (flowStrength * 20 + entanglementScore * 0.3 + math.abs(orderFlowDelta) * 0.5) / 3
Dashboard Panel (Top-Right)
Flow Strength - Distance from center line normalized by standard deviation
Momentum - Current rate of change of flow
Trend - BULLISH/BEARISH/NEUTRAL based on flow vs EMA
Confluence Score - Combined factor percentage
Order Flow Delta - Buy/sell pressure percentage
Entanglement - Multi-timeframe correlation score
Wave State - COLLAPSED or SUPERPOSITION
Signal - Current actionable status
Visual Elements
Flow Lines - Center flow line with upper/lower bands
Quantum Zones - Filled areas between bands showing bullish/bearish zones
3D Quantum Field - Five oscillating layers creating depth visualization
Order Flow Blocks - Boxes highlighting significant order flow imbalances
Liquidity Heatmap - Dashed lines at significant historical levels
Signal Markers - Triangles for basic signals, labels for strong signals
Input Parameters
Flow Period (default: 21) - Base period for flow calculations
Quantum Depth (default: 3) - Number of EMA layers
Sensitivity (default: 1.5) - Band width multiplier
Liquidity Max Levels (default: 8) - Maximum liquidity zones displayed
Liquidity Min Strength Ratio (default: 0.10) - Minimum volume significance
Suggested Use Cases
Identify momentum direction using flow oscillator position
Confirm entries with order flow and smart money readings
Use liquidity zones as potential support/resistance areas
Wait for strong signals with multiple factor confirmation
Timeframe Recommendations
Effective on 15m to Daily charts. Lower timeframes may produce more signals with higher noise levels.
Limitations
Order flow is estimated from candle structure, not actual order book data
Multi-timeframe requests add processing time
Liquidity zones are based on historical pivots and may not reflect current market structure
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management.
- Made with passion by officialjackofalltrades
Adaptive MTF Momentum█ WHAT MAKES THIS INDICATOR DIFFERENT
This indicator solves a common problem: lower timeframe noise causing false signals. Instead of using fixed settings, it dynamically selects which higher timeframes to monitor based on your current chart.
The core methodology combines three analysis layers that must ALL agree before generating a signal:
1. Multi-timeframe trend alignment (direction filter)
2. Momentum exhaustion detection (timing filter)
3. Volume and structure confirmation (validation filter)
This triple-confirmation approach significantly reduces false signals compared to single-indicator strategies.
█ METHODOLOGY EXPLAINED
Layer 1: Adaptive Timeframe Selection
The indicator automatically builds a timeframe chain based on your chart:
| Your Chart | Monitors |
|------------|----------|
| 5 minute | 30m + 1H + 4H |
| 15 minute | 1H + 4H + Daily |
| 30 minute | 2H + 8H + Daily |
For each higher timeframe, it calculates EMA crossovers (8/21/50) to determine trend direction. The "alignment score" (0-3) shows how many timeframes agree.
Why this matters: A 5m buy signal is more reliable when 30m, 1H, AND 4H all show bullish structure.
Layer 2: Momentum Timing
Once trend direction is confirmed, the indicator waits for optimal entry timing using:
- RSI (14): Identifies oversold (<30) and overbought (>70) conditions
- Stochastic (14,3,3): Confirms momentum shift via K/D crossovers
- MACD (12,26,9): Validates momentum direction change
A "momentum score" combines these readings. Signals only fire when momentum aligns with the higher timeframe trend.
The logic: In an uptrend, we want to buy when momentum is oversold and turning up. In a downtrend, we want to sell when momentum is overbought and turning down.
Layer 3: Validation Filters
Before any signal appears, these conditions must pass:
- Volume Filter: Current volume must exceed 1.2x the 20-period average. This confirms institutional participation.
- VWAP Filter: For longs, price should be above VWAP. For shorts, below VWAP. This ensures we trade with intraday flow.
- Structure Filter: Requires a recent break of swing high (for longs) or swing low (for shorts). This confirms price is actually moving in our direction.
- ATR Filter: Volatility must be above 50% of its 50-period average. This avoids low-volatility chop.
█ SIGNAL CLASSIFICATION
The indicator categorizes signals by entry type:
REV (Reversal): Momentum reaches extreme (RSI oversold/overbought) while higher timeframes maintain trend. Best for catching pullbacks in trends.
CONT (Continuation): Price pulls back to the 21 EMA in a strong trend, then momentum turns. Best for adding to existing positions.
BRK (Breakout): Price breaks structure level with volume spike. Best for catching new moves early.
█ QUALITY SCORE CALCULATION
Each signal receives a Q1-Q5 rating based on:
- HTF alignment score (0-3 points)
- Momentum score (0-3 points)
- Volume spike present (+1 point)
Higher scores indicate more filters aligned. Q4-Q5 signals have the highest probability.
█ RISK MANAGEMENT
TP/SL levels are calculated using ATR(14):
- Stop Loss: 1.2 x ATR from entry
- TP1: 1.8 x ATR (partial exit)
- TP2: 3.0 x ATR (full exit)
This provides approximately 1.5:1 to 2.5:1 reward-to-risk ratio.
█ HOW TO USE
1. Apply to 5m, 15m, or 30m chart
2. Enable "Auto-Adapt" mode (recommended)
3. Wait for signals with Q3 or higher rating
4. Check dashboard confirms trend alignment
5. Enter with suggested TP/SL levels
Settings Guide:
- Sensitivity: "Conservative" = fewer but higher quality signals
- Sensitivity: "Aggressive" = more signals, lower threshold
- Cooldown: Increase to 10-15 if signals appear too frequently
█ DASHBOARD READINGS
- HTF: Shows active timeframe chain
- Trend: Bull/Bear + alignment score (aim for +2 or +3)
- RSI/Stoch: Current value or OS/OB status
- Vol: "SPIKE" when above threshold
- VWAP: Arrow shows price position relative to VWAP
█ LIMITATIONS
- Works best in trending markets; avoid during ranging/choppy conditions
- Designed for intraday timeframes (5m-30m); not optimized for higher timeframes
- Signals are not guarantees; always use proper risk management
- Past performance does not indicate future results
█ ALERTS AVAILABLE
- Long / Short: Any signal
- HQ Long / HQ Short: Q4+ signals only (recommended)
- Any: All signals combined
Long-Term Refuges (LTR)══════════════════════════════
// Intruduction // (Spanish Texts Below)
══════════════════════════════
This indicator is originally based on a soft fork of the Multi-Timeframe Recursive Zigzag Indicator by ©Trendoscope. We have used the technology of their libraries for Zigzag generation so that the user has the freedom to choose which of the different Zigzags calculated by ©Trendoscope as "Levels" is most suitable for adapting to the generation of ideal phases for evaluation and selection as "most predominant" phases, in long-term periods, for any asset according to its particular behavior based on its volatility and price variation rhythm.
// Theoretical Foundation of the Indicator //
═══════════════════════════════════
Many traditional institutional investors use the last major-grade market phase that stands out
from the others (longer duration and greater price change on daily timeframe), to base a Fibonacci whose levels are used to open long-term positions. These positions can remain open to be activated in the future up to years in advance. The phase is considered valid until a new more predominant phase develops in the future; with which the same strategy is repeated.
// Indicator Objectives
══════════════════
1) Automatically find the last most predominant phase of an asset, analyzing it on daily timeframe and taking into account whether the long-term market trend is bullish or bearish.
2) Plot a Fibonacci Retracement over the predominant phase (reversed if the phase is bullish.)
3) The indicator numbers and locates the 3 most predominant phases, from which it chooses Top-1 for plotting.
4) If the user does not agree with the indicator's automatic selection, they have the freedom to choose any of the other 2 Top phases for plotting the Fibo and its levels.
5) If the user does not agree with the amplitude or frequency of the plotted Zigzag phases, they can modify the parameters of the Zigzag calculation of the ©Trendoscope algorithm until one of the Top-3 matches the phase they have in mind.
6) As an experimental bonus, the indicator runs a contest (CP) of bull's-eye price coincidences (OHLC) daily with all Fibo levels of the selected Top 3 phases, to verify which phase the market prices are validating as the most popular for placing operations. Contest results are displayed in the CP column of the Top-3 phases table. If as a result of the contest it is detected that there is a change in the winning phase, a switch can be enabled to activate an alert that the user can use with TradingView's alert creator to show an alarm, send an email, etc.
7) This indicator was designed for the user to find the long-term predominant phase of their assets and manually record the date-price coordinates of the i0-i1 anchors of the predominant phase. The Top-1 phase coordinates are shown in the table Top-3 phases from where the user can capture them. The date-price coordinates of all HH and LL pivots, of all Zigzag phases, appear through a switch. With the pivots, the user can search or select a different phase from those automatically found
by the indicator, according to their own research. Subsequently, the user forgets about this LTR indicator for a good while and proceeds to apply in their normal operation our SLTR indicator (Simplified Long-Term Refuges), in which they can plot and follow simultaneously the long-term refuges of up to 5 different assets, by just entering their corresponding date-price coordinates,
which were calculated previously with this LTR indicator.
// Additional Notes:
══════════════════
1) As of the publication date of LTR version v1.0 (12/2025), the ©Trendoscope Zigzag generation parameters were adjusted by default to find the long-term predominant phases of Bitcoin and Ethereum (2020-2021 Pandemic). The levels shown in the chart correspond to the results obtained using daily data from Bitstamp exchange, BTCUSD:BITSTAMP (popular in Europe).
2) Due to TradingView's strict publication rules related to the use of languages other than English, the complete Spanish version (plain language), with all entries, help (tooltips) and bibliographic references, will soon be available in our GH repository: aj-poolom-maasewal. Any corrections or improvements that can be made to the phase selection algorithms or to the CP phase contest algorithm, will be highly appreciated (Statistical, mathematical and financial sciences, among many others, are not particularly our forte).
════════════
SPANISH TEXTS
════════════
// Introduccion
════════════
Este indicador esta basado originalmente en un soft fork del Indicador Multi-Timeframe Recursive Zigzag de ©©Trendoscope. Hemos utilizado la tecnologia de sus librerias para la generacion de Zigzags de manera que el usuario tenga la libertad de escoger cual de los diferentes Zigzags que se calculan por ©Trendoscope como "Niveles" es el mas adecuado para adaptarse a la generacion
de las fases ideales para su evaluacion y seleccion como fases "mas preponderantes", en periodos de largo plazo, de cualquier activo de acuerdo a su comportamiento en particular segun su volatibilidad y ritmo de variacion del precio.
// Fundamento Teorico del Indicador
═══════════════════════════
Muchos de los inversores institucionales tradicionales utilizan la ultima fase de mercado de grado mayor que sobresale de las demas (mayor duracion y mayor cambio de precio en temporalidad diaria), para basar un Fibonacci en cuyos niveles abren posiciones de largo plazo. Esas posiciones pueden quedar abiertas para activarse en el futuro hasta con anios de antelacion. Se considera que la fase tiene vigencia hasta que en el futuro se desarrolla otra nueva fase mas preponderante; con la cual
se repite la misma estrategia.
// Objetivos del indicador
════════════════════
1) Encontrar de manera automatica la ultima fase mas preponderante de un activo, analizandolo en temporalidad diaria y tomando en cuenta si la tendencia del mercado a largo plazo es alcista o bajista.
2) Trazar un Retroceso de Fibonacci sobre la fase preponderante (revertido si la fase es alcista.)
3) El indicador numera y localiza las 3 fases mas preponderantes, de las cuales escoge a la Top-1 para el trazado.
4) Si el usuario no concuerda con la seleccion automatica del indicador, tiene la libertad de escoger a cualquiera de las otras 2 fases Top para el trazado del Fibo y sus niveles.
5) Si el usuario no concuerda con la amplitud o la frecuencia de las fases del Zigzag trazado, puede modificar los parametros del calculo del Zigzag del algoritmo de ©Trendoscope hasta que una de las Top-3 coincida con la fase que tiene mentalizada.
6) Como bonus experimental, el indicador ejecuta un concurso (CP) de tiro al blanco de coincidencias de precios (OHLC) diarios, con todos los niveles Fibo de las Top 3 fases seleccionadas, para tratar de comprobar cual es la fase que estan validando los precios del mercado como la mas popular para colocar operaciones. Los resultados del concurso se despliegan en la columna CP de la tabla Top-3 fases. Si como resultado del concurso se detecta que hay un cambio en la fase ganadora, se puede habilitar un switch para que se active una alerta que el usuario puede utilizar con el creador de alertas de Tradingview para que le muestre una alarma, le mande un email, etc.
7) Este indicador fue diseniado para que el usuario encuentre la fase preponderante de largo plazo de sus activos, y registre a mano las coordenadas fecha-precio de las anclas io-i1 de la fase preponderante. Las coordenadas de la fase Top-1 se muestran en la tabla Top-3 fases, de donde la puede capturar el usuario. Las coordenadas fecha-precio de todos los pivots HH y LL, de todas las fases del Zigzag, aparecen mediante un switch. Con los pivots, el usuario puede buscar o seleccionar otra fase diferente a las encontradas automaticamente por el indicador, de acuerdo a su investigacion propia. Posteriormente, el usuario se olvida por un buen rato de este indicador RLP y pasa a aplicar en su operativa normal nuestro indicador RLPS (Refugios de largo plazo simplificado), en el cual puede trazar y dar seguimiento simultaneo a los refugios de largo plazo de hasta 5 diferentes activos, con tan solo introducir sus correspondientes coordenadas fecha-precio, previamente calculadas con este indicador RLP.
// Notas adicionales
════════════════
1) A la fecha de publicacion de la version v1.0 de RLP (LTR) (12/2025), los parametros de generacion del Zigzag de ©Trendoscope se ajustaron por default para encontrar las fases preponderantes de largo plazo de Bitcoin y Etherum (Pandemia 2020-2021). Los niveles mostrados en el grafico, corresponden a los resultados obtenidos, usando los datos diarios del exchange Bitstamp, BTCUSD:BITSTAMP (muy popular aquí en Europa).
2) Debido a las estrictas reglas de publicacion de Tradingview relacionadas con el uso de lenguajes diferentes al ingles, la version en espaniol (roman paladino) completa, con todas las entradas, ayudas (tooltips) y referencias bibliograficas, estara proximamente disponible en nuestro repositorio de GH: aj-poolom-maasewal. Cualquier correccion o mejora que se le puedan hacer a los algoritmos de seleccion de fases o al algoritmo del concurso CP de fases, seran altamente apreciados (La ciencias estadisticas, matematicas y financieras, entre otras muchas, no son particularmente nuestro fuerte).
Marubozu Detector**Marubozu Detector (v6)**
This indicator identifies **Marubozu candles** — powerful candlestick patterns indicating strong directional momentum with minimal or no shadows (wicks).
A **Bullish Marubozu** (green) shows buyers dominated the session: open ≈ low, close ≈ high.
A **Bearish Marubozu** (red) shows sellers in control: open ≈ high, close ≈ low.
Unlike strict detectors, this version allows customizable tolerance for tiny shadows, making it practical for real markets where perfect Marubozu are rare.
**Key Features**
- **Adjustable tolerance**: Max shadow % of candle range (default 5%).
- **Minimum body size**: Requires body ≥ % of range (default 90%) to filter small candles.
- **Clear labels**: "BULL MARU" below bullish, "BEAR MARU" above bearish.
- **Alerts**: Built-in conditions for Bullish/Bearish Marubozu on any timeframe.
- **Pine Script v6**: Fully compatible with the latest version for optimal performance.
**How to Use**
1. Add to chart via Indicators > Community Scripts.
2. Customize inputs: Lower tolerance for stricter detection, higher for more signals.
3. Combine with trend tools (e.g., EMA, support/resistance) for better entries/exits.
- Bullish Marubozu in uptrend → potential continuation long.
- Bearish Marubozu in downtrend → potential short.
**Why Marubozu?**
These candles signal strong conviction and often precede continuations or reversals. This detector helps spot them quickly without manual scanning.
Open-source under Mozilla Public License 2.0. Feel free to modify!
If you find it useful, please like/boost/favorite! Feedback welcome.
© toppermost
Danny's Quarter Zones - CompleteThis is a very good indicator which can make anybody profitable even me. so that's why im sharing it with you all . it was made specifically for NQ. to use it on ES I would have to mess around and see what works best. as it is it is good for NQ.
Oxscope 1hr V1This indicator is a sophisticated trend-following tool designed to filter market noise by aggregating signals from 20 distinct technical indicators—including EMA, RSI, MACD, Bollinger Bands, SuperTrend, and Ichimoku. Instead of relying on a single metric, it calculates a real-time "consensus score" for every candle, where each indicator votes +1 for bullish or -1 for bearish.
Key Features:
High-Confidence Threshold: The strategy operates on a strict threshold of ±6. A score of +6 or higher activates the Long Zone (Green Background), while -6 or lower triggers the Short Zone (Red Background). This ensures trades are only suggested when there is strong technical agreement.
Visual Clarity: Designed for a distraction-free experience, this version removes complex data tables and indicator lines. It features massive, easy-to-read emoji labels ("🚀" for Long entries, "📉" for Short entries).
Smart Signal Logic: The script prioritizes entry signals over exit signals during sharp reversals, keeping your chart clean and focusing solely on the most critical trend changes.
This tool is ideal for traders seeking high-conviction setups without visual clutter.
Enhanced Divergence Scanner═══════════════════════════════════════════════════════════════════
TRADINGVIEW COMPLIANT POST - FOLLOWS ALL HOUSE RULES
═══════════════════════════════════════════════════════════════════
📌 TITLE:
Multi-Oscillator Divergence Detector with Pivot Validation
───────────────────────────────────────────────────────────────────
📝 COMPLIANT DESCRIPTION (addresses all moderator requirements):
───────────────────────────────────────────────────────────────────
**Multi-Oscillator Divergence Detector with Pivot Validation**
This indicator identifies regular divergences by comparing price pivot points against oscillator pivot points across three momentum indicators simultaneously.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**HOW THE SCRIPT WORKS (Technical Methodology):**
The script uses a multi-step validation process:
1. **Pivot Detection**: The script identifies swing highs and lows on both price and oscillators using the `ta.pivothigh()` and `ta.pivotlow()` functions with configurable left/right lookback periods.
2. **Divergence Validation**: When a new pivot is detected, the script scans historical pivots to find potential divergence pairs where:
- For Bullish: Price makes a lower low while the oscillator makes a higher low
- For Bearish: Price makes a higher high while the oscillator makes a lower high
3. **Line Integrity Check**: Before confirming a divergence, the script draws a temporary test line between the two pivot points and checks if any intermediate price/oscillator values pierce through this line. Only non-pierced divergences are displayed.
4. **Multi-Oscillator Confirmation**: The divergence is checked against RSI, CCI, and MFI independently. The label shows how many oscillators confirmed the same divergence (1, 2, or 3).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**WHY COMBINE THESE THREE OSCILLATORS:**
Each oscillator measures momentum differently, providing complementary confirmation:
- **RSI (Relative Strength Index)**: Measures the speed and magnitude of recent price changes. Calculated as: RSI = 100 - (100 / (1 + RS)), where RS = Average Gain / Average Loss over the period.
- **CCI (Commodity Channel Index)**: Measures price deviation from the statistical mean. Calculated as: CCI = (Typical Price - SMA) / (0.015 × Mean Deviation). Effective for identifying cyclical turning points.
- **MFI (Money Flow Index)**: A volume-weighted RSI that incorporates buying/selling pressure. Calculated using typical price × volume to create money flow, then applying RSI formula. Adds volume confirmation to momentum analysis.
When multiple oscillators show divergence simultaneously, it suggests stronger conviction in the potential reversal signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**WHAT MAKES THIS SCRIPT UNIQUE:**
1. **Pivot-Based Validation**: Unlike simple divergence indicators that compare consecutive values, this script validates divergences between actual swing points, reducing false signals.
2. **Line Piercing Filter**: The script ensures no intermediate price action invalidates the divergence by checking if prices cross the divergence line.
3. **Triple Confirmation System**: Shows signal strength (1-3) based on how many oscillators agree on the divergence.
4. **Visual Confirmation Status**: Dotted lines indicate unconfirmed (recent) divergences; solid lines indicate confirmed divergences after the lookback period passes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**HOW TO USE THIS INDICATOR:**
1. **Signal Identification**:
- Green lines with up arrow (▲) = Bullish divergence (potential buy zone)
- Red lines with down arrow (▼) = Bearish divergence (potential sell zone)
2. **Signal Strength**: The number next to the arrow (1, 2, or 3) indicates how many oscillators confirmed the divergence. Higher numbers suggest stronger signals.
3. **Confirmation Status**:
- Dotted line = Divergence is still forming (may be invalidated)
- Solid line = Divergence is confirmed
4. **Best Practices**:
- Use on higher timeframes (4H, Daily) for more reliable signals
- Combine with support/resistance levels for entry timing
- Wait for price action confirmation before entering trades
- Signals with 2-3 oscillator confirmations are generally more reliable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**SETTINGS EXPLAINED:**
| Setting | Default | Purpose |
|---------|---------|---------|
| Pivot Lookback Left | 3 | Bars to the left required to confirm a pivot |
| Pivot Lookback Right | 1 | Bars to the right required to confirm a pivot |
| Max Historical Bars | 750 | How far back to search for divergence pairs |
| RSI/CCI/MFI Length | 14 | Period for each oscillator calculation |
| Line Width | 2 | Visual thickness of divergence lines |
| Show Labels | On | Toggle signal labels on/off |
**Adjusting for Trading Style:**
- Shorter pivot lookback = More signals, faster detection, more noise
- Longer pivot lookback = Fewer signals, slower detection, higher quality
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**LIMITATIONS AND RISK DISCLAIMER:**
- Divergences are NOT direct buy/sell signals - they indicate potential reversals
- In strong trends, divergences may fail multiple times before working
- Past divergence patterns do not guarantee future price movement
- Always use proper position sizing and stop-loss orders
- This indicator should be used as part of a complete trading strategy
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**OPEN SOURCE:**
This script is published open-source. You can view the complete code logic and modify it for your own use according to TradingView's guidelines.
───────────────────────────────────────────────────────────────────
🏷️ TAGS (safe tags without trademark issues):
divergence, oscillator, pivot, momentum, reversal, swing-trading, technical-analysis, multi-timeframe, price-action, trend-reversal
───────────────────────────────────────────────────────────────────
✅ COMPLIANCE CHECKLIST (based on moderator feedback):
Originality & Usefulness:
- Explained WHY these oscillators work together
- Described the unique pivot validation method
- Not just a simple mashup
Description Quality:
- Detailed explanation of underlying logic
- Step-by-step methodology explained
- How to use the indicator
- Settings explained with purpose
Vendor Requirements:
- Publishing as OPEN SOURCE (not invite-only)
- No trademark symbols (™, ®) used
- Clear value proposition explained
No House Rule Violations:
- Original description text
- Educational content included
- Proper risk disclaimer
- No misleading claims
═══════════════════════════════════════════════════════════════════
LTF Distribution Analyzer█ OVERVIEW
LTF Distribution Analyzer reveals the hidden price distribution and order flow within each candle by sampling lower timeframe data. It visualizes where prices concentrated, how volume was distributed between buyers and sellers, and identifies divergences between price action and actual market participation.
Unlike traditional candlesticks showing only OHLC, this indicator exposes the statistical structure of price movement using quartile-based visualization combined with delta analysis.
█ CONCEPTS
The indicator is built on two core concepts:
1 — Statistical Price Distribution
Each candle contains many lower timeframe bars. By analyzing these bars, we calculate:
• Q1 (25th percentile) - 25% of prices traded below this level
• Q3 (75th percentile) - 75% of prices traded below this level
• Median - The middle price value
• IQR (Interquartile Range) - The Q3-Q1 spread containing 50% of all prices
2 — Volume Delta Analysis
Delta measures buying vs selling pressure:
• Delta = Buy Volume − Sell Volume
• Positive delta = More aggressive buying
• Negative delta = More aggressive selling
• Delta Ratio normalizes this as a percentage
█ HOW IT WORKS
The indicator fetches lower timeframe data using request.security_lower_tf() and processes it to create a statistical summary:
Step 1: Timeframe Calculation
• Auto mode: Chart timeframe ÷ Auto Divisor = LTF
• Example: 1H chart ÷ 1000 = ~3.6 second sampling
• Manual mode: User-specified timeframe
Step 2: Data Collection
• Collects all close prices from LTF bars within current candle
• Aggregates volume by candle direction (bullish/bearish)
Step 3: Statistical Analysis
• Calculates quartiles (Q1, Q3), median, and boundaries
• Identifies outliers using 1.5× and 3× IQR fences
• Finds Volume POC (price with highest volume)
Step 4: Delta Calculation
• Sums buy volume (from bullish LTF bars)
• Sums sell volume (from bearish LTF bars)
• Computes delta ratio for color determination
█ VISUAL ELEMENTS
┌─────────────────────────────────────────┐
│ ▲ Extreme outlier (3× IQR) │
│ △ Mild outlier (1.5× IQR) │
│ ─ Upper whisker cap │
│ ┊ Whisker line (dashed) │
│ ▄ IQR Box (Q1 to Q3 range) │
│ ━ Volume POC (highest volume) │
│ ● Median (green=bull, red=bear) │
│ ┊ Whisker line (dashed) │
│ ─ Lower whisker cap │
│ ▽ Mild outlier │
│ ▼ Extreme outlier │
└─────────────────────────────────────────┘
█ COLOR SYSTEM
Colors indicate the relationship between candle direction and order flow:
🟢 TEAL (Positive Flow)
Bullish candle + Positive delta
→ Strong buying confirmation
→ Trend continuation signal
🔴 RED (Negative Flow)
Bearish candle + Negative delta
→ Strong selling confirmation
→ Trend continuation signal
🟠 ORANGE (Mixed Signal A)
Bullish candle + Negative delta
→ Price up but sellers dominated
→ Potential weakness/reversal warning
🔵 BLUE (Mixed Signal B)
Bearish candle + Positive delta
→ Price down but buyers dominated
→ Potential accumulation/reversal signal
█ SETTINGS
Timeframe Settings
• LTF Mode — Auto or Manual selection
• Manual Timeframe — Specific LTF when in Manual mode
• Auto Divisor — Higher = finer granularity (default: 1000)
• Allow Sub-Minute — Requires Premium subscription
Visual Style
• Positive/Negative Flow colors — Customize the 4 flow colors
• Box Transparency — Opacity of the quartile box (0-100%)
Statistics Display
• Show Statistics Panel — Toggle on-chart stats table
• Show Timeframe Badge — Toggle LTF indicator badge
• Panel Position — Choose corner placement
• Panel Size — Text size selection
█ HOW TO USE
1. Divergence Detection
Look for color mismatches:
• Orange bars in uptrend = weakness, potential reversal
• Blue bars in downtrend = strength, potential reversal
• Multiple consecutive divergent bars strengthen signal
• Wait for confirmation before entry
2. Volume POC Trading
• POC marks where most volume traded
• POC clusters at similar levels = strong S/R zone
• Price often returns to POC before continuing
• Use POC for entry/exit targeting
3. Trend Confirmation
• Consecutive teal = strong uptrend
• Consecutive red = strong downtrend
• Median position shows intrabar momentum
• Wide boxes indicate high volatility
4. Outlier Analysis
• Extreme markers (▲▼) often mark stop hunts
• Consider fading extremes at key levels
• Mild markers (△▽) = areas to watch
█ RECOMMENDED SETTINGS
For different chart timeframes:
│ Chart TF │ Auto Divisor │ Resulting LTF │
├──────────┼──────────────┼───────────────┤
│ 15M │ 1500 │ ~1M │
│ 1H │ 1000 │ ~3-4s │
│ 4H │ 600 │ ~24s │
│ Daily │ 500 │ ~2-3M │
Tip: Check the TF badge to confirm active sampling timeframe.
█ BEST PRACTICES
Do:
✓ Use "Bars" chart style for cleanest display
✓ Combine with support/resistance analysis
✓ Wait for confirmation bars
✓ Note POC clusters across multiple bars
✓ Adjust divisor based on your timeframe
Avoid:
✗ Trading single bar signals alone
✗ Using during low volume periods
✗ Trading immediately after news releases
✗ Ignoring overall market context
█ LIMITATIONS
• Requires adequate market liquidity for reliable signals
• Sub-minute timeframes need Premium subscription
• Historical data depth depends on TradingView's data availability
• Delta calculation assumes volume direction matches candle direction
█ NOTES
This indicator works best on liquid markets (forex majors, major indices, popular stocks/crypto) where volume data is meaningful.
The gray dotted vertical line marks where LTF data becomes available - bars before this line won't display the indicator.
For questions or suggestions, leave a comment below.
SMC Ultra-Fast: ALL-IN & Auto-Signal [Fixed]Designed to help traders who know absolutely nothing about the market.
And for those whose signals don't disappear, once it goes up, it stays up. 90 percent chance of beating the market.
Relative VolumeSimple relative volume indicator.
Relative Volume (RVOL) on is a technical indicator that compares an asset's current trading volume to its historical average for that specific time of day, helping traders spot unusual activity, confirm trends, or find potential reversals by showing if volume is significantly higher (green/buzzing) or lower (red/flat) than normal. It's popular for intraday analysis, identifying "in-play" tickers, and gauging market conviction.
Advanced algo [For Indian market]🙏 Gratitude to the TradingView Community
Before anything else, I would like to sincerely thank the TradingView community. I have learned immensely from the shared ideas, scripts, and discussions here over time. This indicator is my small way of giving back to the community that has helped me grow as a trader and developer.
📌 Indicator Overview
Advanced Algo is a non-repainting, rule-based trading indicator designed primarily for Indian indices and stocks, while remaining equally effective on other liquid instruments.
The script focuses on clean trend identification, disciplined entries, and well-defined risk management, making it suitable for intraday as well as positional analysis depending on the timeframe used.
✅ Key Highlights
100% Non-Repainting Logic
All signals are generated only after bar confirmation using a delay mechanism, ensuring reliability and backtesting accuracy.
Clear BUY / SELL Signals
Signals are plotted only on trend reversals, avoiding noise and repeated entries.
Automatic TP & SL Levels
Entry, Take-Profit, and Stop-Loss levels are calculated at the time of trade entry and remain fixed throughout the trade.
Intrabar TP / SL Detection
Profit targets and stop-losses are detected as soon as price touches them, providing realistic trade behavior.
Visual Risk-Reward Zones
Entry, TP, and SL lines with color-filled zones make trade structure easy to read at a glance.
Built-in Statistics Table
Displays Buy TP, Sell TP, Buy SL, and Sell SL counts for quick performance tracking.
⚙️ Logic (Brief & High-Level)
A smoothed range-based trend filter is used to identify directional bias.
Consecutive directional strength confirms trend continuation.
BUY or SELL signals are generated only when the trend state flips, reducing false signals.
A delay offset is applied to ensure non-repainting behavior.
Once a trade is triggered:
Entry is fixed
TP and SL are calculated using user-defined percentages
No new trade is allowed until the current trade exits or reverses
🟢 BUY / 🔴 SELL Logic (Brief)
BUY Signal
Triggered when price confirms a bullish trend shift after a bearish phase.
SELL Signal
Triggered when price confirms a bearish trend shift after a bullish phase.
Only one trade is active at a time to maintain clarity and discipline.
🎯 Take-Profit & 🛑 Stop-Loss
TP & SL are percentage-based and configurable via inputs.
Levels are calculated at entry and do not trail or repaint.
TP and SL exits are marked clearly on the chart with labels.
Trades are force-reset before allowing a new entry.
🔔 Alerts Included
Built-in alerts are available for:
Long Entry
Short Entry
Long Exit (TP / SL)
Short Exit (TP / SL)
These alerts can be easily connected to automation or webhook-based execution systems.
⚠️ Disclaimer
This indicator is provided for educational and informational purposes only.
It is not financial advice. Trading in stocks, indices, and derivatives involves risk, and past performance does not guarantee future results.
Always:
Use proper risk management
Confirm signals with additional analysis
Test thoroughly before using in live markets
The author is not responsible for any financial losses incurred while using this script.
⭐ If you find this indicator useful, your feedback and support are always appreciated.
Happy trading and all the best!
MTF Auto Fibs + All Levels [Clean]auto fib off whatever higher time frame you want! Helps you seen levels faster and with out switch time frames
4H Previous Candle + FibonacciIndicator Description: 4H Previous Candle + Fibonacci
This Pine Script (v5) indicator is a technical analysis tool designed for traders using the
TradingView platform. It allows for the visualization of key levels from the previous 4-
hour candle directly on any lower time frame.
1. Primary Objective
The indicator aims to provide a Higher Time Frame (HTF) perspective automatically.
By plotting the high, low, and Fibonacci retracement levels of the last closed 4H
candle, it helps identify institutional support and resistance zones without the need to
constantly switch time frames.
2. Key Features
Feature Description
Automatic 4H Levels
Automatically plots horizontal lines for the High and Low of the
previous 4H candle.
Dynamic Adaptation
Line colors and styles adapt based on whether the candle was
bullish (green) or bearish (red).
Fibonacci
Retracements
Calculates and displays customizable Fibonacci levels (e.g., 23.6%,
38.2%, 50%, 61.8%, 78.6%).
Dashboard (HUD)
A summary table in the top-right corner displays exact values and
the candle type.
3. Technical Functionality
Data Retrieval (Multi-Timeframe)
The script uses the request.security function to extract data from the 4-hour time
frame (“240”). Using the index ensures the indicator is based on a closed candle,
eliminating any risk of “repainting” (levels changing during formation).
Fibonacci Calculation Logic
The calculation of Fibonacci levels is intelligent and directional:
Bullish Candle: The retracement is calculated from bottom to top (0% is at the
bottom).
Bearish Candle: The retracement is calculated from top to bottom (0% is at the
top).
4. Configuration Parameters
Users can customize the indicator via the settings menu:
Visual Settings: Toggle lines, adjust thickness, price labels, and decimal
precision.
Fibonacci Settings: Enable levels, choose colors, line thickness, and enter
custom retracement percentages.
5. Trading Use Cases
Bounce Zones: The 50% and 61.8% levels of the previous 4H candle are often
considered “Premium” or “Discount” zones where price tends to react.
Confluence: Use these levels alongside other indicators (RSI, moving averages)
to confirm entry points.
Risk Management: Place Stop Losses just beyond the previous 4H High or Low.
Document generated for the analysis of the “4H Previous Candle + Fibonacci” Pine
Script.
Esmeralda.AiHow to read the new visuals:
Labels: When a signal appears, the label now calculates the exact price for your Stop Loss (SL) and Take Profit (TP).
Lines: You will see short horizontal lines appear at the signal bar.
Green Line: This is your target.
Red Line: This is where you exit if the trade goes against you.
The 90% Rule: To keep the win rate as high as possible, you can manually move your TP to the Yellow Mean Line if the market looks like it is losing steam.
Flexible Marubozu Detector**Flexible Marubozu Detector (v6)**
This indicator identifies **Marubozu candles** — powerful candlestick patterns indicating strong directional momentum with minimal or no shadows (wicks).
A **Bullish Marubozu** (green) shows buyers dominated the session: open ≈ low, close ≈ high.
A **Bearish Marubozu** (red) shows sellers in control: open ≈ high, close ≈ low.
Unlike strict detectors, this version allows customizable tolerance for tiny shadows, making it practical for real markets where perfect Marubozu are rare.
**Key Features**
- **Adjustable tolerance**: Max shadow % of candle range (default 5%).
- **Minimum body size**: Requires body ≥ % of range (default 90%) to filter small candles.
- **Clear labels**: "BULL MARU" below bullish, "BEAR MARU" above bearish.
- **Alerts**: Built-in conditions for Bullish/Bearish Marubozu on any timeframe.
- **Pine Script v6**: Fully compatible with the latest version for optimal performance.
**How to Use**
1. Add to chart via Indicators > Community Scripts.
2. Customize inputs: Lower tolerance for stricter detection, higher for more signals.
3. Combine with trend tools (e.g., EMA, support/resistance) for better entries/exits.
- Bullish Marubozu in uptrend → potential continuation long.
- Bearish Marubozu in downtrend → potential short.
**Why Marubozu?**
These candles signal strong conviction and often precede continuations or reversals. This detector helps spot them quickly without manual scanning.
NOTE: I use this indicator along with "Swing high low support & resistance" by Pattersmart to trade reversals. I long trade a bearish Marubozu reversal, when the Marubozu breaks through a swing low identified on the "Swing high low support & resistance" indicator.
Open-source under Mozilla Public License 2.0. Feel free to modify!
If you find it useful, please like/boost/favorite! Feedback welcome.
© @toppermost






















