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. اقرأ المزيد في شروط الاستخدام.