EUR/USD Signal Mix: BB (10,2.0) (Gradient Boosting, 1h)
Only 18 trades in the test at publish, too few to read much into. The latest daily re-run lost money: −3.26% over 25 trades. At publish it made +9.18% over 18 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.18%
| Trades | Win rate | Profit factor | Max drawdown |
|---|---|---|---|
| 18 | 72.2% | 2.52 | 2.99% |
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
−3.26%
| Trades | Win rate | Profit factor | Max drawdown |
|---|---|---|---|
| 25 | 36.0% | 0.87 | 12.13% |
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 @vol_drifter
Random Mix strategy on EUR/USD 1h: API-default style: randomly composed indicator set, model learns the rule. Features: BB (10,2.0), EMA 12/26 cross, ROC 3, Return lags 1-8, Stochastic (5,3). Model: Gradient Boosting. Label horizon 6 bars, confidence threshold 0.52, 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 1.
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/283MCP: one_shot(community_id=283)
# ╔══════════════════════════════════════════════════════════════╗
# ║ STRATEGY REQUEST LOG ║
# ╚══════════════════════════════════════════════════════════════╝
# Generated : 2026-09-09 01:03:13
# Model : Gradient Boosting
# Feature Eng. : BB (10,2.0), EMA 12/26 cross, ROC 3, Return lags 1-8, Stochastic (5,3)
# 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 : —, trend sma_100
# ══════════════════════════════════════════════════════════════
# ============================================================
# 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):
# --- Bollinger Bands(10,2.0) ---
_mid = close.rolling(10).mean()
_sd = close.rolling(10).std()
df["bb_10_2p0_pctb"] = (close - (_mid - 2.0 * _sd)) / (2 * 2.0 * _sd + 1e-10)
df["bb_10_2p0_width"] = (2 * 2.0 * _sd) / (_mid + 1e-10)
df["bb_10_2p0_width_chg"] = df["bb_10_2p0_width"].pct_change(3)
# --- EMA 12/26 crossover ---
_ea = close.ewm(span=12, adjust=False).mean()
_eb = close.ewm(span=26, adjust=False).mean()
df["ema_12_26_diff"] = (_ea - _eb) / close * 1e4
df["ema_12_26_diff_chg"] = df["ema_12_26_diff"].diff(1)
df["ema_12_26_cross_up"] = ((_ea > _eb) & (_ea.shift(1) <= _eb.shift(1))).astype(float)
df["ema_12_26_cross_dn"] = ((_ea < _eb) & (_ea.shift(1) >= _eb.shift(1))).astype(float)
df["close_vs_ema_12"] = close / _ea - 1.0
# --- Rate of change(3) ---
df["roc_3"] = close.pct_change(3) * 1e4
# --- Return lags 1..8 ---
_r = close.pct_change() * 1e4
for _i in range(1, 9):
df[f"ret_lag_{_i}"] = _r.shift(_i - 1)
df["ret_sum_8"] = _r.rolling(8).sum()
# --- Stochastic(5,3) ---
_ll = low.rolling(5).min()
_hh = high.rolling(5).max()
_k = 100.0 * (close - _ll) / (_hh - _ll + 1e-10)
df["stoch_k_5"] = _k
df["stoch_d_5"] = _k.rolling(3).mean()
df["stoch_5_diff"] = df["stoch_k_5"] - df["stoch_d_5"]
# 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 Gradient Boosting 1h",
"model_type": "GradientBoostingClassifier",
"model_params": {
"n_estimators": 150,
"max_depth": 2,
"learning_rate": 0.03,
"subsample": 0.7,
"random_state": 42
},
"signal_threshold": 0.52,
"direction": "both",
"stop_loss": 25.0,
"take_profit": 50.0,
"risk_unit": "pips",
"cooldown": 1,
"max_positions": 1,
"on_opposite": "reverse",
"session_filter": None,
"min_atr": None,
"trend_filter": "sma_100",
"target_horizon": 6,
"objective": "Random Mix strategy on EUR/USD 1h: API-default style: randomly composed indicator set, model learns the rule. Features: BB (10,2.0), EMA 12/26 cross, ROC 3, Return lags 1-8, Stochastic (5,3). Model: Gradient Boosting. Label horizon 6 bars, confidence threshold 0.52, 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