Visually Layered OscillatorVisually Layered Oscillator User's Manual
Visually Layered Oscillator is a multi-oscillator designed to provide an intuitive visualization of RSI, MACD, ADX + DMI, allowing traders to interpret multiple signals at a glance.
It is designed to allow comparison within the same panel while maintaining the inherent meaning of each oscillator and compensating for visual distortion issues caused by size differences.
Component Overview
Item Description
RSI (x10) Displays relative buy/sell strength. Values above 70 are overbought; values below 30 are oversold.
MACD (3,16,10) Momentum indicator showing the difference between moving averages. Consists of lines and histograms
ADX ×50 + DMI Indicates the strength of the trend; ADX determines the strength of the trend and DMI determines whether it is buy/sell dominant.
White background color treatment Removes difficult-to-see grid lines to improve visibility.
🖥️ Screen Example
The panel is divided into the following three layers
mathematica
Copy
Edit
Top: ⬆️ RSI (purple)
Middle: 📈 MACD, Signal, Histogram + Color Fill
Bottom: 📉 ADX × 50, DMI+ / DMI- (Red, Blue, Orange)
TIP: If you zoom in on the indicators at a larger scale, you can see that each indicator is drawn at a different height level and placed in such a way that they do not overlap.
⚙️ Settings
Fast Length: MACD Quick Line Duration (Basic 3)
Slow Length: MACD slow line period (basic 16)
Smoothing: Signal line smoothing value (basic 10)
Notes and Tips
RSI × 10 and ADX × 50 are for visualization purposes only multiplied by multiples of the actual values. It does not affect the calculation and maintains the original RSI/ADX characteristics.
The MACD fill color visually highlights crossing conditions.
The background is treated in full white, making the indicator look clean without grid lines.
在腳本中搜尋"Cycle"
Multi-Timeframe Opening Dots with PlotcharPlot clean, smart dots that mark where the real action starts — the opening levels of the three higher timeframes above your current chart.
How it works:
Automatically grabs the next 3 higher timeframes.
Drops a slick dot right at each opening price — but only while that bar is still active.
Color-coded at a glance: Price above open? → green dot. Price below open? → red dot.
Why it’s useful: Get instant visual cues on higher timeframe opens — powerful markers for support, resistance, and directional bias.
Perfect for intraday traders and swing strategists who want to stay synced with the big picture.
Algo Structure [ValiantTrader_]Explanation of the "Algo Structure" Trading Indicator
This Pine Script indicator, created by ValiantTrader_, is a multi-timeframe swing analysis tool that helps traders identify key price levels and market structure across different timeframes. Here's how it works and how traders can use it:
Core Components
1. Multi-Timeframe Swing Analysis
The indicator tracks swing highs and lows across:
The current chart timeframe
A higher timeframe (weekly by default)
An even higher timeframe (monthly by default)
2. Swing Detection Logic
Current timeframe swings: Identified when price makes a 3-bar high/low pattern
Higher timeframe swings: Uses the highest high/lowest low of the last 3 bars on those timeframes
3. Visual Elements
Horizontal lines marking swing points
Labels showing the timeframe and percentage distance from current price
An information table summarizing key levels
How Traders Use This Indicator
1. Identifying Key Levels
The indicator draws recent swing highs (red) and swing lows (green)
These levels act as potential support/resistance areas
Traders watch for price reactions at these levels
2. Multi-Timeframe Analysis
By seeing swings from higher timeframes (weekly, monthly), traders can:
Identify more significant support/resistance zones
Understand the broader market context
Spot confluence areas where multiple timeframes align
3. Measuring Price Distance
The percentage display shows how far current price is from each swing level
Helps assess potential reward/risk at current levels
Shows volatility between swings (wider % = more volatile moves)
4. Table Summary
The info table provides a quick reference for:
Exact price levels of swings
Percentage ranges between highs and lows
Comparison across timeframes
5. Trading Applications
Breakout trading: When price moves beyond a swing high/low
Mean reversion: Trading bounces between swing levels
Trend confirmation: Higher highs/lows in multiple timeframes confirm trends
Support/resistance trading: Entering trades at swing levels with other confirmation
Customization Options
Traders can adjust:
The higher timeframes analyzed
Whether to show the timeframe labels
Whether to display swing levels
Whether to show the info table
The indicator also includes price alerts for new swing highs/lows on the current timeframe, allowing traders to get notifications when market structure changes.
This tool is particularly valuable for traders who incorporate multi-timeframe analysis into their strategy, helping them visualize important price levels across different time perspectives
EMA Cross Strategy + Breakout Entry (Trend Filtered)A High-Probability Trading Strategy Using EMAs and Long-Term Trend Filters in Pine Script
In financial markets, successful trading often depends on identifying high-probability setups with consistent rules and clear confirmations. The Pine Script developed here combines the simplicity of exponential moving average (EMA) crossovers with the robustness of long-term trend filtering, enhancing entry timing and reducing exposure to false signals. This essay explains the strategy’s logic, technical components, strengths, and its potential effectiveness for active traders.
Introduction to the Strategy
This Pine Script trading strategy is built upon two foundational components:
1. EMA Crossovers: A well-established technique where a fast EMA (8-period) and a slower EMA (21-period) are used to detect short-term momentum shifts.
2. Trend Filtering Using SMA: A 100-period simple moving average (SMA) acts as a long-term trend indicator. Only trades in the direction of the dominant trend are considered valid.
These two elements are combined to create a high-probability, trend-following system that aims to capture meaningful price movements while avoiding low-quality entries that typically occur during sideways or choppy markets.
⸻
Core Entry Logic
The script defines two distinct entry conditions designed to complement each other:
1. Standard EMA Crossover Entry (Type A)
This is a classic momentum entry condition. When the 8 EMA crosses above the 21 EMA, it indicates a shift in short-term momentum. However, this signal alone is insufficient in many market conditions, especially when the broader trend is unclear or reversing. To mitigate this risk, the crossover is only accepted when the 100 SMA is in an uptrend, defined as the SMA currently being higher than its value on the previous bar. This ensures the strategy only takes long entries in bullish environments, aligning with the principle of trading with the trend.
2. Breakout Entry After Trend Reversal (Type B)
The second entry condition captures powerful “breakout” opportunities that often follow a fresh trend reversal. Specifically, when the 100 SMA transitions from a downtrend to an uptrend, the script starts a 15-bar lookback window. If, during that window, the price, 8 EMA, and 21 EMA all rise above the long-term SMA, it is considered a confirmation of trend strength and momentum alignment. A long entry is then signaled.
This condition is designed to capitalize on early participation in new uptrends, catching strong price expansions that typically follow a change in market direction.
⸻
Exit Logic
The exit logic is intentionally simple and tied to the same framework as entries. A position is exited when the 8 EMA crosses below the 21 EMA, and the 100 SMA remains in an uptrend. This ensures that exits are aligned with weakening momentum while the larger trend remains bullish. This avoids premature exits during minor pullbacks and focuses on retaining trades during sustained uptrends.
Notably, exits do not occur when the long-term trend has flipped bearish. This design choice prevents “reverse trend” noise from triggering exits too early and instead focuses purely on short-term weakness within a bullish macro backdrop.
⸻
Technical Components of the Script
The Pine Script is structured with clear and logical components:
1. Inputs: The user can customize the periods for the fast EMA, slow EMA, long-term SMA, and the trend-reversal lookback window (defaulted to 15 bars).
2. Trend Detection: The long-term trend is calculated using the slope of the 100 SMA. If the SMA is rising, the trend is marked as bullish and is visually plotted in green; otherwise, it is plotted in red.
3. State Management: The script tracks how many bars have passed since the long-term trend turned bullish. This is managed using a var integer variable that resets upon trend reversal and increments while the trend remains up.
4. Entry and Exit Signals: These are plotted as shape markers on the chart — green triangles for entry and red triangles for exit — providing visual clarity.
Each of these components works in harmony to ensure that trade signals are issued only in favorable environments with multiple confirmations.
⸻
Benefits of the Strategy
There are several key advantages to using this hybrid strategy:
1. Filters Out Choppy Markets
By requiring the long-term SMA to be in an uptrend for any entry or exit signal to be valid, the strategy avoids noisy, sideways price action where EMA crossovers are more likely to produce false signals.
2. Dual Entry Approach
The inclusion of two different entry types allows the strategy to both:
• Capture new trends as they emerge (Breakout Entry).
• Ride existing trends using EMA crossover logic (Standard Entry).
This dual approach balances early participation with trend confirmation, offering flexibility for different market conditions.
3. Clear Exit Criteria
By tying exits to a momentum weakening signal (EMA crossover down), traders are not left guessing when to exit. This supports consistent execution and reduces emotional decision-making.
4. Trend Alignment
Aligning both entry and exit decisions with the broader trend increases the probability that trades will move in the desired direction. This is a cornerstone of successful trend-following strategies.
5. Modular Design
The script’s modularity allows traders to easily expand it with backtesting functions, alerts, or additional filters like RSI, ATR, or volume-based conditions, depending on their individual trading needs.
⸻
Use Cases and Applications
This strategy is particularly well-suited for swing traders and position traders operating on the 4-hour or daily timeframes. It is also effective on trending assets like equity indices, major stocks, or cryptocurrencies with defined directional movement.
Additionally, this script can be used as a signal engine in a larger portfolio of strategies, where only trades with trend confirmation are allowed to proceed. It can also function as a discretionary trading aid, helping traders visually identify when technical conditions align favorably.
⸻
Conclusion
This enhanced EMA crossover strategy, powered by a long-term trend filter and a secondary breakout entry condition, offers a robust and disciplined approach to navigating financial markets. By focusing on trading in the direction of a confirmed uptrend and using both momentum and structural price behavior for entry confirmation, the strategy aims to minimize whipsaw trades and maximize participation in sustained bullish moves.
Its simple logic, visual clarity, and strong filtering mechanisms make it both practical for new traders and a valuable foundation for more advanced systems. Whether used as-is or further expanded with custom features, this Pine Script serves as an excellent tool for executing a structured, high-probability trading plan.
S&P 500 & Normalized CAPE Z-Score AnalyzerThis macro-focused indicator visualizes the historical valuation of the U.S. equity market using the CAPE ratio (Shiller P/E), normalized over its long-term average and standard deviations. It helps traders and investors identify overvaluation and undervaluation zones over time, combining both statistical signals and historical context.
💡 Why It’s Useful
This indicator is ideal for macro traders and long-term investors looking to contextualize equity valuations across decades. It helps identify statistical extremes in valuation by referencing the standard deviation of the CAPE ratio relative to its long-term mean. The overlay of S&P 500 price with valuation zones provides a visual confirmation tool for macro decisions or timing insights.
It includes:
✅ Three display modes:
-S&P 500 (color-coded by CAPE valuation zone)
-Normalized CAPE (vs. long-term mean)
-CAPE Z-Score (standardized measure)
🎯 How to Interpret
Dynamic coloring of the S&P 500 price based on CAPE valuation:
🔴 Z > +2σ → Highly Overvalued
🟠 Z > +1σ → Overvalued
⚪ -1σ < Z < +1σ → Neutral
🟢 Z < -1σ → Undervalued
✅ Z < -2σ → Strong Buy Zone
-Live valuation label showing the current CAPE, Z-score, and zone.
-Macro event shading: major historical events (e.g. Great Depression, Oil Crisis, Dot-com Bubble, COVID Crash) are shaded on the chart for context.
✅ Built-in alerts:
CAPE > +2σ → Potential risk zone
CAPE < -2σ → Potential opportunity zone
📊 Use Cases
This indicator is ideal for:
🧠 Macro traders seeking long-term valuation extremes.
📈 Portfolio managers monitoring systemic valuation risk.
🏛️ Long-term investors timing strategic allocation shifts.
🧪 How It Works
CAPE ratio (Shiller PE) is retrieved from Quandl (MULTPL/SHILLER_PE_RATIO_MONTH).
The script calculates the long-term average and standard deviation of CAPE.
The Z-score is computed as:
(CAPE - Mean) / Standard Deviation
Users can switch between:
S&P 500 chart, color-coded by CAPE valuation zones.
Normalized CAPE, centered around zero (historic mean).
CAPE Z-score, showing statistical positioning directly.
Visual bands represent +1σ, +2σ, -1σ, -2σ thresholds.
You can switch between modes using the “Display” dropdown in the settings panel.
📊 Data Sources
CAPE: MULTPL/SHILLER_PE_RATIO_MONTH via Quandl
S&P 500: Monthly close prices of SPX (TradingView data)
All data updated on monthly resolution
This is not a repackaged built-in or autogenerated script. It’s a custom-built and interactive indicator designed for educational and analytical use in macroeconomic valuation studies.
Bradley Siderograph - Future Projections [Blueprint_So9]█ Extended Version - Bradley Siderograph with Future Projections
This script builds on my original open-source contribution Bradley Siderograph and introduces future projection logic to extend plots into the future across any timeframe.
It has been stripped down to solely the planetary barometer. The use of gauges library and other elements have been removed to keep this version centered on the core Siderograph and future projection logic.
Original Description
This indicator functions as a Planetary Barometer, bringing the Bradley-Siderograph directly onto your TradingView chart. Designed for tracking the algebraic sum of planetary aspects and declination values in relation to market movements, it analyzes sidereal potential, long-term and mid-term planetary aspects, and the declination factor to provide insight into potential shifts in mass psychology. The built-in gauges act like a barometer, visually measuring the intensity and range of the components.
As Donald Bradley states in Stock Market Prediction:
"The siderograph is nothing more than a time chart showing a wavy line, which represents the algebraic total of the declination factor, the long terms, and the middle terms. It can be computed for any period—past or future—for which an ephemeris is available. Every aspect, whether long or middle term, is assigned a theoretical value of 10 at its peak. The value of the declination factor is half the algebraic sum of the given declinations of Venus and Mars, with northern declination considered positive and southern declination negative."
How the Bradley-Siderograph Works:
The Siderograph assigns positive and negative valencies based on the transits of inner and outer planets, categorized into long-term and mid-term aspects.
Each aspect (15° orb) is given a theoretical value, with the peak set at ±10. The approach and separation phases influence the weighting of each aspect leading up to its peak.
The sign of the valency depends on the type of aspect:
Squares and oppositions are assigned negative values
Trines and sextiles are assigned positive values
Conjunctions can be either positive or negative, depending on the planetary combination
Formula Used:
The Siderograph is computed as follows:
𝑃 = 𝑋 (𝐿 + 𝐷) + 𝑀
Where:
P = Sidereal Potential (final computed value)
X = Multiplier (to weight long-term aspects)
L = Long-term aspects (10 aspect combinations)
D = Declination factor (half the sum of Venus and Mars declinations)
M = Mid-term aspects
The long-term component (L + D) can be multiplied by a chosen factor (X) to emphasize its influence relative to the mid-term aspects.
How to Use the Indicator:
Once applied, the Siderograph line overlays on the chart, using the left-side scale for reference.
The indicator provides separate plots for:
Sidereal potential
Long-term aspects
Mid-term aspects
Declination factor
The indicator also marks the yearly high and low of the current year’s sidereal potential, providing a reference for when the market is trading above or below key levels. This feature was inspired by an observation made by Bradley in his book, which I wanted to incorporate here.
Users can fully customize the indicator by:
Switching between geocentric and heliocentric views.
Adjusting the orb of planetary transits to refine aspect sensitivity.
Multiplier (to weight long-term aspects)
Explore the Bradley-Siderograph and experiment with its settings.
Main Use Case
The Siderograph can be thought of as a psychological wind sock, gauging shifts in mass sentiment in response to planetary influences. Rather than forecasting market direction outright, it serves as an early warning system, signaling when conditions may be primed for changes in collective psychology.
As Donald Bradley notes in Stock Market Prediction:
"A limitation of the siderograph is that it cannot be construed as a forecast of secular trend. In statistical terminology, 'lines of regression' fitted to the market course and to the potential should not be expected to completely agree, for reasons obvious to everybody with keen business sense or commercial training. However, the siderograph may be depended upon to reward its analyst with foreknowledge of coming conditions in general, so that the non-psychological factors may be evaluated accordingly. By this, we mean that the potential will afford one with clues as to how the mass mind will 'take' the other mechanical or governmental vicissitudes affecting high finance. The siderograph may be thought of as a principle 'symptom' in diagnosing current market circumstances and as a sounding-board for prognoses concerning further developments."
Credits & Acknowledgments:
This is my implementation of Donald Bradley’s Siderograph, as described in Stock Market Prediction: The Planetary Barometer and How to Use It.
Built using planetary data from Astrolib by @BarefootJoey
Math by Thomas Swing RangeMath by Thomas Swing Range is a simple yet powerful tool designed to visually highlight key swing levels in the market based on a user-defined lookback period. It identifies the highest high, lowest low, and calculates the midpoint between them — creating a clear range for swing trading strategies.
These levels can help traders:
Spot potential support and resistance zones
Analyze price rejection near range boundaries
Frame mean-reversion or breakout setups
The indicator continuously updates and extends these lines into the future, making it easier to plan and manage trades with visual clarity.
🛠️ How to Use
Add to Chart:
Apply the indicator on any timeframe and asset (works best on higher timeframes like 1H, 4H, or Daily).
Configure Parameters:
Lookback Period: Number of candles used to detect the highest high and lowest low. Default is 20.
Extend Lines by N Bars: Number of future bars the levels should be projected to the right.
Interpret Lines:
🔴 Red Line: Swing High (Resistance)
🟢 Green Line: Swing Low (Support)
🔵 Blue Line: Midpoint (Mean level — useful for equilibrium-based strategies)
Trade Ideas:
Bounce trades from swing high/low zones.
Breakout confirmation if price closes strongly outside the range.
Reversion trades if price moves toward the midpoint after extreme moves.
Separators & Liquidity [K]Separators & Liquidity
This indicator offers a unified visual framework for institutional price behaviour, combining calendar-based levels, intraday session liquidity, and opening price anchors. It is specifically designed for ICT-inspired traders who rely on time-of-day context, prior high/low sweeps, and mitigation dynamics to structure their trading decisions.
Previous Day, Week, and Month Highs/Lows
These levels are dynamically updated and optionally stop projecting forward once mitigated. Mitigation is defined as a confirmed price interaction (touch or break), and labels visually adjust upon confirmation.
Intraday Session Liquidity Zones
Includes:
Asia Session (18:00–02:30 EST)
London Session (02:00–07:00 EST)
New York AM Session (07:00–11:30 EST)
New York Lunch Session (11:30–13:00 EST)
Each session tracks its own high/low with mitigation logic and duplicate filtering to avoid plotting overlapping levels when values are identical to previous session or daily levels.
Opening Price Anchors
Plots key opens:
Midnight (00:00 EST) (Customizable)
New York Open (09:30 EST) (Customizable)
PM Session Open (13:30 EST) (Customizable)
Weekly Open
Monthly Open
These levels serve as orientation for daily range expansion/contraction and premium/discount analysis.
Time Labels
Includes weekday markers and mid-month labels for better visual navigation on intraday and higher timeframes.
All components feature user-defined controls for visibility, line extension, color, label size, and plotting style. Filtering logic prevents redundant lines and maintains chart clarity.
Originality and Justification
While elements such as daily highs/lows and session ranges exist in other indicators, this script combines them under a fully mitigation-aware, duplicate-filtering, and session-synchronized logic model. Each level is tracked and managed independently, but drawn cooperatively using a shared visual and behavioral control system.
This script is not a mashup but an integrated tool designed to support precise execution timing, market structure analysis, and liquidity-based interpretation within ICT-style trading frameworks.
This version does not reuse any code from open-source scripts, and no built-in indicators are merged. The logic is independently constructed for real-time tracking and multi-session visualization.
Inspiration
This tool is inspired by core ICT concepts and time-based session structures commonly discussed in educational content and the broader ICT community.
It also draws conceptual influence from the TFO Killzones & Pivots script by tradeforopp, particularly in the spirit of time-based liquidity tracking and institutional session segmentation. This script was developed independently but aligns in purpose. Full credit is given to TFO as an inspiration source, especially for traders using similar timing models.
Intended Audience
Designed for traders studying or applying:
ICT’s core market structure principles
Power of Three (PO3) setups
Session bias models (e.g., AM reversals, London continuations)
Liquidity sweep and mitigation analysis
Time-of-day-based confluence planning
The script provides structural levels—not signals—and is intended for visual scaffolding around discretionary execution strategies.
Quarter ICT Theo TradeQuarter ICT | Theo Trade
The "Multi-Level Yearly Divisions" indicator is a visual tool designed for TradingView charts. Its primary purpose is to help traders and analysts visualize and analyze price action within a structured, hierarchical breakdown of the year. It divides each year into progressively smaller, equal time segments, allowing for detailed observation of how markets behave during specific portions of the year, quarters, and even finer sub-divisions.
Yearly Detection: It first identifies the start of each new year on the chart.
Four Levels of Division:
Level 0: Marks the beginning of the year with a distinct line.
Level 1 (Quarters): Divides the entire year into four equal parts (quarters).
Level 2: Each quarter is then further divided into four equal smaller segments.
Level 3: Each of these Level 2 segments is again divided into four equal parts.
Level 4: Finally, each Level 3 segment is divided into four more equal parts.
Multi-Timeframe Session HighlighterWhat is the Multi-Timeframe Session Highlighter?
It’s a simple Pine Script indicator that paints two special candles on your chart, no matter what timeframe you’re looking at. Think of it as a highlighter pen for session starts and ends—can be used for session-based strategies or just keeping an eye on key turning points.
How it works:
Green Bar (Session Open): Marks the exact bar when your chosen higher-timeframe session kicks off. If you select “4H,” on the indicator, you’ll see green on every 4-hour open, even if you’re staring at a 15-minute chart.
Red Bar (Session Close): Highlights the very last lower-timeframe candle immediately before that session wraps up. So on a 1H chart with “Daily” selected, you’ll get a red band on the 23:00 hour before the new daily bar at midnight.
Customizable: Pick your own colors and transparency level to match your chart theme.
Getting started:
Add the indicator to your chart.
In the inputs, select the session timeframe (for example, “240” for 4H or “D” for daily).
Choose your favorite green and red shades.
That’s it.
Hilbert micro trends MainThe HILBERT MICRO TRENDS indicator uses advanced Digital Signal Processing techniques to uncover hidden characteristics in price series, providing a statistical edge across all types of assets. This indicator specializes in detecting short- and medium-term micro trends, which can appear isolated, embedded within larger trends, or even during broad-ranging price phases.
It operates with a single parameter, simplifying configuration and greatly reducing the risk of overfitting. HILBERT MICRO TRENDS applies modern low-pass and high-pass filtering techniques to smooth price data and remove noise efficiently across multiple levels. The mathematical formulas generate four recursively smoothed series, each more refined than the last in a subtle and precise way, avoiding abrupt changes. These smoothed series outperform traditional moving averages in every aspect: they have less lag (detecting trend shifts faster), generate fewer false signals, and stay closer to price action. This gives them an edge over standard indicators and algorithms based on conventional moving averages such as the simple, exponential, Kalman, or Hull MA.
Visual Structure
The indicator displays in two parts: one on the main chart and one on a sub-chart. On the main chart, the four smoothed series create a shaded area, with the upper and lower bounds representing the maximum and minimum of the series. If a series is rising (positive derivative), it signals bullish momentum; if falling, bearish. Since each series has a different smoothing level, they represent different time perspectives, and the indicator considers all four simultaneously. If all series are bullish, the area turns solid green. If three are bullish and one bearish, it's pale green. Two bullish, two bearish: gray. One bullish and three bearish: pale red. All bearish: solid red. A confirmed micro trend is present only when all four are aligned, i.e., when the area is pure green or red.
The sub-chart displays a histogram version of the same shaded area as an oscillator. An additional smoothed line tracks when the width of this shaded area expands or contracts.
How to Use and Interpret
As stated, the goal is to detect micro trends in price. The first rule is to open long positions only when the area is solid green, and shorts only when it’s solid red. Transitions from pale green to solid green can signal the start of a bullish micro trend, and similarly, from pale red to solid red for bearish trends. The width of the shaded area indicates the strength of the movement (best seen in the histogram). A wider area suggests stronger momentum, which is related to volatility only when a micro trend is active.
Use the orange line in the histogram to determine whether the micro trend is gaining or losing strength. A decreasing width suggests the trend might be ending, signaling an exit opportunity. However, since the orange line lags behind, it’s better used as confirmation rather than a trigger. For quicker signals, changes to pure red or green are more effective.
Price Relationship
Pay attention to the price's relative position to the shaded area. If the price stays within or fluctuates inside the area, it's usually a sign of a ranging market with no clear trend—avoid trading in such conditions. However, if the price breaks out and moves away from the area, it's a strong sign a micro trend has begun. When the price returns to the shaded area, the trend might be ending.
The indicator also marks pivot points from the last pure green or red zone. While not directly used to enter trades, these serve as useful price action reference points for combining with other strategies or tools.
Parameter Settings
The indicator includes a single but crucial parameter that controls smoothing intensity. A low value makes the indicator faster; a higher value slows it down. Success depends on choosing the right setting for the market environment. For long, clear trends, use higher values (80–100), as late entries are acceptable and premature exits are avoided. For shorter, mean-reverting trends, lower values (~40) are better to avoid lag. The default setting is 60, which suits most markets, but users are encouraged to adjust it to current conditions.
Always identify the current market phase and backtest how past micro trends have behaved on the instrument being traded. This ensures the indicator is tuned to the asset’s behavior and can deliver optimal results.
HGDA Hany Ghazy Digital Analytics area zone'sIndicator Name: HGDA Hany Ghazy Digital Analytics area zones
Description:
This indicator plots several key price zones based on the highest high and lowest low over a user-defined lookback period.
The plotted zones represent dynamic support and resistance levels calculated using specific ratios of the price range (High - Low), as follows:
- Zone 1 (Light Red): Represents an upper resistance zone.
- Zone 2 (Medium Green): Represents a medium support zone.
- Zone 3 (Dark Red): Represents a lower resistance zone.
- Zone 4 (Dark Green): Represents a strong support zone.
Additionally, the indicator plots a yellow "Zero" line representing the midpoint price of the selected period, serving as a balance point for price action.
This indicator is ideal for identifying the overall market trend, as prices typically move from the upper resistance zones (light red) downwards to the end of the wave in the lower zones (dark green). This helps traders better understand wave nature and direction.
Usage:
- The colored zones assist in identifying potential reversal or continuation areas.
- These zones can be used to plan entries, exits, and risk management.
- Default lookback period is 20 bars, adjustable in the settings to suit the timeframe.
Notes:
- This indicator relies on historical price data and does not guarantee market predictions.
- It is recommended to combine it with other indicators and analytical tools for improved trading decisions.
---
Developed by Hany Ghazy Digital Analytics (HGDA).
Custom Sector Relative Strength (sector rotation)📌 Indicator Summary for “Custom Sector Relative Strength (sector rotation)”
🔹 Overview:
This Pine Script indicator calculates and displays the relative strength performance of up to 25 customizable sectors or ETFs compared to a user-defined benchmark index (e.g., SPY, TASI.TAD, etc.).
It helps traders and analysts identify which sectors are outperforming or underperforming relative to the benchmark over different time frames.
________________________________________
🔹 Calculation Method:
For each sector, the indicator:
1. Retrieves the current and past closing prices for both the sector and the benchmark.
2. Computes the ratio of the sector's price to the benchmark at both time points.
3. Calculates the percentage change in this ratio over the selected lookback period:
4. Relative Strength (%) = ((Current_Ratio / Past_Ratio) - 1) * 100
5. Assigns a direction symbol:
o ↑ for positive outperformance
o ↓ for underperformance
o → for no significant change
6. Applies a color code for clarity:
o Green for ↑
o Red for ↓
o Gray for →
________________________________________
🔹 How to Use:
1. Set your benchmark index (e.g., SPY or TASI.TAD) from the settings panel.
2. Choose a lookback period: 1 Day, 1 Week, 1 Month, 3 Months, 6 Months, or 1 Year.
3. Define up to 25 sectors:
o Enter the symbol and name of each sector.
o Toggle the Show option on/off to include/exclude any sector.
4. The script will sort the sectors from strongest to weakest based on their relative performance.
5. Results are displayed in a dynamic table on the chart showing:
o Ticker
o Sector Name
o Relative % Performance
o Direction Indicator (↑ ↓ →)
________________________________________
🔹 Practical Uses:
• Sector rotation strategies
• Market breadth analysis
• Benchmark-relative strength monitoring
• Multi-sector ETFs or custom group comparisons
• Saudi, US, or global sector analysis
________________________________________
Let me know if you'd like an Arabic version or want this formatted as a PDF or used as a code comment section.
True OpensTrue Opens: Pinpoint Key Inflection Levels
This indicator plots "True Open" price levels for Monthly, Weekly, Daily, and key intraday Sessions. Unlike generic opens, these are anchored to precise New York kickoff times (e.g., True Month Open from the second Sunday at 18:00 NY).
Especially valuable for Futures traders, these levels frequently act as significant support/resistance, offering clear reference points for your analysis.
Conceptual framework based on Daye's Quarterly Theory.
RSI - SECUNDARIO - mauricioofsousaSecondary RSI – MGO
Reading the rhythm behind the price action
The Secondary RSI is a specialized oscillator developed as part of the MGO (Matriz Gráficos ON) methodology. It works as a refined strength filter, designed to complement traditional RSI readings by isolating the true internal rhythm of price action and reducing the influence of market noise.
While the standard RSI measures price momentum, the Secondary RSI focuses on identifying breaks in oscillatory balance—the moments when the market shifts from accumulation to distribution or from compression to expansion.
🎯 What the Secondary RSI highlights:
Internal imbalances in energy between buyers and sellers
Micro-divergences not visible on standard RSI
Areas of price fatigue or overextension that often precede reversals
Confirmation zones for MGO oscillatory events (RPA, RPB, RBA, RBB)
📊 Recommended use:
Combine with the Primary RSI for dual-layer validation
Use as a noise-reduction tool before entering trends
Ideal in medium timeframes (12H / 4H) where oscillatory patterns form clearly
🧠 How it works:
The Secondary RSI recalculates the momentum signal using a block-based interpretation (aligned with the MGO structure) instead of simply following raw candle data. It adapts to the periodic nature of price behavior and provides the trader with a more stable and reliable measure of true market strength.
MVRV | Lyro RS📊 MVRV | Lyro RS is a powerful on-chain valuation tool designed to assess the relative market positioning of Bitcoin (BTC) or Ethereum (ETH) based on the Market Value to Realized Value (MVRV) ratio. It highlights potential undervaluation or overvaluation zones, helping traders and investors anticipate cyclical tops and bottoms.
✨ Key Features :
🔁 Dual Asset Support: Analyze either BTC or ETH with a single toggle.
📐 Dynamic MVRV Thresholds: Automatically calculates median-based bands at 50%, 64%, 125%, and 170%.
📊 Median Calculation: Period-based median MVRV for long-term trend context.
💡 Optional Smoothing: Use SMA to smooth MVRV for cleaner analysis.
🎯 Visual Threshold Alerts: Background and bar colors change based on MVRV position relative to thresholds.
⚠️ Built-in Alerts: Get notified when MVRV enters under- or overvalued territory.
📈 How It Works :
💰 MVRV Calculation: Uses data from IntoTheBlock and CoinMetrics to obtain real-time MVRV values.
🧠 Threshold Bands: Median MVRV is used as a baseline. Ratios like 50%, 64%, 125%, and 170% signal various levels of market extremes.
🎨 Visual Zones: Green zones for undervaluation and red zones for overvaluation, providing intuitive visual cues.
🛠️ Custom Highlights: Toggle individual threshold zones on/off for a cleaner view.
⚙️ Customization Options :
🔄 Switch between BTC or ETH for analysis.
📏 Adjust period length for median MVRV calculation.
🔧 Enable/disable threshold visibility (50%, 64%, 125%, 170%).
📉 Toggle smoothing to reduce noise in volatile markets.
📌 Use Cases :
🟢 Identify undervalued zones for long-term entry opportunities.
🔴 Spot potential overvaluation zones that may precede corrections.
🧭 Use in confluence with price action or macro indicators for better timing.
⚠️ Disclaimer :
This indicator is for educational purposes only. It should not be used in isolation for making trading or investment decisions. Always combine with price action, fundamentals, and proper risk management.
Extended-hours Volume vs AVOL// ──────────────────────────────────────────────────────────────────────────────
// Extended-Hours Volume vs AVOL • HOW IT WORKS & HOW TO TRADE IT
// ──────────────────────────────────────────────────────────────────────────────
//
// ░ What this indicator is
// ------------------------
// • It accumulates PRE-MARKET (04:00-09:30 ET) and AFTER-HOURS (16:00-20:00 ET)
// volume on intraday charts and compares that running total with the stock’s
// 21-day average daily volume (“AVOL” by default).
// • Three live read-outs are shown in the data-window/table:
//
// AH – volume traded since the 16:00 ET close
// PM – volume traded before the 09:30 ET open
// Ext – AH + PM (updates in pre-market only)
// %AVOL – Ext ÷ AVOL × 100 (updates in pre-market)
//
// • It is intended for U.S. equities but the session strings can be edited for
// other markets.
//
// ░ Why it matters
// ----------------
// Big extended-hours volume almost always precedes outsized intraday range.
// By quantifying that volume as a % of “normal” trade (AVOL), you can filter
// which gappers and news names deserve focus *before* the bell rings.
//
// ░ Quick-start trade plan (educational template – tune to taste)
// ----------------------------------------------------------------
// 1. **Scan** the watch-list between 08:30-09:25 ET.
// ► Keep charts on 1- or 5-minute candles with “Extended Hours” ✔ checked.
// 2. **Filter** by `Ext` or `%AVOL`:
// – Skip if < 10 % → very low interest
// – Flag if 20-50 % → strong interest, Tier-1 candidate
// – Laser-focus if > 50 % → crowd favourite; expect liquidity & range
// 3. **Opening Range Breakout (long example)**
// • Preconditions: Ext ≥ 20 % & price above yesterday’s close.
// • Let the first 1- or 5-min bar complete after 09:30.
// • Stop-buy 1 tick above that bar (or pre-market high – whichever higher).
// • Initial stop below that bar low (or pre-market low).
// • First target = 1R or next HTF resistance.
// 4. **Red-to-Green reversal (gap-down long)**
// • Ext ≥ 30 % but pre-market gap is negative.
// • Enter as price reclaims yesterday’s close on live volume.
// • Stop under reclaim bar; scale out into VWAP / first liquidity pocket.
// 5. **Risk** – size so the full stop is ≤ 1 R of account. Volume fade or
// loss of %AVOL slope is a reason to tighten or exit early.
//
// ░ Tips
// ------
// • AVOL look-back can be changed in the input panel (21 days ⇒ ~1 month).
// • To monitor several symbols, open a multi-chart layout and sort your
// watch-list by %AVOL descending – leaders float to the top automatically.
// • Replace colour constants with hex if the namespace ever gets shadowed.
//
// ░ Disclaimer
// ------------
// For educational purposes only. Not financial advice. Trade your own plan.
//
// ──────────────────────────────────────────────────────────────────────────────
RSI Phan Ky FullThe RSI divergence indicator is like a magnifying glass that spots gaps between price swings and momentum. When price keeps climbing but RSI quietly sags, it’s a flashing U‑turn sign: the bulls are winded, and the bears are lacing up their boots. Flip it around—price is sliding yet RSI edges higher—and you’ve got bulls secretly stockpiling. Hidden divergences shore up the trend; regular divergences hint at a pivot. Blend those signals with overbought/oversold zones, support‑resistance, and volume, and RSI divergence turns into a radar that helps traders jump in with swagger and bail out just in time.
SuperTrend CorregidoThis script implements a SuperTrend indicator based on the Average True Range (ATR). It is designed to help traders identify trend direction and potential buy/sell opportunities with visual signals on the chart.
🔧 Key Features:
ATR-Based Trend Detection: Calculates trend shifts using the ATR and a user-defined multiplier.
Buy/Sell Signals: Displays "Buy" and "Sell" labels directly on the chart when the trend changes direction.
Visual Trend Lines: Plots green (uptrend) and red (downtrend) SuperTrend lines to highlight the current market bias.
Trend Highlighting: Optionally fills the background to emphasize whether the market is in an uptrend or downtrend.
Customizable Settings:
ATR period and multiplier
Option to switch ATR calculation method
Toggle for signal visibility and trend highlighting
🔔 Alerts Included:
SuperTrend Buy Signal
SuperTrend Sell Signal
SuperTrend Direction Change
This indicator is useful for identifying entries and exits based on trend momentum and can be used across various timeframes.
MNQ-MES Hedge Protection Calculator by ATALLAMNQ-MES Hedge Protection Calculator - Summary
Purpose
This indicator provides real-time calculations for implementing a hedge strategy between MNQ (Micro E-mini Nasdaq-100) and MES (Micro E-mini S&P 500) futures contracts. It automatically determines the precise number of MES contracts needed to hedge a position in MNQ, based on current market prices and contract specifications.
Key Features
Real-time Hedge Ratio Calculation
Uses live market prices to calculate the optimal hedge ratio
Accounts for different point values ($2 for MNQ, $5 for MES)
Adjusts for beta differences between Nasdaq-100 and S&P 500
Flexible Position Management
Works for both long and short positions
Supports fractional contract amounts
Allows partial hedging (adjustable percentage)
User-Friendly Visual Interface
Clearly displays the exact number of MES contracts needed
Color-coded table showing position direction
Optional chart label with hedge summary
Practical Applications
Directional Risk Reduction: Maintain market exposure while reducing directional risk
Index Spread Trading: Capitalize on relative performance differences between indices
Portfolio Protection: Hedge existing positions in technology-heavy portfolios
Volatility Management: Reduce overall portfolio volatility while maintaining desired exposure
This indicator eliminates the complexity of manually calculating hedge ratios by providing instant, accurate, and visually clear instructions on how to implement an MNQ-MES hedge strategy based on current market conditions.
Multi-Index Gap Confluence Indicator by ATALLAOverview of the Multi-Index Gap Confluence Indicator
This indicator is designed to identify and highlight price gaps across multiple market indices and their related ETFs/futures. It specifically looks for:
True gaps (where there's no overlap between the current and previous bar's range)
Negative gaps (where only the candle bodies have no overlap, but wicks might)
The indicator has the capability to:
Visualize gaps on charts using colored rectangles
Compare gaps across up to 6 different symbols (3 ETFs and 3 futures)
Generate confluence signals when multiple symbols show gaps simultaneously
Customize appearance and detection parameters
Key Components
Gap Detection
The script distinguishes between:
True gaps: No overlap at all between current and previous bars
Negative gaps: Only the candle bodies have no overlap
Multi-Asset Comparison
The indicator can monitor gaps across six major market indices:
ETFs: QQQ (Nasdaq-100), SPY (S&P 500), and DIA (Dow Jones)
Futures: NQ1! (Nasdaq-100), ES1! (S&P 500), and YM1! (Dow Jones)
Confluence Detection
The script identifies when multiple assets display gaps simultaneously, with:
Configurable minimum threshold (default is 5 out of 6 assets)
Option to require both ETF and futures representation
A strong confluence signal when 5-6 assets show gaps
Customization Options
The indicator offers many parameters for customization:
Gap colors and opacity
Symbol selection and enablement
Confluence thresholds
Display options
Visual Elements
The indicator displays:
Colored rectangles highlighting gap areas
Optional up/down triangles for gap direction
A flag symbol for strong confluence signals (when 5-6 assets show gaps)
Labels listing which specific assets have gaps
Practical Use
This indicator appears designed for traders looking to identify potentially significant market moves by spotting when multiple major indices show price gaps simultaneously. The emphasis on "strong confluence" (5-6 assets showing gaps) suggests these are considered particularly noteworthy signals.
LANZ Strategy 2.0🔷 LANZ Strategy 2.0 — London Breakout Confirmation with Structural Swing Protection
LANZ Strategy 2.0 is a structured trading system that leverages the last confirmed market direction before the London session to define directional bias and manage trades based on key structural swing levels. It is tailored for intraday traders looking to capitalize on early London volatility with built-in risk management and visual clarity.
🧠 Core Components:
Directional Confirmation (Pre-London Bias): Validates the last breakout or structural move from the 15-minute timeframe before 02:15 a.m. New York time (start of the London session), establishing the expected market direction.
Time-Based Execution: Executes potential entries strictly at 02:15 a.m. NY time, using market structure to support Long or Short bias.
Dynamic Swing-Based SL System: Allows user to select between three SL protection models: First Swing (most recent structural point) Second Swing (prior level) Total Coverage (includes both swings + extra buffer) This supports flexibility based on trader profile or market conditions.
Visual Risk Mapping: All SL and TP levels are clearly plotted.
End-of-Session Management: Positions are automatically evaluated for closure at 11:45 a.m. NY time. SL, TP, or manual close outcomes are labeled accordingly.
📊 Visual Features:
Labels for 1st and 2nd swing levels upon entry.
Dynamic lines projecting SL/TP levels toward the end of the session.
Session background coloring for Pre-London, Execution, and NY sessions.
Real-time percentage outcome labels (+2.00%, -1.00%, or net % at session end).
Automatic deletion of previous visuals on new entries for clean charting.
⚙️ How It Works:
Detects last structural breakout on the 15m timeframe before 02:15 a.m. NY.
On the 02:15 a.m. candle, executes a Long or Short logic entry.
Plots corresponding SL and TP based on selected swing model.
Monitors price action: If TP or SL is hit, labels it accordingly. If no exit is hit, trade closes manually at 11:45 a.m. NY with net result shown.
Optional logic to reverse entries if market structure breaks before execution.
🔔 Alerts:
Daily execution alert at 02:15 a.m. NY (prompting manual review or action).
Optional alert logic can be extended for SL/TP hits or structure breaks.
📝 Notes:
Designed for semi-automated or discretionary intraday trading.
Best used on Forex pairs or indices with strong London session behavior.
Adjustable parameters include session hours, swing SL type, and buffer settings.
Credits:
Developed by LANZ, this script combines time-based execution with dynamic structure protection, offering a disciplined framework for participating in the London session breakout with clear visuals and risk logic.
Ultimate NATR█ | Overview
This N-ATR (Normalized Average True Range) volatility indicator illustrates the trend of percentage-based candle volatility over a self-defined number of bars (period). The primary objective of the indicator is to highlight periods of high or low volatility, which can be exploited within the cyclical logic of volatility contraction and expansion. If market behavior is inherently cyclical, it naturally follows that candle volatility itself also exhibits cyclical characteristics.
It can therefore be defined as a recurring pattern:
Low Volatility --> High Volatility --> Low Volatility -->
Here is a concrete example of the cyclical phases of volatility, which compresses during Accumulation or Distribution phases, and then explodes with a mark-up or mark-down in price.
█ | Features
🔵 Plots on Overlay false
Smoothed NATR Line
NATR's Fixed Levels
NATR's Standard Deviation Levels (Dynamic)
🔵 Elements, overlapped to the chart
Analytical and Statistical Tables
NATR Information Label
🔵 Customization
Button to calculate fixed or dynamic (auto-calculated) levels
Dark / light mode based on the layout background
Setting of the initial date for the calculation of N-ATR dependent functions
ATR period
Moving Average of the N-ATR
Data sample (number) on which to calculate the standard deviation of the N-ATR
Adjustment of the multiplicative coefficients of the standard deviation σ
Setting of static values L1, L2, L3, and L4 of the N-ATR
Adjustment of the table zoom factor
█ | N-ATR Calculation
The N-ATR function is built upon the ATR (Average True Range), the quintessential volatility indicator.
Once the ATR_period is defined, the N-ATR is calculated using the following formula:
N-ATR = 100 * ATR / close
A moving average of the N-ATR completes the main indicator curve (yellow), making the function smoother and less sensitive to the instantaneous fluctuations of individual candles.
SMA_natr = sum(natr_i) / ATR_period
natr = 100 * ta.atr(periodo_ATR) / close
media_natr = ta.sma(natr, media_len)
█ | Settings
Show selected calc period : allows you to display or hide a background color that extends from the initial calculation date to the current bar, or from the first available bar if the selected date is earlier.
Set data range for ST.DEV : this setting defines the number of bars over which the standard deviation is calculated—an essential foundational element for plotting the upper and lower curves relative to the N-ATR, as well as for defining the statistical ranges in the tables overlaid on the price chart.
Static Levels : these are user-defined input values representing N-ATR value thresholds, used to classify table values within the ranges L1–L2 / L2–L3 / L3–L4 / >L4. To be meaningful, the user is expected to conduct separate statistical analysis using a spreadsheet or external data analysis tools or languages.
Coefficients x, w, y : these are input values used in the code to calculate statistical ranges and the bands above and below the N-ATR. For example, when expressing the statistical range as μ ± nσ, n can take the value of x, w, or y. By default, the values are x=1, w=2, y=3. However, as explained, they can be customized to represent wider or narrower statistical clusters, depending on the user's analytical preference.
█ | Tables
Static Levels : when the boolean button "Fixed Levels" is active, the table counts and distributes the data across five ranges, defined by the custom input values L1, L2, L3, and L4. Studying the table immediately answers the question: "Have I set appropriate values for the L_x levels?"
If the majority of data points fall within the lowest range, it indicates that the levels are spaced too far apart; conversely, if most values are in the "> L4" range, the levels are likely too narrow.
From left to right, the table also displays the probability that the current candle might move from its current range to the next one (Update Prob.); the absolute frequency of each range and the relative frequency are shown in the rightmost column.
Dynamic Levels : alternatively, you can deselect "Fixed Levels" to obtain an auto-calculated / self-adjusting representation of the N-ATR and its bands, based on the standard deviation input settings. In this case, the table takes on a more statistical form, useful for analyzing the frequency of outliers beyond a certain standard deviation, as defined by the largest multiplicative coefficient "y".
This visualization may also be preferred when aiming to study the standard deviation of the N-ATR in greater depth for a given asset, timeframe, and configuration more broadly.
█ | Next-to-Price Label
Information in the label next to the live price: if the first settings button in the indicator, "Fixed levels", is enabled (true), a label appears next to the price showing information about the relative position of the N-ATR associated with the current candle.
Specifically, if:
natr ≤ L1, ⇨ "Minimum-"
natr > L1 and natr ≤ L2, ⇨ "Minimum+"
natr > L2 and natr ≤ L3, ⇨ "Neutral L3"
natr > L3 and natr ≤ L4, ⇨ "Topping L4"
natr > L4, ⇨ "Excess L4: natr > V4"
Additionally, the corresponding N-ATR range is displayed to the right of the evaluated category for the individual candle.
1-Please note: this allows you to avoid constantly checking the N-ATR curve, especially when working in full-screen mode and focusing solely on the price chart for a cleaner view.
2-Please note : unfortunately, the informational label is not available in Dynamic display mode.
█ | Conclusion
• This indicator captures a snapshot of market turbulence. Whether currently unfolding or approaching, the combination of volatility breakout forecasting with price structure analysis—further evaluated based on periods of compression or high turbulence—offers traders a powerful tool for identifying trend-aligned trade opportunities.
• The accompanying analytical tables enhance the indicator by enabling a statistical interpretation of the likelihood that certain excess thresholds will be reached. Based on this data, traders can gain deeper insight into the nature of the asset, identify outlier volatility levels, and strengthen the hedging of their trades. Used as a filter, this indicator significantly improves win rate potential.
Please note : the indicator is shown here on a black background. I suggest you trying it on a white layout as well, so you can decide which visualization best suits your preferences.