AK Gold Raider

Gold Raider

Structured Gold Trading with Configurable Entry and Risk Management

Gold Raider is a configurable Expert Advisor for MetaTrader 5, designed primarily for Gold trading on the H1 timeframe. It combines Parabolic SAR signal processing, market and pending-order execution, position management, optional grid recovery, and account-level trading controls in one system.

The EA is designed for traders who want to define how a strategy enters, manages, scales, and exits trades. Entry direction, signal timing, order method, lot calculation, trading hours, news pause times, recovery behavior, basket targets, and daily controls can all be adjusted from the input settings.

Gold Raider does not require the grid recovery function to operate. It can be used as a single-entry EA with a fixed Stop Loss, Take Profit, breakeven, and trailing stop, or configured with optional recovery layers for users who understand and accept the additional exposure.

How Gold Raider Works

1. The EA reads Parabolic SAR according to the selected trend mode, entry type, and signal candle.
2. A valid signal can be executed as a Market Order, Limit Pending Order, or Stop Pending Order.
3. Pending orders can expire automatically or trail the market using a configurable distance, step, and delay.
4. Open positions can be managed using Stop Loss, Take Profit, reversal exit, breakeven, standard trailing, or always-on trailing.
5. Optional grid recovery can add market or pending recovery layers when price reaches the configured adverse distance.
6. Basket targets can close trades using money or percentage calculations.
7. Period targets can stop new entries after the selected closed profit or loss threshold is reached.

Main Features

- Buy, Sell, Both, and None trading-direction modes.
- Parabolic SAR Normal and Reversal interpretation.
- First trend bar, current trend, and special new-trend entry modes.
- Active-candle or closed-candle signal calculation.
- Market, limit pending, and stop pending fresh-entry methods.
- Pending-order trailing with point, bar, or minute controls.
- Broker server-time trading session filter.
- Three configurable daily news pause timestamps.
- Optional deletion of EA pending orders during a news pause.
- Fixed and balance-based fresh-entry lot sizing.
- Fixed, additive, and multiplying recovery lot modes.
- Optional market or pending-order grid recovery.
- Maximum grid-layer limitation.
- Average basket Take Profit management for market recovery positions.
- Standard Stop Loss and Take Profit controls.
- Reversal exit, breakeven, and multiple trailing-stop methods.
- Basket money and percentage profit or loss targets.
- Percentage references based on balance, equity, or a fixed initial amount.
- Daily, weekly, or monthly stop-new-trade targets based on closed results.
- Maximum fresh-entry signals per day.
- Configurable information and trade-control panel.

News Pause Behavior

The news pause is a manual server-time filter with three daily timestamps. It is not connected to an external economic calendar. During an active pause window, the EA blocks fresh automatic entries and grid re-entry layers. Pending orders can also be deleted if that option is enabled.

Existing positions remain managed. Basket targets, Stop Loss, Take Profit, breakeven, trailing stop, close-target protection, and manual close controls continue to operate during the pause.

Entry and Pending-Order Control

Gold Raider can enter immediately or wait for price to reach a pending level. Stop pending orders can be used for continuation or breakout-style execution, while limit pending orders can be used for pullback-style execution.

The pending-order trailing system can reposition an untriggered order as the market moves. A minimum movement step and a bar- or minute-based delay help reduce unnecessary modifications. Broker Stop Level and Freeze Level requirements are checked before order operations are submitted.

Optional Grid Recovery

Grid recovery is disabled by default and can be enabled independently. Normal Market Grid mode opens a recovery layer when the adverse distance threshold is reached. Pending Order Grid mode places the next recovery order at a configured level.

The maximum grid-layer setting limits the number of recovery layers. The EA can calculate recovery volume using a fixed lot, an additive lot step, or a multiplying factor. An optional minimum-lot fallback can be used when the requested grid volume is not supported by available margin, provided the broker minimum lot can still be opened.

Grid and multiplying-lot methods can increase exposure quickly. They should be configured conservatively and tested with the intended broker, symbol specification, leverage, and deposit before use.

Trade and Account Protection

The EA provides two different target systems:

Basket targets manage open EA trades and can close all trades, buy trades, or sell trades when the selected money or percentage target is reached.

Stop-trading targets use closed profit or loss for a Daily, Weekly, or Monthly period. When enabled, they stop new trades after the configured target is reached and reset when the next selected period begins. Floating profit or drawdown alone does not trigger these period targets.

Percentage targets can reference current balance, current equity, or a fixed initial amount. Fixed-amount stepping is also available for users who want selected target values to scale at defined balance thresholds.

Recommended Starting Configuration

- Platform: MetaTrader 5.
- Primary symbol: XAUUSD or the broker's Gold symbol.
- Default timeframe: H1.
- Attach one EA instance to the intended Gold chart.
- Enable Algo Trading in MetaTrader 5.
- Use a unique MagicNumber when running multiple EA configurations.
- Check the broker's point size, symbol digits, minimum lot, spread, Stop Level, and contract specification.
- Test the exact settings in the Strategy Tester and on a demo account before live use.
- Use a continuously connected terminal or suitable hosting environment for uninterrupted management.

There is no universal minimum deposit or lot size suitable for every broker. Gold contract specifications, leverage, margin requirements, and account currencies differ. Select the lot and protection settings according to the intended account and acceptable risk.

Input Parameters

General Trading Settings

TradingDirection - Allows Buy, Sell, Both, or None automatic entry directions.
MagicNumber - Identifies trades belonging to this EA configuration.
MaximumSlippage - Sets the accepted execution slippage where applicable.

Entry Signal Settings

UseParabolicSAR - Enables or disables the Parabolic SAR entry engine.
ParabolicSARTrendMode - Selects Normal or Reversal signal interpretation.
ParabolicSAREntryType - Selects first trend bar, following current trend, or special new-trend behavior.
ParabolicSARSignalBar - Reads either the active candle or the last closed candle.
ParabolicSARStep - Sets the Parabolic SAR acceleration step.
ParabolicSARMaximum - Sets the maximum Parabolic SAR acceleration.
OrdersPerEntrySignal - Sets the number of orders attempted for one valid fresh signal.

Fresh Entry Order Settings

FreshEntryOrderMethod - Selects Market Order, Limit Pending Order, or Stop Pending Order.
PendingOrderDistancePoints - Sets the pending-entry distance from current price.
PendingOrderExpiryMinutes - Deletes an untriggered pending order after the selected time. Zero disables expiry.

Pending Order Trailing Settings

EnablePendingOrderTrailing - Enables movement of untriggered pending entries.
PendingTrailingDistancePoints - Sets the target distance between market price and the pending order.
PendingTrailingStepPoints - Sets the minimum movement required before another modification.
PendingTrailingDelayMode - Measures the modification delay in bars or minutes.
PendingTrailingDelayValue - Sets the number of bars or minutes used by the delay mode.

Chart and Session Settings

DisplayVerticalLinesForEntries - Shows or hides entry markers on the chart.
BuyEntryLineColor - Sets the buy entry marker color.
SellEntryLineColor - Sets the sell entry marker color.
EnableTradingSessionFilter(ServerTime) - Restricts fresh entries to the selected broker-time session.
SessionStartTime - Sets the allowed session start in HH:MM format.
SessionEndTime - Sets the allowed session end in HH:MM format.

News Pause Filter

NewsPauseMode - Enables or disables the daily custom news pause.
NewsPauseBeforeMinutes - Starts the pause this many minutes before each timestamp.
NewsPauseAfterMinutes - Ends the pause this many minutes after each timestamp.
NewsTime1, NewsTime2, NewsTime3 - Three broker-time timestamps in HH:MM format.
DeletePendingOrdersDuringNewsPause - Deletes the EA's untriggered pending orders during the pause.

Lot and Recovery Settings

FreshEntryLotSize - Sets the base lot for a fresh entry.
UseBalanceRiskFactorLot - Enables balance-step lot sizing.
RiskFactorBalanceStep - Sets the balance interval used by lot scaling.
RiskFactorLotStep - Sets the lot increment for each completed balance interval.
LotSizeMode - Selects Fixed, Addition, or Multiplying recovery volume.
MultiplyingLotFactor - Sets the recovery lot multiplier.
AdditionalLotFactor - Sets the recovery lot addition.
EnableGridRecovery - Enables or disables recovery layers.
GridRecoveryExecutionMode - Selects market or pending-order recovery.
MarketGridStepPoints - Sets the adverse distance for a market recovery layer.
PendingRecoveryStepPoints - Sets the distance for a pending recovery layer.
MaximumGridLayersPerFreshTrade - Limits recovery layers. Zero disables the limit.
UseMinimumGridLotWhenMarginIsLow - Allows a broker-minimum recovery lot when the calculated lot cannot be supported.
GridRecoveryDebugJournal - Enables throttled recovery diagnostics in the Journal.

Take Profit and Stop Loss Settings

MarketGridAverageTakeProfitPoints - Sets basket TP distance from the average market-grid entry price.
PendingRecoveryTakeProfitMode - Uses the market-grid TP or a separate pending-recovery TP.
PendingRecoveryTakeProfitPoints - Sets the separate pending-recovery TP distance.
StandardTakeProfitPoints - Sets Take Profit for non-grid fresh entries. Zero disables it.
StopLossPoints - Sets the initial Stop Loss distance. Zero disables it.

Exit and Trailing Settings

CloseTradesOnReversalSignals - Closes positions after a qualifying opposite signal.
ReversalCloseColor - Sets the chart color for reversal closes.
EnableBreakeven - Enables breakeven management when grid recovery is off.
BreakevenTriggerPoints - Sets the favorable distance required to activate breakeven.
BreakevenProfitLockPoints - Sets the amount of profit locked by breakeven.
EnableTrailingStop - Enables standard trailing-stop management.
TrailingStopMethod - Selects Classic, Keep Distance, or Step By Step trailing.
TrailingStopDistancePoints - Sets the standard trailing distance. Zero disables it.
TrailingStepPoints - Sets the minimum trailing improvement step.
EnableAlwaysOnTrailingStop - Enables the priority always-on trailing engine.
AlwaysOnTrailingDistancePoints - Sets the always-on trailing distance.
AlwaysOnTrailingStepPoints - Sets the always-on trailing modification step.

Basket Targets

BasketTargetCalculationMode - Selects money target or percentage of balance, equity, or fixed initial amount.
BasketFixedInitialAmount - Sets the fixed reference for basket percentage calculations.
BasketAutoStepFixedAmountByBalance - Enables fixed-reference stepping as balance reaches thresholds.
AllTradesProfitMoneyTarget, BuyTradesProfitMoneyTarget, SellTradesProfitMoneyTarget - Money-based profit close targets.
AllTradesProfitPercentageTarget, BuyTradesProfitPercentageTarget, SellTradesProfitPercentageTarget - Percentage-based profit close targets.
AllTradesLossMoneyTarget, BuyTradesLossMoneyTarget, SellTradesLossMoneyTarget - Money-based loss close targets.
AllTradesLossPercentageTarget, BuyTradesLossPercentageTarget, SellTradesLossPercentageTarget - Percentage-based loss close targets.
AllTradesProfitCloseColor, AllTradesLossCloseColor - Set chart colors for target closes.

Daily and Period Trading Limits

MaximumFreshEntrySignalsPerDay - Limits fresh entry signals per broker day. Zero disables the limit.
StopTradingPercentageReference - Selects balance, equity, or fixed initial amount for period percentages.
StopTradingFixedInitialAmount - Sets the fixed reference used by period target calculations.
StopTradingAutoStepFixedAmountByBalance - Enables threshold-based scaling of the period reference.
StopNewTradesWhenProfitTargetReached - Blocks new entries after the closed profit target is reached.
ProfitTargetCalculationMode - Selects money or percentage profit target.
ProfitTargetTimeframe - Selects Daily, Weekly, or Monthly calculation and reset.
ProfitTargetPercentage - Sets the percentage profit threshold.
ProfitTargetMoneyAmount - Sets the money profit threshold.
StopNewTradesWhenLossTargetReached - Blocks new entries after the closed loss target is reached.
LossTargetCalculationMode - Selects money or percentage loss target.
LossTargetTimeframe - Selects Daily, Weekly, or Monthly calculation and reset.
LossTargetPercentage - Sets the percentage loss threshold.
LossTargetMoneyAmount - Sets the money loss threshold.

Information Panel Settings

DisplayPanel - Shows or hides the chart information panel.
PanelLayout - Selects vertical or horizontal panel layout.
TextColor, TextBackgroundColor, ProfitColor, LossColor - Configure panel colors.
TextSize, PanelButtonWidth, PanelButtonHeight - Configure panel dimensions.
DisplayAccountNumber, DisplayTradingMode, DisplayAccountBalance, DisplayAccountEquity - Control account information visibility.
DisplayYesterdayBalance, DisplayAccountDeposits, DisplayTradingPositionsInformation - Control additional panel information.
DisplayTodayProfit, DisplayStopProfitTarget - Control daily and target information visibility.

Important Information

All point-based distances depend on the broker's symbol digits and point size. Money targets use the account deposit currency. Parameters marked 0 = disabled are inactive when set to zero.

Historical tests and previous results do not guarantee future performance. Trading Gold can involve rapid price movement, spread expansion, slippage, and significant risk. Grid recovery, balance-based sizing, and multiplying-lot modes can materially increase exposure and drawdown. Users are responsible for selecting appropriate settings and monitoring their trading account.

Filtrele:
Değerlendirme yok
Değerlendirmeye yanıt