Gravity Trend | ADX Strength Meter & Quality-Scored DMI SystemA fully modular DMI/ADX trend-following strategy built around a live Trend Quality Score rather than a raw crossover signal.
Instead of entering on the initial DI crossover, this script waits for pullback entries within an already-confirmed trend regime (DI direction + ADX strength + optional EMA filter), aiming to capture better average entry prices than chasing the initial signal.
Core features:
Pullback entry engine — enters on EMA reclaim within a confirmed DMI trend regime (toggle back to classic DI crossover anytime)
Trend Quality Score (0–100) — a weighted composite of ADX level, DI spread, ADX slope, and EMA slope, visualized as a glowing trend line whose brightness scales with signal quality
Peak-ADX decay exit — tracks the highest ADX reached since entry and exits once trend conviction decays a set percentage off its peak, independent of price action
True initial stop anchored to strategy.position_avg_price, transitioning into a Chandelier-style ATR trailing stop that only ratchets in your favor
Volatility- and quality-adjusted position sizing — risk per trade scales with ATR and with the current Trend Quality Score
Cooldown filter to avoid re-entering immediately after a stop-out in the same chop zone
Live dashboard table showing ADX, DI spread, trend score, position status, and a self-updating win-rate table bucketed by ADX strength regime at entry — so you can see empirically which trend-strength conditions are actually working on your instrument
Every major mechanic (EMA filter, DI spread minimum, pullback mode, Chandelier trail, ADX decay exit, cooldown, quality-based sizing, and each individual Trend Score component) is independently toggleable — designed for methodical A/B testing rather than a fixed black-box system.
This is a trend-following strategy, not mean-reversion. It is intended for educational and research purposes. Past performance shown in backtests does not guarantee future results — always forward-test and paper-trade before risking real capital, and adjust default parameters (ADX threshold, ATR multiples, EMA lengths) to suit your instrument and timeframe. Strategy

Cash Secured Put (CSP) Options Entry ScreenerCSP Options Entry Screener
This indicator screens stocks for a confirmed bullish DMI/ADX setup and flags them as candidates for **selling cash-secured puts (CSP)**. It is built to be used as a scanning column inside PulseWire's Pine Screener, across an entire watchlist.
WHY DMI/ADX FOR CSP ENTRIES
Selling a cash-secured put works best when you're comfortable owning the underlying at the strike price, and ideally you enter the trade right as the stock stops falling and starts to turn bullish again — rather than while it's still in a strong downtrend. Selling into an ongoing downtrend means a higher chance of assignment at a price that keeps falling further after you own the shares.
This screener uses the ADX/DMI crossover as a "trend is turning and starting to hold" signal:
ADX (trend strength) rising and holding above the -DI line for 2+ candles signals that downside momentum is fading and a new directional move is taking hold.
+DI above -DI at the same time confirms the emerging move is bullish, not another leg down.
In other words, the signal is not "buy the stock now," but "this stock just showed the first confirmed sign of turning bullish — a reasonable moment to consider selling a put" (at or below the current price, at a strike/expiry you're comfortable with). If the stock keeps rising, the put expires worthless and you keep the premium; if it pulls back and you get assigned, you're buying into a stock that had just shown a bullish trend reversal, at your chosen strike, rather than into an uninterrupted decline.
This does not replace your own judgment on strike selection, premium, or position sizing — it's a way to narrow a large watchlist down to symbols worth a closer look.
SIGNAL LOGIC
A signal fires when all of the following are true on a daily candle:
ADX is rising compared to the previous candle
ADX has been above the -DI line for at least 2 consecutive candles (confirms the trend is holding, not reacting to a single-bar spike)
+DI is above -DI at the same time (directional confirmation the move is bullish)
The signal fires only once, on the candle where the 2-day confirmation is met — it does not stay "on" for every following candle.
Note: all calculations are locked to the Daily timeframe internally (via `request.security` with `"D"`), regardless of the resolution the chart or the Pine Screener is currently displaying. This guarantees consistent daily-candle logic even when scanning on an intraday or weekly chart.
OUTPUT COLUMNS
Days since last Buy-Signal — candles since the last confirmed signal (0 = today, blank/na = never occurred). Main column to filter/sort on.
Price change today (%) — daily % change of the close vs. previous close (Data Window / Screener only, not plotted on the chart pane).
Price change since Buy-Signal (%) — % change of the close from the day of the last signal to today (Data Window / Screener only).
Buy Signal (today) — 1 if today is a signal candle, 0 otherwise.
ADX / +DI / -DI — current indicator values, for context.
On the price chart, a green "Sell CSP" label is plotted directly on the signal candle. In the DMI/ADX pane, a small green triangle ("Buy (day)") marks the same candle.
HOW TO SCAN THE LAST 5 DAYS IN THE PINE SCREENER
Add this script to any chart once (Pine Editor → Add to Chart) so it appears under "My Scripts."
Important: the Pine Screener only lists indicators that are in your Favorites — adding it to a chart alone is not enough. Open the Indicators dialog (or the script/column picker inside the Screener), find "CSP Options Entry Screener" under "My Scripts," and click the star icon to add it to your Favorites.
Open the Pine Screener (pulsewire.com/pine-screener/, or Products → Screeners in the web app — not yet available in the Desktop app).
Choose the watchlist you want to scan as your symbol source.
Click "Choose indicator" and select this script, "CSP Options Entry Screener," from your Favorites.
Open the "Days since last Buy-Signal" field and click "Manual setup...".
Filter it: less than or equal to 5 (≤ 5).
Sort ascending to see the newest signals first (0 = signal today, 1 = yesterday, etc.).
Optionally add "Price change today (%)" and "Price change since Buy-Signal (%)" as extra columns for context on how far the stock has already moved since the signal — useful for judging whether there's still room for a CSP entry or whether the move has largely played out.
This filter shows every symbol in your watchlist that had a confirmed bullish DMI/ADX reversal within the last 5 trading days — a shortlist of candidates worth evaluating for a cash-secured put. Indicator

Strategy

ATK / DEF Directional Movement State EngineDescription
ATK / DEF Directional Movement State Engine is a market condition analysis framework built around the Directional Movement Index (DMI) system.
Unlike traditional DMI tools that mainly display +DI, -DI, and ADX values, this indicator focuses on interpre the effectiveness and current condition of directional movement through multiple analytical layers.
The engine combines directional strength, trend structure, volatility behavior, and price action characteristics to provide a structured view of market conditions.
The purpose of this framework is to evalu the qual of directional movement and understand the current state of market behavior.
Directional Movement Core
The foundation of this indicator is based on the DMI and ADX framework.
It analyzes:
+DI directional pressure
-DI directional pressure
ADX directional strength
The relationship between these components is used to class the current movement environment, including:
Strong directional conditions
Weak directional conditions
Balanced movement
Swinging conditions
Rather than focusing on a single numeri rea, the engine evalua how directional components interact with the broader market structure.
ATK / DEF Market State Concept
The ATK / DEF framework represents two different market behaviors.
ATK (Attack State)
Describes environments where directional movement demonstrates stronger activity and clearer momentum characteristics.
DEF (Defense State)
Describes environments where directional movement becomes weaker, balanced, or less defined.
The engine observes these states through directional strength, price structure, and movement behavior to describe the current market condition.
Directional Radar System
The Radar module analyzes current price behavior by combining candle structure and market movement characteristics.
It evaluates:
Candle body efficiency
Price range behavior
Directional pressure
Trend positioning
Short-term movement characterist
The radar provides a visual representation of the current behavioral condition, helping use understand whether the market is displaying expansion, decline, compression, or swing characteristics.
Trend Structure Analysis
The trend module evaluates market structure through multiple moving average relationships and price positioning.
It observes:
Short- trend direction
Medium-alignment
Long- structural condition
This provides additional context for understanding the relationship between directional movement and the overall price structure.
Velocity Measurement
The Velocity component measures current movement intensit through volatility conditions.
It evalua price movement range relative to recent market activity to describe different leve of movement speed.
This helps identify whether the current environment is experiencing:
Lower activity conditions
Normal movement conditions
Higher volatility conditions
Market Regime Observation
The Regime module evaluates changes in market activity using volatility structure.
It observes:
Expansion conditions
Contraction conditions
Range environments
This provides additional context around how the market is currently behaving.
ADX State Classification
The ADX state engine combines ADX strength with DI relationships to categorize directional conditions.
The classification includes:
Strong U
Strong D
Weak U
Weak D
Swing Condition
These states are designed to describe the current directional environment rather than forecast future market movement.
Integrated Dashboard
The built-in dashboard organizes multiple analytical components into a single view:
Engine status
Velocity level
Radar condition
Trend direction
Market regime
ADX state
Current price information
The dashboard provides a compact overview of market structure and directional behavior.
Design Philosophy
ATK / DEF Directional Movement State Engine is designed around the concept that market movement should be analyzed through multiple layers rather than a single indicator value.
By combining:
Directional movement analysis
ADX strength evaluation
Trend structure
Volatility behavior
Price action characteristics
the indicator provides a structured framework for observing market conditions and understanding directional movement effectiveness.
This tool is designed for analytical purposes, helping users stu market behavior, movement structure, and directional dynamics. Indicator

Market Condition Oscillator [HexaTrades]Market Condition Oscillator classifies price action into three simple states: Bullish Trend, Bearish Trend, and Consolidation, and paints them as a color-coded histogram below your chart. It is built to answer one question at a glance: should I be trend-trading right now, or is the market just chopping sideways?
What it shows
🟢 Green histogram above zero → confirmed bullish trend. Taller bars = stronger trend.
🔴 Red histogram below zero → confirmed bearish trend. Deeper bars = stronger trend.
⚪ Gray histogram near zero → consolidation/range (no clear trend).
How it works
The indicator combines four classic, well-understood concepts so that no single signal can produce a false trend on its own:
1. ADX (trend strength): measures how strongly the market is trending. Below the threshold, the market is treated as consolidation regardless of direction.
2. DI+ / DI− (direction) : the Directional Movement pair decides whether strength is to the upside or downside.
3. EMA position + slope (confirmation) : price must be on the correct side of the EMA and the EMA must be sloping the right way. This filters out counter-trend spikes.
4. ATR & EMA-distance (range detection) : consolidation is flagged when volatility compresses or price hugs the EMA, even if ADX hasn't fully dropped yet.
A phase only changes after the condition holds for a configurable number of candles (Confirmation Bars). This is the key to removing the constant flip-flopping that plagues most trend indicators.
Trend rules
✏️ Bullish = ADX above threshold and DI+ > DI− and price above EMA and EMA rising — held for N bars.
✏️Bearish = ADX above threshold and DI− > DI+ and price below EMA and EMA falling — held for N bars.
✏️Consolidation = weak ADX, or compressed ATR, or price hugging the EMA — anything that is not a confirmed trend.
Features
- Bullish, bearish, and consolidation market phase detection.
- Separate oscillator panel for clean chart reading.
- Color-coded histogram.
- Optional histogram smoothing.
- Confirmation bars to reduce false flips.
- Phase label on the latest candle.
- Legend table for easy interpretation.
- Alert conditions for bullish, bearish, consolidation, and trend-flip events.
- Uses confirmed candle data only and does not use future references.
How to use it
- Trend traders: only take longs while the histogram is green, shorts while it is red. Stand aside on gray.
- Mean-reversion traders: the gray phase highlights range conditions where fade/scalp setups work best.
- Filter: combine with your existing entry system and ignore signals that fight the MCO color.
- Works on any market and any timeframe. For higher timeframes, consider raising the ADX threshold and Confirmation Bars.
Alerts
Five ready-to-use alert conditions:
Bullish Trend Started
Bearish Trend Started
Consolidation Started
Bullish → Bearish Shift
Bearish → Bullish Shift
This indicator is designed to help identify market conditions. It should be combined with price action, support and resistance, volume, and proper risk management. No indicator can guarantee profitable trades.
We would love to hear your suggestions. If you have ideas for new features, indicators, analytics, or improvements, please share your feedback. Your input helps guide future updates and improve the indicator for all traders.
This indicator is for educational and analytical purposes only. It should not be considered financial advice. Always use proper risk management and make trading decisions based on your own analysis
Indicator

Multi-Engine MatrixTitle: Multi-Engine Matrix
Description:
The Multi-Engine Matrix is an advanced, all-in-one trading suite designed to bring institutional concepts and momentum oscillators directly onto your main chart. By combining session or timeframe-based liquidity ranges with customizable oscillator projections and a real-time data dashboard, this indicator eliminates the need for multiple chart panes, keeping your workspace clean and highly informative.
🌟 Core Features
1. Dynamic Range & Liquidity Sweeps
The indicator automatically boxes price action based on your chosen mode, tracking the Highest High (HH), Lowest Low (LL), and the
Volume Point of Control (POC).
Session Mode: Tracks the Asian, London, and New York sessions using customizable time inputs.
Timeframe Mode: Tracks ranges based on a selected Higher Timeframe (e.g., Daily or 4H).
Liquidity Sweeps: When price breaks out of a historical session/timeframe box and sweeps the HH or LL, the level turns red and is clearly marked with an "X", highlighting potential liquidity grabs and reversal zones.
Volume POC: Displays the Point of Control for each active and historical range, acting as a magnet or support/resistance level.
2. On-Chart Multi-Engine Oscillators
Forget opening separate indicator panes at the bottom of your chart. The Multi-Engine Matrix projects up to two momentum oscillators (Top Engine and Bottom Engine) directly above and below the active price ranges.
Available Engines: RSI, Stochastic RSI, WaveTrend, and DMI.
Customizable Size: Adjust the projection height (Small, Medium, Large) and the distance from the price action.
Real-time Visualization: Watch momentum diverge or align with price action within the same visual context. WaveTrend momentum histograms, RSI overbought/oversold zones, and DI crossover dynamics are beautifully rendered as on-chart polylines.
3. Real-Time Bias Dashboard
A sleek, adaptive dashboard is positioned on your chart (top right by default) to give you an immediate macroeconomic and momentum overview.
Active Session: Instantly know which market session you are currently trading.
Daily & Weekly Bias: Automatically calculates if the current price is Bullish or Bearish relative to the Daily and Weekly open levels.
Live Metrics: Displays the exact current values for RSI, WaveTrend Momentum, and Directional Movement (DI+ / DI-).
Daily CVD (Cumulative Volume Delta): Tracks intraday buying and selling pressure to gauge true market intent.
4. Quality of Life Features
Moving Averages & VWAP: Optional overlays for session VWAP and your choice of Moving Average (SMA, EMA, WMA, RMA).
Adaptive UI: Fully supports PulseWire's Light and Dark modes. Text colors, labels, and borders automatically adapt to your chart's background for optimal visibility.
⚙️ How to Use
Set Your Mode: Choose whether you want to trade based on specific Time Sessions (Asian/London/NY) or Fixed Timeframes.
Select Your Engines: Choose your preferred momentum oscillators for the Top and Bottom engines.
Watch for Sweeps: Look for price sweeping the historical highs (HH) or lows (LL) marked by a red "X". Combine this with extreme readings on the projected oscillators to spot high-probability reversal setups.
Confirm with the Dashboard: Use the Daily/Weekly bias and CVD metrics to ensure you are trading in the direction of the underlying momentum.
Disclaimer:
The information provided by this script is for educational and informational purposes only and does not constitute financial advice. Trading in financial markets involves a high degree of risk and may not be suitable for all investors. Past performance is not indicative of future results. Always conduct your own research and backtest thoroughly before risking real capital. Indicator

DMI ADX Bollinger BandsThis Pine Script code merges the classic DMI (Directional Movement Index) and ADX (Average Directional Index) indicators with Bollinger Bands, but with a unique twist: the Bollinger Bands are applied to the ADX line itself rather than the price.
This structure allows you to analyze not just the strength of the trend, but the volatility of that trend's momentum.
1. Components of the Indicator
+DI (Navy Line): Represents the strength of the bullish (upward) momentum.
-DI (Red Line): Represents the strength of the bearish (downward) momentum.
ADX (Green Line): Measures the absolute strength of the trend.
Bollinger Bands (Gray Lines & Blue Shading): Measure the volatility of the ADX line (i.e., how rapidly the trend is gaining or losing momentum).
2. How to Interpret the Signals
A. Trend Direction (DMI)
+DI > -DI: The market is trending upward.
-DI > +DI: The market is trending downward.
B. Trend Strength (ADX Levels)
Below 20: The market lacks a clear trend or is in a "ranging" (sideways) state.
20 – 40: A trend is forming and gaining strength. This is usually the prime area for trend-following strategies.
Above 40: The trend is very strong, but it also indicates the market is becoming "overextended" or at risk of exhaustion.
C. Trend Momentum (ADX + Bollinger Bands)
This is the core feature of your script:
ADX crosses above the Upper Band: The trend is gaining momentum explosively. This often indicates a strong breakout or an acceleration in the current price move.
ADX nears the Lower Band: The trend is losing steam or entering a consolidation/sideways phase.
ADX is between the bands: The trend is moving at a consistent, sustainable pace.
3. Trading Strategies
Trend-Following (Entry)
Entry: Look for a cross where +DI > -DI (for long) or -DI > +DI (for short), while the ADX is above 20.
Confirmation: Ideally, you want to see the ADX line moving upward, ideally heading toward the Upper Bollinger Band, confirming that the momentum is building.
Profit Taking / Reversal (Exhaustion)
When the ADX reaches the 40–50 level and touches or exceeds the Upper Bollinger Band, the trend is likely "overextended." This is a strong signal to consider taking profits or tightening your stop-loss, as the market may be due for a correction.
Identifying Ranging Markets
If the ADX line drops below the Lower Bollinger Band, the market has officially entered a low-volatility/sideways phase. Avoid trend-following strategies in this zone and consider strategies better suited for choppy markets. Indicator

Strategy

AG Pro ADX Trend Pressure [AGPro Series]AG Pro ADX Trend Pressure
Overview / What it does
AG Pro ADX Trend Pressure is an overlay indicator that reframes ADX from a simple trend-strength reading into a pressure-state model. Instead of asking only whether ADX is high or low, the script evaluates how directional pressure is building, persisting, fading, or transitioning. The goal is to make ADX-based information easier to interpret directly on the price chart.
This script is designed for traders who want more structure than a standard ADX line, but without turning the chart into a fully automated signal engine. It combines ADX behavior, DI dominance, persistence, and cooling behavior into a state-driven visual framework. The result is a chart-first tool that emphasizes current pressure conditions rather than isolated threshold events.
The indicator uses a compact pressure ribbon, state labels, background zones, and a summary panel to show whether the market is in Compression, Early Expansion, Bull Pressure, Bear Pressure, Exhaustion, or Transition. These states are not predictions. They are structured interpretations of directional pressure conditions based on the current and recent bar sequence.
Because the script is plotted directly on the chart, it is intended to help with visual context, workflow organization, and directional reading. It can be used as a companion layer for discretionary analysis, structure work, trend continuation review, or pressure-fading observation.
Unique Edge
The main distinction of this script is that it does not present ADX as a standalone oscillator. Instead, it treats ADX as one component inside a broader pressure-state engine.
Its core difference is the shift from:
- “ADX is high or low”
to:
- “directional pressure is building”
- “directional pressure is confirmed”
- “pressure is cooling”
- “dominance is fading”
- “state transition risk is rising”
That distinction matters because many ADX-based tools stop at strength confirmation. This script tries to describe the condition around that strength: whether it is forming, maturing, weakening, or rotating.
Methodology
The script is built around a composite pressure score derived from several internal components:
1) ADX level
The script evaluates the current ADX value as a measure of directional strength participation.
2) ADX slope
It also measures whether ADX is accelerating or decelerating. This helps distinguish between pressure expansion and pressure cooling.
3) DI dominance
The spread between +DI and -DI is used to determine whether one side is meaningfully dominant, rather than merely fluctuating.
4) Persistence
Directional pressure becomes more meaningful when dominance remains intact across multiple bars. The script therefore normalizes persistence and includes it in the state logic.
5) Cooling behavior
The model penalizes conditions where momentum of pressure is fading, DI separation is shrinking, or a prior strong phase is losing quality.
These components are blended into a normalized pressure score and then interpreted through rule-based state conditions.
Pressure States
Compression
Used when ADX is relatively weak, DI separation is limited, and the directional structure is not sufficiently active.
Early Expansion
Used when pressure begins to build but has not yet qualified as confirmed directional pressure.
Bull Pressure
Used when bullish directional dominance is active and the pressure score is strong enough to confirm a bullish pressure phase.
Bear Pressure
Used when bearish directional dominance is active and the pressure score is strong enough to confirm a bearish pressure phase.
Exhaustion
Used when a previously strong pressure phase begins to cool materially and loses quality without yet becoming a clean opposite pressure phase.
Transition
Used when dominance quality deteriorates, directional structure rotates, or the market appears to be moving between pressure states.
Visual Structure
The script uses several chart elements to organize the pressure reading:
Pressure Ribbon
A compact ribbon below price summarizes the active pressure state without requiring a separate pane.
Pressure Curve
The center curve makes the pressure structure easier to read visually and helps distinguish calm phases from active directional phases.
State Labels
Labels appear only on state changes, helping reduce repeated label noise while still marking meaningful transitions.
Background Zones
Optional background zones provide broader regime context for stronger phases.
Summary Panel
The panel reports:
- State
- Pressure Score
- Directional Bias
- Pressure Phase
- Persistence
- Cooling Risk
These fields are intended to help the user interpret the current environment quickly without depending on a single line crossing or a single fixed threshold.
How to use it
This indicator is best used as a contextual tool rather than a standalone trade trigger.
Examples of practical use:
- Identify when a directional move is only beginning to organize
- Separate confirmed pressure from weak expansion
- Observe when a mature pressure phase begins to cool
- Spot when directional quality is fading into transition
- Add structure to trend-following or pullback workflows
Some users may prefer to read Bull Pressure and Bear Pressure as confirmation states, while using Early Expansion and Transition as cautionary context. Others may use Exhaustion to review whether a strong move is beginning to lose internal quality. The script does not enforce a single interpretation model.
Signals & Alerts
The script includes deterministic alert conditions for:
- Bullish Pressure Building
- Bearish Pressure Building
- Pressure State Shift
- Pressure Cooling
- Transition Risk Rising
These alerts are state-based notifications. They are not promises of continuation, reversal, or outcome. Their purpose is to notify the user that the internal pressure regime has changed according to the script’s rules.
Key Inputs
ADX Length
Controls the primary ADX and DMI calculation length.
DI Smoothing
Applies smoothing to directional movement components before pressure analysis.
Pressure Threshold
Sets the score level required before directional pressure can be confirmed.
Neutral ADX Threshold
Defines the area where the script becomes more willing to classify conditions as compression instead of directional pressure.
Cooling Sensitivity
Controls how quickly the script responds to deteriorating pressure structure.
Transition Sensitivity
Controls how readily the script recognizes potential regime rotation or dominance loss.
Persistence Length
Defines how persistence is normalized in the internal score model.
Minimum DI Gap
Sets the minimum meaningful separation between +DI and -DI.
Curve Smooth Length
Adjusts how smooth or reactive the pressure drawing appears on the chart.
Visual Controls
The script also includes display settings for:
- Pressure Ribbon
- Pressure Curve
- Active Pressure Spotlight
- Background Zones
- State Labels
- Label Size
- Panel Theme
- Panel Font Size
- Panel Position
Limitations & Transparency
This script is not a prediction model.
It does not forecast future price direction.
It does not guarantee trend continuation.
It does not guarantee reversal timing.
It does not replace risk management.
Like all state-based indicators, it can respond differently depending on volatility regime, market structure, timeframe, and instrument behavior. Strong trends, choppy ranges, and abrupt news-driven moves may produce very different state sequences.
The pressure score is an internal composite reading. It should not be interpreted as a universal probability measure. A score of 70 does not mean a 70 percent chance of success. It only means the current internal pressure components are stronger than they were in lower-score conditions.
Users should also be aware that background context and label placement are visual aids. The most important output is not the label itself, but the broader relationship between state, pressure score, bias, and how the curve behaves through time.
Who this script may be useful for
This script may be useful for traders who:
- already use ADX or DMI and want more chart context
- want a state-based trend pressure overlay
- prefer workflow tools over one-click signal tools
- want a compact visual reading of directional pressure behavior
It may be less suitable for users looking for a pure oscillator pane, a fully automated strategy, or a single-entry single-exit signal framework.
Risk Disclosure
This indicator is for chart analysis and workflow support only.
It is not financial advice.
It should not be treated as a standalone trade instruction.
Markets are risky, and no indicator can eliminate uncertainty.
Use independent judgment, confirm with your own process, and apply risk management appropriate to your market and timeframe.
Indicator

Indicator

Indicator

HiddenRidder - 3 DMI - 3 in 1 OverlayHow the 3‑Layer DMI Stack Works as a Single Story
Think of it like watching traffic from a skyscraper:
Top layer = your current lane (1–5 min)
Fast, noisy, perfect for scalping entries and exits.
Middle layer = the next road over (5–15 min)
Slower, more stable, shows whether the short‑term move has “real backing.”
Bottom layer = the highway (15–30 min)
The big picture. If this layer flips direction, everything above eventually follows.
This structure gives you a “top‑down confirmation” without switching charts.
🧭 What Each Layer Represents
1. Top Layer — Current DMI (1m, 3m, or 5m)
This is your execution layer.
It tells you:
When DI+ crosses above DI− → short‑term bullish burst
When DI− crosses above DI+ → short‑term bearish burst
When ADX rises → momentum is strengthening
When ADX falls → momentum is fading
Use case:
Perfect for scalpers who need to time entries to the second.
Example:
You’re trading BTC on the 1‑minute chart. DI+ crosses up sharply while ADX spikes. You know buyers are stepping in right now.
2. Middle Layer — 5m DMI
This is your trend confirmation layer.
It filters out noise from the top layer.
If the middle layer agrees with the top → high‑probability continuation
If it disagrees → expect chop, fakeouts, or reversals
Example:
Top layer shows bullish DI+ cross, but the middle layer is still bearish.
This tells you:
“Be careful—this pump may be a scalp only, not a trend shift.”
3. Bottom Layer — 15m DMI
This is your directional anchor.
It tells you the underlying pressure in the market.
If bottom layer is bullish → dips on lower timeframes are buyable
If bottom layer is bearish → pumps on lower timeframes are shortable
If ADX is rising → a real trend is forming
If ADX is flat → expect sideways action
Example:
Bottom layer ADX is rising while DI− is dominant.
This means:
“The market is entering a stronger downtrend. Short setups on 1m and 5m will work better.”
🎯 How to Use All 3 Layers Together (The Real Power)
1. Scalping With Trend Alignment
The best scalps happen when:
Bottom layer = trend direction
Middle layer = confirming
Top layer = giving the entry signal
Example Setup:
15m DMI → bearish
5m DMI → bearish
1m DMI → DI− crosses up + ADX rising → Enter short with confidence.
This is where the indicator shines.
2. Catching Reversals Early
Reversals start at the top layer and cascade downward.
Sequence to watch:
Top layer flips bullish
Middle layer begins to flatten
Bottom layer ADX drops (trend weakening)
Bottom layer DI+ crosses up later
This gives you a “heads‑up” before the market turns.
3. Avoiding Fakeouts
If the top layer flips but the middle and bottom layers disagree, it’s usually a trap.
Example:
1m DMI shows bullish DI+ cross
5m DMI still bearish
15m DMI strongly bearish with rising ADX
→ This is a classic bull trap.
→ Best action: wait or short the top.
🧠 A Simple Story to Remember It
Imagine you’re driving:
Top layer is your dashboard — tells you what’s happening right now.
Middle layer is the road signs — tells you what’s coming next.
Bottom layer is the GPS — tells you the real destination.
When all three agree, you drive fast and confidently.
When they disagree, you slow down or stop trading. Indicator

Indicator

Multi-Index VWAP DashboardTo post this on the PulseWire Community Scripts, you want a description that highlights its multi-instrument correlation and institutional session data. It’s not just a VWAP indicator; it’s a "Tape Reading" dashboard for index traders.
Here is a structured description you can copy and paste:
Description
Overview
The Multi-Index Institutional VWAP Dashboard is a high-performance Tape Reading tool designed for NQ, ES, and YM traders. It provides a real-time "at-a-glance" matrix of how the three major US Indices are performing relative to critical institutional benchmarks. Instead of cluttering your main chart with dozens of lines, this dashboard compiles the data into a clean, Bookmap-inspired UI.
Key Benchmarks Tracked
The dashboard monitors price action for NQ, ES, and YM against:
NY VWAP: Anchored specifically to the New York Open (09:30 AM ET).
PD NY VWAP: The closing value of the previous day's New York session VWAP—a major level for institutional mean reversion.
LOD/HOD Anchored VWAP: Dynamic VWAPs that re-anchor automatically to the current Day's High and Day's Low.
15m Opening Range (OR): Detects if price is trading Inside, Above (▲), or Below (▼) the first 15 minutes of the NY session.
Trend Matrix: A real-time momentum filter for each index to identify cross-market divergence.
Features
Bookmap Style Visuals: Uses custom bubble icons (◎) for a modern, heat-map aesthetic.
Timezone Optimized: Hard-coded for New York Session hours while respecting your local chart offset.
Customizable Layout: Full control over dashboard position (Top/Bottom/Corners) and text sizing to fit any monitor resolution.
Cross-Index Correlation: Easily spot "SMT Divergence" (e.g., when NQ is above its NY VWAP but ES is below it).
How to Use
Bullish Confirmation: Look for "All Green" bubbles across all three indices, specifically price holding above the NY VWAP and OR High.
Mean Reversion: Use the PD NY VWAP and HOD/LOD VWAP as targets or areas of interest for potential reversals.
Trend Divergence: If NQ is showing "Bullish" while YM is showing "Bearish," exercise caution as the indices are decoupled.
Settings Tips
Position: Move the dashboard to the "Bottom Right" if you have other indicators at the top.
Style: Toggle between "Solid," "Bubble," or "Ring" icons in the script settings to match your chart's theme. Indicator

Directional Movement Index - DMI | TR🎯 Overview
Directional Movement Index - DMI | TR is a comprehensive trend strength and direction indicator that measures the strength and direction of price movement. Developed by Tiagorocha1989, this enhanced version of Welles Wilder's classic DMI system offers multiple visualization modes, customizable moving averages, and comprehensive visual features to help traders identify trend direction, measure trend strength, and generate clear entry and exit signals.
🔧 How It Works
The DMI system consists of three key components: the Positive Directional Indicator (+DI), the Negative Directional Indicator (-DI), and the Average Directional Index (ADX). The relationship between +DI and -DI determines trend direction, while ADX measures trend strength regardless of direction.
Core Calculation Logic:
The indicator calculates directional movement by comparing current price highs and lows with previous periods to determine:
+DI (Positive Directional Indicator): Measures upward price pressure
-DI (Negative Directional Indicator): Measures downward price pressure
ADX (Average Directional Index): Smoothed average of the directional movement, indicating trend strength
The relationship between +DI and -DI creates the primary signals:
When +DI crosses above -DI → Bullish trend developing
When -DI crosses above +DI → Bearish trend developing
The spread between them indicates trend strength
Additionally, the indicator calculates DMI as the difference between +DI and -DI (+DI minus -DI), creating an oscillator that oscillates around zero:
Positive DMI values → Bullish momentum ( +DI above -DI)
Negative DMI values → Bearish momentum (-DI above +DI)
✨ Key Features
🔹 Multiple Display Modes
DMI Average Mode: Shows the DMI oscillator (+DI minus -DI) with signal line, providing a clean, oscillator-style view of directional balance
Normal DMI Mode: Displays the classic +DI and -DI lines for traditional analysis
ADX Mode: Shows the Average Directional Index for trend strength measurement
All modes can be combined for comprehensive analysis
🔹 Dual Operating Modes for Signals
Zero Line Mode: Signals occur when the DMI oscillator crosses above or below the zero line
DMI MA Mode: Enhanced mode where signals occur when DMI crosses its own moving average, providing filtered entries
🔹 Flexible Moving Average Selection
Choose from six MA types for the DMI MA mode:
EMA, SMA, RMA, WMA, VWMA, and HMA
🔹 Customizable DMI Parameters
Length: Lookback period for DMI calculation (default 8)
ADX Smoothing: Additional smoothing for ADX calculation (default 1)
🔹 Customizable Color Themes
Eight distinct color schemes to match your charting preferences:
Classic – Green for bullish, Red for bearish
Modern – White for bullish, Purple for bearish
Robust – Amber for bullish, Maroon for bearish
Accented – Violet for bullish, Pink for bearish
Monochrome – Light gray for bullish, Dark gray for bearish
Moderate – Green for bullish, Red for bearish
Aqua – Blue for bullish, Orange for bearish
Cosmic – Pink for bullish, Purple for bearish
🔹 Comprehensive Visual Feedback
DMI Oscillator: Colored line showing the difference between +DI and -DI
Signal Line: Yellow line for MA-based signals
Gradient Fill Zones: Clear visualization of extreme readings
Dynamic Zone Fills: Semi-transparent fills showing when DMI is above or below the signal line
+DI and -DI Lines: Optional display of classic directional indicators
ADX Line: Optional blue line showing trend strength
Color-Coded Candles: Bars reflect current trend direction based on +DI/-DI relationship
Signal Markers: Triangle up/down symbols at crossover points
Live Value Display: Floating labels showing current values for each enabled component
Trend Table: Bullish/Bearish status displayed on the chart
🔹 Ready-to-Use Alerts
Built-in alert conditions trigger LONG signals when +DI crosses above -DI, and SHORT signals when +DI crosses below -DI.
⚙️ Settings Summary
Color Choice: Select from eight visual themes (Default: Classic)
DMI Display: Toggle to show the DMI Average oscillator (Default: Enabled)
Length: Lookback period for DMI calculation (Default: 8)
Entry/Exit Signal: Choose between zero line or DMI MA mode (Default: Zero Line)
Length MA: Moving average period for DMI MA mode (Default: 365)
DMI MA Type: Moving average method for signal line (Default: EMA)
Normal DMI: Toggle to show classic +DI and -DI lines (Default: Disabled)
ADX Smoothing: Toggle to show ADX with adjustable smoothing (Default: Disabled)
📈 Practical Applications
🔹 Trend Direction Identification
The primary use of the DMI system is identifying trend direction:
+DI above -DI → Bullish trend
-DI above +DI → Bearish trend
The wider the separation, the stronger the trend
🔹 Trend Strength Measurement
The ADX component quantifies trend strength regardless of direction:
ADX below 20 → Weak or non-trending market
ADX between 20-40 → Trending market with moderate strength
ADX above 40 → Strong trend (can signal trend exhaustion in some cases)
🔹 Crossover Signals
Crossovers between +DI and -DI provide classic entry signals:
+DI crosses above -DI → Potential LONG entry
-DI crosses above +DI → Potential SHORT entry
🔹 DMI Oscillator Analysis
The DMI oscillator (+DI minus -DI) offers additional insights:
Positive values indicate bullish dominance
Negative values indicate bearish dominance
Crossovers of the zero line confirm trend changes
Crossovers of the moving average provide filtered signals
🔹 Trend Exhaustion Detection
When ADX reaches very high levels (above 50-60) after a prolonged trend, it may indicate trend exhaustion and potential reversal. Combined with a narrowing spread between +DI and -DI, this can signal trend weakening.
🔹 Multiple Timeframe Confirmation
Compare DMI readings across different timeframes:
Higher timeframe DMI confirms primary trend direction
Lower timeframe DMI identifies entry timing
🎯 Ideal For
✅ Trend Traders seeking to identify and follow established trends
✅ Swing Traders wanting to capture medium-term directional moves
✅ System Developers needing reliable trend direction signals
✅ Multi-Timeframe Analysts comparing trend strength across periods
✅ Risk Managers assessing whether markets are trending or ranging
📌 Key Takeaways
Comprehensive Trend Analysis: Combines direction (+DI/-DI), strength (ADX), and oscillator views in one indicator
Multiple Display Modes: Choose between classic +DI/-DI lines, DMI oscillator, or ADX based on your analysis style
Dual-Mode Signal Generation: Zero line crossovers for classic signals or MA-smoothed signals for filtered entries
Rich Visual Feedback: Color themes, gradient fills, candles, and floating labels provide immediate market awareness
Alert-Ready: Built-in alerts for trend change signals when +DI crosses -DI
⚠️ Important Notes
The DMI system works best in trending markets and can produce false signals in ranging conditions. ADX does not indicate direction, only strength; always use it in conjunction with +DI/-DI. The 365-day MA default in DMI MA mode is designed for longer-term trend context on daily charts. Consider using ADX above 20-25 to filter for trending conditions before taking crossover signals. Always combine with proper risk management and additional confirmation for best results.
Disclaimer: This indicator is provided for educational and informational purposes only. Past performance is not indicative of future results. Always conduct thorough testing and align with your risk management strategy before live deployment. Indicator

Momentum ChecklistMomentum Checklist - Visual Trading Dashboard
A clean, easy-to-read dashboard that displays key momentum indicators in one convenient table. This indicator helps traders quickly determine the directional bias of price action by combining ADX, Directional Movement Index (DMI), and Money Flow Index (MFI).
What It Shows:
ADX (Average Directional Index): Measures trend strength. Green checkmark appears when ADX ≥ 20, indicating a strong trending market
DI+ (Positive Directional Indicator): Tracks upward price movement
DI- (Negative Directional Indicator): Tracks downward price movement
MFI (Money Flow Index): Volume-weighted momentum indicator. When > 50 indicates bullish money flow
Bias: Automatically calculates directional bias:
LONG: When DI+ > 25 and DI- < 20
SHORT: When DI- > 25 and DI+ < 20
NEUTRAL: When conditions are mixed
Trading Strategy:
This indicator helps determine the bias of price movement in a certain direction. When coupled with Bollinger Bands, it becomes a very powerful combination to catch those big explosive moves up or down. The momentum confirmation from this checklist combined with Bollinger Band squeezes or breakouts can significantly improve entry timing.
Recommended Usage:
Timeframes: 5-minute to 15-minute charts for optimal performance
Best Assets: US30, XAUUSD (Gold), BTCUSD, and most major indices
Works exceptionally well on volatile instruments with strong directional moves
Features:
Color-coded cells for instant visual confirmation
Customizable position (Top Right, Top Left, Bottom Right, Bottom Left)
Adjustable text size (Tiny, Small, Normal)
Configurable ADX, DMI, and MFI period settings
Perfect for day traders and scalpers looking for quick momentum confirmation before entering trades! Feel free to adjust any part of this description to match your style! 🎯 Indicator

Indicator

Hull DMI - MattesHull DMI - Mattes
A Directional Movement Index enhanced with Hull Moving Average smoothing for refined trend detection.
This indicator reimagines the classic Directional Movement Index (DMI) by incorporating Hull Moving Average (HMA) smoothing on high and low prices. It calculates the +DI and -DI components based on changes in these hulled values, then derives the ADX for trend strength. The core plot displays the difference between +DI and -DI, colored to indicate bullish (blue) or bearish (purple) dominance when ADX is rising. Additionally, it overlays colored candles on the price chart to visually represent the prevailing trend direction.
Key Features:
Hull-Smoothed Inputs: Applies HMA to highs and lows before computing directional changes, reducing noise and lag compared to standard DMI.
Customizable Lengths: Adjustable periods for HMA, DI, and ADX smoothing to suit various timeframes and assets.
Trend Visualization: Plots DI difference with dynamic coloring and overlays trend-colored candles for at-a-glance analysis.
Alert Conditions: Built-in alerts for long (bullish) and short (bearish) signals when conditions shift.
How It Differs from Standard DMI/ADX:
Unlike the traditional DMI, which uses raw price changes and true range, this version employs Hull Moving Averages on highs and lows for smoother, more responsive directional calculations. This minimizes whipsaws in choppy markets while preserving sensitivity to genuine trends. The ADX is integrated to filter signals, ensuring color changes and alerts only occur during strengthening trends, setting it apart from basic oscillator-based indicators. Why It's Useful:
Enhanced Trend Identification: The HMA smoothing provides clearer signals in volatile environments, helping traders spot emerging trends earlier.
Visual Clarity: Colored DI plot and candle overlays make it easy to interpret market bias without cluttering the chart.
Versatility: Suitable for stocks, forex, crypto, and more; excels in trend-following strategies or as a filter for other systems.
Risk Management Aid: By focusing on ADX-confirmed moves, it reduces false signals, potentially improving win rates in systematic trading.
This Hull DMI variant offers several practical advantages that can directly improve trading decisions and performance:
Reduced Lag with Smoother Signals: By applying Hull Moving Average smoothing to highs and lows, the indicator responds faster to genuine trend changes than the standard DMI while filtering out much of the noise that causes false signals in ranging or choppy markets. Traders get earlier entries into trending moves without excessive whipsaws.
Built-in Trend Strength Filter: The optional ADX confirmation (enabled by default) ensures bullish signals and blue coloring only activate when trend strength is increasing (ADX rising). This helps traders avoid entering long positions during weakening or sideways trends, focusing capital on higher-probability setups.
Clear Visual Bias at a Glance: The single oscillator line (+DI – -DI) centered on zero, combined with dynamic blue/purple coloring and full candle overlay on the price chart, instantly shows the dominant trend direction. No need to interpret multiple lines—traders can quickly assess market bias across multiple charts or timeframes.
Versatile Across Markets and Styles: Works effectively on stocks, forex, futures, and cryptocurrencies. Trend-following traders can use it standalone for entries/exits, swing traders can use it for bias confirmation, and scalpers/day traders benefit on lower timeframes due to the reduced lag.
Improved Risk Management: By prioritizing ADX-confirmed directional moves, the indicator naturally filters low-conviction setups. This can lead to higher win rates and better risk-reward ratios when used systematically, especially when combined with proper stop-loss placement below/above recent swings.
Easy Integration: Built-in alert conditions and simple long/short logic make it straightforward to incorporate into automated strategies, watchlists, or as a confirming filter alongside other indicators (e.g., moving averages, RSI, volume profile).
Customizable Sensitivity: Separate inputs for Hull length, DI period, and ADX smoothing allow traders to optimize the indicator for specific assets, volatility regimes, or personal trading horizons—making it adaptable rather than one-size-fits-all.
Signals & Interpretation
The oscillator plots the difference between +DI and -DI (positive = bullish dominance, negative = bearish).
Bullish Signal (Long): +DI crosses above -DI, and (if ADX confirmation enabled) ADX is rising — triggers blue coloring, candle overlay, and long alert.
Bearish Signal (Short): -DI crosses above +DI — triggers purple coloring, candle overlay, and short alert.
Zero line acts as neutrality; crossings indicate potential trend shifts.
Best used in trending markets; ADX rising filter helps avoid whipsaws.
// Example Usage in Strategy
strategy("Hull DMI Strategy Example", overlay=true)
if L
strategy.entry("Long", strategy.long)
if S
strategy.entry("Short", strategy.short)
Great Inventions Require great care
Disclaimer: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Past performance is not indicative of future results. Always backtest thoroughly on your specific assets and timeframes, and consult a qualified financial advisor before making trading decisions. The author assumes no responsibility for any losses incurred from its use. Indicator

Strategy

Relative Strength Index_YJ//@version=5
indicator(title="MACD_YJ", shorttitle="MACD_YJ",format=format.price, precision=2)
source = close
useCurrentRes = input.bool(true, title="Use Current Chart Resolution?")
resCustom = input.timeframe("60", title="Use Different Timeframe? Uncheck Box Above")
smd = input.bool(true, title="Show MacD & Signal Line? Also Turn Off Dots Below")
sd = input.bool(false, title="Show Dots When MacD Crosses Signal Line?")
sh = input.bool(true, title="Show Histogram?")
macd_colorChange = input.bool(true, title="Change MacD Line Color-Signal Line Cross?")
hist_colorChange = input.bool(true, title="MacD Histogram 4 Colors?")
// === Divergence inputs ===
grpDiv = "Divergence"
calculateDivergence = input.bool(true, title="Calculate Divergence", group=grpDiv, tooltip="피벗 기반 정/역배 다이버전스 탐지 및 알람 사용")
lookbackRight = input.int(5, "Lookback Right", group=grpDiv, minval=1)
lookbackLeft = input.int(5, "Lookback Left", group=grpDiv, minval=1)
rangeUpper = input.int(60, "Bars Range Upper", group=grpDiv, minval=1)
rangeLower = input.int(5, "Bars Range Lower", group=grpDiv, minval=1)
bullColor = input.color(color.new(#4CAF50, 0), "Bull Color", group=grpDiv)
bearColor = input.color(color.new(#F23645, 0), "Bear Color", group=grpDiv)
textColor = color.white
noneColor = color.new(color.white, 100)
res = useCurrentRes ? timeframe.period : resCustom
fastLength = input.int(12, minval=1)
slowLength = input.int(26, minval=1)
signalLength= input.int(9, minval=1)
fastMA = ta.ema(source, fastLength)
slowMA = ta.ema(source, slowLength)
macd = fastMA - slowMA
signal = ta.sma(macd, signalLength)
hist = macd - signal
outMacD = request.security(syminfo.tickerid, res, macd)
outSignal = request.security(syminfo.tickerid, res, signal)
outHist = request.security(syminfo.tickerid, res, hist)
// 가격도 같은 res로
hi_res = request.security(syminfo.tickerid, res, high)
lo_res = request.security(syminfo.tickerid, res, low)
// ── Histogram 색
histA_IsUp = outHist > outHist and outHist > 0
histA_IsDown = outHist < outHist and outHist > 0
histB_IsDown = outHist < outHist and outHist <= 0
histB_IsUp = outHist > outHist and outHist <= 0
macd_IsAbove = outMacD >= outSignal
plot_color = hist_colorChange ? (histA_IsUp ? color.new(#00FF00, 0) :
histA_IsDown ? color.new(#006900, 0) :
histB_IsDown ? color.new(#FF0000, 0) :
histB_IsUp ? color.new(#670000, 0) : color.yellow) : color.gray
macd_color = macd_colorChange ? color.new(#00ffff, 0) : color.new(#00ffff, 0)
signal_color = color.rgb(240, 232, 166)
circleYPosition = outSignal
// 골든/데드 크로스 (경고 해결: 먼저 계산)
isBullCross = ta.crossover(outMacD, outSignal)
isBearCross = ta.crossunder(outMacD, outSignal)
cross_color = isBullCross ? color.new(#00FF00, 0) : isBearCross ? color.new(#FF0000, 0) : na
// ── 플롯
plot(sh and outHist ? outHist : na, title="Histogram", color=plot_color, style=plot.style_histogram, linewidth=5)
plot(smd and outMacD ? outMacD : na, title="MACD", color=macd_color, linewidth=1)
plot(smd and outSignal? outSignal: na, title="Signal Line", color=signal_color, style=plot.style_line, linewidth=1)
plot(sd and (isBullCross or isBearCross) ? circleYPosition : na,
title="Cross", style=plot.style_circles, linewidth=3, color=cross_color)
hline(0, "0 Line", linestyle=hline.style_dotted, color=color.white)
// =====================
// Divergence (정배/역배) - 피벗 비교
// =====================
_inRange(cond) =>
bars = ta.barssince(cond)
rangeLower <= bars and bars <= rangeUpper
plFound = false
phFound = false
bullCond = false
bearCond = false
macdLBR = outMacD
if calculateDivergence
// 정배: 가격 LL, MACD HL
plFound := not na(ta.pivotlow(outMacD, lookbackLeft, lookbackRight))
macdHL = macdLBR > ta.valuewhen(plFound, macdLBR, 1) and _inRange(plFound )
lowLBR = lo_res
priceLL = lowLBR < ta.valuewhen(plFound, lowLBR, 1)
bullCond := priceLL and macdHL and plFound
// 역배: 가격 HH, MACD LH
phFound := not na(ta.pivothigh(outMacD, lookbackLeft, lookbackRight))
macdLH = macdLBR < ta.valuewhen(phFound, macdLBR, 1) and _inRange(phFound )
highLBR = hi_res
priceHH = highLBR > ta.valuewhen(phFound, highLBR, 1)
bearCond := priceHH and macdLH and phFound
// 시각화 (editable 파라미터 삭제)
plot(plFound ? macdLBR : na, offset=-lookbackRight, title="Regular Bullish (MACD)",
linewidth=2, color=(bullCond ? bullColor : noneColor), display=display.pane)
plotshape(bullCond ? macdLBR : na, offset=-lookbackRight, title="Bullish Label",
text=" Bull ", style=shape.labelup, location=location.absolute, color=bullColor, textcolor=textColor, display=display.pane)
plot(phFound ? macdLBR : na, offset=-lookbackRight, title="Regular Bearish (MACD)",
linewidth=2, color=(bearCond ? bearColor : noneColor), display=display.pane)
plotshape(bearCond ? macdLBR : na, offset=-lookbackRight, title="Bearish Label",
text=" Bear ", style=shape.labeldown, location=location.absolute, color=bearColor, textcolor=textColor, display=display.pane)
// 알람
alertcondition(bullCond, title="MACD Regular Bullish Divergence",
message="MACD 정배 다이버전스 발견: 현재 봉에서 lookbackRight 만큼 좌측.")
alertcondition(bearCond, title="MACD Regular Bearish Divergence",
message="MACD 역배 다이버전스 발견: 현재 봉에서 lookbackRight 만큼 좌측.")
Indicator

Indicator

Indicator

Indicator
