OPEN-SOURCE SCRIPT
已更新 EMA Inversion [MMT]

The EMA Inversion [MMT] indicator is a complete, trend-following price action system that bridges traditional moving average momentum with modern imbalance concepts (Fair Value Gaps and Inversions). It is designed to strictly identify high-probability pullback continuation setups while keeping your chart clean and optimized.
How the Strategy Works
This script looks for a specific sequence of events to trigger a valid entry:
Signal Triggers
🟢 Long Setup: Price is above all 3 EMAs. Price pulls back into the EMA band. A Bearish FVG is formed. Price then rallies, closing above the Bearish FVG (creating a bullish iFVG) AND closing back above the 33 EMA.
🔴 Short Setup: Price is below all 3 EMAs. Price pulls back into the EMA band. A Bullish FVG is formed. Price drops, closing below the Bullish FVG (creating a bearish iFVG) AND closing back below the 33 EMA.
Key Features
Best Timeframes:
Works well across all intraday timeframes (1m, 3m, 5m, 15m), particularly for index futures (NQ/ES) and forex day trading.
Disclaimer: This script is for educational and technical analysis purposes only and does not constitute financial advice.
How the Strategy Works
This script looks for a specific sequence of events to trigger a valid entry:
- Trend Alignment: The overarching trend is defined by the alignment of the Fast (33), Medium (50), and Slow (200) EMAs.
- The Pullback: Price must pull back into the "Value Band" (the shaded area between the 33 and 50 EMAs).
- The Imbalance: During this pullback, the script tracks the formation of Fair Value Gaps (FVGs).
- The Inversion (Trigger): A signal is fired when price violently reverses out of the pullback, closing completely through the opposing FVG (turning it into an iFVG) while simultaneously closing back in the direction of the EMA trend.
Signal Triggers
🟢 Long Setup: Price is above all 3 EMAs. Price pulls back into the EMA band. A Bearish FVG is formed. Price then rallies, closing above the Bearish FVG (creating a bullish iFVG) AND closing back above the 33 EMA.
🔴 Short Setup: Price is below all 3 EMAs. Price pulls back into the EMA band. A Bullish FVG is formed. Price drops, closing below the Bullish FVG (creating a bearish iFVG) AND closing back below the 33 EMA.
Key Features
[*]Decoupled FVG & iFVG Tracking: Unlike standard scripts that clutter your screen, this indicator utilizes independent, modular array management. You can set a strict limit on how many "Normal FVGs" and "Inverted FVGs" are drawn on your chart at one time, keeping your workspace incredibly clean.- Dynamic Extension Limits: Choose exactly how many bars you want your unmitigated imbalance boxes to extend to the right, or set it to 0 for indefinite extension until mitigated.
- Visual Customization: Fully customize the colors, borders, and backgrounds for your EMAs, normal FVGs, and Inversion FVGs. The indicator visually flips the box colors the exact moment an inversion occurs.
- Built-in Automation Alerts: The script includes pre-formatted JSON webhook alerts (ready for Node.js, Python, or 3rd-party execution services) to instantly route buy and sell signals to your live brokerage accounts.
Best Timeframes:
Works well across all intraday timeframes (1m, 3m, 5m, 15m), particularly for index futures (NQ/ES) and forex day trading.
Disclaimer: This script is for educational and technical analysis purposes only and does not constitute financial advice.
版本注释
NEW CHANGES:- Filter settings added for EMAs
- Options to display TP/SL
- Removed FVG settings and left with only iFVG settings
- MTF dashboard scanner
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。