Gold OCO Breakout Pro

Gold OCO Breakout Pro - Professional XAUUSD Price-Distance OCO EA
=========================================================================

Gold OCO Breakout Pro is a professional breakout Expert Advisor designed exclusively for XAUUSD (Gold).

It uses a pure Price-Distance OCO (One-Cancels-Other) strategy. No indicators, no martingale, no grid. The EA places two pending orders - BUY STOP above price and SELL STOP below price at a fixed USD distance. When price breaks out and triggers one order, the opposite order is automatically deleted.

After the trade closes, it automatically recreates a new OCO set after a configurable delay.

HOW IT WORKS:
-------------
1. Places BUY STOP at ASK + EntryDistance and SELL STOP at BID - EntryDistance
2. On breakout, OnTradeTransaction deletes the opposite pending order
3. Manages the active position with Breakeven and Trailing Stop
4. Waits RecreateDelaySeconds and places a new OCO

Verified Performance: myfxbook.com/portfolio/xau-oco/12172978


KEY FEATURES
============

1. Smart OCO Entry System
-------------------------
* Price-Distance based pending orders (Default 0.50 USD)
* Auto-delete opposite order on trigger
* Auto-recreate after trade close
* Independent Allow Buy / Allow Sell toggle

2. Flexible Risk Management
--------------------------
* Fixed Lot or Auto Lot by Risk % (0.1% - 10% of balance)
* Dual SL/TP Mode:
  - Fixed Mode: Fixed SL 2.50 USD / TP 5.00 USD
  - ATR Mode: Dynamic SL = ATR * 1.5 / TP = ATR * 2.5 with MaxSLDistance Cap 3.00 USD to protect against volatility spikes
* Accurate lot calculation using SYMBOL_TRADE_TICK_VALUE and TICK_SIZE

3. Intelligent Position Management
--------------------------------
* Breakeven: Triggers at 0.20 USD profit, locks 0.04 USD
* Trailing Stop: Activates at 0.15 USD profit, distance 0.08 USD, step 0.03 USD
* Respects SYMBOL_TRADE_STOPS_LEVEL

4. Advanced News Filter (Built-in MQL5 Calendar)
------------------------------------------------
* No DLL / No WebRequest required
* Filter by Importance: High Only (Red) or High+Medium (Red+Yellow)
* Configurable block window: NewsMinutesBefore / After (Default 30/30)
* Currency filter: USD,EUR,GBP or * for All
* Smart Chained Blocking: Merges consecutive news events into one extended block period
* Options to Delete Pending and Close Positions when blocked
* NewsIgnoreAllDay - Ignores 00:00 All-Day / Holiday events

5. Daily Account Protection
--------------------------
* Daily Profit Target: 1% to 50% (Default 10%)
* Daily Loss Limit: 1% to 20% (Default 10%)
* Calculated on DayStartBalance vs. Equity and resets daily
* Automatically deletes pending orders and optionally closes positions when limit hit

6. Safety Filters
----------------
* Spread Filter: Blocks trading if spread > MaxSpreadPrice
* Session Filter: Trade only within defined broker hours
* Checks terminal and MQL trade permissions

7. Premium Dashboard
-------------------
16-line Gold-Black premium panel showing:
* Real-time Status: READY / OCO ACTIVE / POSITION ACTIVE / NEWS BLOCKED (blinking countdown) / DAILY TARGET HIT
* Bid/Ask and Spread status
* OCO Buy/Sell levels
* Open Position with floating P/L
* Daily P/L in % and $
* Profit Target & Loss Limit with visual progress bars
* News status and Next High-Impact news countdown

RECOMMENDED SETTINGS
====================
* Symbol: XAUUSD Only
* Timeframe: Any (EA is price-based, ATR defaults to M1)
* Balance: $100+ for 0.01 lot
* Broker: (Fusion Markets) Low spread - Zero recommended

* VPS: Low ping VPS required (Recommended < 50ms latency to broker server for accurate pending execution and trailing)


INPUT GROUPS
============

General | Entry & OCO | Stop Loss / Take Profit | Trailing Stop | Breakeven | Filters | News Filter | Daily Target & Loss | Trading Permissions | Display


Disclaimer: Trading involves risk. Past performance does not guarantee future results. Always test on demo or strategy tester before live trading.

Filter:
No reviews
Reply to review