Golf EA - User Guide
Quick links: Golf EA on MQL5 Market | Author profile and contact | MQL5 signal page | Video on YouTube
Choosing an Expert Advisor is only the beginning. Understanding its settings, testing it under your broker's conditions, and knowing what to check during operation are just as important.
This guide introduces Golf EA for MetaTrader 5, explains every public input, and provides a practical route from installation to testing and support.
No special SET file is required to get started. The documented configuration is built into the default settings. Attach the EA or select it in Strategy Tester and use Reset to load the defaults.
You should still verify your broker's server time, symbol specifications, and chosen risk level. Defaults provide a starting configuration; they do not determine what risk is appropriate for your account.
The complete PDF manuals are attached in English, German, Spanish, French, Italian, Japanese, Korean, Portuguese, Russian, Turkish, and Chinese.
1. What Golf EA does
Golf EA is designed for XAUUSD / Gold and requires a Retail Hedging account. Netting and Exchange accounts are not supported.
Its functionality includes:
- Automated market entries in BUY and SELL directions.
- Analysis across several timeframes.
- Prepared strategy presets with different entry restrictions.
- Volatility-adaptive Stop Loss and Take Profit in ATR presets.
- Trailing-stop management.
- Fixed-lot, manual-percentage, balance-step, and predefined risk modes.
- A drawdown brake that reduces subsequent risk as balance falls.
- Optional limits on total open risk and account margin usage.
- News, session, holiday, and Friday restrictions.
- A daily loss/drawdown safeguard for the EA's own operations.
- The GOLF CLUB dashboard and detailed trading diagnostics.
The system separates signal generation, position sizing, execution checks, and position management. This makes it possible to adjust exposure without treating every risk change as a different trading strategy.
2. The quantitative approach
Golf EA combines several ideas from systematic trading. The following describes the principles without disclosing the proprietary signal library, feature weights, or complete entry rules.
Multi-timeframe context
A market move can look different on different timeframes. Golf EA evaluates oscillator-based information across several horizons and compares the resulting market description with an internal collection of reference patterns.
The purpose is to consider context beyond a single indicator crossing on the visible chart.
The pattern library, weighting, and decision thresholds remain internal. This description should not be interpreted as a claim that historical patterns must repeat.
Volatility-adjusted protection
ATR-based presets adapt protective distances to measured volatility.
A fixed distance can represent very different market exposure during quiet and volatile periods. Volatility adjustment allows the protective framework to respond to changing price movement.
Position sizing then considers the monetary risk to the initial Stop Loss. A wider stop can therefore result in a smaller calculated position, subject to the selected sizing mode and other limits.
Fractional Kelly-inspired risk levels
The Eco, Comfort, and Sport levels use a risk framework inspired by fractional Kelly sizing.
Kelly theory relates position exposure to an estimated statistical advantage. In practice, those estimates are uncertain: market behavior changes, trades may be dependent, and historical samples are limited.
For this reason, a Kelly-inspired calculation is a sizing framework, not proof of an optimal future risk level.
Golf EA also includes a balance-drawdown brake and optional exposure limits. These controls address different parts of the risk problem; none guarantees a maximum realized loss.
Evaluation beyond a rising balance curve
A useful assessment considers:
- Equity drawdown, not only closed-balance drawdown.
- Trade count and distribution over time.
- Losing streaks and large individual losses.
- Sensitivity to spreads, commissions, swaps, and execution delay.
- Differences between brokers and historical datasets.
- Performance outside the period used to select settings.
Optimization should help investigate these trade-offs. Selecting the largest historical profit alone can lead to overfitting.
3. Starting with the defaults
For a first test:
- Install Golf EA in MetaTrader 5.
- Select your broker's Gold symbol and verify its specifications.
- Use a Hedging account.
- Select M15 for the chart or tester.
- Load the default inputs with Reset.
- Confirm the server's winter and summer UTC offsets.
- Review the risk mode before starting.
The documented defaults include:
| Setting | Default |
| Strategy preset | ATR_Pause |
| Direction | Both |
| Risk mode | Comfort 50 |
| Nominal risk per trade | 10.5%, before the brake and other limits |
| Drawdown brake setting | 25% |
| Total-risk limit | Disabled |
| Margin-usage limit | Disabled |
| Daily loss/drawdown limit | Disabled |
| News filter | Off |
| Reference bars | Enabled |
| New dashboard | Enabled |
Comfort 50 is a high-risk starting configuration. It does not mean that the EA risks 50%, and it does not mean that 10.5% is suitable for every user.
If you prefer a different exposure, select the appropriate risk mode before testing or trading.
4. Strategy presets
Preset controls the prepared trading configuration. RiskLevel controls position sizing. They are separate choices.
| Code | Preset | Main behavior |
| 5 | ATR_Pause | Default. ATR protection, up to three positions, hours 7 and 23 excluded, and a 24-hour pause after a losing trade. |
| 6 | ATR_Safe | Similar to ATR_Pause, with an additional condition for adding positions in the same direction when existing positions have moved favorably. |
| 4 | ATR_Hours | ATR protection and excluded hours, without the 24-hour post-loss pause. |
| 3 | ATR | ATR protection without those additional excluded hours or post-loss pause. |
| 0 | Optimized | Fixed protective distances, up to three positions, and preset-controlled Friday closing. |
| 1 | Original | An earlier fixed-distance configuration, up to two positions, and Friday closing. |
| 2 | Custom | Uses internal Custom values. These underlying fields are not exposed as editable inputs in the documented build. |
“Safe” identifies an additional entry condition. It does not guarantee a small drawdown or prevent losses.
5. Understanding the units and ranges
The tables below describe the documented build.
A permitted input range is a technical range, not a recommendation to use every value within it. Optimization ranges stored in a SET file are also different from the accepted values of an input.
Money
Capital-related amounts use the account's deposit currency, unless stated otherwise.
Lots
Volumes use the broker's lots. The actual tradable volume depends on the symbol's minimum, maximum, and volume step.
Percentages
A percentage may refer to calculation capital, account equity, or a daily reference value. These are not interchangeable.
Gold reference points
For MaxSpread, Slippage, and Randomization, the implementation normalizes point-based values for the supported Gold quote precision.
For typical two- or three-decimal XAUUSD quotations:
- One reference point corresponds to a 0.01 price movement.
- MaxSpread=150 corresponds to a 1.50 price spread.
- Slippage=50 corresponds to a 0.50 price deviation.
These are price distances, not account-currency losses per trade. Monetary exposure also depends on contract specifications and volume.
6. Every public input
The full parameter names include the GOLF_ prefix.
Risk
| Input | Default | Units / accepted range | Function |
| GOLF_RiskLevel | 150 | Listed modes below | Selects the position-sizing method. |
| GOLF_FixedLot | 0.01 | Lots; greater than 0 | Requested volume in Fixed Lot mode. Actual volume remains subject to broker constraints and applicable limits. |
| GOLF_RiskPercent | 5.0 | Percent; greater than 0 and up to 100 | Nominal per-trade risk in Manual mode. Does not set the risk in Comfort, Eco, or Sport modes. |
| GOLF_BalanceStep | 300.0 | Account-currency amount; greater than 0 | Balance amount corresponding to 0.01 lot in Balance Step mode, before the brake and limits. The implementation scales this step by 100 for account currencies containing JPY. |
| GOLF_RiskCapital | 0 | Account currency; 0 or greater | Zero uses current balance. A positive value caps the percentage-risk calculation base at the smaller of this amount and current balance. |
| GOLF_DrawdownBrakePercent | 25 | Percent; 0 or greater, below 100 | Controls risk reduction as closed balance falls from its observed peak. Zero disables the brake. |
| GOLF_MaxTotalRiskPercent | 0 | Percent; 0–100 | Optional cap used when sizing a new position, considering the EA's own existing open risk to SL. Zero disables this user limit. |
| GOLF_MaxMarginPercent | 0 | Percent of account equity; 0–100 | Optional margin-usage limit used when sizing new positions. Considers margin already used across the account. Zero disables this user limit. |
RiskLevel choices
| Code | Mode | Nominal risk / sizing |
| 0 | Fixed Lot | Uses FixedLot |
| 1 | Manual | Uses RiskPercent |
| 2 | Balance Step | 0.01 × balance / adjusted BalanceStep, before the brake and limits |
| 105 | Eco 5 | 1.05% per trade |
| 110 | Eco 10 | 2.10% per trade |
| 115 | Eco 15 | 3.15% per trade |
| 120 | Eco 20 | 4.20% per trade |
| 125 | Eco 25 | 5.25% per trade |
| 130 | Comfort 30 | 6.30% per trade |
| 140 | Comfort 40 | 8.40% per trade |
| 150 | Comfort 50 | 10.50% per trade |
| 175 | Sport 75 | 15.75% per trade |
| 200 | Sport 100 | 21.00% per trade |
These percentages precede the drawdown brake and other applicable sizing restrictions.
Three positions can carry substantially more risk than one. For example, three initial exposures of 10.5% could represent approximately 31.5% in aggregate before limits and protective-level changes.
The drawdown brake reduces risk for subsequent sizing. It does not close the account at a guaranteed drawdown threshold. Fixed Lot is not directly reduced by the brake, although other applicable limits can restrict fixed volume.
Strategy
| Input | Default | Units / accepted range | Function |
| GOLF_Preset | 5 | Preset codes 0–6 listed above | Chooses the prepared trading rules and management settings. |
| GOLF_Direction | 0 | 0=Both, 1=Buy, 2=Sell | Permits new entries in the selected direction. Does not automatically close existing positions when changed. |
| GOLF_MaxSpread | 150 | Nonnegative integer; Gold reference points | Blocks new entries when spread exceeds the threshold. Zero is a zero-spread threshold, not “filter off.” |
| GOLF_Slippage | 50 | Nonnegative integer; Gold reference points | Allowed price deviation used in trading requests and entry-risk preparation. Execution still depends on the broker's execution mode. |
The spread and slippage inputs have no additional strategy-specific upper cap in the initialization checks. Very large accepted values are not automatically appropriate.
Time and News
| Input | Default | Units / accepted range | Function |
| GOLF_ServerGMTWinter | 2 | Whole hours from UTC; −12 to +14 | Broker server offset during the winter period. |
| GOLF_ServerGMTSummer | 3 | Whole hours from UTC; −12 to +14 | Broker server offset during the summer period. Use the same value as winter if appropriate for the server. |
| GOLF_ReferenceBars | true | true / false | Uses ICM GMT+2/+3 reference boundaries for H4/D1 signal and ATR calculations when server time differs. |
| GOLF_NewsFilter | 0 | 0=Off, 1=NFP, 2=Calendar, 3=All | Selects the news protection mode. |
| GOLF_HolidayPause | false | true / false | Enables the separate seasonal and weekly entry-pause schedule. |
News modes
- Off: news filtering is disabled.
- NFP: uses internal NFP dates in the tester and live operation. The documented window is 100 minutes before and 60 minutes after the reference release time. It blocks entries and attempts to close the EA's own positions and delete its own pending orders.
- Calendar: filters selected important USD events in live operation, with an internal window around the event. It blocks new entries without independently closing existing positions.
- All: combines NFP and Calendar.
The NFP date logic is internal, not an automatically updated publication subscription. Check the dates relevant to your test period.
The current HolidayPause implementation blocks entries from Friday 18:00, from Monday 22:00, and during 25 December–5 January, using ICM reference time.
Safeguards
| Input | Default | Units / accepted range | Function |
| GOLF_FridayCancelPending | false | true / false | Deletes the EA's own pending orders and blocks new entries before Friday's market close. Does not itself close open positions. |
| GOLF_FridayCancelMinutes | 30 | Nonnegative whole minutes | Lead time before the Friday closing time. No additional strategy-specific upper cap is imposed. |
| GOLF_FridayCloseTime | Empty | Server HH:MM; 00:00–23:59, with 24:00 also accepted | Optional manual closing-time reference. Empty uses the symbol's Friday session schedule; the implementation has a 23:55 fallback if session data are unavailable. |
| GOLF_HolidayFilter | 0 | Listed regional choices below | Blocks entries and removes the EA's own pending orders on selected holidays. Separate from HolidayPause. |
HolidayFilter choices:
| Code | Region |
| 0 | Off |
| 1 | USA |
| 2 | United Kingdom |
| 4 | Europe |
| 24 | Asia: Japan + China/Hong Kong |
| 3 | USA + UK |
| 7 | USA + UK + Europe |
| 31 | All listed regions |
An invalid manual Friday time falls back to the broker-session logic. Use the documented HH:MM format rather than relying on fallback behavior.
Propfirm
| Input | Default | Units / accepted range | Function |
| GOLF_PropFirmMaxDailyDD | 0 | Percent; 0 or greater, below 100 | Daily protection for the EA's own operations. Zero disables it. |
| GOLF_Randomization | 0.0 | Gold reference points; 0 or greater | Adds bounded random offsets to entry protection and trailing parameters. Zero disables offsets. No additional strategy-specific upper cap is imposed. |
The daily protection considers the EA's own realized and floating results, including a decline from the observed daily peak of its own operations. Its threshold uses an observed account-equity reference.
When triggered, it attempts to liquidate the EA's own exposure and blocks new entries until the next server day. The live lock persists across restarts.
This may differ from a particular prop firm's daily-loss formula. Verify its rules separately.
For Randomization, an example value of 5 represents offsets of approximately ±0.05 in price on typical supported XAUUSD quotations. It does not randomize the underlying signal logic or specify a risk percentage.
Display & IDs
| Input | Default | Units / range | Function |
| GOLF_MagicNumber | 222 | Positive integer | Identifies this EA's operations. Use distinct values for independent instances. |
| GOLF_OrderComment | EA | Text | Comment attached to trading requests, subject to broker handling. |
| GOLF_DashboardCardScale | 2.0 | Scale factor; 0.5–3.0 | Size of the new GOLF card. |
| GOLF_DashboardRangeScale | 2.0 | Scale factor; 0.5–3.0 | Size of the RANGE/VOLUME scanner display. |
| GOLF_DashboardMode | true | true / false | Selects the new GOLF dashboard or the classic display path. |
| GOLF_ProfitLabelFontSize | 22 | Font size; effective range 6–72 | Size of trade-profit labels. Values are clamped to this display range. |
| GOLF_LargeProfitFontSize | 40 | Font size; effective range 6–72 | Size of the large profit display where used. Values are clamped to this range. |
| GOLF_ShowPanel | true | true / false | Shows the classic control panel in the applicable display mode. |
| GOLF_TradeJournalLive | true | true / false | Enables additional live diagnostic output. Mandatory audit records and important execution/error messages are handled separately. |
| GOLF_ShowInfoCard | true | true / false | Shows the information card in the applicable display mode. |
ShowPanel and ShowInfoCard should not be treated as universal switches for every element of the new dashboard.
The hidden Custom fields are not additional public inputs in the documented build.
7. Reading GOLF CLUB
The dashboard helps monitor operation, but its figures have different scopes.
| Display | Meaning |
| REALIZED NET | Realized profit, swaps, commissions, and fees from the current symbol and MagicNumber history. |
| BALANCE / EQUITY | Values for the entire account, including other activity. |
| TODAY | Current account equity minus the balance captured at the panel's first update that server day. |
| OPEN P/L | Profit and swap of the EA's own open positions for the current symbol and magic. |
| RISK % | Calculated percentage including the drawdown brake; not the total actual risk across all positions. |
| WIN / PF | Statistics from the selected deal history; methodology may differ from the official tester report. |
| POS / LOT | Count and total volume of the EA's own positions. |
| ACCOUNT EQUITY | The equity curve observed by the panel, not a complete historical maximum-drawdown record. |
Starting the panel during the day does not reconstruct the whole day's result for TODAY.
On the active chart:
- H hides or shows the card.
- B hides or shows the scanner.
- P pauses the card animation. Trading continues.
The PAUSE, CLOSE ALL, and MORE controls described for the classic panel should not be assumed to exist on the new GOLF CLUB card.
8. How to run a backtest
A historical test is the practical way to examine behavior before choosing an exposure.
Basic procedure
- Log in to the broker server whose data you want to test.
- Open Strategy Tester with Ctrl+R.
- Select Golf EA.
- Select the broker's actual XAUUSD / Gold symbol, including its suffix.
- Choose M15.
- Set the historical dates.
- Select Every tick based on real ticks.
- Disable optimization for the first run.
- Set the deposit, currency, leverage, and execution delay.
- Open Inputs, press Reset, and confirm server time and risk settings.
- Start the test and allow history synchronization to complete.
- Save the report and the exact inputs used.
Enable visual mode when you want to inspect the dashboard, entries, or protective levels. It is optional for a normal performance test.
Example settings from the supplied reports
| Tester setting | Example |
| Expert | Golf EA |
| Symbol | The corresponding broker's Gold symbol |
| Timeframe | M15 |
| Model | Every tick based on real ticks |
| Initial deposit | 900 |
| Deposit currency | USD |
| Optimization | Disabled |
| Execution delay | Zero latency / ideal execution in the archived examples |
| Main risk mode | Comfort 50, RiskLevel=150 |
| Main preset | ATR_Pause, Preset=5 |
The archived Settings pages do not confirm leverage. They display a dash, so 1:500 should not be presented as a verified condition for these six runs. Record the leverage you actually use.
After the ideal-execution test, run a comparison with realistic execution delay and applicable trading costs.
Historical examples supplied with the guide
These are historical test figures, not live account results or forecasts. Values below are rounded from the supplied package labels.
| Dataset | Tester dates | Net profit, USD | PF | Relative equity DD | Reported history quality |
| XAUUSD.pp / pp | 2023-07-01–2026-11-18 | 2,613,617 | 6.24 | 25.6% | 77% |
| ICMarkets | 2023-07-01–2026-11-18 | 37,405,305 | 5.01 | 30.5% | 99% |
| Exness | 2023-07-01–2026-11-18 | 44,771,531 | 3.62 | 28.6% | 100% |
| RadexMarkets | 2024-04-01–2026-11-18 | 919,415 | 4.96 | 22.8% | 100% |
| TradeMaxGlobal | 2024-04-01–2026-11-18 | 3,716,996 | 4.81 | 24.0% | 5% |
| TradeMax Global Limited | 2024-04-01–2026-11-18 | 3,716,996 | 4.81 | 24.0% | 5% |
The two TradeMax packages have identical headline results and should not be counted as independent confirmations. Their reported 5% history quality substantially limits interpretation.
Large absolute profits reflect, among other factors, aggressive percentage sizing, reinvestment, increasing volume, and test assumptions.
Repeating an example versus reproducing the exact archive
You can use the settings above to repeat the test procedure on the corresponding broker's data.
Matching an archived result also requires the matching EA build, complete settings, historical ticks, contract specifications, commissions, swaps, leverage, and execution assumptions.
The archive includes older EA_* input names, while the documented current build uses GOLF_*. Some archived settings also differ: for example, HolidayPause is enabled in the later RadexMarkets and TradeMax sets.
Therefore:
- For a first current-version test, no special SET file is required: use defaults and verify broker-specific values.
- To reproduce an older archived run, use its matching build and full configuration.
- Treat a current-version run as a new result rather than expecting identical historical figures.
9. Broker-specific optimization for buyers
As part of buyer support, I will perform broker-specific optimization when you provide access to a zero-balance account on the relevant broker server using an investor password.
Please provide through private MQL5 messages:
- Broker name and exact server.
- Account number.
- Investor/read-only password.
- Exact Gold symbol.
- Account type and relevant contract specifications.
- The period and risk constraints you want assessed.
The account does not need to be funded for access to available market data. The broker must still permit the account to connect and provide the required history.
An investor password is read-only. It is used to inspect the broker's environment and obtain available data, not to place trades. Do not send the master/trading password.
Broker-specific optimization can help investigate suitable configurations for that dataset. It does not guarantee future performance or make broker differences disappear.
The objective is a configuration you can test and understand, with its risk and limitations recorded.
10. If something goes wrong: collect logs promptly
If you encounter unexpected entries, missing trades, rejected requests, unusual lot sizes, or problems modifying or closing positions, please contact me promptly.
A screenshot shows the outcome. Logs help identify the sequence that produced it.
Include the exact server date and time, symbol, MagicNumber, and affected order or deal tickets.
Live operation: terminal logs
On the computer or Windows VPS actually running the EA:
- Open View → Toolbox, or press Ctrl+T.
- Inspect the Experts and Journal tabs.
- Use File → Open Data Folder to locate the terminal's files.
- Collect the relevant daily logs from MQL5\Logs (EA/program messages) and Logs (terminal, connection, and platform events).
For terminal-hosted operation on another machine, collect the files from that machine. If using MetaTrader virtual hosting, also obtain its available hosting journals.
Live operation: Golf EA audit files
The documented build also writes a dedicated audit journal under:
%APPDATA%\MetaQuotes\Terminal\Common\Files\EA\logs
A typical filename has this structure:
<login>_<server>_<symbol>_<magic>_<YYYYMMDD>.log
The folder name is EA, even though the product name is Golf EA.
These records contain additional information about trade intentions, requests, broker responses, deals, and execution conditions. Send the relevant files together with the terminal logs.
Backtests: tester and agent logs
For a test-related issue:
- Open Strategy Tester → Journal.
- Save the relevant messages or open the log folder through the context menu where available.
- Collect both the tester log and the local agent log.
- Include the saved test report and the exact .set used.
Typical locations include:
- Terminal data folder: Tester\logs
- Local agent: Agent-127.0.0.1-<port>\logs
- Golf EA audit files inside the agent: MQL5\Files\EA\logs
The agent's full location varies by installation. Use the path shown in the tester journal to identify the agent that ran the test.
Daily platform log filenames refer to the date the test was run, which may differ from the historical dates being simulated.
MetaTrader's file and folder documentation explains platform logs, and its testing documentation explains agent file isolation.
Use a single test for diagnosis
Detailed per-run audit logging is suppressed during optimization. If an issue appears in optimization, repeat the affected parameter combination as a single local test without optimization and collect its logs.
Please send complete relevant files rather than only the final error line. Earlier messages often explain why an action was blocked or rejected.
11. What to send for an investigation
A useful support package contains:
- EA version and terminal build.
- Broker server, exact symbol, and account type.
- Full .set file.
- Live or tester mode.
- Exact server time and affected tickets.
- A short description of expected and observed behavior.
- Experts, Journal, and dedicated EA audit logs.
- For tests: dates, model, deposit, currency, leverage, delay, and report.
- Investor access to the affected account when account history must be examined.
For broker-data analysis, a zero-balance account on the same server may be sufficient. For a specific incident, read-only access to the affected account may be needed to inspect its actual orders, deals, and history.
Investor access does not include the EA's local configuration or historical logs, so it does not replace the support package.
My aim is to reconstruct the situation as closely as possible, identify whether the cause is in configuration, data, execution conditions, or the EA, and address reproducible software issues.
Historical live execution cannot always be replayed exactly. Quotes, latency, liquidity, and broker responses may no longer be available in the same form.
Please never publish account credentials in blog comments. Send investor details privately through MQL5.
12. A practical next step
You do not need to begin by searching for a special settings file or changing dozens of parameters.
Start with the attached guide, load the defaults, verify the broker-specific details, and run a test you can inspect.
Then decide whether the observed drawdown, trade behavior, and exposure fit your requirements. If you need help adapting the test to your broker, contact me with the server and data-access details.
The manuals are attached below. Choose your language and keep the guide available during setup.
View Golf EA on MQL5 Market | Contact the author | Open the MQL5 signal page | Watch the video
Trading Gold involves substantial risk, including possible loss of the entire deposit. Historical tests and protective functions do not guarantee future results or a fixed maximum loss.


