Hourglass Quantum Cloud AI V103 Hybrid MT5
- Experts
- Versione: 1.0
- Attivazioni: 10
Product Name: Hourglass Quantum Cloud Hybrid (MT5)
[Subtitle: Mean Reversion Matrix | Ichimoku Cloud AI | XML Confidence Filter]
Introduction: The Art of Mean Reversion
Most trading bots fail because they blindly chase breakouts into exhausted markets. Hourglass Quantum Cloud Hybrid V1.03 takes the exact opposite approach. It is a highly advanced Mean Reversion & Equilibrium engine designed to find the exact moment a market is overstretched, exhausted, and ready to snap back to its structural mean.
To achieve this, the "Hourglass Matrix" integrates a hyper-complex mathematical chassis with a Generative AI Neural Bridge. The EA doesn't just read indicators; it feeds the raw technical context into Large Language Models (LLMs) to logically validate the exhaustion setup before risking your capital.
V1.03: Math Optimized & Zero Dead Code
This version represents absolute code perfection.
-
Synchronized Volatility Limits: The Keltner Channel (KC) logic has been deeply optimized and synchronized strictly to a 20-period ATR framework, ensuring perfect harmonic alignment with the Bollinger Bands and EMA baseline.
-
Code Purity: Zero dead code. Memory leaks eradicated. The indicator handles execute seamlessly, drastically reducing CPU load during high-frequency API pings.
The Quant Engine: A 4-Stage Exhaustion Matrix
The algorithm evaluates the market through four distinct layers before signaling the AI:
-
The Cloud (Structural Equilibrium): Uses the Ichimoku Kinko Hyo (Senkou Span A & B) to determine if the price is hovering in a bullish or bearish macro-structure.
-
Spatial Limits (Band Stretching): Cross-references the EMA-20 against Extreme Bollinger Bands (Dev 3.0) and Keltner Channels (Mult 2.0). It mathematically flags when the price is "Extreme Overbought" or "Stretched Low".
-
The Hourglass (Oscillator Confluence): Simultaneously analyzes the RSI, Stochastic (K/D), and the Commodity Channel Index (CCI) to detect true momentum divergence and exhaustion.
-
The Particle Trigger: The final execution is locked until the Parabolic SAR (0.02, 0.2) officially flips, confirming the kinetic reversal has begun.
Deep AI Integration & XML Filtering
-
The "Deep Think" Prompt: The EA feeds the entire 4-stage matrix (plus live Spread and Economic News) into the AI as a structured TECH_CONTEXT . The AI acts as an Institutional Quant, evaluating if the oscillators show true exhaustion or just a strong trend.
-
XML Confidence Rating: The AI must output its analysis in strict XML format, including a <CONFIDENCE> score (1-5). If the AI rates the reversal probability below your InpMinConfidence threshold (e.g., 4), the EA ruthlessly rejects the trade. You only trade high-conviction snap-backs.
The Tri-State Operational Matrix
You hold the keys to the engine. Adapt to any market condition by seamlessly switching modes:
-
MODE [EA ONLY]: Lightning-fast algorithmic trading using the 4-stage Hourglass Matrix without requiring an API connection.
-
MODE [AI ONLY]: Bypasses the EA’s execution triggers and trades purely on the LLM’s predictive capability.
-
MODE [HYBRID] (Recommended): The ultimate consensus. The EA finds the mathematical exhaustion point and interrogates the AI. The trade fires only when math and machine intelligence agree.
Institutional Safety Protocols
-
News-Aware Shield: Connected to the MT5 Economic Calendar. If a High-Impact (RED) event is detected, the AI is forcibly fed a 'CLEAR_SKIES=FALSE' warning, automatically dropping its confidence score to 1 and preventing volatile slippage traps.
-
Fireshield Defender: A hard equity stop-loss. If your daily loss limit is breached, the EA triggers an automated lockdown for a defined cooling-off period.
-
Asynchronous Jitter Shield: An intelligent anti-spam layer that paces API calls to prevent "Error 429" rate-limits and IP bans from AI providers.
Universal LLM Support
Connect to the greatest AI minds on the planet: OpenAI (ChatGPT), Google Gemini, Anthropic Claude, Grok (xAI), DeepSeek, or Custom APIs.
Installation & Crucial Setup
-
Download the .ex5 file and place it in your MQL5\Experts folder.
-
Generate an API key from your chosen AI provider.
-
CRITICAL: Navigate to Tools > Options > Expert Advisors. Check "Allow WebRequest for listed URL" and add your AI's API URL (e.g., https://api.openai.com or https://generativelanguage.googleapis.com ).
-
Attach to an M15,M30,H1,H4...vv chart, input your API key, and ignite the Quantum Cloud.
🛡️ AUTHOR & COPYRIGHT ✍️ Astracodewolf – Algorithmic Trading Systems Developer © 2026. All algorithms and designs are the proprietary intellectual property of Astracodewolf & Wingflame Intelligence Lab.
