OPEN-SOURCE SCRIPT
AMD 5 MIN

Overview
This indicator is a specialized toolkit designed for XAUUSD (Gold) traders who utilize Smart Money Concepts (SMC). It automates the detection of high-probability reversal zones by identifying the "Judas Swing" (Manipulation) followed by a Change in State of Delivery (CISD).
Unlike standard "support/resistance" indicators, this script focuses on Liquidity Sweeps—where institutional orders are often triggered—before projecting Fibonacci-based Standard Deviation targets.
Key Features
Automatic Liquidity Sweep Detection: Marks "Manipulation" (M) when price impulsively breaches a previous Swing High or Low.
CISD (Change in State of Delivery): Confirms the shift in market character when price closes back within the previous range, signaling a potential reversal.
Dynamic Value Zones: Automatically plots Fair Value Gaps (FVG) and Order Blocks (OB) that form during the displacement move.
Rejection Candle Filter: Only triggers signals when price "wicks" into a zone and closes outside of it with a specific body-to-wick ratio, reducing "knife-catching" entries.
Institutional Targets: Uses Standard Deviation projections (-1, -2, -2.5) based on the manipulation range, providing objective Take Profit levels.
How to Trade This Script
Wait for the Sweep: Look for the yellow "M" label. This indicates price has taken out a swing level (Liquidity).
The Shift: Wait for a CISD (Blue/Red zones). This proves the "Smart Money" is active in the opposite direction.
The Entry: Enter on a LONG/SHORT signal. This occurs when price retraces into the FVG/OB and shows "Rejection" (a long wick).
The Exit: Scale out at the Standard Deviation targets projected on the right side of the chart.
⚠️ Brutal Disclaimer (The Advisor's Note)
Gold is a beast. This script is a tool, not a "money printer."
Avoid "Chop": Do not trade this during low-volume Asian sessions. It performs best during London and New York Open.
Context is King: Always align these lower-timeframe (1m/5m) signals with the Higher Timeframe (1H/4H) trend.
Risk: Always use a manual Stop Loss. XAUUSD can invalidate a "Perfect" OB in seconds during high-impact news (NFP/CPI).
Suggested Settings for XAUUSD
Swing Length: 10-15 (for 5m timeframe).
Rejection Factor: 0.3 (if you want more "strict" wicks) or 0.5 (for more frequent signals).
Min FVG Size: 0.5 - 1.0 points (to filter out tiny, insignificant gaps).
This indicator is a specialized toolkit designed for XAUUSD (Gold) traders who utilize Smart Money Concepts (SMC). It automates the detection of high-probability reversal zones by identifying the "Judas Swing" (Manipulation) followed by a Change in State of Delivery (CISD).
Unlike standard "support/resistance" indicators, this script focuses on Liquidity Sweeps—where institutional orders are often triggered—before projecting Fibonacci-based Standard Deviation targets.
Key Features
Automatic Liquidity Sweep Detection: Marks "Manipulation" (M) when price impulsively breaches a previous Swing High or Low.
CISD (Change in State of Delivery): Confirms the shift in market character when price closes back within the previous range, signaling a potential reversal.
Dynamic Value Zones: Automatically plots Fair Value Gaps (FVG) and Order Blocks (OB) that form during the displacement move.
Rejection Candle Filter: Only triggers signals when price "wicks" into a zone and closes outside of it with a specific body-to-wick ratio, reducing "knife-catching" entries.
Institutional Targets: Uses Standard Deviation projections (-1, -2, -2.5) based on the manipulation range, providing objective Take Profit levels.
How to Trade This Script
Wait for the Sweep: Look for the yellow "M" label. This indicates price has taken out a swing level (Liquidity).
The Shift: Wait for a CISD (Blue/Red zones). This proves the "Smart Money" is active in the opposite direction.
The Entry: Enter on a LONG/SHORT signal. This occurs when price retraces into the FVG/OB and shows "Rejection" (a long wick).
The Exit: Scale out at the Standard Deviation targets projected on the right side of the chart.
⚠️ Brutal Disclaimer (The Advisor's Note)
Gold is a beast. This script is a tool, not a "money printer."
Avoid "Chop": Do not trade this during low-volume Asian sessions. It performs best during London and New York Open.
Context is King: Always align these lower-timeframe (1m/5m) signals with the Higher Timeframe (1H/4H) trend.
Risk: Always use a manual Stop Loss. XAUUSD can invalidate a "Perfect" OB in seconds during high-impact news (NFP/CPI).
Suggested Settings for XAUUSD
Swing Length: 10-15 (for 5m timeframe).
Rejection Factor: 0.3 (if you want more "strict" wicks) or 0.5 (for more frequent signals).
Min FVG Size: 0.5 - 1.0 points (to filter out tiny, insignificant gaps).
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน