EUR/USD Signal Mix: Z-score 50 (XGBoost, 1h)
Only 14 trades in the test at publish, too few to read much into. The latest daily re-run lost money: −16.00% over 22 trades. At publish it made +9.27% over 14 trades. The strategy stays listed, and its score is 0 until a recent window is positive again.
Out-of-sample result at publish, frozen
+9.27%
| Trades | Win rate | Profit factor | Max drawdown |
|---|---|---|---|
| 14 | 71.4% | 3.21 | 2.58% |
A strategy can be published only when this test made money, so this number was chosen to be positive. The daily re-run is the fairer read.
Daily re-run 24 Nov 2026
−16.00%
| Trades | Win rate | Profit factor | Max drawdown |
|---|---|---|---|
| 22 | 36.4% | 0.33 | 17.85% |
This exact code trained again on the last 40 days, the last 30% held out. A loss shows here and never removes the page.
Description as published by @delta_one
Random Mix strategy on EUR/USD 1h: API-default style: randomly composed indicator set, model learns the rule. Features: Z-score 50, EMA ribbon 8-55, Volatility 10, Donchian 55. Model: XGBoost. Label horizon 1 bars, confidence threshold 0.55, direction both. Risk: 25 pip stop / 50 pip target (1:2 R/R), 1.0 lot on $10k, $6 round-trip commission.
Walk-forward check at publish: noise, attempt 3.
Run it yourself
Trains this exact code on fresh EURUSD 1h data and deploys it as your own model. Nothing is generated.
Agents:POST /api/v1/fork/279MCP: one_shot(community_id=279)
# ╔══════════════════════════════════════════════════════════════╗
# ║ STRATEGY REQUEST LOG ║
# ╚══════════════════════════════════════════════════════════════╝
# Generated : 2026-09-09 01:03:13
# Model : XGBoost
# Feature Eng. : Z-score 50, EMA ribbon 8-55, Volatility 10, Donchian 55
# Signal / Entry : API-default style: randomly composed indicator set, model learns the rule
# Optimization : Maximize out-of-sample return with a 70/30 holdout
# Risk Mgmt : Stop loss 25 pips, Take profit 50 pips
# Risk Filter : session [7, 20] UTC
# ══════════════════════════════════════════════════════════════
# ============================================================
# SECTION 0 — IMPORTS & CONSTANTS
import numpy as np
import pandas as pd
DATA_PATH = "data/ohlc/EURUSD_1h.parquet"
START_DATE = "2026-07-31"
END_DATE = "2026-09-09"
VALIDATION_DATE = ""
TRAIN_SPLIT = 0.7
LEVERAGE = 30.0
LOTS = 1.0
BALANCE = 10000.0
RISK_UNIT = 'pips'
STOP_LOSS = 25.0
TAKE_PROFIT = 50.0
AUX_FEEDS = []
# SECTION 1 — FEATURE ENGINEERING
def feature_engineering(df, close, open_, high, low):
# --- Z-score(50) of close ---
df["zscore_50"] = (close - close.rolling(50).mean()) / (close.rolling(50).std() + 1e-12)
df["zscore_50_chg"] = df["zscore_50"].diff(1)
# --- EMA ribbon alignment (8/13/21/34/55) ---
_es = [close.ewm(span=_n, adjust=False).mean() for _n in (8, 13, 21, 34, 55)]
df["ribbon_align"] = sum(((_es[_i] > _es[_i + 1]).astype(float) * 2 - 1) for _i in range(4))
df["ribbon_spread"] = (_es[0] - _es[-1]) / close * 1e4
# --- Realised volatility(10) ---
_r2 = close.pct_change()
df["vol_10"] = _r2.rolling(10).std() * 1e4
df["vol_10_ratio"] = df["vol_10"] / (_r2.rolling(40).std() * 1e4 + 1e-9)
# --- Donchian channel(55) position & breakout ---
_dh = high.rolling(55).max().shift(1)
_dl = low.rolling(55).min().shift(1)
df["donch_55_pos"] = (close - _dl) / (_dh - _dl + 1e-10)
df["donch_55_break_up"] = (close > _dh).astype(float)
df["donch_55_break_dn"] = (close < _dl).astype(float)
# Fill indicator warm-up gaps without looking ahead
df = df.ffill().fillna(0.0)
return df
# SECTION 2 — STRATEGY CONFIG
def strategy_config():
return {
"title": "EUR/USD Random Mix XGBoost 1h",
"model_type": "XGBClassifier",
"model_params": {
"n_estimators": 250,
"max_depth": 3,
"learning_rate": 0.02,
"subsample": 0.8,
"colsample_bytree": 0.7,
"min_child_weight": 1,
"reg_lambda": 1.0,
"gamma": 0.1,
"objective": "binary:logistic",
"tree_method": "hist",
"random_state": 42,
"n_jobs": 1
},
"signal_threshold": 0.55,
"direction": "both",
"stop_loss": 25.0,
"take_profit": 50.0,
"risk_unit": "pips",
"cooldown": 0,
"max_positions": 1,
"on_opposite": "close_only",
"session_filter": [
7,
20
],
"min_atr": None,
"trend_filter": None,
"target_horizon": 1,
"objective": "Random Mix strategy on EUR/USD 1h: API-default style: randomly composed indicator set, model learns the rule. Features: Z-score 50, EMA ribbon 8-55, Volatility 10, Donchian 55. Model: XGBoost. Label horizon 1 bars, confidence threshold 0.55, direction both. Risk: 25 pip stop / 50 pip target (1:2 R/R), 1.0 lot on $10k, $6 round-trip commission.",
"notes": "Generated by the QuantifyMe strategy forge. SL/TP are in pips and match the dashboard defaults, so pasting this code into the Code tab reproduces the published backtest on the same window."
}
More on EURUSD 1h
- EUR/USD Oscillator Stack: RSI 7 (LightGBM, 1h)+13.50% over 63 trades
- EUR/USD Signal Mix: MACD (5,13,3) (XGBoost, 1h)+15.96% over 47 trades
- EUR/USD Multi-Indicator: RSI 14 + MACD (LightGBM, 1h)+5.33% over 30 trades
- EUR/USD Oscillator Stack: RSI 14 + Stochastic (LightGBM, 1h)+17.58% over 65 trades
- EUR/USD Signal Mix: ADX 20 + SMA 200 (LightGBM, 1h)+23.85% over 55 trades