OPEN-SOURCE SCRIPT
Aggiornato 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
Note di rilascio
just made it a little better Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.