OPEN-SOURCE SCRIPT
已更新 AN Trades

**AN Trades — Entry Signal Indicator**
A Smart Money / ICT-based entry signal indicator that plots a **BUY** or **SELL** arrow only when a full confluence of conditions is met. It does not repaint — signals fire on the close of the confirming bar.
---
**How a signal triggers (all must be true simultaneously):**
1. **Liquidity Sweep** — Price wicks below a recent swing low (for longs) or above a recent swing high (for shorts) and closes back through it, indicating a manipulation / stop hunt
2. **IFVG (Inverted Fair Value Gap)** — A previously bullish/bearish FVG has been invaded and closed through, flipping it into an IFVG. Price must be entering or touching that zone at signal time
3. **CISD (Change in State of Delivery)** — Price closes through the open of a prior delivery candle in the opposite direction, confirming a shift in order flow
4. **Manipulation Leg Invalidation** — If after the sweep, price closes back through the swept level again (taking out the swing that caused the manipulation), the trade is blocked — the setup has failed
---
**Optional filters (toggleable):**
- **SMT Divergence** — One correlated instrument (default NQ) makes a new high/low while the other fails to, confirming institutional divergence
- **Opposing DOL** — Blocks the trade if the nearest liquidity in the opposite direction is closer than the target
- **Data Wick** — Blocks the trade if an abnormally large wick (news spike / algo wick) is present in the opposing direction
- **HTF Bias** — Tracks the higher timeframe FVG direction; used internally for context
A Smart Money / ICT-based entry signal indicator that plots a **BUY** or **SELL** arrow only when a full confluence of conditions is met. It does not repaint — signals fire on the close of the confirming bar.
---
**How a signal triggers (all must be true simultaneously):**
1. **Liquidity Sweep** — Price wicks below a recent swing low (for longs) or above a recent swing high (for shorts) and closes back through it, indicating a manipulation / stop hunt
2. **IFVG (Inverted Fair Value Gap)** — A previously bullish/bearish FVG has been invaded and closed through, flipping it into an IFVG. Price must be entering or touching that zone at signal time
3. **CISD (Change in State of Delivery)** — Price closes through the open of a prior delivery candle in the opposite direction, confirming a shift in order flow
4. **Manipulation Leg Invalidation** — If after the sweep, price closes back through the swept level again (taking out the swing that caused the manipulation), the trade is blocked — the setup has failed
---
**Optional filters (toggleable):**
- **SMT Divergence** — One correlated instrument (default NQ) makes a new high/low while the other fails to, confirming institutional divergence
- **Opposing DOL** — Blocks the trade if the nearest liquidity in the opposite direction is closer than the target
- **Data Wick** — Blocks the trade if an abnormally large wick (news spike / algo wick) is present in the opposing direction
- **HTF Bias** — Tracks the higher timeframe FVG direction; used internally for context
版本注释
just made it a little better 开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。