Spécifications
Technical Description of the EA
The Ghost Sovereign engine is a trend-following breakout system optimized for XAUUSD (Gold) . Its logic operates through several distinct layers:
-
Trend Filtering: It utilizes a 144-period Exponential Moving Average (EMA) to establish the primary institutional trend direction .
-
Momentum Entry: The EA executes trades when the closing price of the previous bar confirms a trend breakout (bullish if close > EMA and close > open; bearish if close < EMA and close < open) .
-
Volatility-Adjusted Targets: It uses the Average True Range (ATR) to dynamically set Take Profit and Stop Loss distances based on current market volatility .
-
Active Position Defense: The engine features a ManageTrailingStops function, which moves the stop-loss level to lock in profits once the price has moved a set distance in the trade's favor .
-
Execution Logic: It is designed for 24/7 operation, featuring built-in safeguards to verify that trading is permitted by the terminal and that the spread is within acceptable limits before placing an order .
Operational Requirements
For the EA to function as intended, specific parameters and terminal conditions must be met:
-
Financial Configuration:
-
Risk Management: Users should set the InpRiskPercent (default 1.0) or InpFixedLotSize (default 0.01) .
-
Execution Limits: The EA requires a maximum slippage setting ( InpMaxSlippage, default 30 points) and a maximum spread threshold ( InpMaxSpread, default 40 points) to ensure high-quality execution .
-
-
Terminal and Account Setup:
-
Magic Number: A unique InpMagicNumber (882026) is used to track and manage the EA's own positions, preventing interference with other manual or automated trades .
-
Broker Environment: The EA relies on the CTrade and CPositionInfo standard libraries and automatically detects the broker's execution filling policy .
-
-
Hardware/System Requirements:
-
The terminal must remain open with a stable internet connection for 24/7 operation, as it utilizes the OnTick() event handler to process market data and manage active positions in real-time .
-