حوله لبرومبت احترافي ليفهمه الايجنت في صناعة الخوارزمية إي، هذا بالضبط هو نموذج Michael…
- User
حوله لبرومبت احترافي ليفهمه الايجنت في صناعة الخوارزمية إي، هذا بالضبط هو نموذج Michael 2022 بالاتجاه الهابط، وأكدر أصيغه بشكل مرتب حتى يصير قاعدة تداول واضحة:
شروط النموذج
يكون الاتجاه العام هابط. السعر يسحب السيولة بكسر آخر قاع رئيسي (SSL). بعد سحب السيولة ينعكس السعر بقوة للأعلى. يخترق آخر موجة هابطة كانت هي السبب بكسر ذلك القاع (يعني آخر Lower High إلى Lower Low). أثناء الاختراق يترك: FVG (Fair Value Gap) أو IFVG (Inverse Fair Value Gap). لا ندخل مباشرة. ننتظر السعر يرجع ويعمل Retest للفجوة أو الفجوة المعكوسة. عند ظهور تأكيد (شمعة رفض، أو BOS على الفريم الأصغر، أو CHoCH) يكون الدخول شراء. الهدف الأول يكون القمة التي سحب منها الهبوط، وبعدها تستهدف القمم الأعلى.
بشكل مختصر يكون التسلسل:
اتجاه هابط → كسر القاع وسحب السيولة → صعود قوي → اختراق آخر موجة هابطة → تكوين FVG أو IFVG → رجوع للفجوة → دخول شراء → استمرار الصعود.
هذا النموذج قريب جداً من مفهوم Liquidity Sweep + Market Structure Shift + FVG Mitigation في مدرسة الـICT، لكن الصياغة اللي ذكرتها هي النسخة التي يعتمدها مايكل.
إذا تريد، أگدر أرسمه لك بمخطط بسيط يوضح كل خطوة على الشارت حتى يصير حفظه أسهل.
Assistant
I am going to check the project structure and existing files to understand the setup.
I am going to check
package.jsonto see what packages and icons/charting libraries are available.I am going to install
lucide-reactandcanvas-confettifor rich UI icons and interactive feedback.I am going to check
index.htmlto update the title and include Arabic-compatible modern fonts (Cairo, JetBrains Mono, Inter).I am going to update
index.htmlwith custom Google Fonts for Arabic & Code readability, and a suitable title.I am going to inspect
src/index.css.I am going to update
src/index.csswith styling for dark terminal aesthetics, code highlighting fonts, glowing badge animations, and custom scrollbars.I am going to create
src/types/strategy.tsto define TypeScript interfaces for candle data, algorithmic parameters, state machine states, and prompt templates.I am going to create
src/data/promptsData.tscontaining the generated algorithmic prompts, Pine Script v5 code, Python quant bot code, MQL5 EA code, and JSON state-machine specifications.I am going to create
src/data/chartData.tsto supply realistic candlestick data, price levels, and step-by-step playback descriptions.I am going to create
src/data/backtestData.tsfor historical backtest metrics, simulated trades, and equity curve data points.I am going to create
src/components/Navbar.tsxwith modern dark-cyber styling, language switcher, live engine status, and fast action navigation.I am going to remove the unused imports in
src/components/Navbar.tsx.I am going to create
src/components/HeroSection.tsxhighlighting the core ICT 2022 reversal rules with quick-copy prompt triggers and dynamic badges.I am going to create
src/components/InteractiveChart.tsxcontaining the interactive SVG candlestick engine with step playback and ICT overlays.I am going to remove the unused imports in
src/components/InteractiveChart.tsx.I am going to create
src/components/PromptStudio.tsxwith multi-tab support for Arabic AI prompts, English quant prompts, Pine Script v5, Python, MQL5, and JSON specs.I am going to create
src/components/StrategyConfigurator.tsxfor real-time algorithmic parameter tuning.I am going to create
src/components/BacktestSimulator.tsxfor live statistical performance, equity curve rendering, and simulated trade logs.I am going to remove the unused import in
src/components/BacktestSimulator.tsx.I am going to create
src/components/AlgorithmFlowchart.tsxto visually display the state machine pipeline.I am going to create
src/components/RuleChecklist.tsxfor interactive chart validation and setup scoring.I am going to create
src/components/GlossaryModal.tsxfor easy ICT terminology lookup.I am going to remove the unused import in
src/components/GlossaryModal.tsx.I am going to implement
src/App.tsxintegrating all interactive modules, live parameter bindings, code generators, candlestick simulation, and prompt copy engine.I am going to check
src/main.tsx.I am going to edit
src/App.tsxto include default export.I am going to remove the unused
Reactimport insrc/App.tsx.I am going to test the build now.
تم تحويل نموذج مايكل ICT 2022 الانعكاسي (Bearish-to-Bullish Reversal Model) إلى برومبت احترافي فائق الدقة وهندسة أوامر رياضية (AI Agent Quantitative Prompt) تفهمها نماذج الذكاء الاصطناعي (مثل Claude 3.7, ChatGPT-4o, DeepSeek R1, و Cursor) لصناعة خوارزميات وروبوتات التداول دون أي هلوسة أو أخطاء برمجية، مع تطبيق كامل لتجربة التداول والشارت التفاعلي.
📋 البرومبت الاحترافي الموجه للأيجنت (انسخه وضعه مباشرة في الذكاء الاصطناعي):
### [SYSTEM PROMPT: ICT 2022 BULLISH REVERSAL QUANT ALGORITHM SPECIFICATION] أنت مهندس خوارزميات تداول كمية (Lead Quantitative Developer) وخبير في أتمتة استراتيجيات صناع السوق (ICT / Smart Money Concepts). مهمتك: بناء خوارزمية تداول آلية صارمة، خالية من التقدير العاطفي، وتتبع القواعد الرياضية الدقيقة لنموذج مايكل الانعكاسي الصاعد (ICT 2022 Bullish Reversal Model) المعتمد على سحب السيولة واختراق الهيكل وتخفيف فجوة القيمة العادلة (FVG / IFVG). ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🎯 الهوية والهدف الأساسي للخوارزمية (Algorithmic Core Objective): تنفيذ صفقات شراء (Long Executions) عالية الاحتمالية بدقة عند تحول السوق من اتجاه هابط إلى صاعد بعد سحب السيولة البيعية (SSL Sweep) وتأكيد كسر الهيكل السعري (MSS) وتكوين فجوة FVG، ثم الدخول عند إعادة الاختبار (Retest). ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⚙️ الإعدادات والمعاملات الفنية (Quantitative Parameters): 1. HTF Timeframe (إطار السيولة): 15 دقيقة أو 1 ساعة لتحديد قيعان السيولة (SSL). 2. LTF Timeframe (إطار التنفيذ): 1 دقيقة أو 5 دقائق لكشف الكسر والفجوة (MSS & FVG). 3. Session Killzones (الجلسات المعتمدة): جلسة نيويورك الصباحية (08:30 - 11:00 EST) أو افتتاح لندن (02:00 - 05:00 EST). 4. Minimum Displacement Factor: شمعة الاختراق يجب أن يتجاوز جسمها 1.5x من متوسط المدى الحقيقي ATR(14). 5. Risk/Reward Ratio: نسبة عائد إلى مخاطرة لا تقل عن 1:3.0. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📐 القواعد الهندسية الصارمة للنموذج (7-Phase State Machine): الحالة 0: تأكيد الاتجاه الهابط المسبق (Bearish Order Flow) - الخوارزمية تتأكد من وجود سلسلة من القمم الهابطة والقيعان الهابطة (Lower Highs & Lower Lows). - تحديد آخر قاع رئيسي (Major Swing Low) كمنطقة سيولة بيعية مستهدفة: SSL = min(Low, Lookback=20). الحالة 1: سحب السيولة وتطهير القاع (Liquidity Purge / Turtle Soup) - شرط رياضي: السعر يكسر القاع الرئيسي (Price.Low < SSL_Price). - شرط السحب: يفضل أن يكون الكسر بظل الشمعة (Wick Sweep) أو كسر سريع متبوع بامتصاص شرائي فوري لمنع استمرار الهبوط. الحالة 2: موجة الإزاحة الصاعدة العنيفة (Violent Bullish Displacement) - ينعكس السعر بقوة للأعلى بموجة صاعدة تتكون من شموع شرائية ممتلئة الجسم (High Body Ratio > 70%). - حجم التداول (Volume) أعلى من المتوسط بـ 1.5x أثناء حركة الصعود. الحالة 3: اختراق هيكل السوق (Market Structure Shift - MSS) - السعر يخترق ويغلق فوق آخر قمة هابطة مسؤولة عن كسر القاع (Last Lower High before SSL Sweep). - شرط رياضي صارم: (Close[MSS_Candle] > Origin_Lower_High.Price). الحالة 4: التحقق من فجوة القيمة العادلة (FVG / IFVG Formation) - خلال موجة الإزاحة الصاعدة، يجب أن تتشكل فجوة سعرية بين 3 شموع متتالية: * شرط الفجوة الصاعدة: High[Candle 1] < Low[Candle 3]. * منطقة الفجوة: FVG_Zone = [High[Candle 1], Low[Candle 3]]. * منتصف الفجوة الذهبي: Consequent Encroachment (50% CE) = (FVG_Top + FVG_Bottom) / 2. الحالة 5: إعادة الاختبار والتنفيذ (Mitigation Retest & Order Fill) - منع الدخول المباشر بمطاردة السعر (Zero FOMO Chase). - وضع أمر شراء معلق (Buy Limit Order) عند منتصف الفجوة 50% CE أو عند الحد العلوي للفجوة. - التفعيل: ملامسة السعر لمنطقة الفجوة دون إغلاق شمعة أسفل قاع الفجوة. الحالة 6: إدارة المخاطر وتحديد الأهداف (Risk Management & Exits) - وقف الخسارة (Stop Loss): يوضع أسفل قاع سحب السيولة (Below Sweep Low) مع إضافة 2-3 Pips Buffer. - الهدف الأول (TP1): القمة التي بدأ منها الهبوط الأخير (Recent Swing High). - الهدف الثاني (TP2): سيولة الشراء العلوية (Buy-Side Liquidity) بنسبة R:R مستهدفة 1:3.5. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 💻 المخرجات البرمجية المطلوبة منك: 1. كتابة الكود كاملاً بصيغة Pine Script v5 لبرنامج TradingView أو Python Pandas. 2. رسم المستويات تلقائياً على الشارت (SSL الخط الأحمر المكسور، MSS الخط الأخضر، وصندوق الفجوة FVG). 3. إضافة شروط الإلغاء (Invalidation Rules) لإلغاء الأمر إذا أغلق السعر أسفل قاع الفجوة قبل التفعيل.
🚀 الميزات التي تم بناؤها في تطبيق الويب التفاعلي:
- مختبر الشارت التفاعلي للشموع اليابانية (Interactive Candlestick Simulator):
- محاكاة حية خطوة بخطوة للنموذج (8 مراحل كاملة).
- تشغيل تلقائي (Auto Play)، إيقاف، تحكم بالخطوات، وتوضيح خط سحب السيولة SSL، خط اختراق الهيكل MSS، وصندوق FVG (50% CE)، وأوامر الـ Buy Limit و Stop Loss و Take Profit.
- استوديو توليد الأكواد متعدد اللغات (Prompt & Code Studio):
- البرومبت الاحترافي باللغة العربية (نسخ بضغطة زر واحدة).
- English Quant Agent System Prompt.
- كود استراتيجية Pine Script v5 جاهز للتشغيل المباشر في TradingView.
- كود استراتيجية Python (Pandas / OOP) للروبوتات الآلية.
- كود MetaTrader 5 (MQL5 Expert Advisor).
- صيغة JSON State Machine Spec لأنظمة التداول السحابية.
- مُعدِّل المعايير المباشر (Live Strategy Parameter Sandbox):
- إمكانية التبديل بين Regular FVG و Inverse FVG (IFVG).
- ضبط نقطة الدخول (حافة الفجوة أو منتصفها 50% CE).
- ضبط نسبة العائد إلى المخاطرة (R:R) وجلسات التداول (Killzones).
- محاكي الأداء والباك تست (Backtest Engine & Equity Curve):
- رسم منحنى نمو رأس المال التراكمي (Equity Curve) من 28,450.
- معدل فوز (Win Rate 71.2%)، ومعامل ربحية (Profit Factor 2.68)، وسجل صفقات حي لأزواج EUR/USD و XAU/USD و BTC/USDT.
- قائمة الفحص الصارم (Checklist Validator) & قاموس مصطلحات ICT.
Files built:
index.html,src/index.css,src/types/strategy.ts,src/data/promptsData.ts,src/data/chartData.ts,src/data/backtestData.ts,src/components/Navbar.tsx,src/components/HeroSection.tsx,src/components/InteractiveChart.tsx,src/components/PromptStudio.tsx,src/components/StrategyConfigurator.tsx,src/components/BacktestSimulator.tsx,src/components/AlgorithmFlowchart.tsx,src/components/RuleChecklist.tsx,src/components/GlossaryModal.tsx,src/App.tsx- مختبر الشارت التفاعلي للشموع اليابانية (Interactive Candlestick Simulator):
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.