gold-orb-ea

gold-orb-ea is a skill for Claude Code from mahmoud20138/Tradecraft. It costs 69 tokens per session (1,528 once invoked), scanned A, original, MIT.

An MQL5 Expert Advisor for MetaTrader 5 that trades XAUUSD, the gold currency symbol, on one-hour charts using an opening-range breakout strategy. It defines a range from the first one-hour candle after 1:02 AM server time and trades breaks above or below it.

In plain words
What is it for?
Building or studying a MetaTrader 5 gold bot that confirms at least three candles of consolidation, then buys on a resistance break or sells on a support break.
Why use it?
It turns a specified gold breakout method into a working trading bot and educational codebase.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tradecraft plugin — 58 skills shipped together

Good fit Building or studying a MetaTrader 5 gold bot that confirms at least three candles of consolidation, then buys on a resistance break or sells on a support break.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mahmoud20138/tradecraft/gold-orb-ea
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mahmoud20138/Tradecraft --skill gold-orb-ea
Clone the repo
git clone --depth 1 https://github.com/mahmoud20138/Tradecraft

Made for: Claude Code.

Or install tradecraft, the plugin that ships this one along with the rest of its 58 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gold-orb-ea

README.md
[![agentmods](https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/gold-orb-ea/github.svg)](https://agentmods.dev/skills/mahmoud20138/tradecraft/gold-orb-ea)
Your own site
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/gold-orb-ea"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/gold-orb-ea/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gold-orb-ea

Your own site · 80×15
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/gold-orb-ea"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/gold-orb-ea.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.01528
Opus 5.5 $0.00028 $0.00611
Sonnet 5.5 $0.00014 $0.00306
Haiku 4.5 $0.00007 $0.00153

Measured 1mo ago against content hash ce7101cadcfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gold-orb-ea scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/tradecraft/skills/gold-orb-ea/SKILL.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gold-orb-ea

USE FOR:

  • "gold ORB EA / bot"
  • "XAUUSD opening range breakout MQL5"
  • "MT5 expert advisor for gold"
  • "ORB strategy for XAUUSD 1H"
  • "MQL5 EA with dynamic position sizing"
  • "build opening range breakout bot" tags: [MQL5, MT5, EA, gold, XAUUSD, ORB, opening-range-breakout, price-action, 1H, hedging] kind: tool category: mt5-integration

What Is GOLD_ORB?

MQL5 Expert Advisor for XAUUSD 1H Opening Range Breakout.

  • Repo: https://github.com/yulz008/GOLD_ORB
  • Platform: MetaTrader 5
  • Symbol: XAUUSD (Gold)
  • Timeframe: H1
  • Broker requirement: Hedging mode (ICMarkets MT5 recommended)
  • Purpose: Working EA + educational codebase for beginners

Strategy Logic

Phase 1 — Range Formation

Market open: 1:02 AM server time
First 1H candle → defines initial support (low) and resistance (high)

Phase 2 — Range Confirmation

Wait for N consecutive candles to close WITHIN the range
Default N = 3 (user-adjustable)
Range becomes "final" only after consolidation confirmed

Phase 3 — Signal Generation

Signal 11  → Price BREAKS ABOVE resistance  → BUY
Signal 10  → Price BREAKS BELOW support     → SELL
Signal 0   → No breakout                    → No trade

Entry / Exit Parameters

Parameter Default
Take Profit 1,200 points
Stop Loss 400 points
R:R Ratio 3:1
Max trades/day 2 (1 long + 1 short independently)
Risk per trade 1% of account balance
Max equity drawdown 10%

MQL5 Class Architecture

// Candle detection
class new_candle_check2 {
    bool IsNewCandle();  // Returns true on new H1 candle open
}

// Core strategy
class Open_Range_Breakout {
    int GetSignal();    // Returns: 11=BUY, 10=SELL, 0=NONE
    // Internally tracks: range high, range low, candle count
}

// Execution (built-in MQL5 classes)
CTrade  trade;          // Order send / modify / close
CTrailing trailing;     // Dynamic stop-loss trailing

Read the full file on GitHub · 214 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 214 lines · 69 tokens per session scan A ce7101cadcfd

Subscribe to this mod's changes

gold-orb-ea is a skill published in the GitHub repository mahmoud20138/Tradecraft (17 stars, last pushed 6mo ago), licensed MIT. It adds 69 tokens to every session and 1,528 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

etf-premium

Calculate an ETF's premium or discount to NAV from Yahoo Finance data (yfinance), compare or screen ETFs by premium, explain why a gap exists, and decompose a sudden ETF move into NAV-driven vs structural components (dealer gamma exposure, blocked AP arbitrage, sentiment). Use this skill whenever the user asks whether…

himself65/finance-skills · 159 tokens

stock-liquidity

Analyze how liquid a stock is using Yahoo Finance data (yfinance): bid-ask spreads, volume and dollar volume (ADTV), top-of-book and options depth, square-root market impact and slippage estimates, turnover ratio, and Amihud illiquidity, rolled into a liquidity grade. Use this skill whenever the user asks about…

himself65/finance-skills · 129 tokens

tradingview-reader

Read the user's local TradingView desktop app through opencli: quotes, options chains with greeks and per-strike IV, options expiries, screener results across stocks, crypto, forex, futures, and bonds, gainers and losers, news headlines and full stories, alerts (active, fired, offline fires), watchlists including…

himself65/finance-skills · 181 tokens

company-valuation

Estimate a public company's intrinsic value with DCF, relative (peer multiple), and sum-of-the-parts (SOTP) methods, then blend them into an implied share price with upside/downside vs the market price, a WACC and terminal-growth sensitivity grid, and bull/base/bear scenarios. Use this skill whenever the user asks…

himself65/finance-skills · 155 tokens

sepa-strategy

Analyze stocks with Mark Minervini's SEPA (Specific Entry Point Analysis) methodology: stage analysis, the 8-condition trend template, fundamentals, VCP and other base patterns, pivot-point entries, market environment, and risk-based position sizing. Use this skill whenever the user mentions SEPA, Minervini…

himself65/finance-skills · 186 tokens

stock-correlation

Analyze how stocks move together using Yahoo Finance price history (yfinance): find correlated peers for a ticker, measure correlation, beta, and spread between specific tickers, cluster a group into a correlation matrix, and track rolling or regime-dependent correlation. Use this skill whenever the user asks what…

himself65/finance-skills · 149 tokens