OPEN-SOURCE SCRIPT

[AS] MACD-v & Hist [Alex Spiroglou | S.M.A.R.T. TRADER SYSTEMS]

3 701
MACD-v & MACD-v Histogram
=======================================
Volatility Normalised Momentum 📈
Twice Awarded Indicator 🏆
=======================================


=======================================
✅ 1. INTRODUCTION TO THE MACD-v ✅
=======================================

I created the MACD-v in 2015,
as a way to deal with the limitations
of well known indicators like the Stochastic, RSI, MACD.

I decided to publicly share a very small part of my research
in the form of a research paper I wrote in 2022,
titled "MACD-v: Volatility Normalised Momentum".

That paper was awarded twice:

1. The "Charles H. Dow" Award (2022),

for outstanding research in Technical Analysis,
by the Chartered Market Technicians Association (CMTA)

2. The "Founders" Award (2022),
for advances in Active Investment Management,
by the National Association of Active Investment Managers (NAAIM)

スナップショット
=======================================



===================================================
❌ 2. WHY CREATE THE MACD-v ?
THE LIMITATIONS OF CONVENTIONAL MOMENTUM INDICATORS
====================================================

Technical Analysis indicators focused on momentum,
come in two general categories,
each with its own set of limitations:

(i) Range Bound Oscillators (RSI, Stochastics, etc)
These usually have a scaling of 0-100,
and thus have the advantage of having normalised readings,
that are comparable across time and securities.

However they have the following limitations (among others):
1. Skewing effect of steep trends
2. Indicator values do not adjust with and reflect true momentum
(indicator values are capped to 100)


(ii) Unbound Oscillators (MACD, RoC, etc)
These are boundless indicators,
and can expand with the market,
without being limited by a 0-100 scaling,
and thus have the advantage of really measuring momentum.

They have the main following limitations (among others):
1. Subjectivity of overbought / oversold levels
2. Not comparable across time
3. Not comparable across securities

スナップショット
=======================================



=======================================
💡 3. THE SOLUTION TO SOLVE THESE LIMITATIONS
=======================================

In order to deal with these limitations,
I decided to create an indicator,
that would be the "Best of two worlds".

A unique & hybrid indicator,
that would have objective normalised readings
(similar to Range Bound Oscillators - RSI)
but would also be able to have no upper/lower boundaries
(similar to Unbound Oscillators - MACD).

This would be achieved by "normalising" a boundless oscillator (MACD)
=======================================



==================================================
⛔ 4. DEEP DIVE INTO THE 5 LIMITATIONS OF THE MACD
==================================================

A Bloomberg study found that the MACD
is the most popular indicator after the RSI,
but the MACD has 5 BIG limitations.

Limitation 1: MACD values are not comparable across Time
The raw MACD values shift
as the underlying security's absolute value changes across time,
making historical comparisons obsolete
e.g S&P 500 maximum MACD was 1.56 in 1957-1971,
but reached 86.31 in 2019-2021 - not indicating 55x stronger momentum,
but simply different price levels.
スナップショット

Limitation 2: MACD values are not comparable across Assets
Traditional MACD cannot compare momentum between different assets.
S&P 500 MACD of 65 versus EUR/USD MACD of -0.5
reflects absolute price differences, not momentum differences
スナップショット

Limitation 3: MACD values cannot be Systematically Classified
Due to limitations #1 & #2, it is not possible to create
a momentum level classification scale
where one can define "fast", "slow", "overbought", "oversold" momentum
making systematic analysis impossible
スナップショット

Limitation 4: MACD Signal Line gives false crossovers in low-momentum ranges
In range-bound, low momentum environments,
most of the MACD signal line crossovers are false (noise)
Since there is no objective momentum classification system (limitation #3),
it is not possible to filter these signals out,
by avoiding them when momentum is low
スナップショット

Limitation 5: MACD Signal Line gives late crossovers in high momentum regimes.
Signal lag in strong trends not good at timing the turning point
— In high-momentum moves, MACD crossovers may come late.
Since there is no objective momentum classification system (limitation #3),
it is not possible to filter these signals out,
by avoiding them when momentum is high
スナップショット
===================================================================



===================================================================
🏆 5. MACD-v : THE SOLUTION TO THE LIMITATIONS OF THE MACD , RSI, etc
====================================================================

MACD-v is a volatility normalised momentum indicator.
It remedies these 5 limitations of the classic MACD,
while creating a tool with unique properties.

Formula: [(EMA(12) - EMA(26)) / ATR(26)] × 100

MACD-V enhances the classic MACD by normalizing for volatility,
transforming price-dependent readings into standardized momentum values.
This resolves key limitations of traditional MACD and adds significant analytical power.

Core Advantages of MACD-V

Advantage 1: Time-Based Stability
MACD-V values are consistent and comparable over time.
A reading of 100 has the same meaning today as it did in the past
(unlike traditional MACD which is influenced by changes in price and volatility over time)
スナップショット

Advantage 2: Cross-Market Comparability
MACD-V provides universal scaling.
Readings (e.g., ±50) apply consistently across all asset classes—stocks,
bonds, commodities, or currencies,
allowing traders to compare momentum across markets reliably.

Advantage 3: Objective Momentum Classification
MACD-V includes a defined 5-range momentum lifecycle
with standardized thresholds (e.g., -150 to +150).
This offers an objective framework for analyzing market conditions
and supports integration with broader models.
スナップショット

Advantage 4: False Signal Reduction in Low-Momentum Regimes
MACD-V introduces a "neutral zone" (typically -50 to +50)
to filter out these low-probability signals.

Advantage 5: Improved Signal Timing in High-Momentum Regimes
MACD-V identifies extremely strong trends,
allowing for more precise entry and exit points.

Advantage 6: Trend-Adaptive Scaling
Unlike bounded oscillators like RSI or Stochastic,
MACD-V dynamically expands with trend strength,
providing clearer momentum insights without artificial limits.

Advantage 7: Enhanced Divergence Detection
MACD-V offers more reliable divergence signals
by avoiding distortion at extreme levels,
a common flaw in bounded indicators (RSI, etc)

スナップショット
====================================================================




=======================================
⚒️ 5. HOW TO USE THE MACD-v: 7 CORE PATTERNS
HOW TO USE THE MACD-v Histogram: 2 CORE PATTERNS
=======================================

>>>>>> BASIC USE (RANGE RULES) <<<<<<

The MACD-v has 7 Core Patterns (Ranges) :

1. Risk Range (Overbought)
 Condition: MACD-V > Signal Line and MACD-V > +150
 Interpretation: Extremely strong bullish momentum—potential exhaustion or reversal zone.

2. Retracing
 Condition: MACD-V < Signal Line and MACD-V > -50
 Interpretation: Mild pullback within a bullish trend.

3. Rundown
 Condition: MACD-V < Signal Line and -50 > MACD-V > -150
 Interpretation: Momentum is weakening—bearish pressure building.

4. Risk Range (Oversold)
 Condition: MACD-V < Signal Line and MACD-V < -150
 Interpretation: Extreme bearish momentum—potential for reversal or capitulation.

5. Rebounding
 Condition: MACD-V > Signal Line and MACD-V > -150
 Interpretation: Bullish recovery from oversold or weak conditions.

6. Rallying
 Condition: MACD-V > Signal Line and MACD-V > +50
 Interpretation: Strengthening bullish trend—momentum accelerating.

7. Ranging (Neutral Zone)
 Condition: MACD-V remains between -50 and +50 for 20+ bars
 Interpretation: Sideways market—low conviction and momentum.

スナップショット


The MACD-v Histogram has 2 Core Patterns (Ranges) :

1. Risk (Overbought)
 Condition: Histogram > +40
 Interpretation: Short-term bullish momentum is stretched—possible overextension or reversal risk.

2. Risk (Oversold)
 Condition: Histogram < -40
 Interpretation: Short-term bearish momentum is stretched—potential for rebound or reversal.

スナップショット
=======================================



=======================================
📈 6. ADVANCED PATTERNS WITH MACD-v
=======================================

Thanks to its volatility normalization,
the MACD-V framework enables the development
of a wide range of advanced pattern recognition setups,
trading signals, and strategic models.

These patterns go beyond basic crossovers,
offering deeper insight into momentum structure,
regime shifts, and high-probability trade setups.

These are not part of this script
=======================================



===========================================================
⚙️ 7. FUNCTIONALITY - HOW TO ADD THE INDICATORS TO YOUR CHART
===========================================================

The script allows you to see :

1. MACD-v
The indicator with the ranges (150,50,0,-50,-150)
and colour coded according to its 7 basic patterns
スナップショット


2. MACD-v Histogram
The indicator The indicator with the ranges (40,0,-40)
and colour coded according to its 2 basic ranges / patterns
スナップショット


3. MACD-v Heatmap
You can see the MACD-v in a Multiple Timeframe basis,
using a colour-coded Heatmap
Note that lowest timeframe in the heatmap must be the one on the chart
i.e. if you see the daily chart, then the Heatmap will be Daily, Weekly, Monthly
スナップショット

4. MACD-v Dashboard
You can see the MACD-v for 7 markets,
in a multiple timeframe basis
スナップショット
=======================================



=======================================
🤝 CONTRIBUTIONS 🤝
=======================================

I would like to thank the following people:

1. Mike Christensen for coding the indicator
TradersPostInc, Mik3Christ3ns3n,

2. Indicator-Jones For allowing me to use his Scanner

3. Daveatt For allowing me to use his heatmap
=======================================


=======================================
⚠️ LEGAL - Usage and Attribution Notice ⚠️
=======================================

Use of this Script is permitted
for personal or non-commercial purposes,
including implementation by coders and TradingView users.

However, any form of paid redistribution,
resale, or commercial exploitation is strictly prohibited.

Proper attribution to the original author is expected and appreciated,
in order to acknowledge the source
and maintain the integrity of the original work.

Failure to comply with these terms,
or to take corrective action within 48 hours of notification,
will result in a formal report to TradingView’s moderation team,
and will actively pursue account suspension and removal of the infringing script(s).

Continued violations may result in further legal action, as deemed necessary.
=======================================


=======================================
⚠️ DISCLAIMER ⚠️
=======================================

This indicator is For Educational Purposes Only (F.E.P.O.).
I am just Teaching by Example (T.B.E.)
It does not constitute investment advice.

There are no guarantees in trading - except one.
You will have losses in trading.
I can guarantee you that with 100% certainty.

The author is not responsible for any financial losses
or trading decisions made based on this indicator. 🙏
Always perform your own analysis and use proper risk management. 🛡️
=======================================


免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。