xauusd-trading
Fetch XAUUSD (Gold) price data and analyze it using LLM reasoning to generate scalping signals. Optimized for small accounts with tight stop losses (5 points). Use 5m/15m timeframes for precise entry timing.
What this skill does
# XAUUSD LLM Scalping Analysis Skill for **small account scalping** with tight stop losses (~5 points / $5). ## Philosophy You ARE the analyst. Your PRIMARY decision tool is **price structure** — where price is relative to support, resistance, swing points, and key levels. Indicators (RSI, MACD, Stoch, etc.) are **context only** — they confirm or deny what structure is telling you. Never take a trade purely because an indicator says so. Structure first, indicators second, TradingView rating last. **Your priority stack**: 1. Price structure (where is price relative to levels?) 2. Candle patterns (rejection wicks, engulfing, momentum) 3. Indicator confluence (do RSI/MACD/Stoch agree with structure?) 4. TradingView signal rating (treat as a secondary opinion, not gospel) ## Quick Start - Fetch Data ### 1. Real-time price + indicators (TradingView - NO DELAY) ```bash bash /home/hazeruno/.config/opencode/skill/xauusd-trading/scripts/fetch_price.sh ``` Returns live price, current candle OHLC, RSI, MACD, Stoch, ADX, CCI, EMA, BB, ATR on 5m/15m/1h timeframes. **Use for current snapshot and indicator context.** ### 2. Real-time candle history (Twelve Data - NO DELAY) ```bash # Requires: export TWELVE_DATA_API_KEY="your_key" # Get free key: https://twelvedata.com (800 requests/day, free forever) # 5-minute candles (primary for scalping) bash /home/hazeruno/.config/opencode/skill/xauusd-trading/scripts/fetch_candles.sh 5min 30 # 15-minute candles (for trend/structure) bash /home/hazeruno/.config/opencode/skill/xauusd-trading/scripts/fetch_candles.sh 15min 20 # 1-minute candles (for micro entries) bash /home/hazeruno/.config/opencode/skill/xauusd-trading/scripts/fetch_candles.sh 1min 40 ``` Returns last N candles with OHLC — **real-time, no delay**. Use for structure analysis: swing highs/lows, support/resistance, patterns. **Intervals**: 1min, 5min, 15min, 30min, 1h, 4h, 1day ### 3. Fallback candle history (Yahoo Finance - ~15-20min delay, NO key needed) ```bash bash /home/hazeruno/.config/opencode/skill/xauusd-trading/scripts/fetch_gold.sh 5m 1d 50 ``` Only use if Twelve Data key is not set. Data is delayed ~15-20 minutes. ## Analysis Workflow 1. **Run `fetch_price.sh`** → get live price + indicators snapshot 2. **Run `fetch_candles.sh 5min 30`** → get real-time candle structure (swing points, patterns) 3. **Optionally run `fetch_candles.sh 15min 20`** → for higher timeframe trend 4. **Analyze** → structure first, indicators as context 5. **Output signal** → with checklist, levels, and probabilities ## Scalping Analysis Framework (5-Point Stop Loss) ### 1. IDENTIFY MICRO STRUCTURE With only 5 points of risk, you need PRECISE entries: - Find the **immediate swing high/low** (last 5-10 candles) - Identify **micro support/resistance** levels - Look for **tight consolidation** ranges (< 10 points) ### 2. ENTRY TIMING CRITERIA Only signal when: - Price is AT a clear level (not in the middle of a range) - Recent candle shows **rejection wick** or **engulfing pattern** - Stop loss placement is LOGICAL (behind structure, not arbitrary) ### 3. CALCULATE EXACT LEVELS For every signal, specify: ``` Entry: [exact price] Stop Loss: [entry ± 5 points] Take Profit: [minimum 1:1.5 R:R = 7.5 points] ``` ### 4. MOMENTUM CHECK On 5m chart, confirm: - Last 3-5 candles show directional bias - No major wick rejections against your direction - Volume/candle size increasing in your direction ### 5. EXTREME INDICATOR READINGS (High-Probability Triggers) These extreme readings often precede reversals — use them as entry confirmations: | Indicator | Extreme LONG Zone | Extreme SHORT Zone | |-----------|-------------------|-------------------| | Stochastic K | **< 10** | **> 90** | | CCI | **< -100** | **> +100** | | RSI | **< 30** | **> 70** | **When multiple indicators are extreme simultaneously**, bounce probability increases significantly. Example from real session: Stoch K hit 7.2 with CCI at -92 → price bounced 12+ points. ## Hard "NO TRADE" Gates Before generating any signal, check these. Gates marked **HARD** = must skip. Gates marked **SOFT** = warn but can still trade. ### HARD Gate 1: Volatility Filter - If 5m ATR > 8 points → **SKIP** (your 5-point SL is noise in this volatility) - If 15m ATR > 20 points → **SKIP** (market too wild for scalping) ### HARD Gate 2: News Event Filter Do NOT trade during or 15 minutes before/after these events: - **US**: CPI, NFP (Non-Farm Payrolls), FOMC rate decisions, PCE, PPI - **Global**: ECB/BOE/BOJ rate decisions, geopolitical shocks - Gold can move 30-50+ points in seconds during these events. A 5-point SL is meaningless. If you're unsure whether a news event is happening, add a warning: "Check economic calendar before entering." ### HARD Gate 3: Script Failure - If `fetch_price.sh` returns an error or "Market may be closed" → **NO TRADE** - If data looks stale (price hasn't changed in multiple fetches) → **NO TRADE** ### SOFT Gate 4: Spread/Slippage Cost Awareness Gold spread is typically 2-3 points, plus ~1 point slippage on entries. **Your REAL risk per trade**: ``` Effective SL = 5 (your SL) + 2-3 (spread) + 1 (slippage) = 8-9 points total cost Effective TP1 = 5 (your TP) - 2-3 (spread) = 2-3 points net gain Effective TP2 = 10 (your TP) - 2-3 (spread) = 7-8 points net gain ``` Always mention this in your analysis, but still suggest the trade if structure looks good. ### HARD Gate 5: Rollover Period (21:00-22:00 UTC) - **DO NOT TRADE** during 21:00-22:00 UTC (daily rollover/swap time) - Stop hunts are extremely common during this window — market makers sweep liquidity before the new session - If you must trade during rollover, use **minimum 8-point SL** (not 5) to survive the wicks - This gate was upgraded from SOFT to HARD based on real session experience where two consecutive 5-pt SLs were hunted during rollover ### SOFT Gate 6: Session Timing - **Best**: London-NY overlap (13:00-17:00 UTC) — tightest spreads, best liquidity - **OK**: London session (08:00-12:00 UTC), NY session (13:00-21:00 UTC) - **Warn but allow**: Asian session (wider spreads, note it) ## Signal Output Format ``` ## XAUUSD SCALP SIGNAL **Action**: 🟢 BUY (Long) / 🔴 SELL (Short) / ⚪ NO TRADE **Confidence**: [High / Medium / Low] ### Levels - Current Price: $XXXX.XX - Entry Zone: $XXXX.XX - $XXXX.XX - Stop Loss: $XXXX.XX (5 points risk) - Take Profit 1: $XXXX.XX (+5 points) - Take Profit 2: $XXXX.XX (+10 points) ### Win Probability & Scenarios **IMPORTANT**: These probabilities are HEURISTIC — educated guesses based on structure, not statistical models. Be honest but not paralyzed. **Probability guidelines**: - Use ranges: "35-45%", not "42%" - Cap at 70% max for any single outcome - If SL probability > TP1 probability by a wide margin → SKIP - If everything is 33/33/33 → lean toward the direction momentum supports Estimate how likely each outcome is based on the current structure: | Scenario | Target | Gross Pts | Net After Spread (~3pts) | Est. Probability | |----------|--------|-----------|--------------------------|-----------------| | SL Hit | $XXXX | -5 | -8 (SL + spread + slip) | XX-XX% | | TP1 Hit | $XXXX | +5 | +2 to +3 | XX-XX% | | TP2 Hit | $XXXX | +10 | +7 to +8 | XX-XX% | **Expected Value (cost-adjusted)**: - TP1 play: (TP1% x net_TP1) - (SL% x net_SL) = $X.XX - TP2 play: (TP2% x net_TP2) - (SL% x net_SL) = $X.XX **Verdict**: [WORTH TAKING / MARGINAL / SKIP] The goal is to help the user DECIDE, not to block all trades. If a setup has any structural edge at all, present it with honest probabilities and let the user judge. ### Pre-Signal Checklist Answer these. Flag any "No" items as risks, but still suggest the trade if the overall picture has an edge. | # | Check | Answer | |---|-------|--------| | 1 | Is price near a clear level? | Yes/No | | 2 | Is 5m ATR reasonable (≤ 8)? | Yes/No | | 3 | Is there a candle pattern or momentum confirming? | Yes/No | | 4 | Does higher timeframe direction agree
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.