Golden Oracle is an Knowledgeable Advisor for XAUUSD (Gold) constructed on a disciplined day by day breakout technique. At first of every session it identifies yesterday’s excessive and low, locations a Purchase Cease and Promote Cease at these structural ranges, and manages the commerce robotically by means of to expiry — together with elective partial shut at a midpoint Fibonacci goal and computerized breakeven. No grid, no martingale, no hidden threat. One clear setup per day.
This documentation covers each facet of the EA intimately — from first-time setup to understanding what every setting does and the way it impacts your buying and selling.
📌 Options
- Day by day Breakout Fibonacci Technique — Locations Purchase Cease and Promote Cease orders at yesterday’s excessive and low with TP and SL at predefined Fibonacci extension and retracement ranges. Orders expire robotically at a user-defined time to stop in a single day publicity.
- Two-Stage Take Revenue with Breakeven — Optionally closes 50% of the place at a midpoint Fibonacci goal (TP1) and strikes the Cease Loss to breakeven. The remaining half runs to the complete extension goal (TP2).
- Good Threat Administration — Share-based auto lot sizing calibrated to account fairness and the precise Cease Loss distance, or a set lot mode. A tough margin test runs earlier than each order.
- Constructed-in Reside Information Filter — Fetches the complete week’s financial calendar on startup and refreshes it hourly. Pauses buying and selling robotically inside configurable blackout home windows round high-impact occasions. Filters by affect degree and foreign money.
- Two-Tier Drawdown Safety — Separate day by day and complete drawdown limits. Day by day restrict resets every session. Complete restrict completely halts the EA as soon as hit. Each shut open positions and take away pending orders instantly when triggered.
- No Grid or Martingale — One commerce per day, one course, mounted Cease Loss. No place stacking, no restoration logic, no hidden threat accumulation.
- Skilled On-Chart Dashboard — Reside panel displaying earlier day ranges, pending order costs, real-time P&L, information countdown, drawdown standing, and handbook management buttons.
- Prop Agency Suitable — Day by day drawdown safety, computerized order expiry, and strict one-trade-per-day logic align with most prop agency threat guidelines.
📌 Advisable Setup
| Parameter | Worth |
|---|---|
| Image | XAUUSD (Gold) |
| Timeframe | H1 |
| Minimal Deposit | $500 USD |
| Advisable Deposit | $1,000 USD or extra |
| Leverage | Min 1:100, Advisable 1:500 |
| Account Kind | Hedging or Netting |
| Unfold Kind | RAW / ECN beneficial |
| VPS | Strongly beneficial for twenty-four/7 operation |
📌 Step-by-Step Set up
Step 1: Open MetaTrader 5 and navigate to a XAUUSD chart on the H1 timeframe.
Step 2: After buying Golden Oracle EA, find it beneath the Market tab within the Navigator panel. Drag and drop it onto the chart.
Step 3: Within the Inputs tab, configure your most well-liked settings or load a set file. The important thing settings to evaluate first are RiskPercent (or FixedLotSize), ExpiryHour, and UseNewsFilter.
Step 4: Allow AutoTrading in MetaTrader 5 if it’s not already lively.
Step 5: Press OK. The EA will initialise, apply the gold chart theme, draw Fibonacci ranges on the chart, and show the dashboard panel. You at the moment are dwell.
Necessary — Information Filter Setup Required: For the built-in information filter to operate, you have to grant WebRequest entry in MetaTrader 5. Go to Instruments > Choices > Knowledgeable Advisors, tick “Enable WebRequest for listed URL”, and add the next URL precisely as proven:
With out this step, the EA will show “Information fetch failed” within the dashboard Notes and the information filter shall be inactive. The EA will proceed to commerce usually — it merely is not going to pause round information occasions.
📌 Understanding the Information Filter
The information filter is without doubt one of the most necessary protecting options in Golden Oracle EA. Understanding the way it works will enable you to configure it accurately and keep away from confusion about why trades are generally paused or eliminated.
The way it fetches information: On every new buying and selling day the EA makes a WebRequest to the Foreign exchange Manufacturing unit financial calendar API and hundreds your entire week’s scheduled occasions. This fetch is retried each hour all through the day in order that any newly printed occasions are captured. The feed covers all main currencies and returns occasion occasions in US Japanese time with an embedded UTC offset — the EA handles the timezone conversion robotically utilizing your dealer’s server time.
What “blocked” means: When a qualifying information occasion is approaching, the EA enters a blackout window. This window begins NewsMinsBeforeEvent minutes earlier than the occasion and ends NewsMinsAfterEvent minutes after it. Throughout this window:
- Any pending Purchase Cease and Promote Cease orders already positioned are robotically eliminated.
- No new orders shall be positioned.
- The information panel standing bar exhibits BLOCKED in crimson.
- The Notes panel shows the occasion identify and the time buying and selling will resume.
- As soon as the window closes, pending orders are robotically re-placed — supplied the day by day expiry time has not but handed.
Forex filtering: The EA solely reacts to occasions for the currencies listed in NewsFilterCurrencies. The default is USD;EUR. For XAUUSD, USD occasions are essentially the most related, or EUR in the event you discover gold reacting strongly to European releases. Separate currencies with a semicolon and use their commonplace three-letter codes.
Impression filtering: The calendar assigns every occasion a colour-coded affect degree — Excessive (crimson), Medium (orange), and Low (yellow). By default solely Excessive affect occasions set off a blackout. Enabling Medium affect will catch occasions like PMI readings and client confidence surveys. Low affect occasions are not often value filtering except you’re extremely conservative.
Necessary — Backtesting and the Information Filter: The information filter is totally inactive within the MetaTrader 5 Technique Tester as a result of WebRequest will not be accessible in that atmosphere. This implies your backtest outcomes will NOT replicate the information filter’s impact — each session will commerce usually no matter what financial occasions occurred traditionally. This can be a recognized limitation of MetaTrader 5’s testing atmosphere and isn’t a bug within the EA. When evaluating backtest efficiency, remember that dwell outcomes will differ round main information occasions — sometimes positively, for the reason that filter prevents high-volatility entries. Don’t use backtest outcomes alone to guage the EA’s dwell behaviour throughout information durations.
📌 Set Information
Pre-configured set recordsdata for Golden Oracle EA can be found right here: Golden Oracle EA Set Information
The set recordsdata are examined on a $10,000 USD IC Markets RAW account risking 1% per commerce. Choose based mostly in your threat tolerance and dealer circumstances. All the time take a look at any set file on a demo account or within the Technique Tester first earlier than deploying dwell.
📌 Enter Parameters — Deep Dive
Every setting under features a description of what it does, what occurs while you allow or disable it, and what to be careful for.
Threat Administration
- Auto Lot Dimension (True/False)
When True, the EA calculates lot dimension robotically based mostly in your account fairness and the RiskPercent setting. The precise Cease Loss distance for every commerce is used so the chance is exactly calibrated — bigger day by day ranges produce smaller heaps, tighter ranges produce bigger heaps.
When False, the EA makes use of the worth in FixedLotSize for each commerce no matter account dimension or market circumstances.
Advice: Use Auto Lot for long-term consistency. Use Fastened Lot if that you must management place dimension exactly for prop agency guidelines. - Threat % Per Commerce
Solely lively when Auto Lot is enabled. A price of 1.0 means the EA will threat 1% of your account fairness on every commerce, based mostly on the gap from entry to Cease Loss. Decrease values cut back drawdown but additionally cut back revenue potential. Increased values amplify each.
Be careful for: Values above 2–3% considerably enhance the prospect of hitting drawdown limits in shedding streaks. - Fastened Lot Dimension
Solely lively when Auto Lot is disabled. The identical lot dimension is utilized to each commerce. The EA will validate this in opposition to your dealer’s minimal and most quantity limits at startup and can reject invalid values.
Be careful for: A set lot that’s acceptable for a $10,000 account could also be dangerously massive or uselessly small on a unique account dimension.
Commerce Settings
- One Commerce Per Day (True/False)
When True, the second one of many two pending orders is triggered (both the Purchase Cease or Promote Cease fills), the other order is robotically cancelled. This ensures you by no means maintain positions in each instructions concurrently.
When False, each orders stay lively after one triggers. If each ranges are damaged in the identical session, you could possibly find yourself with two reverse positions open on the similar time.
Advice: Hold this enabled except you may have a particular cause to permit each instructions. - Order Expiry Hour / Order Expiry Minute
Pending orders are robotically deleted presently in server time every day. This prevents unfilled orders from carrying into the following session or in a single day, the place the breakout logic now not applies.
The default of 18:00 server time fits most brokers whose gold market closes or thins out within the late US session. Regulate to match your dealer’s session construction.
Be careful for: Setting this too early could take away orders earlier than the principle buying and selling session has had an opportunity to interrupt the degrees. Setting it too late could permit orders to fill throughout low-liquidity aftermarket circumstances. - Commerce Reverse Course if Breakout Detected (True/False)
At session open, the EA checks whether or not both degree has already been damaged earlier than it locations orders. Usually, if a degree is damaged the EA skips that aspect totally.
When this selection is enabled, as a substitute of skipping, the EA locations the remaining order on the other aspect — successfully buying and selling a reversion relatively than a continuation.
Advice: Go away disabled except you may have examined and perceive the implications. This setting is for superior customers.
Take Revenue and Breakeven
- Allow TP1 (True/False)
When True, the EA makes use of a two-stage exit. TP1 is positioned on the midpoint between entry and TP2 (the complete Fibonacci extension). When TP1 is reached, 50% of the place is closed and the Cease Loss is moved to breakeven.
When False, the complete place runs to TP2 with no partial shut. This can be a greater variance strategy — extra revenue on massive strikes, extra full losses when the commerce reverses earlier than TP2.
Be careful for: In case your lot dimension equals the dealer’s minimal quantity, the EA can not cut up the place in half. On this case TP1 is robotically disabled for that session and a notice is displayed within the dashboard. - Transfer SL to Breakeven after TP1 hit (True/False)
Solely related when TP1 is enabled. After the partial shut at TP1, the Cease Loss on the remaining half is moved to the entry value plus the unfold. This locks in a risk-free commerce on the second half.
When False, the unique Cease Loss stays even after TP1 is hit — the remaining half can nonetheless produce a full loss.
Advice: Hold enabled. It converts each TP1 hit right into a assured at-minimum breakeven consequence on the remaining place.
Information Filter
- Allow Information Filter (True/False)
Grasp change for your entire information filter system. When disabled, the information panel is hidden and the EA trades by means of all financial occasions with out pausing.
Be careful for: Excessive-impact USD occasions equivalent to NFP, CPI, and FOMC choices routinely transfer gold by $10–$30 in seconds. Buying and selling by means of these with out safety considerably will increase the chance of Cease Loss hits as a result of unfold widening and slippage. - Filter HIGH / MEDIUM / LOW Impression (True/False)
Controls which occasion tiers set off a blackout. Excessive affect (crimson) covers essentially the most market-moving releases: NFP, CPI, FOMC, GDP. Medium (orange) covers PMI, retail gross sales, client confidence. Low (yellow) covers minor information factors that not often transfer gold considerably.
Advice: At minimal, hold Excessive Impression enabled. Allow Medium in order for you additional safety at the price of extra buying and selling pauses. - Minutes to pause buying and selling BEFORE information
How early the blackout window begins relative to the occasion time. The EA removes pending orders this many minutes earlier than the discharge.
The default of half-hour is conservative and beneficial. Shorter home windows (e.g. 10–quarter-hour) give extra buying and selling time however much less safety if information drops early or market makers start positioning aggressively forward of the discharge. - Minutes to renew buying and selling AFTER information
How lengthy after the occasion earlier than the EA re-places orders. The default of quarter-hour permits preliminary volatility to settle.
Be careful for: Setting this too brief could end in orders being positioned right into a still-volatile market. Setting it too lengthy could miss the post-news pattern totally. - Shut open positions throughout information window (True/False)
When enabled, any at present open managed positions are closed instantly when a information blackout window begins — not simply the pending orders.
Advice: Go away disabled except you’re particularly managing prop agency day by day drawdown guidelines. Closing a profitable commerce early as a result of information is usually pointless and may cut back general efficiency. - Currencies to filter
Semicolon-separated listing of foreign money codes. Solely occasions for these currencies set off a blackout. Default is USD;EUR.
For XAUUSD buying and selling, USD is essentially the most crucial. Including XAU covers gold-specific bulletins. Including EUR, GBP, or JPY provides further safety throughout these areas’ main releases at the price of extra frequent buying and selling pauses.
Drawdown Safety
- Allow Day by day Drawdown (True/False) + Day by day Drawdown %
Tracks fairness loss from the beginning of every buying and selling day. If fairness drops by greater than the required proportion relative to the day’s opening fairness, the EA instantly closes all managed positions, removes pending orders, and halts buying and selling for the remainder of the day. The background of the chart turns darkish orange as a visible warning.
The halt resets robotically at the beginning of the following buying and selling day — buying and selling resumes usually.
Instance: With a $10,000 account and three% day by day restrict, the EA halts if fairness falls under $9,700 at any level in the course of the session.
Prop agency use: Most prop corporations specify a most day by day drawdown. Set this worth barely under your agency’s restrict to provide your self a security buffer. - Allow Complete Drawdown (True/False) + Complete Drawdown %
Tracks fairness loss from the second the EA was first hooked up to the chart. If the whole fairness loss exceeds the required proportion, the EA completely halts — positions are closed, orders are eliminated, the chart background turns darkish crimson, and no additional buying and selling happens no matter what day it’s.
This halt doesn’t reset robotically. To renew buying and selling after a complete drawdown halt, take away the EA from the chart and re-attach it. This resets the fairness baseline to the present account fairness and buying and selling restarts contemporary.
Instance: With a $10,000 account and 5% complete restrict, the EA completely halts if fairness ever falls under $9,500 from its beginning worth.
Be careful for: When you re-attach the EA after a major loss, the brand new baseline resets to the present decrease fairness — be certain that is intentional.
EA Settings
- Magic Quantity
A singular integer identifier stamped on each order and place positioned by the EA. The EA makes use of this to differentiate its personal trades from manually positioned trades or different EAs operating on the identical account.
Be careful for: When you run two situations of Golden Oracle EA on the identical account (e.g. on two completely different charts or timeframes), they need to every have a unique Magic Quantity. In the event that they share the identical quantity, they may incorrectly handle one another’s orders. - Commerce Remark
A textual content label hooked up to each order positioned by the EA. Seen in your dealer’s commerce historical past and order listing. Helpful for filtering your historical past when you may have different trades or EAs on the identical account.
📌 Understanding the Dashboard
The on-chart dashboard is split into sections from prime to backside:
- MARKET LEVELS — Exhibits yesterday’s Excessive and Low used to position at the moment’s orders. These replace at the beginning of every new session.
- PENDING ORDERS — Exhibits the present Purchase Cease and Promote Cease costs and lot sizes. Shows standing labels equivalent to CANCELLED, EXPIRED, DELETED, or SKIPPED when related. The [CANCEL] and [PLACE TRADES] buttons permit handbook management.
- SETTINGS — A dwell abstract of your present configuration: expiry time, commerce mode, lot dimension, TP1, and breakeven standing.
- PERFORMANCE — At present’s P&L and complete cumulative P&L for this EA occasion throughout all historical past.
- DRAWDOWN PROTECTION — Reside readout of present day by day and complete drawdown percentages versus your configured limits. Turns amber when approaching the restrict, crimson when halted.
- NOTES — A timestamped exercise log displaying the newest EA actions. Every entry exhibits the time it occurred and a short description. Helpful for understanding precisely what the EA did and when.
The NEWS FILTER panel sits to the appropriate of the principle dashboard. It lists upcoming financial occasions with their scheduled time, foreign money, occasion identify, and a countdown to launch. The standing bar on the backside of the information panel exhibits whether or not the EA is actively monitoring occasions, at present blocked, or has no additional occasions at the moment. The panel may be minimised utilizing the [-] button.
📌 The [CANCEL] and [PLACE TRADES] Buttons
These two buttons provide you with handbook management over the EA’s pending orders in the course of the session.
[CANCEL] — Deletes each pending orders from the dealer. After urgent this, the EA is not going to robotically re-place them. That is helpful in the event you resolve you don’t want to commerce on a specific day after orders are already set. The button is simply lively (proven in crimson) when pending orders exist and the market is open.
[PLACE TRADES] — Re-places each pending orders based mostly on the present earlier day’s excessive and low. This button turns into lively after you may have manually cancelled orders (by way of the button or straight within the MetaTrader order panel). Use it in the event you cancelled orders by mistake, or if you wish to re-enter after manually closing a place. The button is blocked throughout information home windows, after day by day expiry, and through drawdown halts.
Notice on handbook order deletion in MT5: When you delete the EA’s pending orders straight from the MetaTrader 5 order panel (relatively than utilizing the [CANCEL] button), the EA detects this robotically and permits the [PLACE TRADES] button — permitting you to re-place them with out restarting the EA.
📌 Discounted Commissions
Golden Oracle EA performs greatest on a RAW or ECN account with tight spreads and low commissions. I like to recommend IC Markets — it gives a few of the tightest spreads on XAUUSD with dependable execution and deep liquidity.
Open an IC Markets account with discounted commissions: https://icmarkets.com/?camp=86332
Utilizing a RAW/ECN account reduces buying and selling prices, which straight improves the EA’s web efficiency over time.
📌 Backtesting Tips
Golden Oracle EA helps backtesting within the MetaTrader 5 Technique Tester with the next necessary notes:
- Information filter is disabled in backtest: WebRequest will not be accessible within the Technique Tester. The EA will detect this robotically and skip all news-related capabilities. Your backtest will commerce by means of each information occasion with out pausing. This implies backtests will present trades that will have been blocked in dwell buying and selling — backtest outcomes is not going to match dwell efficiency round high-impact occasions.
- Unfold issues considerably: XAUUSD unfold can widen dramatically throughout information occasions and low-liquidity durations. For real looking backtesting, use a set unfold of 15–20 factors. Utilizing a decrease mounted unfold will overstate efficiency.
- Use actual tick information for essentially the most correct outcomes: Within the Technique Tester, choose “Each Tick Primarily based on Actual Ticks” in case your dealer offers historic tick information for XAUUSD. If not, “Each Tick” with OHLC modelling is the following most suitable choice.
- Drawdown safety works in backtest: Each day by day and complete drawdown limits operate usually within the Technique Tester and can halt the EA if triggered.
- TP1 partial shut works in backtest: The 2-stage take revenue and breakeven system are absolutely practical within the Technique Tester.
📌 Steadily Requested Questions
- “Can I take advantage of this on a prop agency?”
Sure. The day by day drawdown safety, complete drawdown safety, computerized order expiry, and one-trade-per-day logic align with most prop agency threat guidelines. Set the day by day drawdown restrict barely under your agency’s most (e.g. in case your agency permits 5% day by day, set the EA to 4%). All the time evaluate your particular agency’s guidelines earlier than buying and selling with any EA. - “The information panel says ‘NO RED EVENTS TODAY’ however I do know there are occasions. Why?”
This will occur for just a few causes: the occasions could also be for currencies not in your NewsFilterCurrencies listing, they could be categorised as Medium or Low affect (that are off by default), or they could have already handed for the day. Test that the foreign money and affect filters match the occasions you expect. Additionally affirm that WebRequest is enabled and the URL is added accurately. - “My orders are being eliminated earlier than the information occasion. Is that this regular?”
Sure. The blackout window begins NewsMinsBeforeEvent minutes earlier than the occasion (default half-hour). In case your orders had been eliminated half-hour earlier than the scheduled launch time, that is anticipated behaviour. - “The EA skipped at the moment’s commerce. Why?”
The EA checks whether or not value has already traded by means of both yesterday’s excessive or low earlier than inserting orders. If one or each ranges are already damaged when the EA’s delay interval expires, it skips that aspect (or your entire day) to keep away from chasing a breakout that has already occurred. The Notes panel will show which degree was damaged and why the commerce was skipped. - “My lot dimension is being decreased. Why?”
A tough margin test runs earlier than each order. In case your account can not help the calculated lot dimension based mostly on accessible free margin, the EA reduces it to the biggest dimension that matches. That is by design to stop rejected orders. You will notice a notice within the dashboard when this happens. To resolve it, cut back your RiskPercent or enhance your account stability. - “Can I run this on different symbols?”
The technique is designed and examined designed on XAUUSD. - “The EA was completely halted by complete drawdown. How do I restart it?”
Take away the EA from the chart totally, then drag and drop it again on. This reattaches it contemporary, resets the whole fairness baseline to your present fairness, and resumes regular operation. Earlier than doing this, be sure to perceive why the halt was triggered and whether or not it’s acceptable to proceed buying and selling. - “What occurs if MetaTrader 5 restarts whereas orders are open?”
The EA scans all open pending orders on initialisation and recovers its state robotically. It can detect current orders by Magic Quantity, restore the dashboard show, and proceed managing them as regular. No duplicate orders shall be positioned.
📌 Closing Notes
- A VPS operating 24/7 is strongly beneficial to make sure the information filter, hourly calendar refresh, and order administration capabilities run with out interruption.
- All the time take a look at on a demo account or within the Technique Tester for a minimum of 1–2 weeks earlier than transferring to a dwell account.
- The EA applies a gold-themed darkish chart look on connect. That is intentional and may be modified by means of MetaTrader 5’s chart settings after the EA is eliminated if most well-liked.
- In case you are not sure learn how to arrange the EA, configure the information filter, or arrange a VPS, please ship a non-public message on MQL5 and I shall be completely happy to help.
- Reside Sign: Coming Quickly. Observe the product web page for updates.
Threat Warning: Previous efficiency doesn’t assure future outcomes. Buying and selling monetary markets includes a excessive degree of threat and isn’t appropriate for all buyers. Solely commerce with capital you possibly can afford to lose. All the time take a look at totally on a demo account earlier than deploying on a dwell account.
Written by: Keyan Goh (Developer of Golden Oracle EA & Golden Tiger EA)