McGinley Dynamic + LWPI ConfluenceWHAT IT DOES
This overlay combines two complementary reads of the market into a single confluence framework: the McGinley Dynamic, an adaptive trend line that speeds up when price runs and slows down in quiet conditions, and the Larry Williams Proxy Index (LWPI), a volatility-scaled balance-of-power oscillator. A signal prints only when both engines agree: trend direction from the McGinley Dynamic, momentum confirmation from the LWPI.
WHY COMBINE THEM
Every fixed-length moving average lags by a constant amount, which makes it too slow in fast markets and too jumpy in slow ones. The McGinley Dynamic addresses that by scaling its own smoothing factor with the ratio of price to its previous value — but, like any trend line, it says nothing about who is actually in control of the move. The LWPI measures exactly that: the average open-to-close pressure normalized by ATR. On its own, however, the LWPI whipsaws inside strong trends. Each component covers the other's blind spot, which is the reason for the mashup: the McGinley Dynamic decides direction, the LWPI decides timing.
HOW IT WORKS
1. Trend engine — McGinley Dynamic:
MD = MD + (price - MD ) / max(k * N * (price / MD )^4, 1)
The fourth-power ratio term automatically widens the divisor when price stretches away from the line, reducing overshoot and whipsaw versus EMAs of comparable length. Price above the line = bullish regime (line plots green), below = bearish (red).
2. Momentum engine — LWPI:
LWPI = 50 * SMA(open - close, N) / ATR(N) + 50
Readings below 50 mean closes are dominating opens relative to volatility (buyers in control); above 50, sellers are in control. Optional smoothing (SMA/EMA/WMA/RMA) is available for noisy symbols.
3. Confluence logic:
- Long state: price above McGinley Dynamic AND LWPI below 50
- Short state: price below McGinley Dynamic AND LWPI above 50
A triangle prints on the first bar a state becomes active. The optional candle coloring shows the full extent of each state; the dashboard in the top-right corner summarizes trend, momentum and confluence at a glance.
4. ATR reference bands:
Dotted bands at +/- ATR * multiplier around price provide volatility context, e.g. for evaluating whether a stop distance is realistic for the symbol and timeframe. They are informational and not part of the signal logic.
HOW TO USE IT
Works on any market and timeframe; it was designed with trending instruments in mind (crypto, FX majors, index futures). A simple workflow: read the regime from the line color, wait for the LWPI to hand momentum back to the trend side, and use the confluence triangle as your alert to start analyzing — not as an automatic entry. The three built-in alerts (long confluence, short confluence, trend flip) let you monitor multiple symbols without watching charts.
SETTINGS
All defaults are textbook values, not curve-fitted: McGinley length 14 with the standard 0.6 constant from the original formula, LWPI period 8, ATR 14 with a 2.0 multiplier. Every input is documented with tooltips.
CREDITS
The McGinley Dynamic concept belongs to John R. McGinley, CMT. The Larry Williams Proxy Index concept was popularized on PulseWire by loxx, whose open-source work this script's momentum component builds on, with thanks.
DISCLAIMER
This is an educational tool for market analysis. It is not financial advice and no performance is implied or promised. Always do your own research.
Indicator

Adaptive Divergence Core [JOAT]Adaptive Divergence Core is an open-source Pine Script v6 oscillator that combines HMA-smoothed RSI behavior, adaptive percentile bands, confirmed divergence lines, and regime fills. It is designed to make oscillator extremes relative to the current chart sample instead of relying only on fixed overbought and oversold levels.
The script is useful when standard oscillator thresholds are too rigid. A market can stay strong or weak for long periods. Adaptive Divergence Core recalculates upper and lower fields from recent oscillator distribution, then plots confirmed divergence only after both price and oscillator pivots are confirmed.
Core Concepts
1. HMA-RSI Core
The oscillator blends RSI on raw price, RSI on HMA-smoothed price, and an HMA-smoothed RSI value. It is centered around zero for easier bullish and bearish reading.
hmaSource = ta.hma(src, hmaLen)
rawRsi = ta.rsi(src, rsiLen)
rsiOnHma = ta.rsi(hmaSource, rsiLen)
smoothedRsi = ta.hma(rawRsi, smoothLen)
core = (rsiOnHma * 0.58 + smoothedRsi * 0.42) - 50.0
2. Adaptive Percentile Bands
The upper and lower bands are calculated from rolling percentiles of the oscillator. This lets the bands adapt to the recent distribution of momentum.
upperRaw = ta.percentile_nearest_rank(core, percentileLength, upperPercentile)
lowerRaw = ta.percentile_nearest_rank(core, percentileLength, lowerPercentile)
3. Extreme Fields
Additional 95th and 5th percentile fields help show deeper oscillator stretch zones beyond the primary adaptive bands.
4. Confirmed Divergence Detection
Bearish divergence requires price to form a higher confirmed pivot high while the oscillator forms a lower confirmed pivot high. Bullish divergence requires price to form a lower confirmed pivot low while the oscillator forms a higher confirmed pivot low.
5. Regime Fill
The script fills the oscillator against zero and against its guide line, making positive and negative regimes easy to read without large markers.
Features
HMA-RSI oscillator: Blends raw RSI, RSI on HMA, and smoothed RSI
Adaptive percentile bands: Upper and lower thresholds adjust to recent oscillator behavior
Extreme bands: Additional outer fields for deeper stretch readings
Confirmed divergence lines: Divergences plot only after price and oscillator pivots confirm
Divergence labels: Small S Div and B Div labels are placed near confirmed divergence lines
Divergence line cap: Old lines are deleted to respect object limits
Optional candle tint: Can color chart candles from the oscillator pane setting
Dashboard: Shows core value, bands, divergence counts, and current field
Alerts: Divergence, band entry, and band release conditions
Input Parameters
Core:
Source: Price source
RSI Length: Base RSI period
HMA Price Length: HMA source smoothing
HMA RSI Smooth: Smoothing for the raw RSI component
Adaptive Bands:
Percentile Length: Lookback used for adaptive thresholds
Upper Percentile: Upper adaptive threshold percentile
Lower Percentile: Lower adaptive threshold percentile
Divergence:
Divergence Left Bars / Right Bars: Pivot confirmation settings
Maximum Divergence Lines: Object cap for plotted divergence lines
Divergence Labels: Shows or hides compact divergence labels
Visuals:
Tint Candles: Optional candle tint from the oscillator state
Show Dashboard: Shows or hides the compact top-right pane dashboard
Palette: Selects the local JOAT color preset
How to Use This Indicator
Step 1: Read the Core Relative to Zero
Values above zero show positive oscillator regime. Values below zero show negative oscillator regime.
Step 2: Use Adaptive Bands
When core enters the upper or lower adaptive band, momentum is stretched relative to its recent sample.
Step 3: Evaluate Divergence After Confirmation
Divergence lines are delayed by pivot confirmation. This is intentional and avoids projecting unconfirmed pivots into the past.
Indicator Limitations
Divergences confirm late because pivots need right-side bars
Adaptive bands depend on the selected lookback and can shift over time
Divergence is context, not a complete trade plan
During strong trends, oscillator stretch can persist for many bars
Originality Statement
Adaptive Divergence Core is original in its HMA-RSI blend, rolling percentile threshold system, confirmed pivot divergence logic, and compact dashboard. It uses public Pine v6 functions to build a distinct oscillator workflow.
Disclaimer
This script is provided for educational and informational use only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Oscillator divergences can fail or remain early for extended periods. Always use independent analysis and proper risk management.
-Made with passion by jackofalltrades
Indicator

Indicator

Buy/Sell Pressure# **Buy/Sell Pressure**
Buy/Sell Pressure is designed to provide insight into **who is actually controlling the market beneath the surface**. Rather than focusing exclusively on whether price is moving higher or lower, the indicator attempts to determine whether those price movements are being supported by genuine buying interest or genuine selling pressure.
Markets do not always move because one side is aggressively taking control. Sometimes prices drift higher simply because sellers temporarily step aside. Other times, prices fall because buyers become reluctant rather than because sellers are overwhelming the market. Looking at price alone can make these distinctions difficult to recognize.
Buy/Sell Pressure was developed to address that problem.
The indicator combines several different aspects of market behavior into a single, easy-to-read oscillator. By evaluating how price behaves within each bar, how volume participates in those movements, and whether underlying money flow supports the move, it attempts to provide a clearer picture of the balance of power between buyers and sellers.
The goal is not to predict the future. Instead, the goal is to answer a simpler but often more useful question:
> **Who appears to be winning the battle right now: buyers or sellers?**
---
# **What the Indicator Is Measuring**
Buy/Sell Pressure evaluates multiple dimensions of market behavior simultaneously.
It examines where price closes within the range of each bar. A market that consistently closes near the upper portion of its range often reflects persistent buying interest. Conversely, a market that repeatedly closes near the lower portion of its range may indicate sustained selling pressure.
The indicator also evaluates the relationship between opening and closing prices. Large bullish bodies suggest buyers were able to maintain control throughout the period, while large bearish bodies suggest sellers dominated the session. Smaller candle bodies generally indicate indecision or equilibrium between the two sides.
Wick behavior is another important component. Long lower shadows often suggest that sellers attempted to push prices lower but buyers stepped in aggressively enough to reject those lower levels. Long upper shadows may indicate that buyers attempted to push prices higher but encountered significant selling resistance. These subtle forms of rejection can reveal underlying pressure that may not be obvious from price alone.
Volume is then incorporated into the calculation. Price movement occurring during periods of elevated participation tends to carry greater significance than identical price movement occurring during quiet conditions. By weighting certain behaviors according to volume, the indicator attempts to emphasize moves that are supported by broader market involvement.
The indicator also considers money flow and cumulative volume behavior. This helps determine whether capital has generally been flowing into the market or out of it over recent periods. These additional layers of analysis help distinguish meaningful shifts in pressure from ordinary short-term fluctuations.
The result is a composite measure designed to identify whether **buying pressure is strengthening, selling pressure is strengthening, or neither side currently has a meaningful advantage.**
---
# **Understanding the Histogram**
The primary visual component of the indicator is the histogram.
The histogram oscillates around a central zero line. The further the histogram extends away from that centerline, the stronger the underlying pressure is considered to be.
The direction and color of the histogram provide insight into the current balance between buyers and sellers.
---
## **Green Histogram Bars**
Green histogram bars indicate that underlying buying pressure is present.
When the histogram begins printing green bars, it suggests that buyers are exerting increasing influence over market behavior. Price action is becoming increasingly supported by demand rather than simply drifting higher due to a lack of sellers.
As green bars expand in size, the strength of buying pressure is increasing. This often occurs during healthy uptrends, breakout phases, or periods of sustained accumulation.
---
## **Red Histogram Bars**
Red histogram bars indicate that underlying selling pressure is dominant.
These readings suggest that sellers are becoming increasingly aggressive and that downward price movement is being supported by genuine supply entering the market.
As red bars grow larger, selling pressure is intensifying. These conditions frequently accompany strong downtrends, breakdowns, or periods of distribution.
---
## **Gray Histogram Bars**
Gray histogram bars represent neutral conditions.
During these periods, neither buyers nor sellers possess a sufficiently strong advantage to justify a directional reading.
Neutral conditions often occur during:
* Consolidation phases.
* Sideways markets.
* Transitional periods between trends.
* Areas of temporary equilibrium.
Gray bars can serve as a reminder that not every market environment is favorable for directional decision-making.
---
## **Extreme Pressure Conditions**
The indicator also identifies periods when buying or selling pressure becomes unusually strong relative to recent history.
These conditions are represented by brighter shades of green or red.
Extreme readings indicate that conviction is significantly elevated. Buyers or sellers are demonstrating an unusual degree of control compared to what has been considered normal over the selected historical period.
It is important to understand that extreme readings should not automatically be interpreted as reversal signals.
Strong markets can remain strong for extended periods. Likewise, weak markets can continue to weaken. Extreme readings are best viewed as evidence of exceptional pressure rather than immediate exhaustion.
---
# **The Signal Line**
The orange signal line provides a smoother representation of the underlying pressure reading.
Because it is less reactive than the histogram itself, it can help traders focus on broader shifts in pressure rather than becoming distracted by every short-term fluctuation.
A rising signal line generally reflects improving conditions for buyers.
A falling signal line generally reflects strengthening conditions for sellers.
Many users find the signal line useful when assessing whether pressure is accelerating, stabilizing, or beginning to deteriorate.
---
# **Pressure Dots**
The indicator includes optional pressure dots designed to highlight important transitions in market control.
Users can choose between two different methods for generating these signals.
---
## **Zero Cross Mode**
In Zero Cross mode, a green dot appears when pressure crosses above the zero line, while a red dot appears when pressure crosses below zero.
These signals occur relatively early because they identify the point at which the balance of pressure shifts from negative to positive or vice versa.
The advantage of this approach is speed.
The disadvantage is that early signals can occasionally occur during temporary fluctuations that fail to develop into meaningful trends.
---
## **First Colored Bar Mode**
In First Colored Bar mode, dots appear only when pressure moves decisively beyond the neutral zone and the first meaningful buying or selling histogram bar is printed.
Green dots identify the first significant buying bar.
Red dots identify the first significant selling bar.
Because these signals require stronger confirmation, they tend to occur later than zero-cross signals.
However, they are often cleaner and easier to interpret.
This mode is the default setting because it focuses on identifying **meaningful pressure shifts rather than merely technical transitions around the zero line.**
---
# **Understanding the Inputs**
---
## **Confirmed Bars Only (Non-Repainting)**
When enabled, all calculations are based exclusively on completed bars.
This prevents signals from changing after a bar closes and ensures that historical signals accurately reflect what would have been visible in real time.
The tradeoff is that signals appear one bar later.
This setting is enabled by default because reliability is often more valuable than immediacy.
---
## **Show Confirmed Mode Label**
This optional label provides a visual reminder that non-repainting mode is active.
It has no impact on calculations and exists purely for convenience.
The label is disabled by default to preserve a cleaner appearance.
---
## **Pressure Lookback**
This setting controls how persistent underlying pressure must be before the indicator fully reflects it.
Lower values produce a more responsive oscillator that reacts quickly to changing conditions.
Higher values produce a smoother oscillator that emphasizes sustained pressure rather than short-term fluctuations.
The default value of **50** attempts to strike a balance between responsiveness and stability.
---
## **Score Smoothing**
Score Smoothing determines how aggressively the raw pressure calculations are filtered before reaching the final oscillator.
Increasing this value reduces noise but delays transitions.
Decreasing it improves responsiveness but increases sensitivity.
The default value of **5** provides moderate smoothing without excessively sacrificing timeliness.
---
## **Volume Baseline**
Volume Baseline establishes the historical reference used to determine whether current participation levels are unusually high or unusually low.
Higher settings create a more stable volume benchmark.
Lower settings allow the indicator to adapt more quickly to changing market environments.
---
## **Normalization Lookback**
Normalization Lookback determines how much historical information is used when establishing what constitutes "normal" pressure conditions.
Shorter values adapt rapidly but may cause thresholds to shift more frequently.
Longer values create a more stable frame of reference.
The default value of **100** was chosen to emphasize consistency and reduce sensitivity to temporary anomalies.
---
## **Signal Line Length**
This setting controls the responsiveness of the signal line.
Shorter lengths allow the signal line to track pressure more closely.
Longer lengths smooth the signal line and emphasize broader trends.
---
## **Money Flow Length**
Money Flow Length determines how much historical information is used when evaluating whether capital has generally been entering or exiting the market.
Smaller values respond quickly to recent changes.
Larger values emphasize longer-term participation trends.
---
## **OBV Pressure Length**
This setting controls how much cumulative volume history contributes to the assessment of broader buying and selling participation.
Lower values prioritize recent developments.
Higher values place greater emphasis on sustained pressure trends.
---
## **Neutral Zone**
The Neutral Zone defines the boundary separating insignificant pressure from meaningful pressure.
Histogram readings that remain inside this area are considered inconclusive and are displayed using neutral colors.
Reducing the size of the neutral zone increases sensitivity.
Expanding it requires stronger evidence before directional readings are generated.
The default setting of **35** attempts to filter out routine market noise while remaining responsive to meaningful shifts.
---
## **Extreme Level**
The Extreme Level determines when pressure becomes exceptionally strong relative to recent market conditions.
Readings beyond this threshold are highlighted using brighter colors.
These conditions often reflect unusually strong conviction but should not automatically be interpreted as reversal opportunities.
The default value of **75** identifies situations where pressure has become significantly elevated.
---
# **Practical Applications**
Buy/Sell Pressure can be used in a variety of ways.
Many traders use it as a confirmation tool during breakouts. When price breaks through an important level while buying pressure simultaneously strengthens, the move may possess greater credibility.
Others use it to evaluate pullbacks. Temporary declines occurring during periods of weak selling pressure may suggest healthy retracements within larger uptrends. Similarly, weak buying pressure during countertrend rallies may indicate that bearish conditions remain intact.
The indicator can also help identify potential exhaustion. If price continues advancing while buying pressure steadily deteriorates, the underlying trend may be losing support. Likewise, continued price declines accompanied by weakening selling pressure may suggest that bearish momentum is beginning to fade.
Finally, Buy/Sell Pressure can serve as a valuable trade filter. Traders who already possess an established strategy may use the indicator to align themselves with the prevailing side of the market.
---
# **Final Thoughts**
Buy/Sell Pressure was designed to help traders look beyond price itself and focus on the forces driving that price movement.
Rather than asking whether the market moved higher or lower, it asks whether buyers or sellers genuinely supported that move.
By combining price behavior, volume participation, money flow characteristics, and cumulative pressure analysis into a single adaptive framework, the indicator seeks to provide a clearer understanding of market conviction.
Its purpose is not to predict exactly what the market will do next.
Its purpose is to help answer a more immediate and practical question:
> **If a battle is taking place between buyers and sellers, which side currently appears to have the advantage?** Indicator

Money Flow Accumulation Engine | Alpha S+Money Flow Accumulation Engine
Money Flow Accumulation Engine is a volume-flow oscillator designed to help users study accumulation, distribution, inflow, outflow, and flow divergence conditions.
The script combines several volume and price-pressure concepts into one normalized flow structure. It uses Money Flow Index behavior, Chaikin Money Flow logic, OBV deviation, price-location pressure, relative volume, and smoothed flow direction to create a broader view of whether volume behavior is leaning toward accumulation or distribution.
The script does not provide entry or exit recommendations. Its purpose is to help users study money-flow pressure, flow confirmation, flow weakness, divergence behavior, and accumulation or distribution zones in a structured oscillator format.
────────────────────
Core Concept
────────────────────
Volume can provide additional context that price alone does not show.
A rising price move with weak flow may have a different meaning from a rising price move with strong inflow.
A sideways price area with improving flow may suggest accumulation behavior.
A sideways or rising price area with weakening flow may suggest distribution behavior.
This script combines multiple flow components:
• MFI-based money flow pressure
• CMF-style volume pressure
• OBV deviation from its trend
• candle body and close-location pressure
• relative volume
• smoothed money-flow direction
• accumulation and distribution zone logic
• flow confirmation and flow weakness states
• divergence checks between price and flow
The goal is to give users a cleaner way to study whether volume pressure is strengthening, weakening, accumulating, or distributing.
────────────────────
What This Script Shows
────────────────────
The script can display:
• money flow histogram
• smoothed money flow line
• flow signal line
• smart money line
• accumulation ribbon
• distribution ribbon
• inflow and outflow guide levels
• strong inflow and strong outflow guide levels
• accumulation and distribution start labels
• flow confirmation markers
• flow out markers
• optional flow weakness labels
• optional divergence labels
• current state badge
• debug component plots
These elements are intended to help users review whether market participation is showing stronger inflow, outflow, accumulation, distribution, or weaker flow conditions.
────────────────────
How It Works
────────────────────
1. The script calculates Money Flow Index and converts it into a centered flow value.
2. It calculates a CMF-style money-flow component using close location within the candle range and volume.
3. It calculates OBV and measures OBV deviation from its EMA trend.
4. It calculates price-volume pressure from candle body direction, close location, and relative volume.
5. These components are combined into a single raw money-flow value.
6. The raw value is smoothed to create the main money-flow line.
7. A slower signal line is created from the flow value.
8. A smart money line is calculated from the smoothed flow.
9. Accumulation candidates are detected when price is flat or down, price is near the lower part of its range, flow improves, and relative volume is present.
10. Distribution candidates are detected when price is flat or up, price is near the upper part of its range, flow weakens, and relative volume is present.
11. Accumulation and distribution zones require conditions to persist for a selected number of bars.
12. Flow confirmation is detected when flow strength, smart money slope, signal-line alignment, and relative volume agree.
13. Flow out confirmation can be blocked near short-term lows to reduce late bearish labels.
14. Divergence checks compare price extremes with flow behavior over the selected lookback period.
15. Cooldowns reduce repeated labels in the same region.
16. Scores are calculated for accumulation, distribution, flow confirmation, weakness, and divergence states.
This structure helps users study money-flow behavior without relying on a single volume indicator.
────────────────────
Inputs And Customization
────────────────────
Users can adjust:
• source price
• money flow length
• flow smoothing
• OBV trend length
• CMF length
• volume moving average length
• accumulation lookback
• distribution lookback
• flat price ATR range
• flow confirmation level
• flow weak level
• divergence lookback
• signal cooldown bars
• accumulation and distribution zone minimum bars
• minimum divergence score
• minimum confirm score
• minimum accumulation score
• minimum distribution score
• flow-out filter near short-term lows
• near-low and near-high range thresholds
• histogram visibility
• flow line visibility
• smart money line visibility
• accumulation and distribution ribbons
• start labels
• signal labels
• small markers
• divergence labels
• guide lines
• current badge
• debug plots
• label language
• score visibility
The default settings are designed to keep the oscillator readable while highlighting only higher-priority flow states.
────────────────────
Visual Elements
────────────────────
The script includes:
• histogram columns
• flow line
• signal line
• smart money line
• upper and lower flow guide levels
• accumulation ribbon
• distribution ribbon
• compact markers
• optional text labels
• optional current badge
The histogram shows the current composite money-flow value.
The flow line smooths the composite flow pressure.
The signal line gives a slower comparison reference.
The smart money line is a secondary smoothed flow reference used in accumulation, distribution, and confirmation logic.
The ribbons mark persistent accumulation or distribution environments.
Markers and labels are prioritized so that accumulation and distribution zone starts appear before lower-priority states.
────────────────────
Reference States
────────────────────
Accumulation:
A persistent lower-range condition where price is flat or down, price remains near the lower part of its range, and flow behavior is improving.
Distribution:
A persistent upper-range condition where price is flat or up, price remains near the upper part of its range, and flow behavior is weakening.
Flow Confirm:
A stronger positive-flow state where flow, signal-line relationship, smart money slope, and relative volume support the same direction.
Flow Out:
A stronger negative-flow state where flow, signal-line relationship, smart money slope, and relative volume support outflow behavior.
Flow Weak:
A condition where price movement continues but flow behavior weakens compared with prior flow.
Bullish Flow Divergence:
Price forms a lower low while flow does not confirm the same weakness.
Bearish Flow Divergence:
Price forms a higher high while flow does not confirm the same strength.
These states are informational and should not be interpreted as trading instructions.
────────────────────
How To Use
────────────────────
Use this script as a money-flow and accumulation-distribution analysis tool.
General interpretation examples:
• Positive flow values suggest stronger inflow pressure.
• Negative flow values suggest stronger outflow pressure.
• Flow above the signal line can show improving flow pressure.
• Flow below the signal line can show weakening flow pressure.
• A rising smart money line can support improving flow context.
• A falling smart money line can support weakening flow context.
• Accumulation ribbons can help users study areas where price is not advancing strongly but flow conditions are improving.
• Distribution ribbons can help users study areas where price is not declining strongly but flow conditions are weakening.
• Flow Confirm labels can help users identify stronger positive-flow alignment.
• Flow Out labels can help users identify stronger negative-flow alignment.
• Divergence labels can help users compare price extremes with flow behavior.
• Scores can be used as a relative strength reference for each detected state.
This script is best reviewed together with price action, trend structure, support and resistance, volume context, volatility, and higher-timeframe conditions.
────────────────────
Confirmation And Repainting Notes
────────────────────
The script calculates flow values from current and historical price-volume data.
On realtime candles, values can change before the candle closes because price, volume, range position, MFI, CMF, OBV, and smoothing values can update intrabar.
For more conservative analysis, users should review flow states after candle confirmation.
The script does not use future price data to predict market direction.
Divergence and zone labels are based on selected lookback windows and may depend on how the current candle closes.
────────────────────
Limitations
────────────────────
This script does not predict future price movement.
It does not provide entry or exit recommendations.
Accumulation does not guarantee an upward move.
Distribution does not guarantee a downward move.
Strong inflow can appear during late-stage continuation or exhaustion.
Strong outflow can appear near short-term lows, which is why the script includes an optional flow-out filter.
Divergence can persist for a long time before price reacts.
Different symbols and timeframes may require different settings.
This script should not be used as a standalone trading system.
────────────────────
Disclaimer
────────────────────
This publication is for educational and informational chart analysis only.
It does not constitute financial advice, investment advice, or a recommendation to trade any financial instrument.
All trading and investment decisions are the responsibility of the user.
━━━━━━━━━━━━━━━━━━━━
Money Flow Accumulation Engine
Money Flow Accumulation Engine은 매집, 분산, 자금 유입, 자금 이탈, 흐름 다이버전스 조건을 분석하기 위한 거래량 기반 money-flow 오실레이터입니다.
이 스크립트는 여러 거래량 및 가격 압력 개념을 하나의 정규화된 flow 구조로 결합합니다. Money Flow Index, Chaikin Money Flow 방식의 압력, OBV 편차, 가격 위치 압력, 상대 거래량, smoothed flow direction을 사용해 거래량 행동이 accumulation 또는 distribution 쪽으로 기울고 있는지 분석합니다.
이 지표는 진입 또는 청산 추천을 제공하지 않습니다. 목적은 money-flow pressure, flow confirmation, flow weakness, divergence behavior, accumulation 또는 distribution zone을 구조화된 오실레이터 형태로 분석하는 것입니다.
────────────────────
핵심 개념
────────────────────
거래량은 가격만으로는 보이지 않는 추가 컨텍스트를 제공할 수 있습니다.
약한 flow를 동반한 가격 상승과 강한 inflow를 동반한 가격 상승은 서로 다르게 해석될 수 있습니다.
가격이 횡보하는 동안 flow가 개선되면 accumulation behavior를 검토할 수 있습니다.
가격이 횡보하거나 상승하는 동안 flow가 약해지면 distribution behavior를 검토할 수 있습니다.
이 스크립트는 다음 flow component를 결합합니다.
• MFI 기반 money flow pressure
• CMF 스타일 volume pressure
• OBV trend 대비 deviation
• candle body 및 close-location pressure
• relative volume
• smoothed money-flow direction
• accumulation 및 distribution zone logic
• flow confirmation 및 flow weakness states
• price와 flow 사이의 divergence checks
목표는 거래량 압력이 강화, 약화, 매집, 분산 중 어디에 가까운지 더 깔끔하게 검토할 수 있도록 돕는 것입니다.
────────────────────
이 스크립트가 보여주는 것
────────────────────
이 스크립트는 다음 요소를 표시할 수 있습니다.
• money flow histogram
• smoothed money flow line
• flow signal line
• smart money line
• accumulation ribbon
• distribution ribbon
• inflow and outflow guide levels
• strong inflow and strong outflow guide levels
• accumulation and distribution start labels
• flow confirmation markers
• flow out markers
• optional flow weakness labels
• optional divergence labels
• current state badge
• debug component plots
이 요소들은 시장 참여가 강한 inflow, outflow, accumulation, distribution 또는 weaker flow 조건 중 어디에 가까운지 검토하는 데 도움을 줍니다.
────────────────────
작동 방식
────────────────────
1. Money Flow Index를 계산하고 이를 중심화된 flow 값으로 변환합니다.
2. 캔들 범위 내 종가 위치와 거래량을 사용해 CMF 스타일 money-flow component를 계산합니다.
3. OBV를 계산하고 OBV가 EMA trend에서 얼마나 벗어났는지 측정합니다.
4. 캔들 몸통 방향, 종가 위치, 상대 거래량을 사용해 price-volume pressure를 계산합니다.
5. 이 component들을 하나의 raw money-flow value로 결합합니다.
6. Raw value를 평활화하여 main money-flow line을 만듭니다.
7. Flow value에서 더 느린 signal line을 만듭니다.
8. Smoothed flow에서 smart money line을 계산합니다.
9. Accumulation candidate는 가격이 flat 또는 down이고, 가격이 범위 하단부에 있으며, flow가 개선되고, relative volume이 존재할 때 감지됩니다.
10. Distribution candidate는 가격이 flat 또는 up이고, 가격이 범위 상단부에 있으며, flow가 약해지고, relative volume이 존재할 때 감지됩니다.
11. Accumulation 및 distribution zone은 조건이 선택한 봉 수 이상 지속되어야 합니다.
12. Flow confirmation은 flow strength, smart money slope, signal-line alignment, relative volume이 같은 방향으로 정렬될 때 감지됩니다.
13. Flow out confirmation은 단기 저점 부근에서 늦은 bearish label을 줄이기 위해 선택적으로 차단할 수 있습니다.
14. Divergence check는 선택한 lookback period에서 price extreme과 flow behavior를 비교합니다.
15. Cooldown은 같은 구간에서 반복 label을 줄입니다.
16. Score는 accumulation, distribution, flow confirmation, weakness, divergence state별로 계산됩니다.
이 구조는 단일 거래량 지표에만 의존하지 않고 money-flow behavior를 검토할 수 있게 합니다.
────────────────────
입력값 및 설정
────────────────────
사용자는 다음 항목을 조정할 수 있습니다.
• source price
• money flow length
• flow smoothing
• OBV trend length
• CMF length
• volume moving average length
• accumulation lookback
• distribution lookback
• flat price ATR range
• flow confirmation level
• flow weak level
• divergence lookback
• signal cooldown bars
• accumulation and distribution zone minimum bars
• minimum divergence score
• minimum confirm score
• minimum accumulation score
• minimum distribution score
• short-term low 부근 flow-out filter
• near-low 및 near-high range thresholds
• histogram visibility
• flow line visibility
• smart money line visibility
• accumulation and distribution ribbons
• start labels
• signal labels
• small markers
• divergence labels
• guide lines
• current badge
• debug plots
• label language
• score visibility
기본 설정은 오실레이터를 읽기 쉽게 유지하면서, 우선순위가 높은 flow state만 강조하도록 설계되어 있습니다.
────────────────────
시각 요소
────────────────────
이 스크립트는 다음 시각 요소를 포함합니다.
• histogram columns
• flow line
• signal line
• smart money line
• upper and lower flow guide levels
• accumulation ribbon
• distribution ribbon
• compact markers
• optional text labels
• optional current badge
Histogram은 현재 composite money-flow value를 보여줍니다.
Flow line은 composite flow pressure를 평활화한 값입니다.
Signal line은 더 느린 비교 기준선입니다.
Smart money line은 accumulation, distribution, confirmation logic에 사용되는 secondary smoothed flow reference입니다.
Ribbon은 persistent accumulation 또는 distribution environment를 표시합니다.
Marker와 label은 accumulation 및 distribution zone start가 낮은 우선순위 상태보다 먼저 표시되도록 정리되어 있습니다.
────────────────────
참고 상태
────────────────────
Accumulation:
가격이 flat 또는 down이고, 가격이 범위 하단부에 머물며, flow behavior가 개선되는 persistent lower-range condition입니다.
Distribution:
가격이 flat 또는 up이고, 가격이 범위 상단부에 머물며, flow behavior가 약해지는 persistent upper-range condition입니다.
Flow Confirm:
Flow, signal-line relationship, smart money slope, relative volume이 같은 방향으로 정렬된 stronger positive-flow state입니다.
Flow Out:
Flow, signal-line relationship, smart money slope, relative volume이 outflow behavior를 지지하는 stronger negative-flow state입니다.
Flow Weak:
가격 움직임은 이어지지만 flow behavior가 과거 flow와 비교해 약해지는 상태입니다.
Bullish Flow Divergence:
가격이 lower low를 만들지만 flow가 같은 약세를 확인하지 않는 상태입니다.
Bearish Flow Divergence:
가격이 higher high를 만들지만 flow가 같은 강세를 확인하지 않는 상태입니다.
이 상태들은 정보 제공용이며, 매매 지시로 해석해서는 안 됩니다.
────────────────────
사용 방법
────────────────────
이 스크립트는 money-flow 및 accumulation-distribution analysis tool로 사용하는 것이 적절합니다.
일반적인 해석 예시는 다음과 같습니다.
• Positive flow value는 stronger inflow pressure를 의미할 수 있습니다.
• Negative flow value는 stronger outflow pressure를 의미할 수 있습니다.
• Flow가 signal line 위에 있으면 improving flow pressure를 검토할 수 있습니다.
• Flow가 signal line 아래에 있으면 weakening flow pressure를 검토할 수 있습니다.
• Rising smart money line은 improving flow context를 보조할 수 있습니다.
• Falling smart money line은 weakening flow context를 보조할 수 있습니다.
• Accumulation ribbon은 가격이 강하게 상승하지 않더라도 flow condition이 개선되는 구간을 검토하는 데 사용할 수 있습니다.
• Distribution ribbon은 가격이 강하게 하락하지 않더라도 flow condition이 약해지는 구간을 검토하는 데 사용할 수 있습니다.
• Flow Confirm label은 stronger positive-flow alignment를 확인하는 데 사용할 수 있습니다.
• Flow Out label은 stronger negative-flow alignment를 확인하는 데 사용할 수 있습니다.
• Divergence label은 price extreme과 flow behavior를 비교하는 데 사용할 수 있습니다.
• Score는 각 detected state의 relative strength reference로 사용할 수 있습니다.
이 스크립트는 가격 행동, 추세 구조, 지지와 저항, 거래량 컨텍스트, 변동성, 상위 시간대 조건과 함께 검토하는 것이 좋습니다.
────────────────────
확인봉 및 리페인트 안내
────────────────────
이 스크립트는 현재 및 과거 price-volume data에서 flow value를 계산합니다.
실시간 캔들에서는 price, volume, range position, MFI, CMF, OBV, smoothing value가 봉 마감 전까지 변경될 수 있으므로 값이 변할 수 있습니다.
보다 보수적인 분석을 원한다면 봉 마감 이후 flow state를 검토하는 것이 적절합니다.
이 스크립트는 미래 가격 데이터를 사용해 시장 방향을 예측하지 않습니다.
Divergence 및 zone label은 선택한 lookback window와 현재 캔들의 마감 방식에 영향을 받을 수 있습니다.
────────────────────
한계
────────────────────
이 스크립트는 미래 가격 움직임을 예측하지 않습니다.
진입 또는 청산 추천을 제공하지 않습니다.
Accumulation이 상승 움직임을 보장하지 않습니다.
Distribution이 하락 움직임을 보장하지 않습니다.
Strong inflow는 late-stage continuation 또는 exhaustion에서도 나타날 수 있습니다.
Strong outflow는 단기 저점 부근에서도 나타날 수 있으며, 이를 줄이기 위해 선택형 flow-out filter가 포함되어 있습니다.
Divergence는 가격이 반응하기 전까지 오래 지속될 수 있습니다.
종목과 시간대에 따라 적절한 설정값이 달라질 수 있습니다.
이 스크립트를 단독 매매 시스템으로 사용해서는 안 됩니다.
────────────────────
중요 고지
────────────────────
본 게시물은 교육 및 정보 제공 목적의 차트 분석 자료입니다.
투자 자문, 특정 금융상품 거래 권유, 또는 수익 보장을 의미하지 않습니다.
모든 투자 판단과 그 결과에 대한 책임은 이용자 본인에게 있습니다. Indicator

Adaptive MACD Regime, Volatility Bands & Conviction# Adaptive MACD — Regime, Volatility Bands & Conviction
## What this is
This is a single, self-contained momentum framework built around **one normalized MACD core**. Instead of plotting a raw MACD and leaving you to judge it, the script surrounds that core with the context a momentum reading needs to be usable: a market-regime filter, an adaptive length stage, a multi-timeframe agreement check, a volatility band, and a conviction score that combines them into one number. It runs on **any symbol and any timeframe** — the price source and every optional reference feed are selectable in Settings.
It is a study/indicator (not a strategy). It does not place orders and does not claim any performance.
---
## Why these components are combined (mashup rationale)
A plain MACD only answers "is momentum up or down right now." On its own it has two well-known weaknesses: it whipsaws during sideways markets, and its fixed 12/26/9 lengths are arbitrary for any given symbol or timeframe. Each module below exists to fix a specific one of those weaknesses, and they are deliberately chained so the output of one informs the next:
1. **Normalized MACD core (L1)** — the MACD histogram is converted to a rolling **z-score**, so a reading of "+2" means the same thing on a low-priced FX pair, a high-priced index, or a 1-minute vs daily chart. Raw MACD values are not comparable across instruments; the z-score is. This is what makes the rest of the framework symbol-agnostic.
2. **Regime filter (L2)** — efficiency ratio + ADX + a volatility-clustering measure classify the market as **Trend / Range / Volatile**. This is used to decide whether a momentum signal should be trusted: MACD crosses are reliable in trends and noisy in ranges, so the regime gates and reweights the core signal rather than treating every cross equally.
3. **Adaptive length stage (L3)** — a dominant-cycle estimate (Ehlers homodyne) retunes the fast/slow/signal lengths toward the market's measured rhythm, instead of a static 12/26/9. You can switch this to a volatility-driven mode or fall back to fixed lengths. This directly addresses the "arbitrary lengths" weakness.
4. **Multi-timeframe confluence (MTF)** — the same MACD logic is evaluated on four higher timeframes, confirmed on bar close so it does not repaint. A single-timeframe cross is weak; agreement across timeframes is the filter.
5. **Volatility band + fade (L4)** — a volume-weighted standard-deviation band around price flags stretched conditions and band-rejection ("fade") setups, used as a mean-reversion counterweight to the trend logic.
6. **Conviction + vetoes (CON)** — all of the above are blended into a single **0–100 conviction score** with hard vetoes (e.g. counter-regime, timeframe disagreement, volatility spike). This is the part that turns several separate readings into one decision so you are not eyeballing five panels.
7. **Risk framework (RISK)** — once there is a signal, it derives an ATR stop, R-multiple targets, and a position-size suggestion from your account equity and risk %. This is shown as thin Entry / Stop / TP1 / TP2 lines on price.
In short: **L1 makes momentum comparable, L2 decides if it can be trusted, L3 tunes it, MTF confirms it, L4 adds a reversion check, CON scores it, and RISK frames it.** None of the layers is decorative — remove any one and the others lose context.
---
## How to use it
1. Add it to any chart and timeframe. It plots in its own lower pane; the trade levels and dashboard overlay on price.
2. Read the **dashboard header**: it shows the current action (BUY / SELL / HOLD / WAIT / FLAT) and the entry/stop.
3. Check **VERDICT + conviction**: a higher score with no active vetoes is a stronger context. Vetoes are listed explicitly so you can see *why* something is blocked.
4. Use **REGIME** to set expectations — trend-following signals make more sense in a Trend regime; the Stretch/Fade rows matter more in Range.
5. The **Entry / Stop / TP1 / TP2 lines** on price show the framework's risk levels for the current signal only; previous trade lines are removed automatically.
6. Optional feeds (reference symbol, volatility index, open interest, cross-asset) are **blank by default** — add your own symbols if you want those confluence inputs, or leave them off. The script degrades gracefully and tells you in the FEEDS row which are live.
---
## Settings worth knowing
- **Price source** — the series the whole engine runs on. Defaults to close; works on any market.
- **Optional reference feeds** — all blank by default and entirely optional, so the script is not tied to any one market or exchange. Enter symbols relevant to your instrument if you want them.
- **Adaptive length driver** — Homodyne (cycle-adaptive), Volatility, or Fixed.
- **Risk & sizing** — account equity, risk %, ATR stop multiple, and value-per-move; the size output is a suggestion only.
- **Dashboard theme** — Auto/Dark/Light; Auto flips colors to stay readable on white or black backgrounds.
- **Name / symbol / timeframe label** — kept on by default so the chart always identifies what is plotted.
---
## What makes it original
It is not a wrapper around a built-in MACD. The core is rebuilt to accept a *series* length (so it can be retuned every bar), normalized to a cross-asset z-score, gated by an explicitly classified regime, and merged with multi-timeframe state into a single weighted conviction score with named vetoes. The volatility-band fade logic and the dominant-cycle length adaptation are integrated into that same score rather than shown as separate, disconnected studies.
---
## Notes and limitations
- Confirm-on-close is on by default to avoid repainting; intrabar values can still update until the bar closes.
- The optional "Call/Put strike" row is a convenience hint derived from price and your strike interval only — **no options-chain data is read and no option P&L is implied.**
- Higher-timeframe and reference-feed requests depend on your data subscription; if a feed is unavailable the script disables the dependent input and continues.
---
## Disclaimer
This script is provided for educational and informational purposes only. It is a technical study, not investment, financial, or trading advice, and not a solicitation to buy or sell any instrument. It does not guarantee any result. Markets involve risk, including loss of capital. Indicator signals, levels, and the position-size suggestion are illustrative and must not be relied on as the basis for any trade. Always do your own research and consider consulting a licensed financial professional before trading. The author accepts no liability for any loss arising from use of this script. Past behavior of any indicator is not indicative of future results.
Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Volume Pressure MACDVolume Pressure MACD is a momentum indicator built on the MACD framework,
extended with three independent volume analysis layers that work together
to weight each signal by the quality and direction of volume participation —
not just its size.
The core idea: a price move backed by high volume is more meaningful than
the same move on thin volume. But volume size alone is incomplete —
a large-volume candle where price closes near the low tells a very different
story than one where price closes near the high. This indicator attempts to
capture both dimensions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BACKGROUND — WHY THREE VOLUME LAYERS?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Standard MACD is calculated purely from price EMAs and ignores volume entirely.
Most volume-weighted MACD variants address this by multiplying the MACD value
by a simple volume ratio — more volume means a stronger signal. That approach
has a limitation: it treats all high-volume candles equally, whether the close
was bullish or bearish within the candle.
Volume Pressure MACD uses three separate volume inputs, each measuring a
different aspect of market participation:
LAYER 1 — VOLUME FACTOR
Measures how current volume compares to its recent average using a power
function (math.pow). The Volume Effect input controls the exponent, which
determines how aggressively above-average volume amplifies the MACD and how
much below-average volume dampens it. At 0.1 the effect is subtle and smooth;
higher values make the indicator more reactive to volume spikes. This layer
answers the question: how much volume is there?
LAYER 2 — VOLUME PRESSURE SCORE
This is the differentiating layer. For each bar, it calculates how much of
the total volume was spent by buyers versus sellers, based on where the
closing price lands relative to the bar's high-low range:
Buy Pressure = Volume × (Close - Low) / (High - Low)
Sell Pressure = Volume × (High - Close) / (High - Low)
Net Pressure = Buy Pressure - Sell Pressure
A candle that closes at its high assigns nearly all volume to buyers.
A candle that closes at its low assigns nearly all volume to sellers.
A doji near the midpoint splits volume roughly equally and contributes
minimal pressure in either direction.
The net pressure is normalized against its recent average and then applied
as a secondary weight on the MACD — clamped to a ±30% influence so it
modulates rather than dominates the output. This layer answers the question:
in which direction was volume being used?
LAYER 3 — VOLUME MOMENTUM
Compares a 5-bar volume average against a 20-bar volume average to determine
whether market participation is currently expanding or contracting. This does
not affect the MACD calculation itself — instead it drives the 4-tone histogram
coloring, giving a visual indication of whether the current MACD move is
occurring on growing or fading volume. This layer answers the question:
is volume increasing or decreasing?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DYNAMIC ZONE SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
One of the practical problems with MACD-based indicators is that fixed
overbought/oversold lines are meaningless across different assets and
timeframes. MACD values on a 5-minute chart of a low-priced asset can be
a fraction of a unit, while the same indicator on a weekly chart of a
high-priced asset can reach thousands. Static horizontal lines cannot
account for this.
The zone system in this indicator is fully dynamic:
- The upper boundary (Strong Bull) is set to the highest MACD value
over the Zone Lookback period, floored at zero
- The lower boundary (Strong Bear) is set to the lowest MACD value
over the Zone Lookback period, capped at zero
- The Weak/Strong boundary is calculated as a percentage of those
extremes, controlled by the Weak/Strong Split input
- All four zone boundaries automatically adjust as new bars print
and as you switch between timeframes or assets
Zone definitions:
Strong Bull — MACD is in the upper portion of its recent historical
range; momentum is extended to the upside
Weak Bull — MACD is positive but has not yet reached historically
elevated levels; upward momentum is present but moderate
Weak Bear — MACD is negative but within the lower portion of its
recent range; downward momentum is present but moderate
Strong Bear — MACD is deep in its recent historical range; momentum
is extended to the downside
The zones are color-filled between their boundaries and labeled at the
right edge of the chart for easy reading. Bull zones are drawn in green
tones and are mathematically prevented from crossing below zero. Bear zones
are drawn in red tones and are mathematically prevented from crossing above
zero, so the zone layout always remains logically consistent regardless of
MACD behavior.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HISTOGRAM COLORING
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The histogram uses four distinct colors based on the combination of MACD
direction and volume momentum, allowing you to read both momentum and
participation at a glance:
Dark green — histogram above zero + volume momentum expanding
(positive momentum with growing participation)
Light green — histogram above zero + volume momentum contracting
(positive momentum but participation fading)
Dark red — histogram below zero + volume momentum expanding
(negative momentum with growing participation)
Light red — histogram below zero + volume momentum contracting
(negative momentum but participation fading)
The transition from dark to light (or vice versa) within the same direction
can be an early indication of momentum exhaustion or resumption.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SIGNAL TYPES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▲ BUY triangle (green, bottom)
MACD crosses above Signal line AND volume exceeds the average
by the Strong Volume Multiplier threshold. Both conditions must
be true simultaneously.
▼ SELL triangle (red, top)
MACD crosses below Signal line AND volume exceeds the average
by the Strong Volume Multiplier threshold. Both conditions must
be true simultaneously.
+ Cross marker on MACD line
All MACD/Signal crossovers, regardless of volume. Plotted directly
at the crossover price level on the indicator, not at the top or
bottom of the pane.
M↑ circle (teal) — Bullish divergence on the MACD line
Price makes a lower low while MACD makes a higher low,
detected using asymmetric pivot logic.
M↓ circle (fuchsia) — Bearish divergence on the MACD line
Price makes a higher high while MACD makes a lower high.
H↑ diamond (yellow) — Bullish divergence on the Histogram
Price makes a lower low while the histogram makes a higher low.
H↓ diamond (orange) — Bearish divergence on the Histogram
Price makes a higher high while the histogram makes a lower high.
Note: MACD line divergence and histogram divergence are calculated
independently. When both trigger together it may indicate a stronger
divergence condition. When only one triggers it can reflect early or
partial divergence development.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INFO TABLE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A live data table in the top-right corner displays four values
for the most recent closed bar:
Diff — the current distance between the MACD and Signal lines,
with a directional arrow showing which is above the other
Vol Factor — the current volume multiplier relative to the average.
Values above 1.0 indicate above-average volume (green);
values below 1.0 indicate below-average volume (red)
Vol Momentum — whether the 5-bar volume average is above or below
the 20-bar average (Rising / Falling)
Vol Pressure — the net directional pressure score for the current bar
(Buy / Sell / Neutral), based on the pressure calculation
described above
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INPUT REFERENCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Fast EMA — fast EMA length for classic MACD (default 12)
Slow EMA — slow EMA length for classic MACD (default 26)
Signal EMA — signal line EMA length (default 9)
MACD Smooth — additional EMA smoothing applied to the
volume-weighted MACD line (default 3)
Volume SMA Length — lookback for calculating average volume,
used in both Volume Factor and Pressure Score
Volume Effect — exponent controlling how strongly volume
scales the MACD; lower = smoother (default 0.1)
Strong Volume Multiplier — volume must exceed average × this value
for BUY/SELL triangles to appear (default 1.5)
Divergence Lookback — pivot bar count for divergence detection;
higher values find fewer but more significant
divergences (default 5)
Zone Lookback Bars — how many bars are used to define the dynamic
zone boundaries (default 100)
Weak/Strong Split — the percentage point within the zone range
where weak ends and strong begins (default 0.35)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMPATIBILITY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Works on all asset classes including equities, cryptocurrency, forex,
commodities, and indices. Compatible with all timeframes. The dynamic
zone system and volume pressure calculation are designed to produce
meaningful output regardless of the absolute price or volume scale
of the instrument.
Pine Script v5. Indicator

Indicator

Adaptive Momentum Strength Score (AMSS)There is a specific kind of frustration that every serious trader knows.
The setup looks right. The candle closes with conviction. The oscillator confirms. You enter and the move immediately stalls, reverses, or dissolves into noise. Later you realize the volume was weak, volatility never truly expanded, or directional pressure had already started fading before the entry.
That frustration is not a discipline problem. It is an information problem.
Most momentum indicators measure one piece of the puzzle. RSI measures price velocity. Volume indicators measure participation. Bollinger Bands measure volatility state. Each tells part of the story. The Adaptive Momentum Strength Score was built on the conviction that momentum quality can only be evaluated meaningfully when several complementary market forces are read together, not after the fact, but simultaneously, on every bar.
The Core Framework
The purpose of the composite score is straightforward: to answer not just whether price is moving, but whether the move is supported by the conditions that tend to give momentum its staying power.
The score is normalized between 0 and 100 and built from three independent components. The first measures candle impulse relative to ATR not raw candle size, but how decisive the current bar is in the context of what normal looks like for this asset right now. The second measures volume participation by comparing current volume against its moving average, distinguishing genuine momentum expansion from the kind of low-participation drift that precedes failed breakouts far more often than it precedes continuation. The third measures volatility expansion through Bollinger Band width relative to its own average, detecting the transition from compression into expansion as a market begins releasing stored energy.
Each component is independently normalized before combining. By default, volume participation carries the greatest weight of the three — a deliberate choice reflecting the observation that genuine participation tends to be the most reliable differentiator between momentum that follows through and momentum that fades. Candle impulse and volatility expansion carry equal secondary weight, acknowledging that decisive price movement and volatility expansion both contribute meaningfully to momentum quality without either being treated as a primary condition on its own. All weights remain fully adjustable for traders who prefer a different emphasis across different assets or timeframes.
What separates this framework from most traditional oscillators is that momentum strength, directional pressure, market regime, momentum acceleration, and signal confirmation are kept as independent layers that work together while remaining individually interpretable. The goal is not to compress everything into a single binary output but to provide a structured view of how momentum is developing and whether broader conditions are genuinely supportive.
Adaptive Thresholds
A composite score is only as useful as the threshold that determines when it becomes meaningful.
The indicator supports two threshold modes. Fixed mode works cleanly in stable trending environments where volatility expression is consistent. Adaptive mode the recommended default calculates the threshold dynamically using rolling score averages and standard deviation scaling, then clamps it within a defined range. As market character shifts, the threshold recalibrates automatically rather than forcing traders to manually adjust a static level every time volatility conditions change.
The practical consequence is worth understanding directly. In a static-threshold oscillator, a compression phase floods the chart with false crossovers while a genuine expansion phase can produce delayed or missed signals. The adaptive threshold adjusts to both conditions without intervention. The active level is always displayed as the orange reference line, there is never ambiguity about where the signal boundary sits.
The score is additionally classified into Weak, Moderate, and Strong states relative to the active threshold, allowing momentum quality to be evaluated quickly without relying on raw numerical values alone.
Directional Pressure
The score measures momentum magnitude. Direction is handled through a completely separate layer.
Directional bias is established through a two-part confirmation test on every bar. Price must sit on the correct side of a short-period directional EMA, and the average ATR-normalized candle direction over the recent lookback must clear a pressure threshold, meaning a single extended wick or isolated candle cannot flip the directional label on its own. The result is a three-state classification that updates in real time: Bullish, Bearish, or Neutral. This label colors the score line and feeds directly into the signal confirmation logic.
Regime Classification
Not all momentum signals carry equal weight. A score crossover during an expanding market is a categorically different event from the same crossover inside a compressed, coiling environment and treating them identically is one of the more common ways momentum-based approaches produce inconsistent results.
The indicator measures the range of the score over a lookback window and classifies conditions into three states. Compressed means the score has been operating within a narrow band, the market is coiling, energy may be building, and momentum signals in this state generally exhibit lower follow-through and greater variability, although strong expansions can emerge from prolonged compression. Balanced reflects normal trending or ranging conditions. Expanding means the score range has broken above the expansion threshold the market is releasing energy, and momentum signals carry stronger continuation characteristics during this state.
Regime classification can be applied as a filter to triangle signals or used purely as context within the dashboard.
Momentum Velocity
Knowing where the score is tells you the current momentum level. Knowing how fast it is changing tells you something more useful, where momentum is likely heading before price makes it obvious.
The velocity engine calculates the rate of change of the score relative to its own standard deviation, producing a normalized reading that classifies momentum as Accelerating, Decelerating, or Flat. When the score is rising rapidly against its recent volatility baseline, conditions are classified as Accelerating. When the score is fading even if it remains above the threshold the label shifts to Decelerating, and the score line renders at reduced opacity as a visual signal that underlying momentum may be exhausting before price visibly reacts.
For traders who have held into momentum reversals that showed no obvious price-level warning, this layer provides an early internal warning signal within the indicator's architecture that conditions are beginning to shift.
Two Signal Tiers
The indicator produces signals on two distinct levels, and the distinction between them is worth understanding precisely.
Threshold dots appear whenever the score crosses the active threshold while directional pressure is already aligned. They are intentionally sensitive as early directional momentum awareness signals indicating that conditions are beginning to strengthen, even though the broader filter stack may not yet be confirmed. Experienced traders use them to shift attention and begin evaluating whether a fuller setup is developing.
Triangle signals are the fully confirmed output. A triangle only appears when the score crosses the threshold, directional pressure agrees, and every enabled filter in the active gate stack also confirms simultaneously. This is not a smoothed version of the dot signal. It is a categorically different signal type representing the convergence of multiple independent conditions at the same moment.
The separation is deliberate. Dots keep traders informed of developing momentum. Triangles reserve the strongest visual output for the moments that genuinely earn it.
The Signal Gate Stack
Before any triangle reaches the chart it passes through up to four independent gates, stackable in any combination.
The current-timeframe EMA filter blocks signals running counter to local trend structure. The higher-timeframe EMA filter adds a structural second opinion from a broader timeframe, 4-hour by default with an option to use only confirmed closed bars to avoid incomplete higher-timeframe calculations. The regime filter restricts signals during compressed conditions or limits them to expanding phases only. The cooldown gate enforces a minimum bar gap between consecutive signals, suppressing the cluster of repeat triggers that commonly fire around a single momentum event and dilute signal quality.
The dashboard always displays exactly which gates are active. Traders never need to guess why a triangle did or did not appear, the filter logic is visible at all times.
Reading the Indicator: A Practical Workflow
1. Assess market regime first . Check the Info Table before anything else. Compressed conditions mean the score has been coiling in a tight range crossovers here often require greater selectivity, as follow-through tends to be less reliable until expansion begins, and participation should be approached more selectively. Expanding conditions deserve closer attention, as momentum signals generally carry stronger continuation characteristics during these phases.
2. Verify directional alignment. Confirm that the score line color and the Direction label in the dashboard match your intended trade direction. A technically valid score crossover against prevailing directional pressure is a lower-quality setup by design.
3. Watch for the threshold dot on the score pane . A small circle plots on the score line the moment momentum crosses the active threshold while directional pressure is already aligned. This is your early awareness signal. It means conditions are beginning to strengthen, but the broader confirmation stack may not yet be complete. Use it to shift attention to the price chart, not necessarily to trigger execution.
4. Wait for the triangle on the price chart . The triangle is the confirmed execution signal. It only appears when the score has crossed the threshold, directional pressure agrees, and every enabled gate in your active filter stack has confirmed simultaneously. Depending on your settings, this may include EMA alignment, regime validation, and cooldown logic. No triangle means at least one required condition has not been met, regardless of how the score looks in the pane below.
5. Check momentum velocity before entry. An Accelerating label at the point of the triangle adds meaningful weight to the setup. A Decelerating label on an otherwise valid triangle is a caution not necessarily a reason to avoid the trade, but a reminder that momentum quality may be less aggressive, follow-through may develop more gradually, or reversal risk may be beginning to increase.
6. Manage the trade with velocity as context, not as a standalone exit signal . If the score remains above or near the threshold but the line has dimmed signaling Decelerating momentum the move may be losing force even while price continues in the same direction. This does not automatically invalidate the trade or imply immediate exit. Instead, use velocity as an additional layer of context alongside price structure, trend conditions, and your existing risk-management framework.
What This Indicator Is Designed For
The Adaptive Momentum Strength Score is not a standalone trading system and does not attempt to be one. It is a momentum context engine — a structured framework for evaluating whether the conditions behind a price move reflect genuine strength and participation or whether they represent the kind of isolated, low-quality momentum that tends to produce less reliable continuation.
Every design decision in this script traces back to a single conviction: durable edge in trading does not come from reacting faster to a single signal. It comes from reading multiple independent market forces simultaneously and acting only when they converge. That is what this indicator was built to do and that is the only thing it claims to do well.
My Scripts/Indicators/Systems are for educational purposes only! Indicator

Adaptive Trend Structure Engine v2Adaptive Market Structure Engine (ATSE) is a technical analysis tool designed to help visualize and interpret evolving market structure in real time. It focuses on detecting shifts in price behavior by constructing a synthetic structure model that reacts dynamically to volatility and directional movement.
Unlike traditional indicators that rely solely on fixed moving averages or standard oscillators, this script builds a behavior-based price structure that adapts to changing market conditions. It does this by generating dynamic upper and lower structure thresholds, which act as reference boundaries for price movement.
📊 How It Works
The core of the indicator is a synthetic price model that simulates structural movement based on a configurable sensitivity parameter. Price action is continuously evaluated against adaptive upper and lower levels, which are recalculated according to selected structure logic (ATR-based, fixed sensitivity, or price fraction methods).
When price breaks beyond these adaptive boundaries, the system interprets this as a potential structural shift in market direction. These shifts are then classified as trend transitions.
🔄 Trend Detection Logic
The indicator tracks directional changes in the synthetic structure and identifies when a transition occurs from upward to downward structure (or vice versa). These transitions are visually marked on the chart to highlight potential changes in market behavior.
To improve readability, only the first bar of each structural shift is marked, reducing noise and repetitive signals.
📐 Fibonacci Structure Visualization
After each confirmed trend shift, the indicator generates a set of Fibonacci-based dynamic zones starting from the current reference price. These levels are not predictive targets but are instead used as visual framework zones, helping to understand possible areas of price interaction during a trend phase.
Each zone is spaced proportionally based on user-defined sensitivity settings, allowing the structure to expand or contract depending on volatility conditions.
📉 Momentum Context (Optional)
The script also includes an internal momentum calculation based on deviation from a dynamic center line. This helps provide additional context to structural movements without acting as a standalone signal generator.
A normalization option is available to smooth momentum behavior across extended trend phases.
⚙️ Customization Options
Users can adjust:
Structure sensitivity (brick size behavior)
Calculation method (ATR / price-based / classic)
Price source model (close-based or OHLC hybrid)
Fibonacci spacing intensity
Momentum normalization and oscillation behavior
This allows the indicator to be adapted across different assets and timeframes.
🎯 Purpose
The main goal of this tool is to:
Visualize market structure transitions
Provide a clearer view of trend shifts
Offer adaptive structural zones for context
Reduce noise from traditional indicator-based signals
It is intended for educational and analytical use to assist in understanding price behavior rather than to generate direct trading signals.
⚠️ Disclaimer
This script does not provide financial advice. All signals and visual elements are based on mathematical transformations of price data and should be used as part of a broader analysis framework. Indicator

SPX Market Pressure & Momentum OutlookSPX Market Pressure is a professional market-reading dashboard designed to help traders understand liquidity pressure, market participation, risk appetite, volatility conditions, and momentum exhaustion probability through a structured intermarket framework.
This indicator is NOT a buy signal, sell signal, strategy, forecasting model, or market prediction tool.
Its purpose is to provide context, market structure awareness, and probability-based decision support by combining multiple market components into a single dashboard.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RECOMMENDED MARKETS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator was primarily designed for:
• SPX
• ES Futures
• NQ Futures
• SPY
• QQQ
• Other major U.S. index-related instruments
The intermarket logic relies on relationships between SPY, QQQ, IWM, and VIX. Therefore, the most accurate results are generally achieved when used on U.S. equity index markets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT THE INDICATOR MEASURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The dashboard combines several independent market components:
• Liquidity Pressure
• Market Participation
• Risk Appetite
• Volatility Conditions
• Momentum Condition
• Momentum Exhaustion Probability
Each component contributes information about the current market environment rather than attempting to predict future price direction.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SPY & QQQ LIQUIDITY ENGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The foundation of the indicator is a proprietary liquidity pressure model built around SPY and QQQ.
The model evaluates:
• Close Location within the candle range
• Candle Body Pressure
• ATR-normalized Momentum
• Relative Volume Participation
The output is converted into directional liquidity pressure scores representing:
• Demand
• Supply
• Neutral Conditions
This creates a structured view of where institutional participation is currently flowing.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SIGMA (Σ SPY + QQQ)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Sigma combines SPY and QQQ liquidity pressure into a single market participation engine.
Rather than using price alone, Sigma evaluates the combined liquidity behavior of both major index ETFs.
Strong Sigma readings indicate broad participation.
Weak or conflicting Sigma readings may indicate deteriorating market participation.
Sigma serves as the primary market pressure reference inside the dashboard.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
IWM RISK APPETITE ENGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
IWM acts as a risk appetite reference.
Strong IWM participation generally suggests:
• Healthy market participation
• Broader market involvement
• Risk-On conditions
Weak IWM participation may suggest:
• Narrow leadership
• Defensive positioning
• Risk-Off behavior
IWM is used as a confirmation component rather than a directional signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VIX VOLATILITY ENGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The indicator evaluates volatility conditions using VIX.
Instead of relying only on raw VIX values, the model also evaluates:
• Relative VIX positioning
• Volatility expansion
• Volatility compression
• VIX Bollinger Band location
This helps determine whether market volatility is:
• Normal
• Elevated
• High
• Extreme
Volatility is treated as a market condition measurement, not a directional forecast.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MARKET SUPPORT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Market Support measures whether current liquidity pressure is supported by the broader market environment.
Inputs used:
• Sigma
• IWM
• VIX
Possible states include:
• Strong Bull Support
• Bull Support
• Neutral
• Bear Support
• Strong Bear Support
Market Support measures participation quality, not future price direction.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CURRENT SYMBOL OUTLOOK ENGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The Outlook Engine dynamically analyzes the active chart symbol.
The engine automatically adapts to whichever symbol the indicator is attached to.
Examples:
• SPX Outlook
• ES Outlook
• NQ Outlook
• SPY Outlook
• QQQ Outlook
The Outlook Engine is designed to evaluate:
• Momentum Condition
• Momentum Maturity
• Momentum Exhaustion Probability
It does NOT attempt to forecast reversals or predict future trends.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DYNAMIC RSI EXHAUSTION MODEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A major component of the Outlook Engine is the Dynamic RSI Exhaustion Model.
Unlike traditional RSI systems, RSI alignment is NOT treated as a bullish or bearish signal.
Instead, the engine evaluates:
• Current RSI
• Daily RSI
• Distance between both values
• RSI Rate of Change
As Current RSI approaches Daily RSI, the engine measures momentum maturity and potential exhaustion risk.
Examples:
Daily RSI = 75
Current RSI = 45
→ Significant expansion capacity remains.
Current RSI = 68
→ Momentum becoming mature.
Current RSI = 73
→ Elevated exhaustion probability.
Current RSI = 76
→ Very high exhaustion probability.
The model is designed to identify momentum maturity rather than overbought/oversold trading signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ATR EXPANSION ANALYSIS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ATR is used to evaluate movement expansion.
The indicator compares:
• Current ATR
• Long-Term ATR Average
Strong ATR expansion suggests:
• Active participation
• Expanding movement
• Sustained momentum conditions
Weak ATR relative to its historical average may indicate:
• Slowing participation
• Drying liquidity
• Increasing exhaustion probability
ATR is never used as a directional indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VOLATILITY ENGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The Volatility Engine combines multiple components:
• Current Symbol ATR Expansion
• Current Symbol Range Expansion
• VIX Environment
• Sigma Stability
This allows volatility conditions to adapt dynamically to the chart currently being analyzed.
Possible outputs:
• Normal Volatility
• Elevated Volatility
• High Volatility
• Extreme Volatility
Volatility measures movement intensity, not direction.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OUTLOOK STATES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The Outlook Engine produces five primary states:
• Momentum Building
• Momentum Active
• Momentum Watch
• Exhaustion Watch
• High Exhaustion Probability
These states represent probability-based market conditions rather than trading signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE THE INDICATOR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Start with Sigma
Determine whether broad liquidity pressure is favoring Demand or Supply.
2. Review IWM
Evaluate whether broader market participation supports the current environment.
3. Review VIX
Assess volatility conditions and risk environment.
4. Check Market Support
Determine whether the current liquidity environment is supported by broader market participation.
5. Review Outlook
Analyze momentum condition and exhaustion probability for the active chart symbol.
6. Review Volatility
Determine whether the current environment is operating under Normal, Elevated, High, or Extreme volatility conditions.
The strongest environments typically occur when liquidity pressure, market participation, and risk conditions align.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
IMPORTANT DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SPX Market Pressure is a market-reading and decision-support tool.
It is not a trading strategy.
It does not generate buy signals.
It does not generate sell signals.
It does not predict market direction.
It does not forecast future price movement.
All outputs represent market context, participation quality, volatility conditions, momentum condition, and probability-based exhaustion analysis intended to assist traders in making more informed decisions.
هو داشبورد احترافي لقراءة السوق، تم تصميمه لمساعدة المتداول على فهم ضغط السيولة، مشاركة السوق، شهية المخاطرة، حالة التذبذب، واحتمالية إرهاق الزخم من خلال إطار تحليل مترابط يجمع عدة مكونات سوقية في مكان واحد.
هذا المؤشر ليس نظام توصيات، وليس استراتيجية تداول، ولا يقدم إشارات شراء أو بيع، ولا يتنبأ بحركة السوق المستقبلية.
الهدف منه هو توفير مرجع بصري منظم يساعد المتداول على فهم البيئة الحالية للسوق واتخاذ قرارات أكثر وعياً بناءً على السياق العام للسوق.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
الأسواق الموصى باستخدام المؤشر عليها
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
تم تصميم المؤشر أساساً لأسواق المؤشرات الأمريكية، ويعطي أفضل نتائجه عند استخدامه على:
• SPX
• ES Futures
• NQ Futures
• SPY
• QQQ
ويعتمد جزء كبير من منطقه التحليلي على العلاقة بين:
• SPY
• QQQ
• IWM
• VIX
لذلك يوصى باستخدامه على الأسواق الأمريكية والمؤشرات المرتبطة بها.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ماذا يقيس المؤشر؟
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
يجمع المؤشر عدة عناصر سوقية مختلفة داخل لوحة واحدة:
• ضغط السيولة (Liquidity Pressure)
• مشاركة السوق (Market Participation)
• شهية المخاطرة (Risk Appetite)
• حالة التذبذب (Volatility Conditions)
• حالة الزخم (Momentum Condition)
• احتمالية إرهاق الزخم (Momentum Exhaustion Probability)
المؤشر لا يحاول التنبؤ بالمستقبل، وإنما يقيس حالة السوق الحالية وجودة الحركة القائمة.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
محرك السيولة SPY و QQQ
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
يعتمد أساس المؤشر على نموذج خاص لقياس ضغط السيولة في SPY و QQQ.
يقوم النموذج بتحليل:
• موقع الإغلاق داخل الشمعة
• قوة جسم الشمعة
• الزخم مقارنة بالـ ATR
• الفوليوم النسبي مقارنة بمتوسط الفوليوم
ثم يتم تحويل هذه البيانات إلى درجات تمثل:
• Demand
• Supply
• Neutral
وذلك بهدف قياس اتجاه السيولة الحالية داخل السوق.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
سيجما Σ SPY + QQQ
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
تمثل سيجما الدمج بين قراءات SPY و QQQ داخل مؤشر واحد.
لا تعتمد سيجما على السعر فقط، بل تعتمد على ضغط السيولة الناتج من كلا السوقين.
عندما تكون سيجما قوية فهذا يشير عادة إلى مشاركة واسعة من السوق.
أما ضعف أو تضارب سيجما فقد يدل على تراجع المشاركة أو ضعف البيئة الحالية للحركة.
وتعتبر سيجما المرجع الأساسي لقراءة ضغط السوق داخل المؤشر.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
IWM وقياس شهية المخاطرة
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
يستخدم IWM كمرجع لقياس شهية المخاطرة داخل السوق.
عندما يكون IWM قوياً فقد يدل ذلك على:
• مشاركة أوسع من السوق
• بيئة Risk-On
• استعداد أكبر للمخاطرة
أما عندما يكون ضعيفاً فقد يدل ذلك على:
• ضعف المشاركة
• تركيز السيولة في عدد محدود من الأسهم
• بيئة Risk-Off
ولا يستخدم IWM كإشارة تداول بل كعامل داعم لقراءة البيئة الحالية.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VIX ومحرك التذبذب
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
يقوم المؤشر بتحليل مؤشر الخوف VIX لتقييم حالة التذبذب في السوق.
ولا يعتمد فقط على قيمة VIX الخام، بل يستخدم أيضاً:
• موقع VIX بالنسبة لبولينجر باند
• توسع التذبذب
• انكماش التذبذب
• البيئة العامة للمخاطرة
ويتم تصنيف حالة التذبذب إلى:
• Normal Volatility
• Elevated Volatility
• High Volatility
• Extreme Volatility
ويجب التنبيه إلى أن التذبذب لا يعني صعوداً أو هبوطاً، وإنما يقيس قوة واتساع الحركة فقط.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Market Support
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
يقيس Market Support مدى دعم البيئة العامة للحركة الحالية.
ويعتمد على:
• Sigma
• IWM
• VIX
وتظهر النتائج على شكل:
• Strong Bull Support
• Bull Support
• Neutral
• Bear Support
• Strong Bear Support
وهو لا يتنبأ بالاتجاه القادم، بل يقيس مدى توافق البيئة الحالية مع ضغط السوق القائم.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
محرك Outlook للرمز الحالي
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
يقوم Outlook بتحليل الرمز المفتوح حالياً بشكل تلقائي.
فإذا كنت تتابع:
• SPX
• ES
• NQ
• SPY
• QQQ
سيقوم المؤشر بإنشاء Outlook خاص بالرمز الحالي.
هدف Outlook هو تقييم:
• حالة الزخم الحالية
• نضج الزخم
• احتمالية إرهاق الزخم
وليس التنبؤ بالانعكاسات أو الاتجاهات المستقبلية.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
نموذج الإرهاق الديناميكي RSI
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
أحد أهم أجزاء المؤشر هو نموذج الإرهاق الديناميكي المبني على RSI.
على عكس الأنظمة التقليدية، لا يتم التعامل مع تقارب RSI كإشارة صعود أو هبوط.
بدلاً من ذلك يتم قياس:
• RSI الحالي
• RSI اليومي
• المسافة بينهما
• سرعة تغير RSI
كلما اقترب RSI الحالي من RSI اليومي تبدأ احتمالية نضج الحركة وإرهاق الزخم بالارتفاع.
مثال:
إذا كان RSI اليومي = 75
وكان RSI الحالي = 45
فهذا يعني أن الحركة ما زال أمامها مساحة للتوسع.
أما إذا كان RSI الحالي = 73
فهذا يعني أن الزخم أصبح أكثر نضجاً واحتمالية الإرهاق ارتفعت.
أما إذا تجاوز RSI الحالي RSI اليومي
فقد ترتفع احتمالية الإرهاق بشكل أكبر.
هذا النموذج لا يستخدم للتنبؤ بالانعكاس، بل لقياس درجة نضج الحركة الحالية.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
تحليل ATR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
يقوم المؤشر بمقارنة:
• ATR الحالي
• متوسط ATR طويل المدى
عندما يكون ATR الحالي أعلى من متوسطه التاريخي فهذا يدل غالباً على:
• حركة نشطة
• توسع في الحركة
• استمرار الزخم
أما انخفاض ATR مقارنة بمتوسطه فقد يشير إلى:
• ضعف المشاركة
• تباطؤ الحركة
• ارتفاع احتمالية الإرهاق
ولا يستخدم ATR لتحديد الاتجاه وإنما لقياس جودة الحركة واتساعها.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
محرك Volatility
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
يقيس محرك التذبذب حالة الحركة الحالية من خلال دمج عدة عناصر:
• توسع ATR للرمز الحالي
• توسع مدى الحركة للرمز الحالي
• بيئة VIX
• استقرار أو تذبذب Sigma
وبذلك تصبح قراءة التذبذب مرتبطة بالرمز المفتوح حالياً وليس بالسوق بشكل عام فقط.
وتظهر النتائج على شكل:
• Normal Volatility
• Elevated Volatility
• High Volatility
• Extreme Volatility
التذبذب يقيس قوة الحركة وليس اتجاهها.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
حالات Outlook
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
يعرض Outlook خمس حالات رئيسية:
• Momentum Building
• Momentum Active
• Momentum Watch
• Exhaustion Watch
• High Exhaustion Probability
وتمثل هذه الحالات احتمالات وظروف سوقية حالية وليست إشارات تداول.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
طريقة استخدام المؤشر
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. ابدأ بقراءة Sigma
لمعرفة ما إذا كانت السيولة الحالية تميل إلى Demand أو Supply.
2. راقب IWM
لتقييم جودة المشاركة واتساع الحركة داخل السوق.
3. راقب VIX
لفهم بيئة المخاطرة والتذبذب الحالية.
4. راجع Market Support
لمعرفة ما إذا كانت البيئة العامة تدعم الحركة الحالية أم لا.
5. راجع Outlook
لتقييم حالة الزخم واحتمالية الإرهاق على الرمز المفتوح حالياً.
6. راجع Volatility
لمعرفة ما إذا كانت الحركة الحالية طبيعية أو مرتفعة التذبذب أو شديدة التذبذب.
أقوى البيئات عادة تكون عندما تتوافق السيولة ومشاركة السوق وشهية المخاطرة مع بعضها البعض.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
إخلاء مسؤولية
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SPX Market Pressure هو أداة لقراءة السوق ومساعدة المتداول على فهم البيئة الحالية للسوق.
المؤشر ليس استراتيجية تداول.
لا يقدم إشارات شراء.
لا يقدم إشارات بيع.
لا يتنبأ باتجاه السوق.
لا يتنبأ بالسعر المستقبلي.
جميع القراءات تمثل ظروفاً واحتمالات وسياقاً سوقياً يساعد المتداول على اتخاذ قرارات أكثر وعياً، ولا تمثل أي ضمان أو توصية استثمارية. Indicator

Dynamic Price Oscillator Overlay (Zeiierman)█ Overview
Dynamic Price Oscillator Overlay (Zeiierman) is a volatility-adjusted momentum overlay that transforms oscillator behavior directly onto the price chart.
Instead of displaying momentum in a separate pane, the indicator wraps a dynamic oscillator around an adaptive price anchor, allowing traders to visualize momentum expansion, contraction, and directional bias directly within price action.
The calculation combines long-term price displacement with volatility-adjusted movement and then applies Bollinger Band analysis to identify statistically stretched market conditions.
The result is a dynamic price-following structure that highlights momentum extremes, trend transitions, and overextended conditions while remaining visually integrated with the chart.
█ How It Works
⚪ Volatility-Adjusted Price Engine
The indicator begins by measuring market volatility using True Range.
volAdjPrice = ta.ema(trueRange(high, low, close), length)
This creates a dynamic volatility component that adapts to changing market conditions.
⚪ Dual Momentum Calculation
The oscillator combines two independent measurements:
• Long-term price displacement
priceChange = close - close
• Volatility-adjusted price movement
priceDelta = close - volAdjPrice
These components are blended together and smoothed.
oscillator = ta.ema(math.avg(priceDelta, priceChange), smoothFactor)
The result is a momentum engine that reacts to both directional movement and changing volatility.
⚪ Dynamic Oscillator Bands
The oscillator is surrounded by two Bollinger Band structures.
Standard bands identify elevated momentum conditions while expanded bands identify extreme momentum conditions.
= bollingerBands(oscillator, length * 5, 1)
= bollingerBands(oscillator, length * 5, 2)
These bands create adaptive thresholds that expand and contract as market behavior changes.
⚪ Dynamic Mean
The indicator calculates a central equilibrium level using the midpoint of the expanded Bollinger Bands.
mean = math.avg(bbHighExp, bbLowExp)
This serves as the oscillator's primary trend reference.
⚪ Price Overlay Projection
Rather than plotting the oscillator separately, the indicator wraps the oscillator around a moving price anchor.
priceAnchor = ta.ema(close, anchorLength)
The oscillator is projected directly onto the chart:
overlayOsc = priceAnchor + oscillator - mean
This creates a momentum structure that follows price while preserving oscillator behavior.
█ How to Use
⚪ Dynamic Price Oscillator Overlay
• When the oscillator line remains above the Dynamic Mean, momentum conditions are generally bullish.
• When the oscillator line remains below the Dynamic Mean, momentum conditions are generally bearish.
⚪ Mean Crosses
The Dynamic Mean acts as the primary trend reference.
• Bullish Cross:
The oscillator line crosses above the mean.
• Bearish Cross:
The oscillator line crosses below the mean.
These signals often represent transitions between bullish and bearish momentum regimes.
⚪ Mean Retests
The Dynamic Mean acts as the primary momentum equilibrium level.
• Bullish Retest:
The price pulls back toward the mean from above and holds.
• Bearish Retest:
The price rallies back toward the mean from below and rejects.
Successful retests suggest the current momentum regime remains intact and may continue in the prevailing direction.
⚪ Bollinger Breakouts
The standard Bollinger Bands identify strong momentum expansions.
• Bullish Breakout:
The oscillator line closes above the upper band.
• Bearish Breakout:
The oscillator line closes below the lower band.
These conditions suggest momentum is becoming unusually strong. Bullish breakouts above the upper band may indicate overbought conditions, while bearish breakouts below the lower band may indicate oversold conditions.
⚪ Expanded Bollinger Extremes
The expanded Bollinger Bands represent statistically extreme momentum conditions.
• Bullish Extreme:
The oscillator line exceeds the expanded upper band.
• Bearish Extreme:
The oscillator line exceeds the expanded lower band.
These events occur less frequently and often identify powerful directional moves or temporary exhaustion phases.
⚪ Momentum Context
The indicator should not be viewed as a simple overbought or oversold tool.
Instead, it measures how far momentum has deviated from its dynamic equilibrium while continuously adapting to current volatility conditions.
The interaction between the oscillator, mean, and adaptive bands provides a framework for identifying:
• Trend continuation
• Momentum expansion
• Momentum exhaustion
• Volatility shifts
• Regime transitions
The result is a price-integrated momentum model that provides both trend context and extreme-condition analysis within a single overlay.
█ Related Scripts
Dynamic Price Oscillator (Zeiierman)
█ Settings
Length: Controls the primary lookback period used throughout the oscillator calculations and Bollinger Band framework.
Smoothing Factor: Controls the responsiveness of the oscillator. Higher values produce smoother movement while lower values increase sensitivity.
Price Anchor Length: Determines the EMA length used to anchor the overlay structure to price.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Indicator

Indicator

RSI Sequential Exhaustion & Divergence**RSI Sequential Exhaustion & Divergence — Multi-Factor Oscillator**
**What it is**
A single RSI-based reversal oscillator for spotting momentum exhaustion, then filtering and grading those signals so only the better-supported ones stand out. It is one integrated tool, not a pile of separate indicators sharing a pane.
**What it plots**
- The RSI line with a glow/gradient style coloured by momentum side, plus overbought/oversold/midline levels and an optional zone fill.
- Sequential Exhaustion signal arrows (▲/▼) at qualifying turns.
- Regular and hidden price–RSI divergence as lines and small labels, de-cluttered so the pane stays readable.
- A compact 5-row dashboard: Signal (direction · conviction % · age), RSI state, Confluence score, Context (trend/range + volatility state), and a Data-health read.
- An optional calibration panel and a set of hidden data-window outputs (EXP_*) for chaining into other scripts.
**Why these components are combined (and how they work together)**
Each part is here to fix a specific weakness of the part before it, so the result is one filtered, graded signal:
1. A bare RSI overbought/oversold reading whipsaws, and naive divergence over-fires. So the script uses two *structured* exhaustion cues instead: **Sequential Exhaustion** (the RSI makes three consecutive deeper pushes into an extreme zone and the fourth bar turns back out — a defined trigger, not just "RSI is low"), and a **divergence engine** that adds an independent reversal cue and is de-cluttered with a cooldown plus a minimum-gap filter.
2. Both cues are counter-trend by nature, and counter-trend entries fail in two situations: strong directional trends, and volatility cascades. To handle the first, an **HTF trend-bias filter** and an **ADX regime filter** suppress signals when a higher timeframe or strong ADX says the trend is intact. To handle the second, a **volatility-cluster filter** (a self-exciting intensity built from returns) proportionally raises the bar for new signals exactly when clustering makes mean-reversion most dangerous — and because it is price-only, it also works on volume-less symbols.
3. To tell which surviving signals are worth more, a **Confluence grade (0–5)** fuses five reasonably-independent reads of the same bar (HTF bias, ranging regime, a recent divergence, volume, and the RSI momentum turn). **Multi-timeframe agreement (3×/5×/15×)** is deliberately kept *separate* and applied as a conviction *multiplier* rather than blended into the score, because it is the one genuinely independent check — full agreement boosts conviction, contradiction damps it.
4. To stay honest about whether any of this is working on your symbol, a **calibration tracker** logs every signal and, after a fixed horizon, records whether price actually followed through (a move of at least X·ATR in the signal's direction), reporting a measured *past* hit-rate by grade tier with a Wilson 95% confidence interval. A **data-integrity read** (bar range, HTF-feed freshness, volume reliability) surfaces an OK / DEGRADED / CRITICAL status so the tool never silently scores on bad data.
**What is original here**
The individual techniques — RSI, divergence, ADX, ATR, volume reads, self-exciting intensity, Wilson intervals — are publicly documented. The original work is the integration: a structured RSI-exhaustion trigger gated by a proportional volatility-cluster filter, graded by a confluence score that is scaled by independent higher-timeframe agreement, and continuously audited by a built-in self-calibration tracker that reports honest past follow-through by tier. Components were chosen so each covers a distinct weakness; redundant filters were left out to keep one clear signal.
**How to use**
1. Add it to a chart. Defaults suit intraday index/futures; direction works on any symbol, while the volume confluence factor needs real traded volume.
2. Take signals in the direction the context filters allow. Prefer a higher conviction % and stronger higher-timeframe agreement; treat low-grade cues as noise (raise "Min confluence to allow signal" to suppress them).
3. Respect the volatility-cluster warning — it marks regimes where mean-reversion is most likely to fail.
4. Use the optional calibration panel as a sanity check on the tool's own past signals, never as a forward prediction.
5. Spot vs futures: a cash/spot index has no real volume. "Volume Mode" auto-detects this, and you can borrow a traded-volume series from a related futures contract; the "Data" row shows the active mode.
**Notes**
All signals and divergence confirm on closed pivots and do not repaint. Divergence labels appear "Pivot Right" bars after the turn, which is inherent to honest pivot detection.
**Disclaimer**
For education and information only. This is not financial, investment, or trading advice and guarantees no outcome. Signals describe current and past conditions; they do not predict the future. The calibration figures describe past behaviour only — they are not a backtest or a probability of future results. Volume-based readings depend on the data feed and are unreliable on instruments without real volume. Trading carries substantial risk of loss; you are solely responsible for your own decisions and risk management. Consider consulting a licensed professional.
Indicator

Indicator

Indicator

Lumina Adaptive Momentum Oscillator [Pineify]Lumina Adaptive Momentum Oscillator
This oscillator measures price momentum through a double-smoothed triangular moving average, then overlays a Kaufman-style Adaptive Moving Average as a signal line that accelerates in trending conditions and slows in ranging ones. The result is a histogram that stays cleaner than a simple ROC or MACD while still catching real directional shifts — buy and sell signals fire only when momentum crosses the adaptive signal while on the "wrong" side of zero, filtering out crosses that occur mid-trend.
Key Features
Triangular MA momentum — double SMA smoothing cuts through noise that a single-period momentum calculation amplifies
Kaufman Adaptive Moving Average signal line — efficiency-ratio scaling means the signal line tracks fast when price has clear direction and lags conservatively during chop
Polarity-colored histogram — bars flip between bull and bear colors on the zero line, making directional bias readable at a glance
Counter-trend signal filter — buy signals require momentum to be below zero; sell signals require it above, so the oscillator only flags reversals, not trend continuation pulses
Configurable alerts for buy and sell conditions (uncomment the alertcondition lines to enable)
How It Works
Triangular momentum : A triangular moving average is the SMA of an SMA — ta.sma(ta.sma(close, length), length) . This double pass heavily weights the middle of the lookback window, producing a line that barely reacts to individual candle spikes. Momentum is then the change in this average over length bars, equivalent to asking: "how much has the ultra-smooth baseline shifted over the period?"
Adaptive signal line (AMA) : The signal applies a Kaufman Adaptive Moving Average to the momentum values. Each bar, an Efficiency Ratio is computed as the absolute cumulative price change divided by the sum of bar-by-bar absolute changes over the window. A high ER (price moving steadily in one direction) produces a fast smoothing constant; a low ER (lots of back-and-forth) produces a slow one. The smoothing constant is squared before application — squaring compresses near-zero values toward zero and pushes higher values closer to one, amplifying the contrast between ranging and trending states.
Signals : A buy condition fires when the momentum histogram crosses above the signal line from below zero. A sell condition fires when momentum crosses below the signal line from above zero. Both plotshape and alertcondition calls are included but commented out by default, so the chart stays clean unless signals are explicitly enabled.
How the Components Work Together
The triangular MA reduces the raw momentum noise that trips up standard crossover strategies. A plain ta.change(close, length) signal line would fire constantly in sideways markets because individual candle closes swing around. By first anchoring momentum to a doubly-smoothed baseline, the histogram only moves when an actual directional shift is underway in price.
The AMA signal line then adapts to how directional that momentum itself is. When momentum is trending (e.g., steadily falling through a corrective move), the AMA tracks it closely, keeping the histogram-to-signal gap narrow and the crossover conditions quiet. When momentum flips abruptly — the scenario a reversal trader wants — the ER spikes, the smoothing constant rises, and the signal line catches up quickly enough to generate a timely cross.
The zero-side filter adds the final constraint: only counter-trend crosses matter. A bullish cross above zero would typically mean momentum is already positive and the trend is continuing, not reversing — those are excluded. This makes the signals less frequent but more aligned with actual turning points.
Trading Ideas and Insights
Use on the daily or 4H chart during confirmed trending markets. Wait for pullbacks that drive momentum negative, then watch for a histogram-crosses-signal event below zero as an early re-entry cue. Confirmation from price action (e.g., a higher low or a break of the short-term descending channel) reduces false positives.
On intraday charts, the double smoothing introduces noticeable lag — roughly 2× the period in bars. For a 14-bar setting this means signals may appear 3-5 candles after the actual reversal candle. Consider reducing length to 7-9 on lower timeframes to recover responsiveness.
The signal line (currently commented out) can be uncommented as an additional visual layer. When the histogram bars are shrinking toward zero while the signal line is still diverging, it often indicates momentum exhaustion before the actual cross occurs, giving a heads-up for limit orders.
Unique Aspects
Most MACD-style oscillators apply EMA smoothing to raw price; this one applies double-SMA smoothing before differencing, which produces a different noise profile — more immune to single-bar wicks but slower to react to sharp moves
Applying the Kaufman AMA to momentum values (rather than price) is less common. The efficiency ratio reflects momentum's own trendiness, not price's, so the adaptive behavior is tuned to the oscillator's dynamic rather than borrowed from a price-following MA
The zero-side signal filter is built in rather than left to the trader to configure — the indicator makes an explicit methodological choice that these signals represent reversals only
How to Use
Add the indicator to any chart. The default length of 14 suits daily and 4H charts; adjust lower for faster timeframes.
Watch the histogram color: sustained green bars above zero indicate positive momentum; sustained red bars below zero indicate negative momentum.
For signals: uncomment the two plotshape lines in the source to display BUY/SELL labels, or uncomment the alertcondition lines and create alerts via PulseWire's alert panel.
A BUY label appears when the histogram crosses above the signal line while below zero — a potential momentum reversal from bearish territory.
A SELL label appears when the histogram crosses below the signal line while above zero — a potential momentum reversal from bullish territory.
Combine with a higher-timeframe trend filter (e.g., price above/below a 200 EMA) to take only signals aligned with the prevailing trend.
Customization
Data Length (default: 14) — Controls the period for both the triangular MA and the adaptive signal line. Higher values produce smoother output with more lag; lower values react faster but generate more noise. Typical range: 7–21.
Bullish Color (default: green) — Color of histogram bars when momentum is positive.
Bearish Color (default: red) — Color of histogram bars when momentum is negative.
Conclusion
The Lumina Adaptive Momentum Oscillator combines triangular-MA momentum with a Kaufman-adaptive signal line to surface genuine reversal pressure rather than routine oscillations. The built-in zero-side signal filter keeps the indicator focused on counter-trend setups, making it most useful as a timing tool within a larger trend-following framework. Past patterns do not guarantee future results — use alongside price structure and volume confirmation.
Indicator
