OPEN-SOURCE SCRIPT
업데이트됨 Diamond V5 : Institutional SMC & Liquidity Engine

Diamond V5: Ultimate Institutional SMC & Liquidity Engine
Diamond V5 is a high-precision trading framework designed for professional traders who follow SMC (Smart Money Concepts) and ICT methodologies. Unlike standard indicators, Diamond V5 is a complete structural engine that identifies where liquidity is resting and how institutional players are moving the market.

🚀 Key Features:
Auto-Market Detection: Smart algorithms that automatically adjust parameters (Sweep tolerance, confirmations) based on whether you are trading Gold, Forex, or Indices.
Advanced Structure Engine: Real-time mapping of BOS (Break of Structure) and CHoCH (Change of Character) with body-close confirmation.
Liquidity Clustering: Detects Equal Highs/Lows (EQH/EQL) with dynamic tolerance, identifying high-probability liquidity pools.
PD Array Filter: Integrated Premium/Discount logic to ensure you only Buy in Discount and Sell in Premium zones.
Institutional Confirmation: Combined Displacement, Fair Value Gaps (FVG), and Volume Spikes to filter out fakeouts.
Pro Dashboard: A comprehensive HUD showing HTF Trend, LTF Structure, Pricing status, and Killzone activity at a glance.
🛠 How to Trade (The Strategy):
Context: Ensure HTF Trend and Internal Structure are aligned (Green/Red Dashboard).
Setup: Wait for a Liquidity Sweep (Orange Diamond) in a Premium/Discount zone.
Trigger: Look for the BUY/SELL label which appears after a displacement candle creates a new FVG.
Target: Aim for the "Weak High/Low" target lines or use the dynamic 1:2 RR TP line.
📈 Optimized For:
Forex: EURUSD, GBPUSD, USDJPY (15m/1h)
Indices: NAS100, US30, SPX500 (1m/5m - NY Killzone)
Commodities: XAUUSD / GOLD (5m/15m)
توضیحات فارسی:
اندیکاتور Diamond V5 یک موتور معاملاتی پیشرفته مبتنی بر سبک اسمارت مانی (SMC) است. این ابزار با شناسایی خودکار ساختار بازار (BOS/CHoCH) و شکار نقدینگی (Liquidity Sweeps)، دقیقترین نقاط ورود در جهت روند اصلی را نمایش میدهد.
ویژگیهای برتر:
تشخیص خودکار نوع بازار (فارکس، طلا، شاخصها).
فیلتر قیمت منصفانه (ترید فقط در نواحی ارزان یا گران).
شناسایی نقدینگیهای مجتمع (Equal Highs/Lows).
ترسیم خودکار باکسهای FVG برای تایید ورود پول هوشمند.
داشبورد مدیریتی کامل برای بررسی همزمانی چندین فاکتور تحلیلی.
Diamond V5 is a high-precision trading framework designed for professional traders who follow SMC (Smart Money Concepts) and ICT methodologies. Unlike standard indicators, Diamond V5 is a complete structural engine that identifies where liquidity is resting and how institutional players are moving the market.
🚀 Key Features:
Auto-Market Detection: Smart algorithms that automatically adjust parameters (Sweep tolerance, confirmations) based on whether you are trading Gold, Forex, or Indices.
Advanced Structure Engine: Real-time mapping of BOS (Break of Structure) and CHoCH (Change of Character) with body-close confirmation.
Liquidity Clustering: Detects Equal Highs/Lows (EQH/EQL) with dynamic tolerance, identifying high-probability liquidity pools.
PD Array Filter: Integrated Premium/Discount logic to ensure you only Buy in Discount and Sell in Premium zones.
Institutional Confirmation: Combined Displacement, Fair Value Gaps (FVG), and Volume Spikes to filter out fakeouts.
Pro Dashboard: A comprehensive HUD showing HTF Trend, LTF Structure, Pricing status, and Killzone activity at a glance.
🛠 How to Trade (The Strategy):
Context: Ensure HTF Trend and Internal Structure are aligned (Green/Red Dashboard).
Setup: Wait for a Liquidity Sweep (Orange Diamond) in a Premium/Discount zone.
Trigger: Look for the BUY/SELL label which appears after a displacement candle creates a new FVG.
Target: Aim for the "Weak High/Low" target lines or use the dynamic 1:2 RR TP line.
📈 Optimized For:
Forex: EURUSD, GBPUSD, USDJPY (15m/1h)
Indices: NAS100, US30, SPX500 (1m/5m - NY Killzone)
Commodities: XAUUSD / GOLD (5m/15m)
توضیحات فارسی:
اندیکاتور Diamond V5 یک موتور معاملاتی پیشرفته مبتنی بر سبک اسمارت مانی (SMC) است. این ابزار با شناسایی خودکار ساختار بازار (BOS/CHoCH) و شکار نقدینگی (Liquidity Sweeps)، دقیقترین نقاط ورود در جهت روند اصلی را نمایش میدهد.
ویژگیهای برتر:
تشخیص خودکار نوع بازار (فارکس، طلا، شاخصها).
فیلتر قیمت منصفانه (ترید فقط در نواحی ارزان یا گران).
شناسایی نقدینگیهای مجتمع (Equal Highs/Lows).
ترسیم خودکار باکسهای FVG برای تایید ورود پول هوشمند.
داشبورد مدیریتی کامل برای بررسی همزمانی چندین فاکتور تحلیلی.
릴리즈 노트
Diamond V5.1 Update: Dynamic Alert Engine 🚀English:
This update introduces a major enhancement to the alert system, making Diamond V5 a complete signal generator for automated or manual trading.
🆕 What's New in V5.1?
Dynamic Alert Messages: The indicator now uses the alert() function to generate detailed, real-time messages.
Full Trade Details: Every alert now includes:
Signal Type: 🚀 BUY / 🔻 SELL
Entry Price: Exact close price of the confirmation candle.
Stop Loss (SL): Precise SL level based on the sweep extreme.
Take Profit (TP): Calculated TP based on your Risk:Reward ratio.
Quality Score: The calculated score of the setup (e.g., 12/15).
Auto-Market Parsing: Alerts automatically detect the ticker symbol and timeframe.
⚙️ How to Set Up Alerts (Important):
Click on "Create Alert".
Select Diamond V5 Universal as the condition.
Crucial Step: Select "Any alert() function call" as the trigger action.
Set expiration to "Once Per Bar Close" to avoid repainting signals.
Leave the message box empty (or default), as the script will generate the full message automatically.
فارسی:
آپدیت نسخه ۵.۱: موتور هشدارهای دینامیک
در این بروزرسانی، تمرکز اصلی بر روی هوشمندسازی سیستم هشدارها (Alerts) بوده است تا این اندیکاتور به یک ابزار کامل برای دریافت سیگنال تبدیل شود.
🆕 تغییرات جدید:
پیامهای هوشمند: از این پس پیامهای الرت شامل تمام جزئیات لازم برای ورود به معامله هستند.
جزئیات کامل سیگنال: هر هشدار شامل موارد زیر است:
نوع سیگنال (خرید/فروش) با ایموجیهای مشخص.
قیمت دقیق ورود.
قیمت دقیق حد ضرر (SL) و حد سود (TP).
امتیاز کیفیت سیگنال (Score).
سازگاری با رباتها: فرمت پیامها برای خوانایی آسان در تلگرام یا اتصال به رباتهای معاملهگر بهینه شده است.
⚙️ راهنمای تنظیم الرت جدید:
۱. در منوی الرت، اندیکاتور Diamond V5 را انتخاب کنید.
۲. نکته مهم: گزینه Any alert() function call را انتخاب کنید.
۳. تکرار را روی Once Per Bar Close قرار دهید.
۴. نیازی به نوشتن متن در بخش پیام نیست؛ اندیکاتور پیام کامل را به صورت خودکار ارسال میکند.
릴리즈 노트
Diamond V5.3: Direct Telegram Integration & Testing 🚀English:
This update streamlines the automation process, making it easier than ever to connect Diamond V5 to your Telegram channel or trading bot.
🆕 New Features in V5.3:
Direct Credentials Input: You can now enter your Telegram Bot Token and Chat ID directly inside the indicator settings. The script automatically packages this into a standard JSON format.
🚨 Test Alert Button: A new toggle in the settings allows you to send an immediate test message to your Telegram. Verify your connection instantly without waiting for a market signal!
Optimized Webhook Engine: Improved JSON structure for better compatibility with bridges (Google Apps Script, Python, etc.).
⚙️ How to Use:
Go to indicator Settings > Telegram Settings.
Paste your Bot Token and Chat ID.
Check the "🚨 Send Test Alert" box to verify (uncheck after testing).
Create an Alert using "Any alert() function call".
توضیحات آپدیت (فارسی):
نسخه ۵.۳: اتصال مستقیم تلگرام و دکمه تست 💎
در این بروزرسانی، تمرکز بر سادهسازی فرآیند اتصال به تلگرام و تست سیگنالها بوده است.
تغییرات جدید:
۱. تنظیمات اختصاصی تلگرام: اکنون میتوانید توکن ربات و آیدی کانال خود را مستقیماً در تنظیمات اندیکاتور وارد کنید.
۲. دکمه تست (Test Alert): با فعال کردن گزینه "Send Test Alert" در تنظیمات، یک پیام آزمایشی فوری ارسال میشود تا از اتصال صحیح وبهوک مطمئن شوید.
۳. بهینهسازی JSON: ساختار پیامها برای خوانایی بهتر توسط رباتها و اسکریپتهای واسط استانداردسازی شد.
روش استفاده:
فقط کافیست توکن و آیدی را در تنظیمات وارد کنید و هنگام ساخت الرت، گزینه Any alert() function call را انتخاب نمایید.
릴리즈 노트
Diamond V7: The Institutional Execution Model 💎English:
This is a major architectural overhaul. We have transitioned from a standard "Indicator" to a full Institutional Execution Engine. Diamond V7 refactors the entire logic to eliminate retail noise and align with true Smart Money mechanics.
🚀 Major Core Upgrades:
1. Best-Candidate Sweep Engine (No More Bias)
Previous versions triggered on the first valid sweep. V7 scans the entire liquidity pool depth and selects the BEST candidate based on clustering, volume, and RSI divergence. This significantly increases precision on volatile assets like NAS100 and Gold.
2. Leg-Based PD Arrays (Drift Fixed)
The Premium/Discount logic is now Leg-Based. The range (High/Low) locks in place and only updates on a confirmed BOS or CHoCH. This prevents the "Discount Zone" from drifting mid-trade, offering institutional-grade pricing.
3. Advanced Risk Guard
Added a safety mechanism for Stop Loss calculation. If the structural stop is too tight (compressed candles), the engine enforces a minimum volatility-based buffer to prevent noise stop-outs.
4. Optimized Performance
Garbage Collection: Implemented memory management for lines and labels to prevent chart lag.
Anti-Flicker Visuals: Structure lines now update smoothly without blinking.
JSON Alerts: Standardized payload format for seamless auto-trading integration.
فارسی:
نسخه ۷ دایموند: مدل اجرایی نهادی (Institutional Model) 💎
این یک آپدیت معمولی نیست؛ بلکه بازنویسی کامل هسته (Engine) اندیکاتور است. در نسخه ۷، ما از منطقهای ساده عبور کرده و الگوریتمها را بر اساس رفتار دقیق موسسات مالی بازطراحی کردهایم.
🚀 تغییرات حیاتی و زیرساختی:
۱. موتور انتخاب «بهترین» سویپ (Best-Candidate)
در نسخههای قبل، اولین سویپ معتبر سیگنال میداد. در V7، سیستم تمام سویینگهای اخیر را اسکن میکند و بهترین نقطه نقدینگی (که دارای کلاستر و واگرایی قویتر است) را برای ورود انتخاب میکند.
۲. آرایههای PD ثابت (Leg-Based)
مشکل جابجایی مداوم نواحی ارزان/گران (Drift) حل شد. اکنون نواحی Premium/Discount روی «لگ حرکتی» قفل میشوند و تا زمان شکست ساختار (BOS) ثابت میمانند. این دقیقترین روش تحلیل قیمت است.
۳. محافظت از ریسک (Risk Guard)
یک مکانیزم ایمنی اضافه شد که اگر استاپلاس تکنیکال خیلی به قیمت ورود نزدیک بود (در کندلهای فشرده)، سیستم به صورت خودکار یک حداقل فاصله (بر اساس ATR) را رعایت کند.
۴. بهینهسازی کامل
رفع نشت حافظه (Memory Leak) برای جلوگیری از کندی چارت.
رفع پرش (Flicker) خطوط ساختار.
استانداردسازی فرمت JSON برای اتصال پایدار به رباتهای تریدر.
⚠️ Recommendation:
Please delete your old alerts and create new ones using this version to benefit from the new engine logic.
لطفاً الرتهای قدیمی را پاک کرده و با این نسخه مجدداً تنظیم کنید.
릴리즈 노트
# Diamond V7.01 Update: Social Channels 📢In this update, we've included direct links to our official Telegram channels for support, updates, and live signals. Join the community to stay connected!
🔗 Official Channels:
* **Main Channel:** `t.me/DiamondQuantX`
* **Signal Channel:** `t.me/diamontquantx_signal`
---
**فارسی:**
**آپدیت نسخه 7.01: کانالهای ارتباطی**
در این نسخه، لینکهای رسمی کانالهای تلگرام ما برای دریافت آخرین اخبار، آموزشها و سیگنالهای لایو اضافه شده است. با عضویت در این کانالها، همیشه بهروز باشید.
### 🔗 کانالهای رسمی:
* **کانال اصلی (اخبار و آموزش):** `t.me/DiamondQuantX`
* **کانال سیگنال (سیگنالهای لایو):** `t.me/diamontquantx_signal`
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
💎 DiamondQuantX | Engineering Alpha
We decode markets. Welcome to our R&D Lab, engineering high-precision trading systems. Logic over Luck.
دایموند کوانت ایکس | مهندسی برتری
آزمایشگاه توسعه استراتژیهای پیشرفته و مدلهای کوانت. منطق فراتر از شانس.
We decode markets. Welcome to our R&D Lab, engineering high-precision trading systems. Logic over Luck.
دایموند کوانت ایکس | مهندسی برتری
آزمایشگاه توسعه استراتژیهای پیشرفته و مدلهای کوانت. منطق فراتر از شانس.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
💎 DiamondQuantX | Engineering Alpha
We decode markets. Welcome to our R&D Lab, engineering high-precision trading systems. Logic over Luck.
دایموند کوانت ایکس | مهندسی برتری
آزمایشگاه توسعه استراتژیهای پیشرفته و مدلهای کوانت. منطق فراتر از شانس.
We decode markets. Welcome to our R&D Lab, engineering high-precision trading systems. Logic over Luck.
دایموند کوانت ایکس | مهندسی برتری
آزمایشگاه توسعه استراتژیهای پیشرفته و مدلهای کوانت. منطق فراتر از شانس.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.