HSI Long & Short: BG + EMA330Strategy: HSI 5-min mean-reversion with EMA10/20 crossover and EMA330 filter.
Background green (EMA10 > EMA20) or red (EMA10 < EMA20).
Long entry: Background turns green AND price below EMA330.
Short entry: Background turns red AND price above EMA330.
Exit long: Background turns red.
Exit short: Background turns green.
No new entries 15:01–16:00 HKT.
Reverses position on signals; 100% equity per trade.
지표 및 전략
My Price Curtain by @magasine - v20251217**My Price Curtain by @magasine - v20251217**
This is a highly visual and practical TradingView overlay indicator designed to help traders quickly assess price position relative to a reference average (either a dynamic Simple Moving Average or a user-defined fixed price, such as a personal average entry cost).
### Key Features & Value for Traders:
- **Dynamic Price Curtain Background**
The entire chart background is lightly tinted green when price is above the average, red when below, or gray when at parity. This instant color feedback provides an immediate sense of bullish/bearish bias without needing to interpret lines or oscillators.
- **Deviation Zones (Optional)**
When enabled, semi-transparent horizontal bands appear above (green) and below (red) the average price, sized according to a user-defined percentage deviation (default 5%). These zones act as visual "fair value" corridors, highlighting over-extension or potential mean-reversion areas.
- **Persistent Horizontal Reference Lines**
- Solid blue line: the current average price (SMA or fixed)
- Dotted lines: upper and lower deviation zone boundaries
- Thin trailing line (when using SMA): connects previous SMA values for smoother trend visualization
- **Real-Time Information Panel**
A clean table in the bottom-right corner displays:
- Current average price and type (SMA(length) or FIXED)
- Latest close price
- Percentage distance from the average
- Total candles above/below the average (with percentages)
- Current position status (ABOVE/BELOW/AT AVERAGE) with color-coded highlighting
- **Additional Visual Cues**
- Small triangle markers on crossovers/crossunders of the average price
- Floating label on the last bar showing the average and current % deviation
- **Optional Cross Alerts**
Configurable alerts fire when price crosses above or below the reference average, including price, average, and deviation details.
### Why Traders Love It:
- Perfect for position traders monitoring performance relative to their average cost
- Great for mean-reversion or range-bound strategies using the deviation zones
- Excellent contextual awareness tool on any timeframe or asset
- Clean, non-cluttered design that enhances rather than overwhelms price action
In short, My Price Curtain transforms a simple moving average into a powerful, intuitive "price sentiment dashboard" that delivers instant visual context and actionable information at a glance.
Donations: linktr.ee
Resistance Breakout & ProximityResistance Breakout & Proximity for pine screener to fine Resistance Breakout
Elev8+ Impulse LevelsElev8+ Impulse Levels | Smart Support & Resistance
Ever notice price rejecting “empty” areas on the chart—like it remembered something that isn’t obvious?
That “something” is often Institutional Impulse : footprints left behind by large, aggressive moves that get defended again days or weeks later .
Elev8+ Impulse Levels automatically detects these moments and projects the most important prices forward so you can see the structure most traders miss.
— — —
🧠 How It Works (The Logic)
This is not a typical support/resistance tool. It does not hunt swing highs/lows.
It looks for Market Intent —the “Perfect Storm” when two conditions align:
Volume Spike — buying/selling pressure significantly exceeds average volume (multiplier-based).
Volatility Expansion — the candle body is unusually large relative to recent ATR.
When both occur, the script marks the event and treats the impulse close as a key “line in the sand” that can influence future reactions.
— — —
🎯 How to Use These Levels
The script includes a Smart Line behavior that changes level styling based on how price interacts with it—so you can quickly separate two core setups:
1) The Defense (Bounce)
Visual: 🟢 Solid line (Fresh / Untouched)
What it means: Price has not yet traded through or “invalidated” the level.
What to look for: First return to the level → rejection / bounce behavior.
Why it matters: Large players often defend prior entries; first tests can react sharply.
2) The Flip (Break & Retest)
Visual: ◌ Dotted line (Broken / Re-priced)
What it means: A candle has closed through the level.
What to look for: Price returns to the dotted level from the other side (“kiss”) → continuation.
Why it matters: Broken support can act as resistance (and vice versa), similar to a breaker concept.
— — —
✨ Key Features
Smart Visualization — levels automatically transition from solid → dotted when broken to reduce chart noise.
Impulse Candle Highlighting — see the exact candle that created the level (origin clarity).
Fully Customizable Sensitivity — tune volume + size thresholds for Crypto, Forex, Futures, or Stocks.
— — —
🚀 The Elev8+ Workflow
Think of Impulse Levels as your map : it shows where reactions are most likely.
For entry timing, pair it with Elev8+ Pro Reversal to confirm the moment price reacts at these high-value zones.
— — —
Disclaimer: Trading involves risk. This tool is for educational/technical analysis purposes only and does not guarantee future results.
10 DMA vs 20 DMA Professional Chart by hasan15 minutes chart for intraday bull and bear flag . this will gives you trend confirmation as well
rj's temu perp pair tradeOverview
rj’s temu perp pair trade is a simple, robust pairs-trading strategy designed for crypto perpetual futures, implemented directly on ratio charts (A / B) in TradingView.
The strategy trades mean reversion in relative price using Bollinger Bands, while keeping sizing, execution logic, and diagnostics intentionally simple and transparent.
This script is designed primarily for signal research and pair selection, not for fully accurate two-leg PnL simulation inside TradingView.
Strategy Concept
The strategy operates on a ratio chart:
Asset A / Asset B
The ratio represents relative performance between two assets.
Core idea
When the ratio deviates significantly from its recent mean, it tends to revert. (if you pick stuff that has very similar drivers and little insider trading flows.
Bollinger Bands provide a simple, robust way to define “too far”.
Entry Logic
Using Bollinger Bands on the ratio price:
Long ratio
Ratio crosses below the lower band
Interpreted as A cheap vs B
Short ratio
Ratio crosses above the upper band
Interpreted as A expensive vs B
Entries are generated on bar close, with fills occurring on the next bar open (TradingView’s internal behavior).
Exit Logic
Positions are closed when any of the following occurs:
Ratio crosses back through the Bollinger midline
Position held longer than maxBarsInTrade (optional)
Fixed % stop based on ratio price (optional)
Each exit is explicitly labeled on the chart:
C → mean reversion
TS → time stop
SL → stop loss
Position sizing and margin
Positions are sized as a percentage of Strategy Tester equity
Default: 10% of equity per trade
This ensures consistent risk within TradingView, even on ratio charts
Mating requirements are set to 1% for long/short to disable margin rejections for research purposes.
What TradingView PnL means (important)
When trading ratio charts, TradingView treats the ratio as a single synthetic instrument.
PnL is reported in the denominator (quote) unit e.g. on UNI / SUSHI, PnL is in SUSHI
Strategy Tester does not simulate two legs
Absolute PnL, Sharpe, and drawdowns are not USDT-accurate
This script intentionally does not attempt to convert PnL into USDT inside TradingView.
Instead:
TradingView is used for signal behavior, regime analysis, and pair comparison
Accurate two-leg USDT PnL should be computed externally
Summary Table
The on-chart summary table reports Strategy Tester-aligned metrics only:
Total PnL (%)
Number of closed trades
Win rate
Average PnL per trade
Sharpe ratio (annualized, based on Strategy Tester equity)
PnL units (syminfo.currency)
These metrics are internally consistent but should be treated as indicative, not execution-accurate.
Recommended workflow
Inside TradingView
Use this script to:
Explore pair behavior
Validate mean-reversion dynamics
Study regime dependence
Compare relative signal quality across pairs
Outside TradingView
Use exported trade data to:
Aggregate daily PnL
Normalize by initial capital
Apply portfolio weights
Vol-target and analyze drawdowns
Add funding, fees, and execution logic
Limitations
This script does not:
Simulate two-leg execution
Account for funding rates
Model fees or slippage per leg
Provide USDT-accurate PnL
It is not a trading system. It is a clean, robust research and signal-generation tool.
AI-based Price action confluence dashboard# **AI-Based Price Action Confluence Dashboard - Publication Guide**
Here's a comprehensive introduction guide for your TradingView indicator publication:
***
## **📊 TITLE**
**AI-Based Price Action Confluence Dashboard**
***
## **🎯 SHORT DESCRIPTION** (For the summary field)
A sophisticated real-time confluence scoring system that analyzes multiple price action signals across 15-minute timeframes, providing traders with an AI-weighted scoring mechanism (0-6 scale) to identify high-probability trade setups through visual signal panels and intelligent path detection.
***
## **📝 FULL DESCRIPTION**
### **Overview**
The AI-Based Price Action Confluence Dashboard is an advanced technical indicator designed to eliminate guesswork in intraday trading by systematically scoring and displaying multiple price action signals in real-time. Unlike traditional single-indicator approaches, this dashboard employs a confluence methodology that combines multiple independent signals to provide stronger trade confirmations and reduce false signals.
This indicator is specifically optimized for **1-minute chart analysis** while monitoring **15-minute price structure**, making it ideal for day traders and scalpers who need precise entry timing with larger timeframe context.
***
### **🔑 Key Features**
**✅ Real-Time AI Confluence Scoring**
- Dynamic scoring system (0-6 points) for both bullish and bearish setups
- Visual meter display shows signal strength at a glance
- Color-coded backgrounds indicate confluence levels (strong, moderate, mixed)
**✅ Multi-Signal Analysis**
The dashboard tracks 6 distinct signal types:
1. **FTFC (First to Finish Close)** - Base & Bonus signals
2. **Long/Short Grab** - Liquidity sweep patterns (Path A)
3. **High/Low Hold** - Extended momentum confirmation (+2 bonus)
4. **2-Up/2-Down** - Clean breakout patterns (Path B)
5. **Breakaway** - First candle gap strategies
**✅ Intelligent Path Detection**
- Mutually exclusive path logic prevents signal conflicts
- Automatically identifies whether price is following a "sweep path" or "clean path"
- Unavailable paths are clearly marked with gray indicators
**✅ Visual Signal Panels**
- 🟢 Green Light = Bullish signal ACTIVE
- 🔴 Red Light = Bearish signal ACTIVE
- 🟡 Yellow Light = Signal BUILDING (conditions partially met)
- ⚪ White Light = Signal OFF
- ▪️ Gray Square = Path UNAVAILABLE (mutually exclusive)
**✅ Comprehensive Alert System**
- 10 different alert conditions covering all major signals
- Strong confluence alerts (5+ points)
- Individual signal completion alerts
- Customizable alert messages
***
### **📐 How It Works**
#### **The Confluence Methodology**
This indicator implements a sophisticated confluence trading approach where multiple independent price action signals are combined to identify high-probability setups. Each signal type contributes points to either the bullish or bearish score, with a maximum of 6 points per direction.
**Scoring Breakdown:**
**BULLISH SIGNALS:**
- FTFC Base (15m close > previous 15m close) = +1
- FTFC Bonus (price clears 15th candle high) = +1
- **PATH A (Sweep):** Long Grab = +1, High Hold Bonus = +2
- **PATH B (Clean):** 2-Up = +1, 2-Up Bonus = +1
- Breakaway (gap above first candle) = +1
**BEARISH SIGNALS:**
- FTFC Base (15m close < previous 15m close) = +1
- FTFC Bonus (price clears 15th candle low) = +1
- **PATH A (Sweep):** Short Grab = +1, Low Hold Bonus = +2
- **PATH B (Clean):** 2-Down = +1, 2-Down Bonus = +1
- Breakaway (gap below first candle) = +1
#### **Path Detection Logic**
The indicator automatically determines which path the market is following:
**PATH A: SWEEP PATH**
- Activated when previous 15m low (bull) or high (bear) is breached
- Indicates liquidity grab before reversal
- Includes powerful +2 bonus for "Hold" confirmations
- Mutually exclusive with Path B
**PATH B: CLEAN PATH**
- Activated when previous 15m low (bull) or high (bear) holds
- Indicates strong directional momentum without sweep
- Cleaner price action but smaller point potential
- Mutually exclusive with Path A
This mutual exclusivity prevents double-counting and ensures signal accuracy.
***
### **🎨 How to Use**
#### **Installation**
1. Add indicator to your 1-minute chart
2. The dashboard appears as a table overlay (default: top right)
3. No additional indicators required - this is a complete system
#### **Reading the Dashboard**
**Top Section - Confluence Meter:**
- Shows current bull/bear scores with visual dot meters
- Background color changes based on confluence strength:
- **Bright Green/Red** = 5+ points (strong directional bias)
- **Medium Green/Red** = 3+ points (moderate bias)
- **Orange** = 3+ points both sides (conflicting signals)
- **Gray** = Low confluence (choppy conditions)
**Signal Panels Section:**
- Each row shows a signal type with bull/bear lights side-by-side
- Active signals (🟢🔴) contribute to the total score
- Building signals (🟡) indicate potential setups forming
- Unavailable paths (▪️) show which exclusive path is blocked
#### **Trading Strategy**
**High-Probability Long Entries:**
- Bull score ≥ 5 AND bear score ≤ 1
- Multiple green lights active in signal panels
- PATH A or PATH B showing full completion
- Consider entry on pullback to key 15m level
**High-Probability Short Entries:**
- Bear score ≥ 5 AND bull score ≤ 1
- Multiple red lights active in signal panels
- PATH A or PATH B showing full completion
- Consider entry on rally to key 15m level
**Avoid Trading When:**
- Both scores are 3+ (conflicting signals)
- No path is showing active/building status
- Score is below 3 on both sides (low confluence)
#### **Risk Management**
- Use 15m swing high/low for stop placement
- Target opposing 15m level or previous session extremes
- Scale out at partial targets when confluence decreases
- Best results when combined with proper position sizing
***
### **⚙️ Customization**
**Dashboard Settings:**
- **Table Location:** Top Left, Top Right, Bottom Left, Bottom Right
- **Text Size:** Tiny, Small, Normal, Large
**Color Scheme:**
- **Bullish Color:** Customize green for bull signals (default: #00cc66)
- **Bearish Color:** Customize red for bear signals (default: #ff4444)
- **Building Color:** Customize yellow for forming signals (default: #ffaa00)
- **Inactive Color:** Customize gray for off signals (default: #555555)
- **Unavailable Color:** Customize dark gray for blocked paths (default: #333333)
All colors can be adjusted to match your chart theme or visual preferences.
***
### **🎯 Best Practices**
1. **Use on 1-minute charts only** - The indicator is calibrated for this timeframe
2. **Trade during liquid sessions** - Best results during NY/London overlap
3. **Wait for 3+ confluence** - Minimum threshold for trade consideration
4. **Watch path transitions** - Signal strength changes when paths flip
5. **Use alerts strategically** - Set alerts for 5+ confluence to catch strong setups
6. **Combine with volume** - High volume confirms signal validity
7. **Respect 15m structure** - Don't fight the larger timeframe bias
***
### **⚠️ Important Notes**
- This indicator is designed for **intraday trading only**
- Requires active monitoring during trading sessions
- Works best on liquid instruments (major forex pairs, indices, large-cap stocks)
- Not suitable for swing trading or position trading
- Past performance does not guarantee future results
- Always use proper risk management and position sizing
***
### **🏷️ Category**
**Oscillators** or **Volatility** (choose based on TradingView categories)
***
### **🏷️ Suggested Tags**
- confluence
- price action
- day trading
- scalping
- intraday
- signals
- dashboard
- multi-timeframe
- 1-minute
- 15-minute
***
### **📜 Disclaimer**
This indicator is a tool for technical analysis and should not be used as the sole basis for trading decisions. All trading involves risk, and you should never risk more than you can afford to lose. The developer assumes no responsibility for trading losses incurred through the use of this indicator. Always practice proper risk management and consider your own risk tolerance before trading.
krishnadeshmukh/NIFTY50 Micro Sentiment Part 1📘 Script Description: NIFTY50 Micro Sentiment — Part 1
This indicator tracks real-time micro sentiment across the top 25 weighted stocks of the NIFTY50 index using a volume-based distribution model.
🔍 How it works:
Scans last N bars (configurable) for each stock.
Divides each stock’s price range into equal bins.
Measures bullish vs bearish volume in each bin based on:
Candle Color (Close > Open) or
Close Near High (Close > Midpoint).
Assigns a sentiment value:
+1 → Bullish dominance
-1 → Bearish dominance
0 → Neutral
📊 Each stock's sentiment is weighted by its contribution to the index.
🧮 Displays:
Weighted Sentiment Score
Bullish / Bearish / Neutral Components
Updated every 5 bars with an easy-to-read table.
Use this to gauge underlying micro shifts in sentiment before broader market moves.
Momentum Signal StripesInspired by Kodi Kai Trades (Formerly known as "K2 Trades") www.youtube.com
Pine script generated by Gemini (thanks!)
BB Squeeze Screener 15MPurpose: Detects Bollinger Band squeeze conditions across symbols/timeframes for fast scanning in the TradingView Screener. Default timeframe = 15m, but can be duplicated for 1h / 4h / 1D columns.
How it works: computes a normalized BB width, compares it to its SMA and flags when width falls below the configured threshold (squeeze ON). Output = 1 (squeeze) or 0 (no squeeze).
Inputs: Timeframe, BB Length, SMA Length, Threshold. Use separate columns per timeframe for multi‑TF scanning.
Usage: Publish the script, add it as a Screener column, then filter for =1 and combine with Vol 24h / Market Cap filters to reduce noise. Good workflow: Mode = 15m (intraday), 1h (swing), 4h/1D (higher‑TF confirmations).
Notes: This is a volatility filter (not directional). Combine with momentum/volume filters or a breakout rule for entries. Backtest rules on your watchlist before live use.
Disclaimer: Educational tool only — not financial advice. Use proper risk management.
Zone Eleven HTF Gate SweepThis indicator is designed as a simple visual framework rather than a rigid signal system. It highlights time-based structure and key alignment zones to help identify when price behavior is more likely to be active or responsive. The logic is intentionally flexible, allowing the user to apply their own discretion instead of relying on strict conditions. Its primary value is visual clarity and context, not automatic entries or exits.
Market StateIdentifies market regime (Expansion, Crawl, Compression, Reversion, Chop) using VWAP-based auction theory and volatility analysis.
Full Description:
This indicator combines Auction Market Theory with Volatility Regime Detection to classify the current market state and highlight key auction events.
🎯 Market States (Background Colors)
EXPANSION (lime) — Strong directional move, price outside value zone
CRAWL (green) — Trending move with price acceptance
REVERSION (orange) — Mean reversion back to value after deviation
COMPRESSION (blue) — Tight range, accumulation/distribution phase
CHOP (red) — Choppy, directionless price action
📍 Event Markers
ACC↑ / ACC↓ — Price acceptance above/below VWAP (A of B bars closed on one side)
REJ — Rejection at extreme (breakout + long wick)
RCLM — Value reclaim (price returns to value zone)
LOSS — Value loss (price breaks out of value zone)
📊 Key Components
VWAP — Dynamic fair value reference
Value Zone — VWAP ± k×ATR band (configurable)
Range/ATR Ratio — Volatility regime detection
EMA Slope — Trend direction proxy
💡 Trading Logic
COMPRESSION → Wait for breakout
EXPANSION → Follow the trend
REVERSION/REJ → Look for mean reversion trades
CHOP → Avoid or scalp range boundaries
⚙️ Settings
All parameters are fully customizable: ATR length, acceptance window, rejection thresholds, compression/expansion levels, and visual toggles.
3VWMA MTF3VWMA MTF – IRONGAR plots three Volume Weighted Moving Averages (VWMA) on your chart, with multi-timeframe support.
-It is designed to help traders identify trend direction, dynamic support & resistance, and
volume-confirmed momentum across different timeframes — all in one clean indicator.
-The indicator calculates three separate VWMAs:
VWMA 7 (Green) – Short-term momentum
VWMA 25 (Blue) – Medium-term trend
VWMA 99 (Red) – Long-term structure
-You can choose:
Chart timeframe (default), or
A custom higher/lower timeframe using the VWMA Timeframe input
-Each VWMA is calculated on the selected timeframe and plotted on the current chart.
A Volume Weighted Moving Average (VWMA) gives more weight to candles with higher trading volume.
-Formula: VWMA = Σ(Price × Volume) / Σ(Volume)
This means:
High-volume moves have more influence
Low-volume noise has less impact
Best used in combination with price action and proper risk management.
-Huge shoutout to my teacher @tradecitypro for all his time and effort. I'm so grateful!
-Next, I will break down my strategy and show you how to apply it for yourself.
simple and easy :))))
Amihud Illiquidity Ratio [MarkitTick]💡This indicator implements the Amihud Illiquidity Ratio, a financial metric designed to measure the price impact of trading volume. It assesses the relationship between absolute price returns and the volume required to generate that return, providing traders with insight into the "stress" levels of the market liquidity.
Concept and Originality
Standard volume indicators often look at volume in isolation. This script differentiates itself by contextualizing volume against price movement. It answers the question: "How much did the price move per unit of volume?" Furthermore, unlike static indicators, this implementation utilizes dynamic percentile zones (Linear Interpolation) to adapt to the changing volatility profile of the specific asset you are viewing.
Methodology
The calculation proceeds in three distinct steps:
1. Daily Return: The script calculates the absolute percentage change of the closing price relative to the previous close.
2. Raw Ratio: The absolute return is divided by the volume. I have introduced a standard scaling factor (1,000,000) to the calculation. This resolves the issue of the values being astronomically small (displayed as roughly 0) without altering the fundamental logic of the Amihud ratio (Absolute Return / Volume).
- High Ratio: Indicates that price is moving significantly on low volume (Illiquid/Thin Order Book).
- Low Ratio: Indicates that price requires massive volume to move (Liquid/Deep Order Book).
3. Dynamic Regimes: The script calculates the 75th and 25th percentiles of the ratio over a lookback period. This creates adaptive bands that define "High Stress" and "Liquid" zones relative to recent history.
How to Use
Traders can use this tool to identify market fragility:
- High Stress Zone (Red Background): When the indicator crosses above the 75th percentile, the market is in a High Illiquidity Regime. Price is slipping easily. This is often observed during panic selling or volatile tops where the order book is thin.
- Liquid Zone (Green Background): When the indicator drops below the 25th percentile, the market is in a Liquid Regime. The market is absorbing volume well, which is often characteristic of stable trends or accumulation phases.
- Dashboard: A visual table on the chart displays the current Amihud Ratio and the active Market Regime (High Stress, Normal, or Liquid).
Inputs
- Calculation Period: The lookback length for the average illiquidity (Default: 20).
- Smoothing Period: The length of the additional moving average to smooth out noise (Default: 5).
- Show Quant Dashboard: Toggles the visibility of the on-screen information table.
● How to read this chart
• Spike in Illiquidity (Red Zones)
Price is moving on "thin air." Expect high volatility or potential reversals.
• Low Illiquidity (Green/Stable Zones)
The market is deep and liquid. Trends here are more sustainable and reliable.
• Divergence
Watch for price making new highs while liquidity is drying up—a classic sign of an exhausted trend.
Example:
● Chart Overview
The chart displays the Amihud Illiquidity indicator applied to a Gold (XAUUSD) 4-hour timeframe.
Top Pane: Price action with manual text annotations highlighting market reversals relative to liquidity zones.
Bottom Pane: The specific technical indicator defined in the logic. It features a Blue Line (Raw Illiquidity), a Red Line (Signal/Smoothed), and dynamic background coloring (Red and Green vertical strips).
● Deep Visual Analysis
• High Stress Regime (Red Zones)
Visual Event: In the bottom pane, the background periodically shifts to a translucent red.
Technical Logic: This event is triggered when the amihudAvg (the smoothed illiquidity ratio) exceeds the 75th percentile ( hZone ) of the lookback period.
Forensic Interpretation: The logic calculates the absolute price change relative to volume. A spike into the red zone indicates that price is moving significantly on relatively lower volume (high price impact). Visually, the chart shows these red zones aligning with local price peaks (volatility expansion), leading to the bearish reversal marked by the red box in the top pane.
• Liquid Regime (Green Zones)
Visual Event: The background shifts to a translucent green in the bottom pane.
Technical Logic: This triggers when the amihudAvg falls below the 25th percentile ( lZone ).
Forensic Interpretation: This state represents a period where large volumes are absorbed with minimal price impact (efficiency). On the chart, this green zone corresponds to the consolidation trough (green box, top pane), validating the annotated accumulation phase before the bullish breakout.
• Indicator Lines
Blue Line: This is the illiquidityRaw value. It represents the raw daily return divided by volume.
Red Line: This is the smoothedVal , a Simple Moving Average (SMA) of the raw data, used to filter out noise and define the trend of liquidity stress.
● Anomalies & Critical Data
• The Reversal Pivot
The transition from the "High Stress" (Red) background to the "Liquid" (Green) background serves as a visual proxy for market regime change. The chart shows that as the Red zones dissipate (volatility contraction), the market enters a Green zone (efficient liquidity), which acted as the precursor to the sustained upward trend on the right side of the chart.
● About Yakov Amihud
Yakov Amihud is a leading researcher in market liquidity and asset pricing.
• Brief Background
Professor of Finance, affiliated with New York University (NYU).
Specializes in market microstructure, liquidity, and quantitative finance.
His work has had a major impact on both academic research and practical investment models.
● The Amihud (2002) Paper
In 2002, he published his influential paper: “Illiquidity and Stock Returns: Cross-Section and Time-Series Effects” .
• Key Contributions
Introduced the Amihud Illiquidity Measure, a simple yet powerful proxy for market liquidity.
Demonstrated that less liquid stocks tend to earn higher expected returns as compensation for liquidity risk.
The measure became one of the most widely used liquidity metrics in finance research.
● Why It Matters in Practice
Used in quantitative trading models.
Applied in portfolio construction and risk management.
Helpful as a liquidity filter to avoid assets with excessive price impact.
In short: Yakov Amihud established a practical and robust link between liquidity and returns, making his 2002 work a cornerstone in modern financial economics.
Disclaimer: All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
AI Market Open - Live Session Tracker (PDH/PDL/ONH/ONL)🤖 AI MARKET OPEN - LIVE SESSION TRACKER
A comprehensive real-time tracking system designed for intraday traders who trade the market open using previous day levels (PDH/PDL) and overnight session ranges (ONH/ONL). This indicator provides intelligent context and mitigation tracking to help you make informed trading decisions during the critical morning session.
═══════════════════════════════════════════════════════════════
📊 WHAT THIS INDICATOR DOES
This indicator automatically tracks and displays six critical price levels:
• PDH (Previous Day High) - Yesterday's regular session high (9:30 AM - 4:00 PM ET)
• PDL (Previous Day Low) - Yesterday's regular session low
• PDC (Previous Day Close) - Yesterday's 3:59 PM ET close price
• ONH (Overnight High) - Overnight session high (6:00 PM - 9:29 AM ET)
• ONL (Overnight Low) - Overnight session low
• 9:30 Open - The exact opening price at market open
It monitors whether each level has been "mitigated" (touched/tested) in real-time and provides AI-generated context about current market structure.
═══════════════════════════════════════════════════════════════
🎯 KEY FEATURES
✅ REAL-TIME MITIGATION TRACKING
• Live status updates showing ✅ (mitigated) or ⏳ (unmitigated) for each level
• Persistent tracking - once a level is touched, it stays marked
• Gap fill detection with 🌕 (filled) or 🌒 (open) status
✅ DYNAMIC CALCULATIONS
• Δ Open: Distance from 9:30 AM opening price to each level
• RT Δ: Real-time distance from current price to each level
• Automatic color coding (green for resistance, red for support)
✅ AI MARKET CONTEXT SUMMARY
The indicator generates intelligent commentary based on:
• Gap size classification (large/moderate/small)
• PDH/PDL mitigation status
• Current position within overnight range
• Directional bias and key levels to watch
✅ CUSTOMIZABLE DISPLAY
• Choose table position (9 locations available)
• Adjustable text size (tiny/small/normal/large)
• Custom colors for headers, summary text, and background
• Show/hide table with single toggle
✅ PROFESSIONAL LEVEL LINES
• Ray-style horizontal lines extending right
• Customizable line width (1-4)
• Three line styles: Solid, Dashed, Dotted
• Color-coded labels with exact price values
• Lines auto-update and reset each session
═══════════════════════════════════════════════════════════════
🔧 HOW IT WORKS
SESSION TRACKING
• Regular Session: 9:30 AM - 4:00 PM ET (for PDH/PDL calculation)
• Close Capture: 3:59 PM ET close becomes PDC
• Overnight Session: 6:00 PM - 9:29 AM ET (for ONH/ONL)
• Session Reset: 6:00 PM ET daily
MITIGATION LOGIC
A level is considered "mitigated" when price touches or crosses it:
• PDH mitigated: High >= PDH at any point after 6:00 PM previous day
• PDL mitigated: Low <= PDL at any point after 6:00 PM previous day
• ONH mitigated: High >= ONH after 9:30 AM open
• ONL mitigated: Low <= ONL after 9:30 AM open
• Gap filled: Price crosses PDC after gapping up or down
AI SUMMARY ALGORITHM
The indicator analyzes three key dimensions:
1. GAP CLASSIFICATION
• Large gap (>50 pts): Suggests gap-fill or extension scenarios
• Moderate gap (20-50 pts): Monitor overnight levels for direction
• Small gap (<20 pts): Range-bound expectation
2. PDH/PDL STATUS
• Both untested: Clean liquidity zones
• One mitigated: Remaining level becomes primary target
• Both mitigated: Expect range/balance trade
3. OVERNIGHT RANGE POSITION
• Top 25%: Bullish bias, watch PDH
• Mid-upper: Slight bull bias
• Mid-lower: Neutral
• Bottom 25%: Vulnerable to PDL sweep
═══════════════════════════════════════════════════════════════
📖 HOW TO USE
STEP 1: ADD TO CHART
• Apply to any intraday timeframe (1m, 5m, 15m recommended)
• Works on ES, NQ, YM, RTY, and other CME futures
• Can be used on stocks and forex (adjust session times accordingly)
STEP 2: SET YOUR TIMEZONE
• Default: America/New_York (Eastern Time)
• Also supports: Chicago, Los Angeles, Phoenix
• Ensure your chart timezone matches your selection
STEP 3: CUSTOMIZE APPEARANCE
• Position table where it doesn't block your chart action
• Adjust text size based on screen resolution
• Customize colors to match your chart theme
• Toggle line styles for visual preference
STEP 4: INTERPRET THE DATA
• Before market open (pre-9:30 AM): Review gap size and overnight levels
• At market open: Check which levels are closest to price
• During session: Monitor mitigation status and RT Δ values
• Read AI summary for contextual bias and key scenarios
STEP 5: APPLY TO YOUR STRATEGY
• Use unmitigated levels as potential targets
• Watch for reactions when price approaches key levels
• Gap-fill setups: Trade reversions when gap is open
• Breakout setups: Trade continuations when levels get mitigated
═══════════════════════════════════════════════════════════════
⚙️ INDICATOR SETTINGS
DISPLAY SETTINGS
• Timezone: Select your local market timezone
• Table Position: 9 locations (corners, edges, center)
• Text Size: tiny | small | normal | large
• Show Summary Table: Toggle on/off
COLOR CUSTOMIZATION
• Header Text Color: Default white
• AI Summary Color: Default aqua
• Background Color: Default semi-transparent black
• Border Color: Default blue
LINE CUSTOMIZATION (PDH)
• Line Width: 1-4 pixels
• Line Style: Solid | Dashed | Dotted
• Color: Default red with 40% transparency
LINE CUSTOMIZATION (PDL)
• Line Width: 1-4 pixels
• Line Style: Solid | Dashed | Dotted
• Color: Default green with 40% transparency
LINE CUSTOMIZATION (PDC)
• Line Width: 1-4 pixels
• Line Style: Solid | Dashed | Dotted
• Color: Default yellow with 60% transparency
LINE CUSTOMIZATION (ONH)
• Line Width: 1-4 pixels
• Line Style: Solid | Dashed | Dotted
• Color: Default orange with 50% transparency
LINE CUSTOMIZATION (ONL)
• Line Width: 1-4 pixels
• Line Style: Solid | Dashed | Dotted
• Color: Default blue with 50% transparency
LINE CUSTOMIZATION (9:30 Open)
• Line Width: 1-4 pixels
• Line Style: Solid | Dashed | Dotted
• Color: Default white with 50% transparency
═══════════════════════════════════════════════════════════════
💡 BEST PRACTICES
✓ Use on 1-minute or 5-minute charts for precise level tracking
✓ Combine with volume profile for confluence
✓ Wait for confirmation candles near key levels
✓ Pay attention to gap-fill probability (larger gaps more likely to fill)
✓ Use RT Δ values to gauge distance and set realistic targets
✓ Review AI summary each morning for bias and scenario planning
✓ Don't trade blindly - use levels as reference points, not mechanical signals
═══════════════════════════════════════════════════════════════
⚠️ IMPORTANT NOTES
• This indicator is designed for CME session times (futures markets)
• For stocks, session times may differ - adjust expectations accordingly
• Levels reset daily at 6:00 PM ET - no weekend carryover
• Mitigation tracking persists throughout the session
• The AI summary provides context, not trade signals
• Always use proper risk management
═══════════════════════════════════════════════════════════════
📌 IDEAL FOR
• Day traders focusing on market open
• Scalpers using previous day levels
• Session-based traders (Asia/London/NY)
• Traders who need automated level tracking
• Anyone trading overnight gaps and ranges
═══════════════════════════════════════════════════════════════
🔄 VERSION HISTORY
v1.0 - Initial Release
• Core tracking system for PDH/PDL/PDC/ONH/ONL/Open
• Real-time mitigation status
• AI context summary
• Fully customizable display and lines
• Multi-timezone support
═══════════════════════════════════════════════════════════════
📧 FEEDBACK & SUPPORT
If you find this indicator helpful, please:
• Leave a like 👍
• Add to favorites ⭐
• Share with fellow traders
• Comment with suggestions or questions
Happy trading! 📈
═══════════════════════════════════════════════════════════════
ChanLun Structure: K/Fractals/Strokes/Segments/ZhongShuThis script implements the "line and center" concept of CHANLUN.
Hosoda ZHosoda’s Clouds is a trend-following strategy designed to trade only long positions in traditionally trending markets with a strong bullish bias: SPY(D); DJI (D); NDX (D); XAUUSD (D); Tesla (D, H4, H1); AAPL (D, H4, H1); GOOG (D, H4); META (D, H4); NVDA (D, H4); AMZN(D, H4).
Strategy Parameters
Initial Capital: $10,000 USD.
Position Size: Risks 10% of your equity per trade.
Commission: 0.1%
Indicators
The strategy combines two main technical tools:
A. Ichimoku Cloud This is the core of the strategy. It calculates the classic lines:
• Tenkan-sen (Fast Line): Average of the highest high and lowest low of the last 9 periods.
• Kijun-sen (Base Line): Average of the last 26 periods.
• Cloud (Senkou Span A and B): Projects future support/resistance.
B. EMA 500 (Trend Filter)
• A 500-period Exponential Moving Average is calculated.
• Function: Serves as a very long-term trend filter. If the price is above the EMA 500, the market is considered bullish in the long term.
Entry Rules
• Bullish Cross (Bull Cross): The fast line (Tenkan) crosses above the base line (Kijun). This is the classic Ichimoku entry signal.
• Trend Filter (Optional):
•If you check the "Enable EMA Filter" box in the options, the system will only buy if the closing price is above the EMA 500.
•If the box is unchecked, it will ignore the EMA and buy based solely on the Ichimoku cross.
Exit Rules
A. Stop Loss (Loss Protection) It is a dynamic Stop Loss based on market structure, not a fixed percentage.
• At the moment of entry, the code looks back 12 bars (configurable in sl_bars_back) and finds the lowest price (low).
• It places the Stop Loss at that minimum level.
• Visual: Draws a dotted red line on the chart showing where your Stop Loss is.
B. Technical Take Profit (Exit due to Weakness) Lets profits run until the trend shows weakness.
• Condition: Closes the trade if the Tenkan line crosses below the bottom of the Cloud .
• This means short-term momentum has been lost and the price has entered or crossed below the cloud.
Statistics Panel
In the top right corner, the code draws a table (Panel) that updates in real-time or at the end of Backtesting. It shows:
• Total P&L: Net profit or loss in dollars.
• Win Rate: Percentage of winning trades.
• Trades: Total number of trades executed.
Summary
1. The script waits for the blue line (Tenkan) to cross over the red line (Kijun).
2. It verifies if the price is above the orange line (EMA 500) (if the filter is active).
3. If so, it BUYS.
4. It immediately places a Stop Loss at the low of the last 12 candles (red dotted line).
5. It keeps the trade open until the Stop Loss is hit or until the Tenkan line drops below the Cloud.
Customizable Settings
• Whether to use the EMA filter or not.
• The EMA length (default is 500).
• The Ichimoku periods (9, 26, 52 are standard).
• How many bars to look back to set the Stop Loss.
Triple Supertrend + EMA CrossoverCustomized 3 supertrend and EMA crossover which is helpful for identification of the trend.
krishnadeshmukh/NIFTY50 Micro Sentiment Part 1📘 Script Description: NIFTY50 Micro Sentiment — Part 1
This indicator tracks real-time micro sentiment across the top 25 weighted stocks of the NIFTY50 index using a volume-based distribution model.
🔍 How it works:
Scans last N bars (configurable) for each stock.
Divides each stock’s price range into equal bins.
Measures bullish vs bearish volume in each bin based on:
Candle Color (Close > Open) or
Close Near High (Close > Midpoint).
Assigns a sentiment value:
+1 → Bullish dominance
-1 → Bearish dominance
0 → Neutral
📊 Each stock's sentiment is weighted by its contribution to the index.
🧮 Displays:
Weighted Sentiment Score
Bullish / Bearish / Neutral Components
Updated every 5 bars with an easy-to-read table.
Use this to gauge underlying micro shifts in sentiment before broader market moves.
MACD + Divergence Indicator [Dynamic Filter]Title: MACD + Divergence
Description: This is an enhanced momentum analysis suite based on the classic Moving Average Convergence Divergence (MACD). It addresses the common weakness of the standard MACD—false signals during low-volatility consolidation—by integrating a Dynamic Volatility Filter and a Multi-Timeframe (MTF) Dashboard.
The Problem It Solves: Standard MACD indicators often generate "whipsaw" crossovers when the market is ranging (moving sideways). Traders often struggle to identify these consolidation zones until it is too late. This script solves this by calculating a dynamic "Consolidation Zone" based on Standard Deviation, visually warning traders when momentum is too weak to be reliable.
Key Features:
1. Dynamic Consolidation Filter (The Grey Zone)
The script calculates Upper and Lower bands around the MACD line using Standard Deviation (Volatility).
Grey Fill: When the MACD line is inside the grey bands, the market is in a "Squeeze" or low-volatility consolidation. Crossovers in this zone are often lower probability.
Breakout: When the MACD line exits the bands, it indicates a volatility expansion and a potentially stronger trend.
2. Automated Divergence Detection
Automatically scans for both Regular (Reversal) and Hidden (Continuation) divergences between Price and Momentum.
Bullish: Marked with Green lines/labels.
Bearish: Marked with Red lines/labels.
Customization: You can choose to calculate divergence based on the MACD Line or the Histogram via settings.
3. Multi-Timeframe (MTF) Dashboard
A customizable information table (optional) displays the MACD state across 4 different timeframes (e.g., 15m, 1H, 4H, Daily).
It checks for Trend Alignment (e.g., are all timeframes Bullish?) to help you trade in the direction of the higher timeframes.
4. Enhanced Visuals
4-Color Histogram: Visualizes momentum growing (bright) vs. momentum fading (pale) for both bullish and bearish phases.
Line Highlights: The MACD and Signal lines are clearly distinct, with configurable smoothing options (EMA/SMA).
Settings Guide:
Consolidation Filter: Increase the Dynamic Filter Multiplier (Default: 0.5) to widen the grey zone if you want to filter out more noise.
Oscillator Source: Switch between "MACD Line" or "Histogram" for divergence detection depending on your strategy.
Table: You can toggle the dashboard on/off or change its position to fit your chart layout.
Credits: Base MACD logic derived from standard technical analysis concepts. Dynamic filtering logic adapted from volatility band theories.
krishnadeshmukh/NIFTY50 Micro Sentiment Part 2📘 Script Description: NIFTY50 Micro Sentiment — Part 2
This indicator continues the NIFTY50 Micro Sentiment model by analyzing the remaining 25 stocks (Rank 26–50 by index weight) of the NIFTY50.
🔍 Key Features:
Applies the same volume-bin methodology used in Part 1.
Sentiment detection based on:
Candle Color (default) or
*Close vs Midpoint of the candle range.
Stocks are weighted by their index influence.
Output is a clean sentiment table:
+ve / -ve / Neutral Volume Score
Weighted Sentiment Output
Use this in conjunction with Part 1 to analyze the entire NIFTY50 sentiment landscape.
📘 Script Description: NIFTY50 Combined Score
This script aggregates live sentiment data from both:
🧩 NIFTY50 Micro Sentiment — Part 1
🧩 NIFTY50 Micro Sentiment — Part 2
🚀 What it does:
Imports Score, +ve, -ve, and Neutral components from both scripts.
Combines them to produce:
✅ Total Weighted Sentiment
🟢 Bullish Weight
🔴 Bearish Weight
🟡 Neutral Component
📊 Outputs are shown via a middle-right sentiment table, updated every 5 bars.
Perfect for traders seeking a unified view of micro sentiment across the entire NIFTY50 ecosystem — in one glance.
Better VWAP (Current + Prev) Lines by D-conTired of the basic single VWAP? This indicator gives you multi-timeframe VWAPs (Yearly, Quarterly, Monthly, Weekly) with VAH/VAL bands for both current AND previous periods - all fully customizable with individual colors, styles, and label positioning.
Perfect for traders who need reference levels across different timeframes without cluttering their chart, with smart label management and historical data warnings.






















