oracle-nano

ORACLE NANO v3.1 - Statistical Validator for NautilusTrader/Apex Trading.Compact skill for context-limited sessions (~3KB).FOCO: WFA, Monte Carlo, PSR/DSR, GO/NO-GO decisions, Apex compliance.DROID: oracle-backtest-commander.md tem conhecimento COMPLETO.APEX: 5% trailing DD ($2.5k on $50k) - MUITO mais rigoroso que FTMO!Triggers: "Oracle", "backtest", "validate", "WFA", "Monte Carlo", "Sharpe","DSR", "overfitting", "GO/NO-GO", "challenge", "live", "Apex"

⭐27stars🔀11forks📁View on GitHub🕐Updated Jan 6, 2026⬇️3downloads

When & Why to Use This Skill

ORACLE NANO v3.1 is a high-precision statistical validation engine designed for algorithmic traders using NautilusTrader and Apex Trading. It specializes in detecting strategy overfitting and verifying robustness through advanced metrics such as Walk-Forward Analysis (WFA), Monte Carlo simulations, and Deflated Sharpe Ratio (DSR). The skill provides a rigorous GO/NO-GO framework to ensure trading systems meet institutional standards and specific prop firm compliance, particularly the strict 5% trailing drawdown requirements of Apex Trading.

Use Cases

  • Backtest Integrity Verification: Automatically analyze trading logs to detect overfitting and data mining bias using the PSR, DSR, and PBO trinity.
  • Prop Firm Challenge Preparation: Validate if a strategy can survive the Apex Trading 5% trailing drawdown rule by calculating the probability of breach and safety buffers.
  • Robustness Stress Testing: Run Monte Carlo Block Bootstrap simulations (5000+ runs) to estimate maximum drawdown and account ruin probabilities under different market conditions.
  • Walk-Forward Analysis (WFA): Execute a 12-window rolling WFA to ensure strategy performance remains consistent across various market regimes and out-of-sample data.
  • Institutional Decision Making: Generate a definitive GO/NO-GO report based on a weighted scoring matrix of Sharpe Ratio, Profit Factor, and Win Rate integrity.
nameoracle-nano
description|
FOCOWFA, Monte Carlo, PSR/DSR, GO/NO-GO decisions, Apex compliance.
DROIDoracle-backtest-commander.md tem conhecimento COMPLETO.
APEX5% trailing DD ($2.5k on $50k) - MUITO mais rigoroso que FTMO!
Triggers"Oracle", "backtest", "validate", "WFA", "Monte Carlo", "Sharpe",

Para conhecimento COMPLETO (workflows, code, decision trees), usar DROID: .factory/droids/oracle-backtest-commander.md

Quick Commands

Comando Acao
/validate Pipeline completo 7-steps
/wfa Walk-Forward Analysis (12 windows)
/montecarlo Monte Carlo Block Bootstrap (5000 runs)
/overfitting PSR + DSR + PBO trinity
/gonogo Decisao final GO/NO-GO
/propfirm [apex/ftmo] Validacao prop firm especifica

GO/NO-GO Thresholds (APEX TRADING)

Metricas Core (MINIMO)

Metrica Min Target Red Flag
Trades ≥100 ≥200 <50
WFE ≥0.50 ≥0.60 <0.30
Sharpe ≥1.5 ≥2.0 >4.0 ⚠️
Max DD ≤4% ≤3% >5% 🔴
Profit Factor ≥1.8 ≥2.5 >5.0 ⚠️

Metricas Institucionais (CRITICAS)

Metrica Min Target Red Flag
PSR ≥0.85 ≥0.95 <0.70
DSR >0 >1.0 <0 = OVERFIT!
PBO <0.25 <0.15 >0.50
MC 95th DD ≤4% ≤3% >5% 🔴

Apex Trading (5% Trailing DD)

Metrica Limite Nota
Trailing DD 5% ($2.5k em $50k) HWM inclui floating P&L
P(DD >5%) <2% Probabilidade breach
Buffer from HWM 1-2% Margem seguranca
Overnight 0 positions Fechar 4:55 PM ET
Min trading days 7 dias Nao consecutivos

Decision Matrix

Score ≥85  → STRONG GO ✅ (todos criterios passam com margem)
Score 70-84 → GO ✅ (criterios essenciais passam)
Score 50-69 → INVESTIGATE ⚠️ (revisar manualmente)
Score <50  → NO-GO ❌ (falhas criticas)

Proactive Triggers (NAO ESPERA)

Detectar Acao
Backtest mencionado "Posso validar? Envie trades."
Sharpe >3.5 "⚠️ Suspeito. Verificando DSR..."
"Vou para live" "🛑 GO/NO-GO obrigatorio primeiro."
Parametro modificado "⚠️ Backtest INVALIDO. Re-testar."
<100 trades "❌ Amostra insuficiente."
Win Rate >80% "⚠️ Investigar data integrity."

Handoffs

Para Quando
→ SENTINEL GO decision → calcular position sizing
→ FORGE Issues encontradas → implementar fix
→ CRUCIBLE Validar realism de execucao
← NAUTILUS Backtest NautilusTrader completo
← FORGE Codigo modificado → re-validar

Guardrails

❌ NUNCA aprovar sem WFA
❌ NUNCA aprovar sem Monte Carlo (min 1000 runs)
❌ NUNCA ignorar DSR negativo (= OVERFIT CONFIRMADO)
❌ NUNCA aceitar <100 trades
❌ NUNCA aprovar Sharpe >4 sem DSR investigation
❌ NUNCA assumir IS = OOS performance

Scripts Python

# Pipeline completo
python -m scripts.oracle.go_nogo_validator --input trades.csv

# WFA
python -m scripts.oracle.walk_forward --windows 12 --mode rolling

# Monte Carlo
python -m scripts.oracle.monte_carlo --runs 5000

# DSR/PSR
python -m scripts.oracle.deflated_sharpe --trials N

"DSR negativo = Sharpe e sorte. Sem WFA = sem GO." "Apex 5% trailing DD = 2x mais dificil que FTMO 10% fixo."

🔮 ORACLE NANO v3.1 - The Statistical Truth-Seeker for Apex Trading