Swing Pivots - Market Structure High Low [zazenio]What is Market Structure?
Market structure is simply the pattern of highs and lows that price creates as it moves. When you look at any chart, you'll notice price doesn't move in a straight line — it swings up, pulls back, swings up again (in an uptrend), or the opposite in a downtrend.
These swing points — the peaks and valleys — are what traders call pivots. Identifying them correctly is the foundation of understanding where a market has been and where it might go next.
What This Indicator Does
Swing Pivots automatically marks these peaks and valleys on your chart so you don't have to draw them manually. It works on any market — stocks, crypto, forex, futures, indices — and on any timeframe.
How Pivots Are Detected
This indicator confirms pivots based on price structure, not a fixed bar count.
Here's how it works:
A swing high is confirmed when price breaks below the previous swing low. At that moment, we know the high was real — price tried to go higher, failed, and reversed. The market "proved" that level was a genuine turning point.
A swing low is confirmed when price breaks above the previous swing high. The same logic applies — price tried to go lower, failed, and reversed direction.
This creates a natural alternation: high, low, high, low. Each pivot is validated by the market's actual behavior, not by waiting for an arbitrary number of bars to pass.
Why This Matters
Most pivot indicators use a "lookback" method — they wait for a certain number of bars (say, 5 or 10) on each side of a candle before confirming it as a pivot. This creates a fixed delay. By the time the pivot appears on your chart, price has already moved on.
This indicator doesn't wait. It confirms pivots the moment price structure proves them. The result is pivots that align with how traders actually read charts — based on breaks of structure, not arbitrary countdowns.
Settings
Swing Width: Controls how sensitive the detection is. Higher numbers show only major swings; lower numbers capture smaller moves within the structure.
Style/Size/Colors: Customize how the pivot markers look on your chart.
Use Cases
See the "skeleton" of price action at a glance
Identify potential support and resistance levels
Understand if the market is trending or ranging
Build a foundation for more advanced concepts like Break of Structure (BOS) and Change of Character (CHoCH)
⸻
Disclaimer:
This script is provided for educational and informational purposes only. It is not financial advice and does not constitute a recommendation to buy or sell any financial instrument. Always do your own research and trade at your own risk.
インジケーターとストラテジー
Aman-Setup -3.0Aman-Setup-3.0 is an intraday breakout indicator for the 3-minute chart.
A Breakout Candle forms when all OHLC values move above both the Previous Day Reference Level (Prev Close if bullish, Prev Open if bearish) and the First 15-Minute High.
An Entry Candle is any candle after the breakout where Close > Breakout High.
The indicator auto-plots Stop-Loss (below Breakout Low) and a 1:1 Target, and marks Breakout, Entry, SL, and Target Hit on the chart.
Worstfx Key Time Windows + 5 Day Journal🕒 Key Time Windows — Features & Purpose
✔️ Includes 6 Major Time Windows:
• 7:45 PM (Asia Open Overview)
• 12:00 AM (Daily Reset Liquidity Shift)
• 2:00 AM (London Accumulation / Manipulation)
• 7:00 AM (Pre-NY / Expansion Setup)
• 10:00 AM (NY Reversal Window)
• 2:00 PM (NY Power Move / Final Push) ← added
These windows are not random — they are the exact points in the day where:
• Liquidity resets
• Volatility compresses or expands
• Session trends form or reverse
• Market makers reposition
• High-probability setups appear
The panel shows:
➤ INSIDE
You are currently in the window.
Expect movement, structure breaks, or trap/reversal behavior.
➤ NEAR
Approaching a key window.
Prepare, observe order flow, plan entries.
➤ FAR
Out of the actionable range.
Ideal for reducing screen time and avoiding emotional trades.
➤ IDLE
The window passed.
High-probability moment is over — walk away or wait for the next one.
⚡ Why this matters
Most blown accounts come from trading outside high-probability times.
Your edge comes from timing, not randomness.
This panel keeps your brain aligned with the correct moments — not boredom, FOMO, or impulse.
📊 5-Day Performance Journal — Features
✔️ Enter daily P/L manually
• Monday → Friday
• Accepts positive or negative values
• Example: +2500, -300, 0
✔️ Auto-Calculated Weekly Total
• Shown right next to Friday
• Colored based on profit or loss
• Light highlight tint to stand out without distractions
✔️ Two Clean Layouts
• Vertical → For corner placement
• Horizontal → For header-like week summaries
✔️ Psychology Through Design
• Green = rewarded discipline
• Red = consequence of breaking plan
• White-dim = zero day → neutral, no shame, no heat
The goal is not the number —
It’s accountability, awareness, and emotional grounding.
🧠Consistency Over Drama
The weekly total next to Friday forces your brain to think in weeks, not minutes.
Bad day?
You stop early to protect weekly total.
Good day?
You don’t overtrade because the number is already green.
This shifts your psychology from:
“I need to win right now.”
to:
“I need to preserve my weekly edge.
🔋To unlock the full power of the framework, run this together with Worstfx Fractal Sessions🔋
Trend Fibo 1.618This indicator is based on the Muslim strategy. I recommend studying it first and also working on a demo account.
Trading Playbook Panel (SMC + EW + Sniper)🔥 What This Script Does
The indicator creates a visual floating panel containing:
1. HTF Bias Framework (H4 → H1 → M15)
Guides you through determining trend, liquidity direction, imbalance zones, and institutional order flow.
2. Valid Setup Models
Covers both:
Continuation setups (displacement → OTE → FVG entry)
Reversal setups (liquidity sweep → CHoCH → retest)
3. 5-Minute Sniper Entry Checklist
Ensures high-precision entries with:
Liquidity sweep
CHoCH
Displacement
FVG formation
Retest entry
Strict invalidation rules
This is the exact logic used in prop-firm and institutional trading models.
4. Stop-Loss & Invalidation Rules
Built with institutional logic:
SL beyond liquidity sweep
SL beyond invalidation swing
Works for both BUY and SELL setups.
5. Multi-Stage Take Profit Mapping
Including:
Internal liquidity
Equal highs/lows
Imbalance
Opposite OB
HTF draw
Designed for partials + runners.
6. Risk-Management System
A complete discipline structure:
0.5–2% risk per setup
Max daily loss
Max trades per day
Stop-after-loss rule
No chasing / no mid-range entries
7. Pre-Trade Checklist
A professional assessment framework to verify trade quality.
8. Trading Psychology Principles
Reinforces mindset, discipline, and patience.
⭐ Who This Script Is For
This tool is ideal for:
SMC traders
ICT style traders
Elliott Wave traders
Scalpers & intraday traders
Prop-firm challengers
Anyone wanting to follow a repeatable, rules-based system
It keeps you consistent, structured, and focused on the highest-probability setups.
🧠 Why This Script Works
Most traders lose because they:
Enter impulsively
Skip rules
Don’t analyze multi-timeframe structure
Enter without liquidity confirmation
Use random entry zones
This script eliminates that.
It forces a clear, step-by-step process:
1️⃣ Top-down bias
2️⃣ Liquidity location
3️⃣ Sweep → CHoCH → Displacement
4️⃣ Refined 5M entry
5️⃣ Strict SL & TP rules
It removes emotion and replaces it with pure process.
⚙️ Customizable
Move the panel anywhere on the chart
Change panel colors
Change text colors
Perfect for dark or light mode
🎯 Summary
This is not a trading signal indicator.
This is your rulebook, your discipline engine, and your playbook — right on your chart.
It keeps you aligned with the highest-probability setups used by advanced SMC and EW traders.
Use it before every trade.
Trade like a professional — every day.
AI Swing Master by Pooja🌟 AI Swing Master by Pooja — Multi-EMA Trend Intelligence Suite
AI Swing Master is a refined swing-trend engine built to highlight structural trend alignment, momentum transitions, and higher-timeframe confluence — all within a clean and minimal interface.
This tool is designed for traders who want clarity, structure, and disciplined trend interpretation without clutter.
⚡ Core Highlights
🔵 SB — Strong Buy
Triggers on meaningful bullish momentum shifts when major EMAs cross in favor of the trend.
• Non-repetitive
• Clean and decisive
• Highlights momentum transitions
🔴 SS — Strong Sell
Identifies bearish momentum shifts through downside EMA transitions.
• Useful for trend reversals
• Helps avoid late entries
• Zero duplicate signals
🟡 GB — Golden Buy (First Structural Alignment)
Appears the first time this structure forms:
EMA 50 ≥ EMA 100 ≥ EMA 200
This highlights a clean, long-term bullish structure.
• One-time structural confirmation
• Ideal for swing & positional traders
• High-signal quality, low noise
📊 Triple-EMA Trend Framework (50/100/200)
The script plots three institutional-grade EMAs:
EMA 50 → Short-term momentum
EMA 100 → Medium-term flow
EMA 200 → Long-term trend foundation
This layered structure gives a clear view of:
✔ Trend health
✔ Pullbacks vs reversals
✔ Momentum expansion or compression
🧭 MTF Trend Dashboard (Premium TV-Style Panel)
A compact, elegant dashboard showing trend direction + % performance for:
TF Trend Performance
4H 📈/📉/➖ %
1D 📈/📉/➖ %
1W 📈/📉/➖ %
1M 📈/📉/➖ %
3M 📈/📉/➖ %
6M 📈/📉/➖ %
1Y 📈/📉/➖ %
Trend icons:
📈 Bull
📉 Bear
➖ Side
Perfect for quick bias confirmation without switching timeframes.
🛠️ Alerts Included (Ready for Automation)
Use alert conditions for:
SB – Strong Buy
SS – Strong Sell
GB – Golden Buy
Fully compatible with:
✔ Push notifications
✔ Email alerts
✔ Webhooks (where allowed)
🎯 Best For
This indicator works beautifully for:
Swing traders
Positional trend riders
Intraday traders using HTF confluence
Option traders needing directional bias
Trend-following systems
It does not predict price — it visualizes trend structure to support disciplined decision-making.
⚠️ Disclaimer
This tool is for technical analysis only.
It does not offer financial advice, does not guarantee outcomes, and should not be used as a sole decision source.
All trading decisions are your own responsibility.
🔐 ACCESS
This version is an Invite-Only Script.
Access is granted manually.
🛡 Support
This is an invite-only indicator.
Approved users may contact the author via the “Author’s Instructions” section on TradingView for help or usage guidance.
Aman-setup-1.0Aman Setup identifies bullish intraday breakouts on the 3-minute chart.
A breakout occurs when price closes above the Previous Day Reference Level (Prev Close if bullish, Prev Open if bearish) and the First 15-Minute High.
The Entry Candle forms when its OHLC are all above both levels.
Includes automatic Stop-Loss (below breakout low) and 1:1 Target, along with visual signals for Breakout, Entry, SL, and Target Hit.
Fractal Dimension (Katz, Quant Lab)This indicator estimates the Katz Fractal Dimension of the price series over a rolling window.
It computes:
• L = sum of absolute price changes within the window
• d = maximum distance between any point and the first point in the window
• n = window length
Then applies Katz’s formula:
FDI = ln(n) / (ln(n) + ln(d / L))
The resulting Fractal Dimension typically lies between 1.0 and 2.0:
• FDI ≈ 1.0–1.3 → Strong, directional trend (low randomness)
• FDI ≈ 1.3–1.5 → Mixed / transitional behavior
• FDI ≈ 1.5–2.0 → Noisy, choppy, mean-reverting / range market
Aman-setupAman-Harman Setup identifies bullish intraday breakouts on the 3-minute chart.
A breakout occurs when price closes above the Previous Day Reference Level (Prev Close if bullish, Prev Open if bearish) and the First 15-Minute High.
The Entry Candle forms when its OHLC are all above both levels.
Includes automatic Stop-Loss (below breakout low) and 1:1 Target, along with visual signals for Breakout, Entry, SL, and Target Hit.
@Fhunded PxH/PxLPlots previous day/week highs and lows (PDH/PDL/PWH/PWL) along with daily, weekly, and monthly opens. Each level includes customizable colors, visibility toggles, and adjustable forward-projected line length for clean HTF reference levels.
Rapha Crypto - Bot1. Purpose of the Indicator
This indicator was designed to be used alongside the Rapha Crypto Bot. Its goal is to help identify market conditions where the bot performs best. The bot operates more efficiently on assets showing a minimum candle volatility of 0.5%, and this indicator measures exactly that.
2. How the Indicator Works
For each candle, the indicator calculates the full amplitude (including wicks) using:
Amplitude = (high - low)/low ×100
Based on this, it provides three key pieces of information:
Consistency: how many candles within the selected window reached at least the minimum required volatility (0.5%).
Average per Candle: the average amplitude of all candles in the window, helping you verify whether the asset has enough volatility to support bot operations.
Window Amplitude and Price Variation: additional context about how much the asset moved within the selected period.
All metrics are displayed in a dashboard format for quick and easy interpretation.
3. Analysis Window
By default, the indicator evaluates 20 candles. Within these 20 candles, it measures:
How many candles meet the minimum volatility threshold.
The average candle amplitude.
The overall price behavior during the window.
4. Recommended Time Frames
The recommended time frames for analysis are 15 minutes or 5 minutes.
Suggested workflow:
→ 15m or 5m: analyze whether the asset shows sufficient structural volatility.
→ 1m: execution time frame for the bot itself.
In other words, use the indicator as a pre-operational filter on 15m or 5m, then allow the bot to execute trades on the 1m chart when conditions are favorable.
5. Dashboard Interpretation
Asset: the current symbol.
Window: number of candles considered (default 20).
Minimum Variation: amplitude required per candle (default 0.5%).
Consistency: percentage of candles in the window that reached or exceeded the minimum volatility. Higher consistency indicates a better environment for the bot.
Average per Candle: the average amplitude across the window. This should preferably be above the minimum threshold.
Window Amplitude: total movement between the highest high and lowest low in the window.
Price Variation: percentage change between the first and last close in the window.
These metrics help determine whether an asset is volatile enough for the bot to operate efficiently.
6. Visual Highlighting
Values above the minimum volatility threshold are highlighted in green.
Values below are highlighted in red.
This makes it easier to identify favorable assets at a glance.
7. Practical Usage with the Rapha Crypto Bot
Before enabling the bot:
Open the asset on a 15m or 5m chart.
Check whether both Consistency and Average per Candle are above 0.5%.
If the asset meets these criteria, the bot can be used on the 1m chart with improved effectiveness.
8. Benefits of the Indicator
Prevents trading on assets with low or stagnant volatility.
Improves strategy accuracy by ensuring the environment is suitable before the bot starts working.
Offers a fast and clear volatility overview.
Acts as a valuable pre-trade filter to enhance bot performance.
ADX Indicator with VisualADX Indicator with line and clear number. Identifies when ADX Index is weak, trending, or strong. Depending on timeframe, this indicator can be used to identify early signs of a change in trend.
This is my first time creating an indicator and coding, so please, use it at your own discretion. If anyone has any helpful suggestions, please leave a comment. I can email you the source code so you can revise it. In return, I ask that you share the updated code with me so everyone that uses this indicator can benefit. Thank you! :)
ICT Key Levels Suite |MC|Parts of this script were created by TheTickMagnet, Bankulov, and others. Many thanks to them; credit is due to all of you. I simply compiled them into a suite...
🌟 Overview 🌟
This tool highlights key price levels, such as highs, lows, and session opens, that can influence market movements. Based on ICT concepts, these levels help traders spot potential areas for market reversals or trend continuations.
🌟 Key Levels 🌟
🔹 Week Open (at Sunday 6:00pm EST for Futures)
Marks the start of the trading week. This level helps track price direction and is useful for framing the weekly candle formation using ICT’s Power of 3.
🔹 (Trading) Day Open: 6:00pm EST for Futures or 5:00pm EST for Forex.
🔹 Midnight Open (True Day Open) (00:00 EST)
The Midnight Open (MNOP) marks the start of the new trading day. Price often retraces to this level for liquidity grabs, setting up larger moves in the daily trend. It's also key for framing the Daily Power of 3 and spotting possible market manipulation.
🔹 Previous Day High/Low (customizable)
These levels show where liquidity remains, often serving as targets for price revisits, ideal for reversals or continuation trades.
🔹 Daily divider lines with Weekday label (customizable)
🌟 Overview 🌟
The ICT Sessions & Ranges Indicator helps traders identify key intraday price levels by marking custom session highs/lows and opening ranges.
It helps traders spot potential liquidity grabs, reversals, and breakout zones by tracking price behavior around these key areas
🌟 Session Highs & Lows – Liquidity Zones 🌟
Session highs and lows often attract price due to stop orders resting above or below them. These levels are frequently targeted during high-volatility moves.
🔹 Asia session
- Usually ranges in low volatility.
- Highs/lows often get swept during early London.
- Price may raid these levels, then reverse.
🔹 London session
- First major volatility of the day.
- Highs/lows often tested or swept in New York.
- Commonly forms the day's true high or low.
🔹 NY AM, Lunch & PM Session
🌟 Customizable Settings 🌟
The indicator includes 5 configurable ranges, each with:
Start & End Time – Set any custom time window.
Display Type – Choose Box (highlight range) or Lines (mark high/low) or both (Box and extended Lines).
Color Settings – Set custom colors for boxes and lines.
🌟 Default Settings (according to ICT) 🌟
Range 1: 6:00pm - 2:00am (Asia Session)
Range 2: 02:00 - 07:00 (London Session)
Range 3: 07:00 - 12:00 (NY AM Session)
Range 4: 12:00 - 1:30pm (NY Lunch Session)
Range 5: 1:30pm - 5:00pm (NY PM Session)
Happy trading!
Volatility of Volatility (Quant Lab)• VOV (white line)
• Around 0 → Volatility fluctuates normally
• Upward spike → Volatility changes very rapidly
• Often occurs during periods of breakouts, collapses, liquidations, and sharp trends
• When it stays low downwards → Volatility is stable, the market is moving at its “usual pace” • Regime histogram (columns)
• +1 (reddish) → Volatility Expanding
• Risk is increasing, “storm mode”
• Trend burst, flash move, news, liquidation effect
• 0 (orange) → Neutral
• Volatility behavior is normal
• -1 (turquoise) → Volatility Contracting
• Volatility is decreasing, movements are becoming smaller
• This may be a period before a big move after a squeeze
Keep this in mind:
• Volatility Regime → “What is the volatility level?”
• Volatility of Volatility → “How much is that volatility changing?”
When VoV spikes:
“Not only is market movement increasing, but the structure of the movement is also deteriorating; risk mode has been activated.”
This is crucial for identifying crash/pump periods.
Volatility Regime (Quant Lab)The Volatility Regime Indicator measures the current volatility environment of the market by combining two independent volatility metrics:
1. ATR-based volatility (how large price bars are)
2. Return standard deviation (how noisy or unstable returns are)
Both components are normalized (Z-score), averaged, and smoothed to produce a single Volatility Score, which identifies the market’s volatility regime.
The indicator classifies volatility into three distinct regimes:
Low Volatility (score < threshold)
• The market is calm and compressed.
• Price ranges are tight and movement is limited.
• Breakouts typically originate from this regime.
• Mean-reversion strategies perform best here.
Normal Volatility (within thresholds)
• The market is behaving normally.
• Trend-following and swing trades are stable.
• Risk is moderate.
High Volatility (score > threshold)
• The market is aggressive and unstable.
• Large price swings, news shocks, liquidations, manipulation possible.
• Risk and opportunity are both high.
• Leverage should be reduced or avoided.
A background color and regime histogram help visualize regime transitions instantly.
⸻
⭐ What this indicator tells you (Short Summary):
This indicator answers the question:
“Is the market calm, normal, or dangerous right now?”
You should interpret it as:
• Low Volatility → market is quiet, accumulation/squeeze phase, breakout likely soon.
• Normal Volatility → ideal trading conditions; trends behave cleanly.
• High Volatility → chaotic market; big moves coming; manage risk carefully.
The Volatility Regime Indicator helps you choose:
• Which strategy type to use (trend vs mean reversion)
• What stop size is appropriate
• Whether a breakout is real or likely to fail
• When to reduce position size due to risk expansion
It is a core tool used by quantitative traders to understand market conditions before applying any strategy.
FVG vertical Created by Alphaomega18
🎯 What is an FVG (Fair Value Gap)?
A Fair Value Gap is a price imbalance created by a mismatch between buyers and sellers, formed by 3 consecutive candles where:
Bullish FVG: The low of the current candle is above the high of the candle 2 periods ago
Bearish FVG: The high of the current candle is below the low of the candle 2 periods ago
⚙️ Indicator Settings
Display Group:
Show Bullish vertical FVG: Display bullish vertical FVGs (green) ✅
Show Bearish vertical FVG: Display bearish vertical FVGs (red) ✅
Box Extension (bars): Zone extension duration (1-50 bars, default: 10)
Show Labels: Display labels with gap size 🏷️
Remove When Filled: Automatically remove filled zones ✅
📊 Visual Elements
FVG Zones:
🟢 Green = Bullish vertical FVG (potential support zone)
🔴 Red = Bearish vertical FVG (potential resistance zone)
Labels:
Show gap size in points
Positioned at the beginning of each zone
Dashboard (top right corner):
Real-time count of active FVGs
🟢 = Number of bullish vertical FVGs
🔴 = Number of bearish vertical FVGs
Candle Coloring:
Light green background = Candle forming a bullish vertical FVG
Light red background = Candle forming a bearish vertical FVG
🎯 How to Use the Indicator
1. Installation:
Open TradingView
Click "Indicators" at the top of the chart
Search for "FVG Clean" or paste the code in the Pine Editor
2. Trading Strategies:
Support/Resistance:
Bullish vertical FVGs act as support zones
Bearish vertical FVGs act as resistance zones
Price tends to return to "fill" these gaps
Position Entries:
Long: Wait for a return to a bullish vertical FVG + confirmation
Short: Wait for a return to a bearish vertical FVG + confirmation
Position Management:
Place stops below/above FVGs
Use FVGs as price targets
A filled FVG loses its validity
🔔 Alerts
The indicator includes 2 configurable alert types:
Bullish vertical FVG: Triggers when a new bullish vertical FVG forms
Bearish vertical FVG: Triggers when a new bearish vertical FVG forms
To configure: Right-click on chart → "Add Alert" → Select desired alert
💡 Usage Tips
✅ Do:
Combine with other indicators (volume, momentum)
Wait for confirmation before entering
Use across multiple timeframes
Respect your risk management
❌ Don't:
Trade solely on FVGs without confirmation
Ignore the overall market trend
Overload your chart with too many zones
🔧 Parameter Optimization
Scalping (1-5min):
Box Extension: 5-10 bars
Remove When Filled: Enabled
Day Trading (15min-1H):
Box Extension: 10-20 bars
Remove When Filled: Enabled
Swing Trading (4H-Daily):
Box Extension: 20-50 bars
Remove When Filled: As preferred
📈 Performance
Maximum 100 FVGs of each type in memory
Automatic removal of oldest ones
Optimized to not slow down your chart
Compatible with all markets and timeframes
Volume-Based Candle Shading Pro [LTS]Overview
Volume-Based Candle Shading Pro is a visual aid that highlights how “unusual” each bar’s volume is compared to recent activity. It adjusts candle colors based on whether volume is above, below, or near its average, helping you quickly spot high-activity pushes and quiet rotations on any symbol or timeframe.
How it works
For each bar, the script calculates a simple moving average of volume over a user-defined lookback. It then compares the current bar’s volume to that average.
Bullish candles start from a bullish base color, and bearish candles from a bearish base color. Depending on the volume ratio, that base color is blended toward a “high volume mix” color when volume is elevated, or toward a “low volume mix” color when volume is muted. The strength of the blend increases as the bar’s volume moves further away from the average, so extreme volume stands out visually while average bars remain close to the base colors.
Colors are applied with the built-in barcolor() function, so the indicator only affects candle appearance; it does not modify price, volume, or any other chart values.
Inputs
Bullish Base Color / Bearish Base Color
Primary colors used for up and down candles when volume is close to its average.
High Volume Mix Color
Color that is blended into the base color when volume is above its moving average. This is typically chosen as a darker or more intense shade to make heavy-volume bars stand out.
Low Volume Mix Color
Color that is blended into the base color when volume is below its moving average. Many users choose a lighter shade to visually de-emphasize low-participation bars.
Volume MA Length
Number of previous bars used to compute the average volume. Shorter lengths make the shading respond more quickly to recent changes in activity; longer lengths provide a smoother, more stable baseline.
Typical use cases
Highlighting high-volume breakouts, breakdowns, or rejection candles without adding extra panels or indicators.
Distinguishing between strong, well-participated moves and low-volume drifts that may be less significant.
Combining with your existing price-action tools to visually filter which candles deserve more attention based on relative volume.
All calculations are based on historical volume and the current bar only; the script does not use future data or repaint past candles. It is intended as a visual aid and should be combined with your own analysis and risk management.
Log Returns (Quant Lab)Log Returns Indicator
This indicator calculates the logarithmic return of each bar using the formula:
logReturn = ln(Close / Close )
It then visualizes:
• A log-return histogram (green for positive, red for negative returns)
• A rolling mean of log returns (yellow line)
• ±1 standard deviation bands around the mean (orange lines)
This indicator is used to:
• Measure the true statistical return behavior of the asset
• Detect volatility expansions and contractions
• Identify abnormal return spikes (news, liquidation cascades, manipulation)
• Evaluate market efficiency and momentum strength
• Prepare quantitative features for machine learning models
In simple terms, the Log Returns indicator shows whether the asset’s recent price behavior is normal or statistically unusual.
Trend Exhaustion Strategy [9,13]
** **
**Overview**
Trend Exhaustion Strategy is a specialized market timing tool designed to identify potential trend fatigue and price reversals. Based on classic 9-13 market timing logic, this indicator introduces a unique **Dynamic Support & Resistance Engine**.
Unlike standard counters, this script automatically projects active support and resistance levels from completed pattern phases. These lines serve as critical reference zones for trade management.
**Key Features**
* **Trend Exhaustion Detection:** Identifies potential market turning points using a two-phase structure:
* **Setup 9:** Highlights short-term momentum pauses.
* **Extension 13 (Phase 2):** Signals longer-term trend depletion and high-probability reversal zones.
* **Dynamic Extension Lines:**
* When a Setup 9 or Extension 13 completes, a horizontal level is instantly generated.
* **Resistance Lines (Red):** Generated at Tops.
* **Support Lines (Green):** Generated at Bottoms.
* **Smart Collision Detection:** The lines automatically extend to the right and terminate only when the price "collides" with or invalidates them.
**How to Use**
1. **Reversal Signals:** Look for the triangle icons (Setup 9) and labels (S13/B13). These often precede a pause or reversal.
2. **Breakout/Bounce Play:**
* Price approaches **Red Line** from below: Watch for rejection (Short).
* Price approaches **Green Line** from above: Watch for bounce (Long).
**Settings**
* **Recycle Mechanism:** Option to restart the count if specific conditions are met.
* **Visual Customization:** Fully adjustable line styles and colors.
-----
** **
**概述**
Trend Exhaustion Strategy (趋势耗尽策略) 是一款市场择时工具,旨在识别趋势疲劳和潜在的价格反转。本指标基于经典的 9-13 市场择时逻辑,并引入了独特的**动态支撑/阻力引擎**。
与普通计数器不同,该脚本会从完成的形态阶段自动生成有效的支撑和阻力线,为交易提供关键参考。
**核心功能**
* **趋势耗尽检测:** 使用双阶段结构识别市场转折点:
* **Setup 9:** 提示短期动能暂停。
* **Extension 13 (第二阶段):** 提示更长周期的趋势衰竭和高概率反转区。
* **动态延伸线:**
* 当 Setup 9 或 Extension 13 完成时,立即生成水平线。
* **阻力线(红色):** 在顶部生成。
* **支撑线(绿色):** 在底部生成。
* **智能碰撞检测:** 线段自动向右延伸,只有当价格触碰或突破它们时才会终止。
**使用方法**
1. **反转信号:** 观察三角形图标(Setup 9)和标签(S13/B13)。
2. **突破/反弹交易:** 价格接近红线看跌,接近绿线看涨。
EMA Convergence EstimatorEMA Convergence Estimator is a tool designed to help traders visualize when two key trend EMAs—typically the 50-EMA and 200-EMA—are moving toward or away from each other. By analyzing slope, distance, and rate of convergence, the script estimates how many candles, hours, or days remain until the EMAs potentially touch.
This can be helpful for identifying upcoming trend shifts, tightening market conditions, or periods where momentum may be compressing before a larger move.
🔍 Features
Fast EMA & Slow EMA (default 50 / 200)
EMA distance tracking
Slope-based convergence calculation
Estimated time until EMAs meet in:
📍 Candles
⏱️ Hours
📅 Days
Real-time label panel showing all values
On-chart EMA cross markers
“+” printed directly on bullish EMA crosses
“–” printed directly on bearish EMA crosses
Fully transparent label background so it does not obstruct candles
📈 Use Cases
Identifying when EMAs are tightening (consolidation)
Spotting potential future crossovers earlier than normal indicators
Estimating momentum compression or expansion
Tracking longer-term trend dynamics on any timeframe
⚠️ Notes
The convergence estimate is mathematical, not predictive.
EMAs react to price — they do not forecast it.
Results depend on current slope and can change rapidly as new candles form.
Always use this tool as part of a broader analysis process.
This script is for educational purposes only and does not constitute financial advice.
LHAMA Oscillator Suite [LTS]Overview
The LHAMA Oscillator Suite is a collection of normalized, LHAMA-based oscillators built to make the behavior of the Low-High Adaptive Moving Average (LHAMA) easier to read in a separate pane. It translates LHAMA’s slope, distance, volatility buffer, intraday drift, and regime bias into six clear visual signals, with optional multi-timeframe overlays so you can compare your current chart to a higher-timeframe context at a glance.
Core concept
LHAMA is a custom adaptive moving average that responds more strongly when price is making new local highs or lows, and can optionally weight those moves by volume. The oscillator suite takes that adaptive line and derives several normalized measures (mostly scaled to ±100) around a zero line so you can:
See when LHAMA is meaningfully trending vs flat
Measure how far price has moved away from LHAMA in ATR terms
Track how far the LHAMA trend has “stretched” into its ATR cloud buffer
Follow intraday drift from a daily reset point
Visualize simple bull / bear / neutral states as a background regime filter
Available Oscillators
LHAMA Slope
Measures the angle of the LHAMA in ATR-normalized degrees, capped and rescaled to approximately –100 to +100. Positive values show rising LHAMA, negative values show falling LHAMA. The “Entry Slope (deg)” input defines when the line is considered strongly bullish or bearish. This is the primary trend-impulse oscillator in the suite.
Price Distance to LHAMA
Shows how far price is from the LHAMA in units of ATR, normalized to ±100. Large positive values indicate price trading well above the LHAMA; large negative values show price trading well below it. This is useful for spotting extensions away from the adaptive mean (for both continuation and mean-reversion style analysis).
LHAMA Cloud Buffer
Tracks the dynamic distance between LHAMA and its ATR-based “cloud boundary,” with the sign reflecting which side of the trend you are on. As the trend extends, the buffer widens; when LHAMA flips through the buffer, the sign changes. This makes it easy to see how mature or compressed a trend’s protective buffer is.
Trend Regime Bias
A smoothed, sigmoid transform of the LHAMA angle, converted to a bias between –100 and +100. Rather than focusing on raw slope, this oscillator highlights the underlying regime: values near +100 represent a strong bullish bias, values near –100 a strong bearish bias, and values near zero a more neutral environment.
Session Drift from Reset
Measures how far LHAMA has drifted from its value at a daily reset time (e.g., a futures session close), scaled by ATR and the square root of bars since reset. The result is a Z-score–style oscillator capped to ±100, which helps you gauge how extended the current session is relative to typical intraday movement.
LHAMA State (Background)
A simple state signal that classifies LHAMA as bullish, bearish, or neutral based on the angle and your slope threshold. It is typically used to tint the background of the oscillator pane, and can also be plotted from a higher-timeframe for regime stacking.
Multi-timeframe overlays
Each oscillator can optionally display a second, higher-timeframe (“MTF”) version drawn on the same scale. You can choose a custom MTF resolution (e.g., 15m while trading 1m), and independently toggle which MTF oscillators to show:
MTF LHAMA Slope
MTF Price Distance
MTF Cloud Buffer
MTF Regime Bias
MTF Session Drift
MTF LHAMA State background
This allows you to, for example, trade from the lower timeframe while aligning entries with the higher-timeframe trend regime or mean-reversion context.
Visualization and coloring
All oscillators are plotted around a zero line , with optional reference bands at ±80 to highlight stronger conditions.
Each oscillator can use one of three coloring styles:
Gradient : color intensity increases with the magnitude of the signal.
Flat : fixed bull / bear colors above and below zero.
Single Color : a single color regardless of sign, for minimalistic views.
A separate bull and bear color is available for each oscillator, and you can smooth most outputs with an EMA to reduce noise while keeping the raw calculations intact. You can also choose to disable to shaded area of each line for further visual differentiation.
Key settings
LHAMA settings : length, optional volume weighting, and a daily reset session to realign the moving average after overnight gaps.
Volatility settings : ATR length for both slope normalization and distance calculations.
Cloud settings : ATR multiplier used to define the LHAMA cloud buffer.
Appearance : optional smoothing length, zero-line color, ±80 bands toggle, and all per-oscillator color choices.
MTF overlays : higher-timeframe resolution and per-oscillator toggles for the MTF pack.
The script does not use lookahead settings in its data requests and does not draw future values; all signals are computed using information available at each bar in real time, in line with TradingView’s execution model and publishing guidelines.
SWING [DEMAK]SWING
EMA 5, 25, 50, 200, 250
SMA 10
Indicator for finding swing trades and reading direction
STOCKS / CRYPTO / FUTURES






















