GEX Delta Hedging Lines - v.4.1GEX Delta Hedging Indicator - Institutional Levels
Introduction
This Pine Script indicator is designed to visualize Gamma Exposure (GEX) levels, Delta Hedging zones, and institutional support/resistance points on your TradingView charts. It helps traders identify key price levels where market makers and institutions might hedge their options positions, potentially leading to price reversals or continuations. The indicator overlays lines for resistances (Call Wall, R1, R2), supports (Put Wall, S1, S2, S3), a Gamma Flip zone, and customizable trading zones (Buy, Neutral, Sell). It also includes alerts for level breaches and a summary table for quick reference.
Key Features
Resistance Levels: Call Wall (maximum resistance), R1 (strong), R2 (light) – all configurable with colors, styles, and widths.
Support Levels: Put Wall (maximum support), S1 (strong), S2 (moderate), S3 (weak/danger) – fully customizable.
Gamma Flip Zone: Indicates potential regime changes in market behavior.
Trading Zones: Visual boxes for Buy (green), Neutral (yellow), and Sell (red) areas, with adjustable boundaries and colors.
Current Price Line: Dotted line for the reference price, with labels.
Alerts: Trigger notifications when levels are tested or broken.
Summary Table: Displays levels, prices, and distances from the current close, positioned customizable.
Style Options: Adjust line widths, styles (solid/dashed/dotted), label sizes, and more for a personalized view.
Циклический анализ
PM Range Breaker [CHE] PM Range Breaker — Premarket bias with first-five range breaks, optional SWDEMA regime latch, and simple two-times-range targets
Summary
This indicator sets a once-per-day directional bias during New York premarket and then tracks a strict first-five-minutes range from the session open. After the first five complete, it marks clean breakouts and can project targets at two times the measured range. A second mode latches an EMA-based regime to inform the bias and optional background tinting. A compact panel reports live state, first-five levels, and rolling hit rates of both bias modes using a user-defined midday close for statistics.
Motivation: Why this design?
Intraday traders often get whipsawed by early noise or by fast flips in trend filters. This script commits to a bias at a single premarket minute and then waits for the market to present an objective structure: the first-five range. Breaks after that window are clearer and easier to manage. The alternative SWDEMA regime gives a slower, latched context for users who prefer a trend scaffold rather than a midpoint reference.
What’s different vs. standard approaches?
Baseline: Typical open-range-breakout lines or a single moving-average filter without daily commitment.
Architecture differences:
Bias decision at a fixed New York time using either a midpoint lookback (“Classic”) or a two-EMA regime latch (“SWDEMA”).
Strict five-minute window from session open; breakout shapes print only after that window.
Single-shot breakout direction per session (debounce) and optional two-times-range targets.
On-chart panel with hit rates using a configurable midday close for statistics.
Practical effect: Cleaner visuals, fewer repeated signals, and a traceable daily decision that can be evaluated over time.
How it works (technical)
Time handling uses New York session times for premarket decision, open, first-five end, and a midday statistics checkpoint.
Classic bias: A midpoint is computed from the highest and lowest over a user period; at the premarket minute, the bias is set long when the close is above the midpoint, short otherwise.
SWDEMA bias: Two EMAs define a regime score that requires price and trend agreement; when both agree on a confirmed bar, the regime latches. At the premarket minute, the daily bias is set from the current regime.
The first-five range captures high and low from open until the end minute, then freezes. Breakouts are detected after that window using close-based cross logic.
The script draws range lines and optional targets at two times the frozen range. A session break direction latch prevents duplicate break markers.
Statistics compare daily open and a configurable midday close to record if the chosen bias aligned with the move.
Optional elements include EMA lines, midpoint line, latched-regime background, and regime switch markers.
Data aggregation for day logic and the first-five window is sampled on one-minute data with explicit lookahead off. On charts above one minute, values update intra-bar until the underlying minute closes.
Parameter Guide
Premarket Start (NY) — Minute when the bias is decided — Default: 08:30 — Move earlier for more stability; later for recency.
Market Open (NY) — Session start used for the first-five window — Default: 09:30 — Align to instrument’s RTH if different.
First-5 End (NY) — End of the first-five window — Default: 09:35 — Extend slightly to capture wider opening ranges.
Day End (NY) for Stats — Midday checkpoint for hit rate — Default: 12:00 — Use a later time for a longer evaluation window.
Show First-5 Lines — Draw the frozen range lines — Default: On — Turn off if your chart is crowded.
Show Bias Background (Session) — Tint by daily bias during session — Default: On — Useful for directional context.
Show Break Shapes — Print breakout triangles — Default: On — Disable if you only want lines and alerts.
Show 2R Targets (Optional) — Plot targets at two times the range — Default: On — Switch off if you manage exits differently.
Line Length Right — Extension length of drawn lines — Default: 20 (bars) — Increase for slower timeframes.
High/Low Line Colors — Visual colors for range levels — Defaults: Green/Red — Adjust to your theme.
Long/Short Bias Colors — Background tints — Defaults: Green/Red with high transparency — Lower transparency for stronger emphasis.
Show Corner Panel — Enable the info panel — Default: On — Centralizes status and numbers.
Show Hit Rates in Panel — Include success rates — Default: On — Turn off to reduce panel rows.
Panel Position — Anchor on chart — Default: Top right — Move to avoid overlap.
Panel Size — Text size in panel — Default: Small — Increase on high-resolution displays.
Dark Panel — Dark theme for the panel — Default: On — Match your chart background.
Show EMA Lines — Plot blue and red EMAs — Default: Off — Enable for SWDEMA context.
Show Midpoint Line — Plot the midpoint — Default: Off — Useful for Classic mode visualization.
Midpoint Lookback Period — Bars for high-low midpoint — Default: 300 — Larger values stabilize; smaller values respond faster.
Midpoint Line Color — Color for midpoint — Default: Gray — A neutral line works best.
SWDEMA Lengths (Blue/Red) — Periods for the two EMAs — Defaults: 144 and 312 — Longer values reduce flips.
Sources (Blue/Red) — Price sources — Defaults: Close and HLC3 — Adjust if you prefer consistency.
Offsets (Blue/Red) — Pixel offsets for EMA plots — Defaults: zero — Use only for visual shift.
Show Latched Regime Background — Background by SWDEMA regime — Default: Off — Separate from session bias.
Latched Background Transparency — Opacity of regime background — Default: eighty-eight — Lower value for stronger tint.
Show Latch Switch Markers — Plot regime change markers — Default: Off — For auditing regime changes.
Bias Mode — Classic midpoint or SWDEMA latch — Default: Classic — Choose per your style.
Background Mode — Session bias or SWDEMA regime — Default: Session — Decide which background narrative you want.
Reading & Interpretation
Panel: Shows the active bias, first-five high and low, and a state that reads Building during the window, Ready once frozen, and Break arrows when a breakout occurs. Hit rates show the percentage of days where each bias mode aligned with the midday move.
Colors and shapes: Green background implies long bias; red implies short bias. Triangle markers denote the first valid breakout after the first-five window. Optional regime markers flag regime changes.
Lines: First-five high and low form the core structure. Optional targets mark a level at two times the frozen range from the breakout side.
Practical Workflows & Combinations
Trend following: Choose a bias mode. Wait for the first clean breakout after the first-five window in the direction of the bias. Confirm with structure such as higher highs and higher lows or lower highs and lower lows.
Exits and risk: Conservative users can trail behind the opposite side of the first-five range. Aggressive users can scale near the two-times-range target.
Multi-asset and multi-TF: Works well on intraday timeframes from one minute upward. For non-US sessions, adjust the time inputs to the instrument’s regular trading hours.
Behavior, Constraints & Performance
Repaint and confirmation: Bias and regime decisions use confirmed bars. Breakout signals evaluate on bar close at the chart timeframe. On higher timeframes, minute-based sources update within the live bar until the minute closes.
security and HTF: The script samples one-minute data. Lookahead is off. Values stabilize once the source minute closes.
Resources: `max_bars_back` is five thousand. Drawing objects and the panel update efficiently, with position extensions handled on the last bar.
Known limits: Midday statistics use the configured time, not the official daily close. Session logic assumes New York session timing. Targets are simple multiples of the first-five range and do not adapt to volatility beyond that structure.
Sensible Defaults & Quick Tuning
Start with Classic bias, midpoint lookback at three hundred, and all visuals on.
Too many flips in context → switch to SWDEMA mode or increase EMA lengths.
Breakouts feel noisy → extend the first-five end by a minute or two, or wait for a retest by your own rules.
Too sluggish → reduce midpoint lookback or shorten EMA lengths.
Chart cluttered → hide EMA or midpoint lines and keep only range levels and breakout shapes.
What this indicator is—and isn’t
This is a visualization and signal layer for session bias and first-five structure. It does not manage orders, position sizing, or risk. It is not predictive. Use it alongside market structure, execution rules, and independent risk controls.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Many thanks to LonesomeTheBlue
for the original work. I adapted the midpoint calculation for this script. www.tradingview.com
First X Days Of A YearFirst X-Day Indicator
Overview
The "First X-Day Indicator" is a powerful tool to visualize and analyze market sentiment during the crucial first trading days of each new year. It provides immediate visual feedback on whether the year is starting with positive or negative momentum compared to the previous year's close, a concept often related to market theories like the "January Effect" or the "First Five Days Rule."
The indicator is designed to be clean, intuitive, and fully customizable to fit your charting style.
Key Features
Yearly Baseline: Automatically draws a horizontal line at the previous year's closing price. This line serves as a clear 0% reference for the current year's performance.
Dynamic Background Coloring: For a user-defined number of days at the start of the year, the chart background is colored daily. Green indicates the close is above the previous year's close, while red indicates it's below.
Final Performance Symbol: At the end of the analysis period (e.g., on the 5th day), a single summary symbol (like 👍 or 👎) appears. This symbol represents the final performance outcome of the initial trading period.
Settings & Customization
You have full control over all visual elements:
Analysis Period: Define exactly how many days at the start of the year you want to analyze (e.g., 3, 5, or 10 days).
Line Customization: Fully control the yearly baseline's appearance. You can change its color, width, and style (Solid, Dashed, or Dotted) or hide it completely.
Symbol Customization: Choose any character or emoji for the positive and negative performance symbols. You can also adjust their size (Small, Normal, Large) or hide them.
Background Control: Enable or disable the daily background coloring and select your preferred custom colors for positive and negative days.
Wall Street Bell 🔔This will ring a bell at market open (9:30 AM EST) and close (4:00 PM EST), automatically adjusted to the user's local time zone, only on valid trading days.
✅ Automatic timezone conversion - Works in any timezone
✅ Weekdays only - No alerts on weekends
✅ Visual markers - Shows 🔔 labels on chart when bells ring
✅ Status dashboard - Shows which bells are enabled (top-right corner)
✅ Customizable - Toggle bells on/off in settings
Note: This excludes weekends automatically, but TradingView doesn't have a built-in holiday calendar for NYSE. On market holidays, you may need to manually disable the alerts for that day,
You'll need to create two separate alerts - one for the opening bell and one for the closing bell.
golden smart entrySmart Money Concepts (SMC) is a trading methodology that focuses on understanding and following the behavior of institutional investors—often referred to as "smart money." The goal is to identify high-probability trade setups by analyzing how these large players move the market.
jjjjjjjjExplanation of the Script
Bullish and Bearish Candles: The function isBullishOrderBlock() checks if a candle is "bullish" in nature (based on body size to range ratio). Similarly, isBearishOrderBlock() checks for bearish candles.
Order Block Length and Threshold: length is the number of bars to scan for an order block, and threshold sets how strong a candle needs to be to be considered an order block.
Detection: The loop searches backward through the bars to find strong bullish and bearish order blocks, marking the price points where the strong moves happened.
Plotting: The plotshape() function is used to plot arrows or labels on the chart to mark where bullish or bearish order blocks are identified.
Improving and Customizing
Highlighting Blocks: Instead of just marking a point, you can plot horizontal boxes or shaded regions using box.new() to visually highlight the order block zone.
Use of Different Timeframes: You can modify the script to look for order blocks across multiple timeframes to increase accuracy.
Complex Rules: Depending on your strategy, you may want to add additional rules, such as looking for price to return to the order block area before confirming the strength of the block.
Indian Gold Festival Dates HistoricalIndian Gold Festival Dates (1975-2025)
Marks 8 major Indian festivals associated with gold buying over 50 years of historical data. Essential for analyzing seasonal patterns and cultural demand cycles in gold markets.
Festivals Included:
Dhanteras (Gold) - Most auspicious gold buying day
Diwali (Orange) - Festival of Lights
Akshaya Tritiya (Green) - "Never-ending" prosperity
Dussehra (Red) - Victory and success
Makar Sankranti (Cyan) - Solar new year
Gudi Padwa (Magenta) - Hindu New Year (Maharashtra)
Ugadi (Purple) - Hindu New Year (South India)
Navratri (Yellow) - 9-day festival
Features:
✓ 408 exact historical dates (1975-2025)
✓ Color-coded vertical lines for easy identification
✓ Toggle individual festivals on/off
✓ Adjustable line width and labels
✓ Works on all timeframes (best on daily/weekly)
Perfect for traders analyzing gold seasonality, Indian market sentiment, and cultural demand patterns. Use on XAUUSD, GC1!, or Indian gold futures.
Previous session High/Low – Asia London USA Overview
This indicator automatically plots the Previous Day’s (PD) session Highs and Lows for the Asia (Tokyo), London, and USA (New York) trading sessions.
Each session is color-coded for clarity:
🟩 Asia (Green)
🟥 London (Red)
🟦 USA (Blue)
At the close of each session, the indicator records that session’s high and low, draws horizontal lines across the chart, and labels them neatly in the center of each range — above the high and below the low for perfect visual balance.
⚙️ How It Works
The script continuously tracks the current high and low within each session.
When a session closes, those values are locked in as the PD High and PD Low.
Clean lines and centered labels are drawn immediately.
The labels automatically offset slightly above or below the line to avoid overlap, with user-controlled spacing.
This helps traders quickly identify where price interacts with the previous session’s structure, a core concept for many session-based and liquidity-based strategies.
🧭 Sessions and Timezones
Each market session runs in its native timezone, so you can align them perfectly to your chart or your preferred trading hours:
Asia Session: Default 08:30 – 11:00 (Australia/Adelaide time)
London Session: Default 08:00 – 10:00 (Europe/London)
USA Session: Default 09:30 – 16:00 (America/New_York)
You can change each session’s hours and timezone from the Inputs panel.
🎨 Customization
In the Inputs menu you can:
Toggle each session on or off
Choose line color and thickness
Enable or disable labels
Adjust vertical offset (ticks) for label spacing
“High label offset” – moves label further above the high line
“Low label offset” – moves label further below the low line
These adjustments make it easy to keep charts clean and readable on any instrument or timeframe.
📈 Practical Use
This indicator is ideal for:
Session traders who mark PD Highs/Lows as liquidity zones
London or NY session scalpers who watch for breakouts, fakeouts, or reversals
ICT / Smart Money Concepts users wanting automatic session reference levels
Anyone wanting a quick visual map of inter-session structure
mean reversion Spread Z-Score Your main "actor" is the Blue Line 🔵 (the Z-Score). It tells you if your spread is "expensive" or "cheap" compared to its average.
The other lines are your action zones.
Here is how to read the signals:
Scenario 1: SELL the Spread (The spread is TOO EXPENSIVE)
• ENTRY Signal: The Blue Line 🔵 moves up and crosses the Red Line 🔴 (at +1.8).
• Meaning: MNQ has become far too expensive compared to MES. The rubber band is stretched too far upwards.
• Your Action (Sell):
• ✅ SELL MNQ
• ✅ BUY MES
• EXIT Signal: The Blue Line 🔵 comes back down and crosses the Dotted Red Line (at +0.5).
• Meaning: The rubber band is back to normal. It's time to take your profits.
• Your Action (Close):
• ✅ BUY BACK your MNQ
• ✅ SELL your MES
Scenario 2: BUY the Spread (The spread is TOO CHEAP)
• ENTRY Signal: The Blue Line 🔵 moves down and crosses the Green Line 🟢 (at -1.8).
• Meaning: MNQ has become far too cheap compared to MES. The rubber band is stretched too far downwards.
• Your Action (Buy):
• ✅ BUY MNQ
• ✅ SELL MES
• EXIT Signal: The Blue Line 🔵 moves back up and crosses the Dotted Green Line (at -0.5).
• Meaning: The rubber band is back to normal. It's time to take your profits.
• Your Action (Close):
• ✅ SELL your MNQ
• ✅ BUY BACK your MES
In summary:
• Blue Line 🔵 touches Red Line 🔴 = Sell the spread.
• Blue Line 🔵 touches Green Line 🟢 = Buy the spread.
EMA(9) / SMMA(14) Crossover Alert with time blocksThis Pine Script v6 code is a Moving Average Crossover Alert Indicator that generates trading signals and alerts only within a specified time window. It uses a faster Exponential Moving Average (EMA) and a slower Smoothed Moving Average (SMMA) to identify potential shifts in market momentum.
Key Features and Logic
1. Moving Average Calculations
The indicator plots two moving averages (MAs) on the chart:
Fast MA (EMA 9): An Exponential Moving Average (EMA) with a default length of 9 periods. The EMA reacts more quickly to price changes.
Slow MA (SMMA 14): A Smoothed Moving Average (SMMA) with a default length of 14 periods. The SMMA (calculated using ta.rma in Pine v6) smooths price data more than a standard Simple Moving Average.
The user can customize both the EMA Length and SMMA Length via the indicator settings.
2. Time Window Restriction ⏰
The script incorporates a critical time filter to restrict all signals and alerts to a specific daily trading session.
Time Session: The alerts are restricted to the time between 6:30 AM CST and 2:30 PM CST.
Implementation: This is achieved by converting the Central Time (CST) range to 7:30-15:30 (EST) and applying the time() function with the "GMT-5" timezone (which covers EST/EDT). The boolean variable time_in_range is only true when the current bar falls within this time window.
3. Crossover Signals
The code defines two primary crossover events, which represent the trading signals:
Bullish Cross (Cross Up): The EMA 9 (blue line) crosses above the SMMA 14 (red line), indicating bullish momentum.
Bearish Cross (Cross Down): The EMA 9 (blue line) crosses below the SMMA 14 (red line), indicating bearish momentum.
4. Visuals and Alerts
Plots: Both the EMA 9 (blue) and SMMA 14 (red) lines are plotted directly on the price chart (overlay=true).
Visual Highlights: Small plotshapes are drawn on the chart only when a crossover occurs and the time is within the specified time_in_range window:
Green Triangle Up: for a Bullish Cross.
Red Triangle Down: for a Bearish Cross.
Alerts: Two separate alertcondition calls are configured to trigger external notifications. Crucially, the alerts will only fire if both the crossover condition AND the time_in_range condition are met. The alerts include dynamic placeholders for the ticker, interval, and closing price.
Alerts Killzones + PD/WL/ML Levels (No Labels)This indicator automatically highlights the London and New York killzones and triggers alerts at key price levels — without adding any labels or text clutter to the chart.
Features:
Highlights London (10:00–13:00) and New York (15:00–17:00) sessions (GMT+3, Romania).
Draws and updates key levels automatically:
PDH / PDL – Previous Day High & Low
WH / WL – Previous Week High & Low
MH / ML – Previous Month High & Low
Alerts when price touches any of these levels.
Alerts at session opens and closes for both London and New York.
Clean interface – no labels or extra markers on chart.
Ideal for:
Traders who follow ICT concepts, session-based setups, or liquidity sweeps and want precise alerts without chart noise.
IPDA Ranges – Pro
### IPDA Ranges – Pro
**Overview**
The **IPDA Ranges – Pro** indicator brings the core concepts of the Interbank Price Delivery Algorithm (IPDA) from ICT (Inner Circle Trader) mentorship to life on TradingView. Inspired by ICT's foundational video on (www.youtube.com), this tool visualizes multi-period price ranges (20, 40, or 60 days) to decode institutional order flow, identify discount/premium zones, and highlight algorithmic price delivery points.
IPDA, as explained by ICT, is the "source code" behind market structure—grading ranges into quadrants to reveal high-probability support/resistance, fair value gaps, and liquidity draws. By anchoring on daily highs/lows, it filters noise, anticipates retracements, and aligns price action with time-based delivery (e.g., during key sessions like 10 AM–2 PM ET). This indicator automates the process, making it easier to spot "permissible" moves without manual charting.
**Key Features**
- **Dynamic Ranges**: Plots customizable IPDA periods (IPDA20, IPDA40, IPDA60) based on daily highest highs and lowest lows. Equilibrium (50% midpoint) acts as the core reference for mean reversion.
- **Quadrant Breakdown**: Divides each range into 25% steps—lower quadrant (deep discount), 25%/75% lines (consequent encroachment edges), and upper quadrant (premium). Optional subquadrants (12.5% steps) for finer granularity.
- **Visual Modes**:
- **Boxes**: Shade discount (below equilibrium) and premium (above) areas for intuitive zoning.
- **Lines**: Clean horizontal lines for highs, lows, equilibrium, and quadrants—ideal for lower timeframes.
- **Mid-Zone Highlight**: Optional shading of the 25%–75% "fair value" zone (customizable color/opacity) to flag balanced delivery areas where bodies often respect levels.
- **Info Table**: Choose from:
- **Table A**: Labels current price location as "Discount" or "Premium" per range (green for mid-zone).
- **Table B**: Shows distance from equilibrium in % (e.g., "52.3%") for precise positioning.
- **Customization**:
- Toggle labels (high/low, quadrants, prices), line styles (solid/dotted/dashed), extensions, and table position.
- Colors for discount/premium, equilibrium, and zones.
- Alerts for mid-zone entry/exit to catch order flow shifts.
- **Performance**: Runs efficiently on any timeframe/symbol, pulling daily data via `request.security` for accuracy.
**How It Works**
1. **Range Calculation**: For each selected period (e.g., IPDA20), it fetches the highest high and lowest low over the past N daily bars. Equilibrium = (High + Low) / 2.
2. **Zoning**:
- **Discount**: Below equilibrium (institutional buying opportunity).
- **Premium**: Above equilibrium (potential selling pressure).
- **Quadrants**: 25% (q1) and 75% (q3) lines mark edges of the "mid-zone," where price often consolidates or traps retail before directional runs.
3. **Plotting**: On the last bar, draws boxes/lines from the range start to current bar. Labels show levels (e.g., "IPDA20 High @ 1.2345").
4. **Usage Example**: On EURUSD daily, enable IPDA20. If price pierces a premium wick's low into the lower quadrant during a bullish shift (per ICT), expect a run to liquidity—use the table's % reading to gauge strength (e.g., <25% = deep discount buy). Transpose to 5-min for entries aligning with FVGs or order blocks.
**Trading Tips**
- **Higher Timeframe Bias**: Use on daily/4H for structure; drop to 1H/15M for entries. Focus on bodies (not wicks) respecting quadrants—wicks signal traps.
- **ICT Alignment**: Pair with PD Arrays (premium/discount wicks) or Market Maker models. In trends, extend to IPDA40/60; ignore extremes unless full reversals occur.
- **Risk Management**: Target liquidity pools at equal highs/lows. Avoid overleveraging—IPDA shines in 7–10 AM ET for optimal delivery. Backtest random 20-day periods to validate.
- **Best For**: Forex, indices (e.g., NAS100), commodities (e.g., Gold). Test on demo first.
Special Thanks to toodegrees for sharing the original base script.
More features to be added.
**Disclaimer**
This indicator is for educational purposes only and does not constitute financial advice. Past performance isn't indicative of future results. Trading involves substantial risk—use at your own discretion. Hypothetical results may not reflect real-market factors like slippage or liquidity. Always consult a licensed advisor.
**Author**: © MadMonkTrading (Mozilla Public License 2.0)
**Version**: Pine Script v5 | Questions? Drop a comment below!
Traffic Light MA — Trend IndicatorThis script displays a simple “traffic light” circle that reflects the market trend based on two moving averages (MA).
-Green: Price > Fast MA > Slow MA → Uptrend confirmation
-Yellow: Mixed conditions (transition zone)
-Red: Slow MA > Fast MA > Price → Downtrend confirmation
You can customize:
-MA type (SMA or EMA)
-Lengths of both MAs
-Timeframe used for evaluation (e.g. Daily, 4H, Weekly)
This tool is designed for traders who prefer a minimalistic chart, showing only a clean color signal instead of multiple lines.
Recommendation:
For small MAs (8,15,21) use EMA, for big MAs (50,100,200) use SMA
London Open High/Low 9:00-9:15indicator marks out high and low of the first 15 minutes of the London session.
6am Candle High/Low Indicator with Highlight6am Candle High/Low Indicator with Highlight
6am Candle High/Low Indicator with Highlight
6am Candle High/Low Indicator with Highlight
6am Candle High/Low Indicator with Highlight 6am Candle High/Low Indicator with Highlight
Economic Cycle Signal (Pakistan)📊 Economic Cycle Signal (Pakistan)
This indicator overlays both the Pakistan Policy Rate (PKINTR) and the Pakistan Inflation Rate YoY (PKIRYY) directly onto your KSE or Pakistan market chart. It visually connects monetary policy and inflation dynamics with market performance, helping traders and analysts understand how shifts in economic conditions impact risk assets in Pakistan.
🔹 Key Features
• Plots the monthly Pakistan Policy Rate alongside your chart.
• Overlays the Pakistan Inflation Rate YoY to track how price pressures evolve before policy rate adjustments.
• Shades the background to reflect different economic cycle phases (recovery, recession, expansion, late cycle).
• Highlights how equities and other risk assets react during shifting monetary and inflationary conditions.
• Provides a clear traffic-light style signal for quick macro interpretation.
• Now includes dynamic inflation color logic based on the State Bank of Pakistan’s (SBP) 5–7% target range and thresholds for overheating or cooling inflation.
🔹 Inflation Line Color Logic (New)
The inflation line color dynamically reflects whether inflation is within or outside SBP’s target range, and whether it’s rising or falling:
Inflation Condition Interpretation Line Color
Inflation > 7% and Rising Inflation overheating (well above SBP target) 🔴 Red
Inflation > 7% and Falling Cooling off from high levels 💚 Lime
Inflation < 5% and Falling Disinflation / stable price environment 🟢 Green
Inflation < 5% and Rising Early inflation rebound 🟡 Yellow
This adaptive color logic mirrors the interest rate cycle signals, helping traders instantly interpret Pakistan’s inflation trajectory and anticipate potential monetary policy turning points.
🔹 How Traders & Analysts Can Use It
• Visualize Pakistan’s monetary policy cycles and inflation trends in real time.
• Identify supportive phases when rate cuts or low policy rates follow controlled inflation.
• Detect tightening cycles when inflation spikes and the SBP reacts with rate hikes, often creating headwinds for equities.
• Use as a macro compass to anticipate inflation pressure, potential policy actions, and shifts in market risk appetite.
• Combine with technical analysis, fundamentals, or macro indicators for deeper insights into Pakistan’s economic conditions.
🔹 Color Legend (Economic Phases)
🟩 Light Green → Recovery (Early Cycle)
• Rates: low or falling
• Inflation: low/stable
🟩 Green → Recession (Down Cycle)
• Rates: cut aggressively
• Inflation: falling
🟨 Yellow → Expansion (Mid Cycle)
• Rates: rising gradually
• Inflation: moderate
🟥 Red → Overheating (Late Cycle)
• Rates: high / rising fast
• Inflation: high
🔹 Inflation Context
• SBP’s medium-term inflation target range is 5–7%, aimed at balancing growth and price stability.
• The script applies the same visual logic used in the U.S. version, now calibrated to Pakistan’s macro environment.
• The Pakistan Inflation Rate YoY (PKIRYY) line color shifts dynamically — clearly showing when inflation is rising above target, cooling, or stabilizing.
• This dual-overlay helps interpret both the cause (inflation) and effect (policy response) within Pakistan’s economic cycle, giving investors a clear macro perspective.
⚠️ Disclaimer
This script is for educational and informational purposes only. It does not provide financial advice or trading signals. Always combine it with your own research, proper risk management, and professional judgment.
Earnings Day - Price Predictor [DunesIsland]It's designed to analyze and visualize historical stock price movements on earnings report days, focusing on percentage changes.
Here's a breakdown of what it does, step by step:
Key Inputs and Setup
User Input: There's a single input for "Lookback Years" (default: 10), which determines how far back in time (approximately) the indicator analyzes earnings data. It uses a rough calculation of milliseconds in that period to filter historical data.
Data Fetching: It uses TradingView's request.earnings function to pull actual earnings per share (EPS) data for the current ticker. Earnings days are identified where EPS data exists on a bar but not on the previous one (to avoid duplicates).
Price Change Calculation: For each detected earnings day, it computes the percentage price movement as (close - close ) / close * 100, representing the change from the previous close to the current close on that day.
Processing and Calculations (on the Last Bar)
Lookback Filter: It calculates a cutoff timestamp for the lookback period and processes only earnings events within that window.
Overall Averages:
Separates positive (≥0%) and negative (<0%) percentage changes.
Seasonality (Next Quarter Prediction):
Identifies the most recent earnings quarter (latest_q).
Predicts the "next" quarter (e.g., if latest is Q4, next is Q1;
Again, separates positive and negative changes, computing their respective averages.
Visual Outputs
Lookback: How far to fetch the data in years.
Average Change (Green): Showing the average of all positive changes.
Average Change (Red): Showing the average of all negative changes.
Seasonality Change (Green): Showing the average of positive changes for the predicted next quarter.
Seasonality Change (Red): Showing the average of negative changes for the predicted next quarter.
Purpose and Usage
This indicator helps traders assess a stock's historical reaction to earnings announcements. The overall averages give a broad sense of typical gains/losses, while the seasonality focuses on quarter-specific trends to "predict" potential movement for the upcoming earnings (based on past same-quarter performance). It's best used on daily charts for stocks with reliable earnings data. Note that quarter inference is calendar-based and may not perfectly match fiscal calendars for all companies—it's an approximation.
RSI Colored by Relative StrengthThis indicator enhances the traditional RSI by combining it with Relative Strength (RS) — the ratio of an asset’s price to a chosen benchmark (e.g., SPY, QQQ, BTCUSD) — to create a more accurate, powerful, and dynamic momentum confirmation tool.
Instead of relying solely on RSI’s internal momentum, this version color-codes RSI values and backgrounds based on whether the asset is outperforming, underperforming, or neutral relative to the benchmark, not only identifying the RSI value, but color codes it in relation to the overall market to give more accurate confirmations.
• RS > 1 → The asset is outperforming the benchmark (relative strength).
• RS < 1 → The asset is underperforming.
• RS ≈ 1 → Neutral or moving in sync with the benchmark.
Gradient background zones:
• Green tones = outperformance (RS > 1).
• Red tones = underperformance (RS < 1).
• Gray neutral band = parity (RS ≈ 1).
Intensity adjusts dynamically based on how far RS deviates from 1, giving an at-a-glance view of market leadership strength.
• Color-coded RSI line: Green when RS > 1, red when RS < 1.
• Optional markers and labels show confirmed RS+RSI crossovers with smart spacing to prevent clutter.
• Alerts included for bullish and bearish RS+RSI alignment events.
How to Use
1. Add your preferred benchmark symbol (default: SPY).
2. Move this indicator into the same pane as your RSI (No need to overlay, does so automatically) and can also be used standalone.
3. Watch for:
• Green RSI & background: Significant momentum strength (asset trending upward and outpacing the market).
• Red RSI & background: False or insignificant momentum (asset lagging).
• Gray zone: neutral phase — consolidation or rotation period.
Use this as a trend-confirmation filter rather than a signal generator.
For example:
• Confirm and refine breakout entries when RS > 1 (RSI support = stronger conviction).
• Take profits when RSI weakens and RS slips below 1.
Multi-Timeframe Trend TableMulti-Timeframe trending table measures 1H, 4H, 1D, 1W and 1Y price trending in one single view
IPDA Ranges – ProIPDA Ranges – Pro
This indicator plots Institutional Price Delivery Algorithm (IPDA) ranges based on lookback periods of 20, 40, and 60 days, as taught by ICT (Inner Circle Trader). It visualizes premium and discount zones, equilibrium levels, quadrants, and sub-quadrants to help traders identify key price areas and potential market biases.
Key Features:
- Displays IPDA ranges as boxes or lines, with customizable colors for discount, equilibrium, and premium zones.
- Optionally shades the 25%-75% mid-zone for each range.
- Supports quadrants (25% steps) and sub-quadrants with lines and labels for detailed price segmentation.
- Includes a table displaying either discount/premium status or percentage from equilibrium for each range.
- Configurable alerts for entry/exit into the mid-zone.
- Visual options include line styles, label sizes, price display on labels, and buffers for zone extension.
Settings Overview:
- IPDA Intervals: Enable/disable IPDA20, IPDA40, IPDA60; toggle quadrants, sub-quadrants, mid-zone shading, and drawing with lines vs. boxes.
- Colors and Styles: Customize colors for zones, lines, labels; select solid/dotted/dashed styles for borders and lines.
- Appearance: Adjust label and table sizes, table position, and background opacity.
- Labels: Show/hide per-range labels and include prices.
- Alerts: Enable mid-zone entry/exit alerts.
Usage:
Add the indicator to your chart and select the desired IPDA intervals. The ranges update dynamically based on daily highs and lows. Use the table for quick reference to current positioning (discount/premium or percentage). The mid-zone shading helps identify consolidation areas, while quadrants and sub-quadrants assist in pinpointing potential support/resistance levels.
© MadMonkTrading
GANN Friday RulesFriday Rules Indicator Description
Purpose:
The Friday Rules indicator identifies and marks specific Friday candlestick patterns based on
weekly price action and candle body-to-wick relationships.
How it Works:
The indicator tracks the weekly high and low from Monday to Friday, then analyzes Friday's
candle to determine its significance and body/wick characteristics.
Signal Types:
🟢 Green F ▲ - Strong Bullish Friday
- Friday makes the weekly high
- Body closes within 1% of the high (minimal upper wick)
- Indicates strong buying pressure with little rejection
🟡 Yellow F ▲ - Weak Bullish Friday
- Friday makes the weekly high
- Body does NOT close near the high (significant upper wick)
- Shows buying interest but with selling pressure/rejection at highs
🔴 Red F ▼ - Strong Bearish Friday
- Friday makes the weekly low
- Body closes within 1% of the low (minimal lower wick)
- Indicates strong selling pressure with little support
🟠 Orange F ▼ - Weak Bearish Friday
- Friday makes the weekly low
- Body does NOT close near the low (significant lower wick)
- Shows selling pressure but with buying support at lows
⚪ White F - Neutral Friday
- Friday does not make weekly high or low
- Regular Friday with no extreme weekly price action
Key Features:
- Resets weekly tracking every Monday
- All signals positioned above the candle for clean visibility
- Arrow direction indicates bullish (▲) vs bearish (▼) bias
- Color coding shows strength: Green/Red = strong, Yellow/Orange = weak, White = neutral
Usage:
Use this indicator to identify significant Friday price action that may influence next week's
trading, weekend sentiment, and weekly closing patterns.
Ikas Forex SM ConceptsIkas Forex SM Concepts (SMC) – All-in-One Indicator
This indicator automatically analyzes market structure, liquidity zones, and institutional trading areas, allowing you to interpret price movements using the “Smart Money Concepts” approach.
It directly plots the most important concepts such as real-time BOS (Break of Structure), CHoCH (Change of Character), Order Block, Fair Value Gap (FVG), Equal High/Low, and Premium/Discount zones onto the chart.
⚙️ Features
Intra & Swing Market Structure: Shows micro and macro breaks (BOS/CHoCH) in price movement in real time.
Order Blocks: Marks potential areas where institutional participants open positions (bull/bear blocks).
Fair Value Gaps: Automatically detects price imbalances, identifies potential entry/exit zones.
Equal Highs & Lows (EQH/EQL): Highlights double top/bottom formations, visualizes potential liquidity traps.
Premium & Discount Zones: Shows whether the price is in an overvalued (premium) or undervalued (discount) zone.
MTF High/Low Levels: Automatically plots daily, weekly, and monthly high-low levels.
Style and Filtering: Offers flexible options such as color or monochrome views, BOS filtering, and FVG threshold settings.
📊 How to Use?
Trend Direction: CHoCH and BOS labels help identify trend reversals and continuations.
Liquidity Zones: Order blocks and equal high/low levels clarify institutional liquidity zones.
Entry/Exit Planning: When combined with FVG and Premium/Discount zones, high-probability trade points can be identified.
Chart Cleanliness: Since all these components are drawn automatically, the manual analysis burden is reduced.
💡 Why is it important?
Smart Money Concepts (SMC) is an approach popularized by ICT that analyzes price movement not only with formations but also with liquidity and market structure dynamics.
This indicator combines these concepts into a single tool, providing a visual, simple, and functional analysis environment.






















