OPEN-SOURCE SCRIPT
מעודכן

EFI & MACD Advanced Pro

529


Indicator Synopsis: EFI & MACD Advanced Pro
This custom TradingView indicator—created for Simon20cent—is a dual-momentum confirmation filter designed to isolate high-probability trend phases by synchronising a volume-weighted oscillator with a trend-following moving average cross.
It strips away chart noise by compressing two distinct indicator panels into a single, highly scannable visual pane.



Core Components & Logic
The system monitors the interaction between two classic technical metrics:
1. Elder’s Force Index (EFI): Measures the directional power of a move by multiplying price change by volume. It determines whether buyers or sellers dominate the volume profile (Value > 0 or < 0).
2. MACD vs. Signal Line: Tracks classic moving average momentum. A bullish state is triggered when the fast MACD line crosses above the slow Signal line (MACD > Signal).



Visual Matrix (How to Read the Pane)
The indicator renders exclusively as a zero-anchored Column Chart, utilizing four distinct conditions:
* 🟩 Bright Green Column (+1.0): Full Bullish Alignment. The EFI is above zero and accelerating upward, while the MACD line is securely above its signal line.
* 🟥 Bright Red Column (-1.0): Full Bearish Alignment. The EFI is below zero and accelerating downward, while the MACD line is securely below its signal line.
* 🟦 Light Blue Column (+0.5): Divergence / Market Out of Alignment. The indicators do not agree, but the EFI remains positive (>0), suggesting weak bullish underlying volume.
* 📘 Dark Navy Column (-0.5): Divergence / Market Out of Alignment. The indicators do not agree, but the EFI remains negative (<0), suggesting weak bearish underlying volume.



Advanced Institutional Features
* Momentum Grading (Two-Tone Gradients): The columns automatically shift to a darker shade of green or red if structural momentum begins to flatten, providing an early structural warning before a trend formally breaks.
* Trend Exhaustion Alerts (Orange Triangles): Small orange triangles automatically print above or below the columns the exact moment a strong green or red streak loses velocity, marking ideal profit-taking windows.
* Integrated Alert Engine: Features pre-built Pine Script hooks for Bullish Alignment, Bearish Alignment, and Trend Exhaustion, allowing you to link the indicator directly to TradingView phone push notifications or email alerts.

🟢 Long Exit Warning (Orange Triangle pointing Downward)
This prints at the top of the pane (+1.1) to signal it is time to scale out or close a long position. It triggers when you are in a valid long streak (Green columns), but the very next bar suffers a breakdown in power:
* The Math: The indicator checks if Elder's Force Index (EFI) starts falling compared to the previous bar, OR if the MACD Line slips back below the Signal Line.
* The Meaning: Buyers are running out of breath. Even though price might still be hovering near the highs, the volume-weighted power (EFI) is dropping, meaning institutional buying pressure has dried up.

🔴 Short Exit Warning (Orange Triangle pointing Upward)
This prints at the bottom of the pane (-1.1) to signal it is time to cover your short position. It triggers when you are in a valid short streak (Red columns), but seller momentum hits exhaustion:
* The Math: The indicator checks if EFI starts rising (climbing back toward zero), OR if the MACD Line crosses back above the Signal Line.
* The Meaning: Sellers are exhausted. The downward volume is thinning out, and profit-taking by larger players is likely about to cause a bullish bounce or a prolonged squeeze.

💡 Trading Strategy Tip
Do not use these orange triangles to open new trades. Treat them strictly as protective exit signals. When you see one appear while you are in profit, it means the high-velocity phase of that specific wave has ended, and the indicator is about to print unaligned blue columns.
הערות שחרור
Backend change to colors, red colors were out of alignment.
הערות שחרור
ADDED ATR FUNCTION
Technical Synopsis:
ATR Volatility Filter ExtensionThis module integrates an Average True Range (ATR) volatility threshold filter directly into the Simon20cent core trend engine.
Instead of treating every moving average cross with equal weight, this upgrade turns the indicator into an adaptive market regime filter designed to protect your capital from flat, low-liquidity consolidation phases.
How the ATR Filter Works Under the HoodStandard indicators suffer from "whipsawing" when price consolidates sideways, causing lines to repeatedly cross and generate false signals.
This script solves that problem using a three-step mathematical process:Calculates the Raw Gap: It tracks the exact mathematical distance between the fast MACD line and the slow Signal line (macdLine - signalLine).Normalises Against Volatility: It divides that absolute value by the current 14-period ATR (Raw Gap / ATR). This converts the price gap into a standardised volatility unit, meaning a "$5 gap" on an asset is instantly evaluated based on whether the market is currently experiencing high or low volatility. Applies the Threshold Filter: The script will reject any signal unless the normalised gap clears your chosen threshold (default is 0.15 ATR).Visual Matrix Changes (Regime Recognition)
When the ATR toggle is enabled, the behavior of the columns shifts to protect you from entering weak breakouts:
🔷 Filters False Breakouts: If the MACD line crosses above the Signal line during a low-volume, choppy market, the distance between the lines will be thin (e.g., 0.04 ATR). Because it fails to clear the 0.15 threshold, the script silently rejects the trade and forces the columns to stay Blue, keeping you on the sidelines.
⚡ Validates High-Velocity Entries: The columns will only flash a vibrant Green or Red if the cross happens with enough aggressive momentum to push the lines apart wider than the volatility threshold. This ensures you only trade when institutional volume has actively stepped into the market.
Strategic ValueRegime Protection: Instantly tells you whether the market is in a structural Trending Regime (Green/Red columns) or a Mean-Reverting/Chop Regime (Blue columns).Asset Agnostic: Because the gap is divided by the ATR, the indicator automatically scales itself. You can use the exact same 0.15 setting on Bitcoin, Apple stock, or Forex pairs without needing to manually adjust for different asset prices.Customisable Sensitivity: Includes a dedicated menu toggle to turn the filter off instantly, along with a precision slider to tighten or loosen the filter based on how aggressive you want your trade entries to be.

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.