Amazing Hedge Scalping Trending EA
- Experts
- Versione: 28.0
- Attivazioni: 5
Automated XAUUSD Trading with Multi-Lot Scaling, RSI Confirmation, Optional Bollinger Bands & Hedge Management
XAUUSD Hedge GridEA is an automated Expert Advisor for MetaTrader 5 designed for traders who want structured automation for Gold (XAUUSD) with configurable position sizing, optional hedge protection, indicator confirmation, profit management, and multiple layers of risk controls.
The EA uses a Single Trade with Hedge architecture and supports flexible lot sizing, allowing traders to configure fixed or balance-based automatic lot calculation.
⭐ KEY FEATURES
1. Single Trade + Optional Hedge
The EA is designed around a single primary trading position, with an optional hedge mechanism.
When hedging is enabled, the EA can monitor the primary position and activate a hedge after a configurable loss threshold is reached.
Hedge controls include:
-
Enable/Disable Hedging
-
Configurable hedge loss trigger
-
Hedge lot multiplier
-
Hedge exit-profit target
-
Optional closing of the original position when the hedge opens
The hedge parameters are automatically scaled according to the configured lot size.
2. Multi-Lot Position Scaling
The EA supports flexible lot sizes starting from 0.01 lots, subject to the broker's symbol volume limits.
You can use:
-
Fixed lot size
-
Automatic lot calculation based on account balance
-
Manual lot multiplier
-
Automatic scaling of USD-based management levels
The EA calculates a scale factor from the selected lot size so that configured USD-based parameters can be adjusted proportionally.
Example:
If the base configuration is designed around 0.01 lot, increasing the lot size can proportionally scale applicable USD-based management parameters.
3. RSI Entry Confirmation
RSI confirmation is available as an additional entry filter.
The EA includes configurable:
-
RSI period
-
RSI timeframe
-
Applied price
-
BUY threshold
-
SELL threshold
The supplied configuration uses RSI confirmation by default, with BUY confirmation at RSI ≥ 70 and SELL confirmation at RSI ≤ 30.
This allows traders to combine the EA's trading logic with momentum confirmation rather than relying on a single market condition.
4. Optional Bollinger Bands Confirmation
Bollinger Bands can be enabled as an additional entry confirmation layer.
Available settings include:
-
Bollinger Band period
-
Standard deviation
-
Applied price
-
Timeframe
-
Cross confirmation
-
Upper/lower breakout confirmation
-
Middle-band confirmation
-
Reversal-style confirmation
Several Bollinger Band cross modes are available, including upper/lower, middle-band, upper-only, lower-only and reversal configurations.
This makes the EA configurable for different XAUUSD market conditions.
5. Price Movement Confirmation
The EA can optionally require a minimum price movement before confirming an entry.
Separate BUY and SELL movement thresholds can be configured.
Additional candle-close confirmation is also available.
The price movement confirmation timeframe is independently configurable.
🛡️ ADVANCED TRADE MANAGEMENT6. Trailing Stop
The EA includes an optional USD-based trailing stop system.
Configurable parameters include:
-
Trailing start
-
Trailing distance
-
Trailing step
The trailing values are automatically scaled according to the active lot size.
7. Breakeven Lock
The EA includes a breakeven-lock mechanism designed to protect accumulated trade profit.
Once the configurable profit trigger is reached, the EA can arm the breakeven protection and manage the position around its cost level.
Parameters include:
-
Breakeven trigger
-
Breakeven buffer
-
Automatic state reset
8. Optional Per-Lot SL/TP
Users can enable automatic per-lot Stop Loss and Take Profit management.
The EA supports:
-
Per-lot Stop Loss
-
Per-lot Take Profit
-
Dynamic SL/TP
-
ATR-based adjustment
-
Configurable ATR period
-
ATR SL multiplier
-
ATR TP multiplier
9. Configurable Profit Targets
The EA provides configurable:
-
Individual target
-
Basket Take Profit
-
Maximum profit tracking
-
Minimum profit tracking
The basket target is automatically scaled according to the configured lot size.
📊 RISK MANAGEMENT10. Daily Profit & Loss Limits
Daily risk controls can be enabled to help manage trading activity.
Available controls include:
-
Daily profit limit
-
Daily loss limit
-
Percentage-based daily limits
-
Automatic daily profit target
-
Automatic daily loss limit
-
Optional no-trading period after a loss day
The supplied configuration supports percentage-based daily limits, including a 5% daily profit target and 10% daily loss limit.
11. Basket Risk Protection
The EA provides basket-level profit and loss controls.
You can configure:
-
Maximum basket profit
-
Maximum basket loss
-
Automatic basket closure
-
Basket loss prevention
-
Optional pending-order removal after a loss threshold
This provides an additional layer of control beyond individual trade management.
12. Per-Trade & Per-Lot Risk Controls
The EA includes separate risk-management layers for:
-
Individual trade profit
-
Individual trade loss
-
Profit per lot
-
Loss per lot
-
Basket profit
-
Basket loss
When enabled, the EA can automatically close positions when configured limits are reached.
🔄 AUTOMATIC RESETAfter selected trading events, the EA can automatically reset its internal trading state.
Available reset conditions include:
-
After position closure
-
After target reached
-
After daily loss limit
-
After Friday cutoff
-
Re-anchoring after reset
-
Pending-order reset
The EA can delete applicable pending orders and establish a new anchor price during reset operations.
📅 FRIDAY TRADING CONTROLThe EA includes configurable Friday trading controls.
You can specify:
-
Friday cutoff hour
-
Friday cutoff minute
-
Close positions at cutoff
-
Stop placing new orders after cutoff
This allows traders to reduce automated exposure around the end of the trading week.
💵 MINIMUM BALANCE PROTECTIONThe EA can check account balance and equity against a user-defined minimum balance.
If the account falls below the configured minimum, trading can be halted until the required balance/equity condition is restored.
The default minimum balance parameter in the supplied EA is 100 USD.
Important: The minimum balance is a configurable software parameter, not a guarantee that a particular account size is sufficient for every broker, leverage level, symbol specification, or market condition.
🛡️ BROKER & TRADE SAFETY CHECKSThe EA includes several technical safeguards for order execution, including:
-
Margin availability checking
-
Broker volume-limit checking
-
Lot normalization according to symbol specifications
-
Stop-loss/take-profit distance validation
-
Freeze-level protection
-
Safe position modification
-
Safe position closing
-
Pending-order deletion protection
For example, before placing a trade the EA calculates required margin and compares it with available free margin.
The EA also checks broker-defined stops and freeze levels before modifying orders.
📈 ON-CHART INFORMATIONThe EA can display important trading information directly on the MT5 chart, including:
-
Current basket P/L
-
Target
-
Current lot size
-
Scaling factor
-
Account balance
-
Minimum balance status
-
Daily P/L
-
Open positions
-
Trading mode
-
Trend status
-
Anchor price
-
Trailing-stop status
-
Breakeven status
-
Hedge status
-
RSI information
-
Maximum/minimum basket profit
The EA provides organized input groups for:
ACCOUNT SETTINGS
-
Magic number
-
Minimum balance protection
-
Logging
LOT SIZE SETTINGS
-
Fixed lot
-
Auto lot
-
Lot multiplier
HEDGE SETTINGS
-
Hedge trigger
-
Hedge multiplier
-
Hedge exit target
SL/TP SETTINGS
-
Per-lot SL
-
Per-lot TP
-
ATR dynamic SL/TP
TRAILING STOP
-
Start
-
Distance
-
Step
BREAKEVEN
-
Trigger
-
Buffer
BOLLINGER BANDS
-
Period
-
Deviation
-
Cross type
-
Timeframe
PRICE MOVEMENT
-
Minimum BUY movement
-
Minimum SELL movement
-
Candle-close confirmation
RSI
-
Period
-
Timeframe
-
BUY threshold
-
SELL threshold
PROFIT TARGETS
-
Trade target
-
Basket target
DAILY LIMITS
-
Daily profit
-
Daily loss
-
Percentage-based limits
FRIDAY CONTROL
-
Trading cutoff
-
Position closure
-
New-order restriction
The EA is specifically presented in the source code as an XAUUSD Hedge GridEA and is designed around automated Gold trading with configurable position sizing, confirmation filters and trade-management controls.
It can be configured according to:
-
Account size
-
Broker specifications
-
Risk tolerance
-
Trading style
-
Lot size
-
Confirmation requirements
-
Profit objectives
-
Trading schedule
This EA may be suitable for traders who want:
✔ Automated XAUUSD trading
✔ Flexible lot sizing
✔ Optional hedge management
✔ RSI confirmation
✔ Optional Bollinger Band confirmation
✔ Price movement confirmation
✔ Trailing-stop management
✔ Breakeven protection
✔ Basket-level management
✔ Daily profit/loss controls
✔ Friday trading controls
✔ On-chart monitoring
Automated Gold Trading • Multi-Lot Scaling • RSI Confirmation • Optional Bollinger Bands • Hedge Management • Trailing Stop • Breakeven • Basket Risk Controls
