GBP/USD Signal Mix: EMA ribbon 8-55 + MACD (XGBoost, 15m)
Only 16 trades in the test at publish, too few to read much into. The latest daily re-run lost money: −14.03% over 16 trades. At publish it made +13.10% over 16 trades. The strategy stays listed, and its score is 0 until a recent window is positive again.
Out-of-sample result at publish, frozen
+13.10%
| Trades | Win rate | Profit factor | Max drawdown |
|---|---|---|---|
| 16 | 37.5% | 2.59 | 2.57% |
Tested on the 30% of days the model never saw.
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
−14.03%
| Trades | Win rate | Profit factor | Max drawdown |
|---|---|---|---|
| 16 | 12.5% | 0.31 | 18.06% |
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 @alpha-viper-151
Signal Mix strategy on GBP/USD 15min. A compact, machine-selected indicator set; the classifier learns the entry rule directly from the features. Features: EMA ribbon 8-55, MACD (8,21,5), SMA 200. Model: XGBoost; label horizon 3 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. Trained on the last 40 days with a 70/30 holdout; the published numbers are the out-of-sample 30%.
Walk-forward check at publish: noise, attempt 1.
Run it yourself
Trains this exact code on fresh GBPUSD 15m data and deploys it as your own model. Nothing is generated.
Agents:POST /api/v1/fork/189MCP: one_shot(community_id=189)
# ╔══════════════════════════════════════════════════════════════╗
# ║ STRATEGY REQUEST LOG ║
# ╚══════════════════════════════════════════════════════════════╝
# Generated : 2026-09-06 15:33:05
# Model : XGBoost
# Feature Eng. : EMA ribbon 8-55, MACD (8,21,5), SMA 200
# 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, 17] UTC, trend sma_100
# ══════════════════════════════════════════════════════════════
# ============================================================
# SECTION 0 — IMPORTS & CONSTANTS
import numpy as np
import pandas as pd
DATA_PATH = "data/ohlc/GBPUSD_15min.parquet"
START_DATE = "2026-07-28"
END_DATE = "2026-09-06"
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):
# --- 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
# --- MACD(8,21,5) ---
_m = close.ewm(span=8, adjust=False).mean() - close.ewm(span=21, adjust=False).mean()
_sig = _m.ewm(span=5, adjust=False).mean()
df["macd_8_21"] = _m / close * 1e4
df["macd_8_21_sig"] = _sig / close * 1e4
df["macd_8_21_hist"] = (_m - _sig) / close * 1e4
df["macd_8_21_hist_chg"] = df["macd_8_21_hist"].diff(1)
# --- SMA(200) distance & slope ---
_s = close.rolling(200).mean()
df["sma_200_dist"] = close / _s - 1.0
df["sma_200_slope"] = _s.pct_change(3)
# 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": "GBP/USD Random Mix XGBoost 15min",
"model_type": "XGBClassifier",
"model_params": {
"n_estimators": 400,
"max_depth": 4,
"learning_rate": 0.03,
"subsample": 0.7,
"colsample_bytree": 0.6,
"min_child_weight": 1,
"reg_lambda": 2.0,
"gamma": 0.0,
"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": 2,
"max_positions": 1,
"on_opposite": "close_only",
"session_filter": [
7,
17
],
"min_atr": None,
"trend_filter": "sma_100",
"target_horizon": 3,
"objective": "Random Mix strategy on GBP/USD 15min: API-default style: randomly composed indicator set, model learns the rule. Features: EMA ribbon 8-55, MACD (8,21,5), SMA 200. Model: XGBoost. Label horizon 3 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 GBPUSD 15m
- GBP/USD Mean-Reversion: RSI 14 + BB (20,2.0) (XGBoost, 15m)+16.26% over 49 trades
- GBP/USD Vol-Regime: BB (20,2.0) + ATR 10 (XGBoost, 15m)+9.42% over 114 trades
- GBP/USD Mean-Reversion: RSI 21 + BB (14,2.0) (XGBoost, 15m)+17.55% over 33 trades
- GBP/USD Mean-Reversion: RSI 7 (Random Forest, 15m)+7.76% over 41 trades
- GBP/USD Signal Mix: Z-score 50 + RSI 5 (Random Forest, 15m)+11.15% over 70 trades
- GBP/USD Breakout: Donchian 55 + ATR 14 (RandomForest, 15m)+5.63% over 40 trades