Aura Smc Quantum H4
- Experts
- Chaibadee Dechtanankul
- 버전: 1.11
- 활성화: 10
AURA SMC QUANTUM V1.01 code in English, structured for a professional presentation or MQL5 Market description:
AURA SMC QUANTUM V1.01 | Logic Breakdown
The Aura SMC Quantum is an advanced automated trading system (EA) specifically engineered for Gold (XAUUSD) on the H4 timeframe. It combines high-probability Smart Money Concepts (SMC) with a sophisticated Hybrid Grid management system.
1. Market Analysis Strategy (SMC & Trend Filter)
The core "intelligence" of the EA relies on a dual-layer confirmation:
-
Trend Filtering (EMA 100): The EA uses a 100-period Exponential Moving Average on the H4 timeframe to determine the primary market bias. It only looks for Buy setups when the price is above the EMA and Sell setups when the price is below.
-
SMC Entry (Supply & Demand): It identifies key price extremes using a 24-bar lookback (defined by InpSupportBars ).
-
Buy Entry: Triggered when the price touches or breaks the recent local low (Demand Zone) while the trend is bullish.
-
Sell Entry: Triggered when the price touches or breaks the recent local high (Supply Zone) while the trend is bearish.
-
2. Advanced Grid Management (Dual-Magic System)
The EA manages trades using an intelligent grid logic designed to recover from market drawdowns:
-
Independent Side Management: It uses two distinct Magic Numbers ( InpMagicBuy and InpMagicSell ). This allows the EA to manage Buy and Sell baskets independently, enabling it to hedge or run both sides simultaneously without interference.
-
Martingale Multiplier: When a trade goes against the initial position, the EA opens additional orders at a calculated distance ( InpGridDistance ). Each subsequent order uses a lot size multiplier (default 1.18x) to shift the "Break-Even" point closer to the current market price.
3. Risk & Volatility Protection (Safety First)
To comply with MQL5 Market standards and protect the user’s capital:
-
Volatility Filter (Tick Speed): The EA monitors price velocity. If the market moves too fast (spikes/news events), the is_stable flag turns false, and the EA pauses new entries for a cooling-off period ( InpWaitSeconds ).
-
Spread Control: It checks the current spread against InpMaxSpread . If the spread is too high (common during news or market rollovers), trade execution is blocked.
-
Margin Validation: Before any order is sent, the code performs an OrderCalcMargin check to ensure the account has sufficient free margin, preventing failed trades or accidental over-leveraging.
4. Basket Take Profit Logic
Instead of using individual Take Profit (TP) levels for every order, which can be inefficient in a grid system:
-
Monetary Target: The EA calculates the Total Floating Profit + Swap for each specific Magic Number.
-
Basket Close: Once the profit for the entire basket reaches the user-defined dollar amount ( InpTargetMoney ), the CloseAllByMagic function is triggered to clear all positions for that side instantly.
5. Professional UI Dashboard
The code includes a custom-built graphical interface (GUI) on the chart that provides real-time transparency:
-
Market State: Displays whether the market is "Stable" or in "High Volatility."
-
Live Metrics: Shows the current H4 Trend, Total Profit in USD, and the number of active orders.
-
Visual Feedback: Uses color-coded labels (Lime for Bullish/Profit, Red for Bearish/Loss) for quick assessment.
Summary of Performance Logic
🛑 End-of-Month Trading Halt: Do not trade during the last week of the month. During this period, major central banks, hedge funds, and institutional liquidity providers close their books and adjust their portfolios for the month. This institutional "profit-taking" creates highly erratic, unpredictable volatility and false breakouts that ignore standard technical analysis. To protect your profits and avoid unnecessary drawdowns, it is highly recommended to pause the EA during the final 5-7 days of every month."Follow the Trend, Enter at SMC Extremes, and Manage via Volatility-Aware Grids." This logic ensures that the EA doesn't just blindly trade a grid; it enters at high-probability reversal points and only adds positions when the market conditions are stable enough to handle them.
