Midnight Opening RangeScript to find the Midnight Opening Range.
This script is to find the Fibonacci levels authored by ICT himself in the 2025 Mentorship. If the Fib levels and prices are inside the line you will need to increase the offset to your liking.
Make sure you check on that before saying is not working
指標和策略
ADX Coloreado por AO + DI DifferenceKey ComponentsADX line: Measures overall trend strength (non-directional).
+DI line: Strength of upward movement.
-DI line: Strength of downward movement.
Trend direction is determined by which DI line is dominant:+DI > -DI: Bullish trend (upward pressure).
-DI > +DI: Bearish trend (downward pressure).
Crossovers between +DI and -DI can signal potential trend changes, but they are most reliable when ADX confirms sufficient strength.ADX Trend Strength Levels (Common Interpretations)ADX Value
Trend Strength
Recommendation
0–20
Weak or no trend (ranging/sideways market)
Avoid trend-following strategies; consider range-bound or oscillator-based trades.
20–25
Emerging or moderate trend (gray zone)
Monitor for confirmation; potential start of trend.
25–50
Strong trend
Ideal for trend-following strategies (e.g., moving averages, breakouts).
50–75
Very strong trend
High momentum; good for riding trends, but watch for exhaustion.
75–100
Extremely strong trend (rare)
Often overextended; risk of reversal or correction.
Rising ADX: Trend is strengthening.
Falling ADX: Trend is weakening (even if still high).
Volume DI Diff + ADX Coloreado por AOInterpretationIf +DI > -DI (positive DI+ - DI- difference) → Upward trend pressure (bullish signal).
If -DI > +DI (negative DI+ - DI- difference) → Downward trend pressure (bearish signal).
Crossovers between +DI and -DI generate buy/sell signals, often filtered by ADX for reliability.
This setup is widely used in technical analysis to identify trending markets and avoid whipsaws in ranging conditions. It's part of the broader Average Directional Movement System (ADX/DMI).
Key ComponentsADX line: Measures overall trend strength (non-directional).
+DI line: Strength of upward movement.
-DI line: Strength of downward movement.
Trend direction is determined by which DI line is dominant:+DI > -DI: Bullish trend (upward pressure).
-DI > +DI: Bearish trend (downward pressure).
Crossovers between +DI and -DI can signal potential trend changes, but they are most reliable when ADX confirms sufficient strength.ADX Trend Strength Levels (Common Interpretations)ADX Value
Trend Strength
Recommendation
0–20
Weak or no trend (ranging/sideways market)
Avoid trend-following strategies; consider range-bound or oscillator-based trades.
20–25
Emerging or moderate trend (gray zone)
Monitor for confirmation; potential start of trend.
25–50
Strong trend
Ideal for trend-following strategies (e.g., moving averages, breakouts).
50–75
Very strong trend
High momentum; good for riding trends, but watch for exhaustion.
75–100
Extremely strong trend (rare)
Often overextended; risk of reversal or correction.
Rising ADX: Trend is strengthening.
Falling ADX: Trend is weakening (even if still high).
NY & Sydney Open firts candle 10m (v6)We will analyze the initial intention of the opening. The first Japanese candlestick after the opening in New York or Sydney will show us the initial intention of the price movement.
BTC ETF Average Inflow Cost BasisConcept
Since the historic launch of Bitcoin Spot ETFs on January 11, 2024, institutional flows have become a major driver of price action. This indicator aims to visualize the aggregate Cost Basis (average entry price) of the major Bitcoin ETFs relative to the underlying asset.
It serves as an on-chain proxy for institutional positioning, helping traders identify critical support levels where ETF inflows have historically concentrated.
How it Works
The script aggregates daily volume data from the top Bitcoin ETFs (IBIT, FBTC, ARKB, GBTC, BITB) and compares it against the Bitcoin price (BTCUSDT).
ETF Cost Basis (Pink Line):
This is calculated as a Cumulative Volume-Weighted Average Price (VWAP), anchored specifically to the ETF launch date (Jan 11, 2024).
Formula: It accumulates (BTC Price * Total ETF Volume) and divides it by the Cumulative Total ETF Volume.
This creates a dynamic level representing the "breakeven" price for the aggregate volume traded through these funds.
True Market Mean (Gray Line):
This represents the simple cumulative average of the Bitcoin price since the ETF launch date. It acts as a neutral baseline for the post-ETF market era.
How to Use
Institutional Support: The Cost Basis line often acts as a strong dynamic support level during corrections. When price revisits this level, it suggests the market is returning to the average institutional entry price.
Trend Filter:
Price > Cost Basis: The market is in a net profit state relative to ETF flows (Bullish/Trend continuation).
Price < Cost Basis: The market is in a net loss state (Bearish/Capitulation risk).
Confluence: The intersection of the Cost Basis and the True Market Mean can signal pivotal moments of trend reset.
Features
Data Aggregation: Pulls data from 5 major ETFs via request.security without repainting (using closed bars).
Dashboard: Includes a table in the top-right corner displaying real-time values for Price, Cost Basis, and Market Mean.
Customization: You can toggle individual ETF Moving Averages in the settings (disabled by default due to price scale differences between BTC and ETF shares).
Disclaimer
This tool is for educational purposes only and attempts to estimate institutional cost basis using volume proxies. It does not represent financial advice.
Tradegrill: Dollar Value TradedTraditional volume shows the number of shares/contracts traded, but it doesn't account for price differences. A $100 stock trading 1 million shares represents far more capital commitment than a $10 stock trading the same amount.
Nifty Hierarchical Macro GuardOverview
The Nifty Hierarchical Macro Guard is a "Market Compass" indicator specifically designed for Indian equity traders. It locks its logic to the Nifty 50 Index (NSE:NIFTY) and applies a strict hierarchy of trend analysis. The goal is simple: prioritize the long-term trend (Monthly/Weekly) to decide if you should even be in the market, then use the short-term trend (Daily) for precise exit timing.
This script ensures you never ignore a macro "crash" signal while trying to trade minor daily fluctuations.
The Color Hierarchy (Priority Logic)
The indicator uses a "Top-Down" filter. Higher timeframe signals override lower timeframe signals:
Level 1: Monthly (Ultra-Macro) — Deep Maroon
Condition: Nifty 10 EMA is below the 20 EMA on the Monthly chart.
Action: This is the highest priority. The background will turn Deep Maroon, overriding all other colors. This is your "Forget Trading" signal. The long-term structural trend is broken.
Level 2: Weekly (Macro Warning) — Dark Red
Condition: Monthly is Bullish, but Nifty 10 EMA is below the 20 EMA on the Weekly chart.
Action: The background turns Dark Red. This indicates a significant macro correction. You should stay out of fresh positions and protect capital.
Level 3: Daily (Tactical) — Light Red / Light Green
Condition: Both Monthly and Weekly are Bullish (Green).
Action: The background will now react to the Daily 10/20 EMA cross.
Light Green: Nifty is healthy; safe for fresh positions.
Light Red: Tactical exit signal. Nifty is seeing short-term weakness; exit positions quickly.
Key Features
Symbol Locked: No matter what stock you are viewing (Reliance, HDFC, Midcaps), the background only reacts to NSE:NIFTY.
Clean Interface: No messy lines or labels on the price chart. The information is conveyed purely through background color shifts.
Customizable: Change the MA types (EMA/SMA) and lengths (e.g., 10/20 or 20/50) in the settings.
Macro Dashboard: A small, transparent table in the top-right corner displays exactly which timeframe is currently controlling the background color.
How to Use for Nifty Strategy
Stay Out: If the chart is Deep Maroon or Dark Red, do not look for "buying the dip." Wait for the macro health to return.
Take Exits: If the background is Light Green and suddenly turns Light Red, it means the Daily Daily 10/20 cross has happened. Exit your Nifty-sensitive positions immediately.
NY & Sydney Open firts candle 10m (v6)We will analyze the initial intention of the opening. The first Japanese candlestick after the opening in New York or Sydney will show us the initial intention of the price movement.
MNQ Optimal Entry Detector Use 2 minute time frame, no range entry signals as they are lower probability, use discretion and understand bias. This is still in testing so do not use it as financial advice.
Momentum Signal StripesInspired by Kodi Kai Trades (Formerly known as "K2 Trades") www.youtube.com
Pine script generated by Gemini (thanks!)
ES & NQ Supreme LvlsES & NQ Session Structure (Asia · London · Previous RTH)
This indicator highlights key session-based market structure levels for ES and NQ, presented in a clean and minimal format designed for active traders. It focuses on the most relevant price levels formed during major trading sessions, without extending lines unnecessarily or cluttering the chart.
Included levels:
Asia session High and Low (18:00–02:00 New York time)
London session High and Low (02:00–05:00 New York time)
Previous day Regular Trading Hours (RTH) Open, High, Low, and Close (09:30–16:00 New York time)
Design and functionality:
Levels are drawn as short horizontal segments, reflecting the actual session range
Subtle text identifiers (AS.H, LO.L, RTH.H, etc.) for quick recognition
Thin, unobtrusive lines for a professional chart appearance
ES and NQ levels are handled independently and only display on their respective charts
Customizable colors and text size
This indicator is intended for traders who rely on session structure, liquidity reference points, and prior-day context to frame intraday bias and execution, rather than generic or overextended levels.
DM ion1eon on discord to request a feature or report a bug
Dual MA with Cloud (EMA/SMA customizable)Pretty simple.
This indicator enables you to select two moving averages, specifying the period and type (SMA or EMA) for each one individually. It plots them on the chart with an option for a "bullish" and "bearish" cloud colouring.
ZAR Sentiment IndexOverview
The ZAR Sentiment Index (ZSI) is a composite macro-financial indicator designed to measure the prevailing risk and carry regime for the South African Rand (ZAR).
The South African Rand is a high-beta emerging market currency that is heavily influenced by:
Global risk sentiment
US dollar strength
Commodity dynamics
Interest-rate differentials
Sovereign risk perceptions
Rather than focusing on price momentum or technical patterns, the ZSI aggregates key macro drivers into a single normalised index, allowing traders and analysts to identify whether the environment is supportive, neutral, or hostile for ZAR exposure.
The indicator is intended as a regime filter, not a trade-entry signal.
Methodology
The ZSI combines six macro- and market-based components that have historically explained a large share of USDZAR and ZAR carry performance.
Each component is standardised using a rolling z-score, allowing variables with different units and frequencies to be combined consistently.
All macroeconomic series are sourced on a daily timeframe and forward-filled, ensuring the indicator functions correctly on daily, weekly, and monthly charts.
Components
1. US Dollar Strength (DXY)
A stronger US dollar is typically negative for emerging market currencies, including ZAR.
Contribution: Negative
Implementation: Negative z-score of DXY
2. Global Risk Sentiment (VIX)
The VIX index is used as a proxy for global risk aversion.
Rising volatility signals risk-off conditions and carry trade vulnerability
Contribution: Negative
Implementation: Negative z-score of VIX
3. Commodity Support (Gold)
South Africa retains a meaningful commodity linkage, particularly to gold.
Stronger gold prices tend to support ZAR through terms-of-trade effects
Contribution: Positive
Implementation: Positive z-score of XAUUSD
Implementation: Positive z-score of XAUUSD
4. Interest Rate Differential (SA 10Y – US 10Y)
The yield spread between South African and US government bonds proxies the compensation investors demand to hold South African assets.
Wider spreads are generally supportive for ZAR
Contribution: Positive
Implementation: Z-score of the SA 10-year minus US 10-year yield spread
5. Sovereign Risk Proxy (Government Debt-to-GDP)
Where sovereign CDS data is unavailable, South Africa Government Debt-to-GDP is used as a structural proxy for sovereign risk.
Rising debt ratios reflect deteriorating fiscal sustainability
Contribution: Negative
Implementation: Negative z-score of Debt-to-GDP
6. Monetary Policy Differential (SARB – Fed)
The carry attractiveness of ZAR is influenced by the policy rate differential between South Africa and the United States.
The South African interbank rate is used as a proxy for the SARB policy stance
The US policy rate is used as the Federal Reserve proxy
Contribution: Positive
Implementation: Z-score of the SARB–Fed rate gap
Index Construction
Each standardized component is weighted (equal weights by default) and aggregated into a single composite score:
Positive values indicate a supportive macro environment for ZAR
Negative values indicate deteriorating conditions
An optional exponential moving average is applied to reduce noise.
Regime Interpretation
Above 0 - Supportive - Macro tailwinds for ZAR; carry conditions favourable
0 to –0.5 - Neutral / Cautious - Range-bound conditions; reduced conviction
–0.5 to –1.0 - Warning - Rising risk; carry trades vulnerable
Below –1.0 - Stress - Elevated probability of sharp USDZAR upside moves
Background shading is used to visually highlight warning and stress regimes.
Practical Applications
USDZAR Analysis
Supportive regimes tend to align with sustained USDZAR downside trends
Warning and stress regimes often precede volatility spikes and sharp reversals
Carry Trade Risk Management
The index helps identify when ZAR carry trades are structurally supported versus vulnerable
Particularly useful for filtering exposure in ZARJPY and EM FX baskets
Macro Context
The ZSI provides macro confirmation or divergence relative to price action
It is most effective when combined with key technical levels and event risk
Timeframe Considerations
The indicator is designed to function across all chart timeframes
Macroeconomic inputs are sourced daily and forward-filled
Daily and weekly charts are recommended for regime analysis
Important Notes
This indicator is not predictive and does not generate trade signals
It measures prevailing macro conditions rather than forecasting price direction
ZAR can remain resilient in mildly negative regimes and volatile in neutral regimes
The strongest signals occur when extreme ZSI readings align with major macro events or key price levels.
Summary
The ZAR Sentiment Index (ZSI) provides a disciplined, transparent framework for understanding the macro forces driving the South African Rand.
By integrating global risk, US dollar dynamics, commodities, interest rate differentials, and sovereign risk into a single normalized measure, the indicator helps traders distinguish between supportive environments, neutral conditions, and genuine risk-off regimes.
ADP Heiken Ashi with WaveTrend Confirmation [Wonra]🔥 ADP Heiken Ashi with WaveTrend Confirmation 🔥
A powerful trend-following indicator that combines Heiken Ashi candles with Accumulation/Distribution Pressure (ADP) and WaveTrend (WT) for high-probability trade signals.
═══════════════════════════════════════════════════
📊 FEATURES
═══════════════════════════════════════════════════
✅ Heiken Ashi Candles - Colored based on ADP zone
✅ ADP (Accumulation/Distribution Pressure) - Identifies smart money activity
✅ JMA Signal Line - Smoothed ADP for cross detection
✅ WaveTrend Confirmation - Dual confirmation system
✅ Dynamic Labels - LONG/SHORT signals with ATR-based offset
✅ Info Panel - Real-time status display
═══════════════════════════════════════════════════
🎯 SIGNAL LOGIC
═══════════════════════════════════════════════════
🟢 LONG Signal:
- ADP crosses above JMA in Accumulation Zone (< 45)
- Heiken Ashi candle is bullish
- WaveTrend confirms (cross up or oversold + rising)
🔴 SHORT Signal:
- ADP crosses below JMA in Distribution Zone (> 55)
- Heiken Ashi candle is bearish
- WaveTrend confirms (cross down or overbought + falling)
═══════════════════════════════════════════════════
🎨 CANDLE COLOR MEANING
═══════════════════════════════════════════════════
- Bright Green = Bullish + Accumulation + Rising
- Bright Red = Bearish + Distribution + Falling
- Orange = Bullish in Distribution (Warning!)
- Blue = Bearish in Accumulation (Potential Reversal)
═══════════════════════════════════════════════════
⚙️ RECOMMENDED SETTINGS
═══════════════════════════════════════════════════
- Timeframe: 15m, 1H, 4H
- ADP Period: 14
- JMA Length: 21
- WT Channel: 10, Average: 21
═══════════════════════════════════════════════════
📌 Best used with proper risk management
📌 Works on all markets: Crypto, Forex, Stocks
Created by Wonra | 2025
Bollinger Bands MTF with Individual DMI Colors V1As we know prices react to volatility hence this indicator was made by me to know next move the market little back testing can give you wonderous results.
Color-Changing EMA with Multiple Indicatorscolour changing ema indicator having 4 individual independent ema . color changing of ema happen based on indicator - positive/ negative logic . each ema has feature to choose from 4 types of indicators - rsi , stochastic , macd , dmi . colour changing happens based on postive and negative logic for each indicator is described as follow: rsi (rsi > rsi ma = positive and rsi < rsi ma = negative ) , stochastic (%k>%d = postive and %k<%d = negative) , macd (macd line >signal line = positive and macd line - di = postive and +di < - di = negative )
Luis-Enrico Valuation HighlighterThe Valuation Highlighter visually marks extreme over- and undervaluation zones of a base asset compared to selected reference assets (DXY, Gold, Bonds, or Custom Asset). It uses the ROC differences to identify these extremes and highlights them with color-coded vertical lines directly on the chart.
Key Features:
- Immediate visual cues for overvalued (red) and undervalued (green) conditions
- Supports quick identification of market imbalances
- Works for all selected reference assets, with customizable colors, opacity, and line thickness
- Helps traders spot potential mean-reversion or trading opportunities
Luis-Enrico Valuation ToolThe Luis-Enrico Valuation Tool measures the relative over- and undervaluation of a base asset compared to selected reference assets, such as DXY, Gold, Bonds, or a Custom Asset.
It calculates the rate of change (ROC) over a chosen period and displays the difference between the base and reference assets, scaled for easy interpretation.
Key Features:
- Relative asset comparison to identify mispricing
- Supports fundamental analysis through market benchmarking
- Visual signals using color-coded lines and backgrounds
- Highlights potential mean-reversion and trading opportunities
This tool combines technical and comparative analysis to quickly spot market imbalances and make informed trading or analytical decisions.
5 EMA vs 50 EMA Crossover with PCO/NCO//@version=5
indicator("5 EMA vs 50 EMA Crossover with PCO/NCO", overlay=true)
// EMA Calculations
emaFast = ta.ema(close, 5)
emaSlow = ta.ema(close, 50)
// Crossover Conditions
buySignal = ta.crossover(emaFast, emaSlow)
sellSignal = ta.crossunder(emaFast, emaSlow)
// Plot EMAs
plot(emaFast, color=color.blue, title="5 EMA")
plot(emaSlow, color=color.orange, title="50 EMA")
// Plot Buy/Sell Signals
plotshape(buySignal, title="Buy (PCO)", location=location.belowbar, color=color.green, style=shape.labelup, text="PCO")
plotshape(sellSignal, title="Sell (NCO)", location=location.abovebar, color=color.red, style=shape.labeldown, text="NCO")
// Optional Alerts
alertcondition(buySignal, title="Buy Alert (PCO)", message="PCO: 5 EMA crossed above 50 EMA")
alertcondition(sellSignal, title="Sell Alert (NCO)", message="NCO: 5 EMA crossed below 50 EMA")




















