Adaptive Gold Level Behavior
- Experts
-
Andrei-marius Mircea
I’m a trader, EA and indicator developer focused on creating practical tools for MetaTrader 5. My goal is to help traders analyze the market more clearly, identify opportunities, and make better-informed decisions. - Versione: 1.1
- Attivazioni: 5
Adaptive Gold Level Behavior is an Expert Advisor for MetaTrader 5 designed around statistical support and resistance behavior in the gold market. The EA analyzes completed M30 candles, locates confirmed swing levels, and places pending Buy Stop and Sell Stop orders when those levels satisfy the configured distance and broker requirements.
The strategy can operate in two calculation modes. High Frequency mode prioritizes recent confirmed swing levels, while High Probability mode searches the configured history for broader extremes. Orders are refreshed only during user-selected hours, helping keep execution behavior predictable and reducing unnecessary order placement.
Main functions
- Statistical support and resistance detection with configurable lookback and pivot depth.
- Two algorithm modes for recent-level or broader-extreme selection.
- Pending Buy Stop and Sell Stop breakout entries.
- Configurable take-profit and stop-loss distances.
- Fixed-lot or balance-based position sizing.
- Deposit-load and margin checks before order placement.
- Standard or activation-based smart trailing stop.
- Optional one-position-at-a-time operation.
- Optional removal of opposite pending orders after a position opens.
- Configurable pending-order expiration.
- Optional Friday pending-order cancellation.
- Slippage control and symbol-specific filling mode.
- Unique magic number and order comment for strategy identification.
Suggested use
The strategy engine reads M30 market data. It is intended primarily for XAUUSD, although symbol names and trading conditions vary between brokers. Attach the EA to a chart with automated trading enabled, or evaluate it in the MetaTrader 5 Strategy Tester before use.
Start with a fixed volume suitable for the account. Confirm the broker's XAUUSD point size, minimum pending-order distance, trading schedule, execution mode, and margin requirements. Optimization results from one broker or historical period may not transfer to another environment.
Important parameters
- InpAlgorithmMode: selects recent confirmed levels or wider historical extremes.
- InpLookbackBars: completed M30 bars included in the calculation.
- InpPivotDepth: confirmation depth for swing highs and lows.
- InpShiftExtremeActualPoints: required distance between price and a detected level.
- InpMinimumOrderPriceGapPoints: prevents pending orders from clustering near similar prices.
- InpRefreshHours: server-time hours when new statistical orders may be placed.
- InpTPPoints and InpSLPoints: target and stop distances in symbol points.
- InpSmartActivationPoints: favorable movement required before smart trailing begins.
- InpSizeMode: fixed-lot or balance-based volume calculation.
Risk notice
This software automates trade decisions and order management. It does not guarantee results. Gold can move rapidly, spreads can widen, and pending orders may experience slippage or gaps. Test the EA with your broker's data and specifications in Strategy Tester and on a demo account before considering live use. Select volume and risk settings appropriate for your account.
