Skip to the page

USD/JPY Signal Mix: Z-score 20 + SMA 20 (XGBoost, 15m)

USDJPY 15m, published 6 Sep 2026 by @silver-bull-130. Community id 218.

The latest daily re-run lost money: −5.29% over 73 trades. At publish it made +13.81% over 74 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.81%

TradesWin rateProfit factorMax drawdown
7456.8%1.527.65%

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 22 Nov 2026

−5.29%

TradesWin rateProfit factorMax drawdown
7347.9%0.807.68%

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 @silver-bull-130

Signal Mix strategy on USD/JPY 15min. A compact, machine-selected indicator set; the classifier learns the entry rule directly from the features. Features: Z-score 20, Session/time features, SMA 20, CCI 14. Model: XGBoost; label horizon 4 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 USDJPY 15m data and deploys it as your own model. Nothing is generated.

Agents: POST /api/v1/fork/218MCP: one_shot(community_id=218)
strategy.py
# ╔══════════════════════════════════════════════════════════════╗
# ║                  STRATEGY REQUEST LOG                       ║
# ╚══════════════════════════════════════════════════════════════╝
# Generated        : 2026-09-06 15:33:05
# Model            : XGBoost
# Feature Eng.     : Z-score 20, Session/time features, SMA 20, CCI 14
# 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/USDJPY_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):
    # --- Z-score(20) of close ---
    df["zscore_20"] = (close - close.rolling(20).mean()) / (close.rolling(20).std() + 1e-12)
    df["zscore_20_chg"] = df["zscore_20"].diff(1)
    # --- Time-of-day / day-of-week (UTC) ---
    _h = df.index.hour + df.index.minute / 60.0
    df["hour_sin"] = np.sin(2 * np.pi * _h / 24.0)
    df["hour_cos"] = np.cos(2 * np.pi * _h / 24.0)
    df["dow"] = df.index.dayofweek.astype(float)
    df["london_open"] = ((df.index.hour >= 7) & (df.index.hour < 10)).astype(float)
    df["ny_open"] = ((df.index.hour >= 13) & (df.index.hour < 16)).astype(float)
    # --- SMA(20) distance & slope ---
    _s = close.rolling(20).mean()
    df["sma_20_dist"] = close / _s - 1.0
    df["sma_20_slope"] = _s.pct_change(3)
    # --- CCI(14) ---
    _tp = (high + low + close) / 3.0
    _tpm = _tp.rolling(14).mean()
    _md = (_tp - _tpm).abs().rolling(14).mean()
    df["cci_14"] = (_tp - _tpm) / (0.015 * _md + 1e-12)

    # 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": "USD/JPY Random Mix XGBoost 15min",
        "model_type": "XGBClassifier",
        "model_params": {
                "n_estimators": 250,
                "max_depth": 5,
                "learning_rate": 0.05,
                "subsample": 0.8,
                "colsample_bytree": 0.8,
                "min_child_weight": 3,
                "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": 0,
        "max_positions": 1,
        "on_opposite": "close_only",
        "session_filter": [
                7,
                20
        ],
        "min_atr": None,
        "trend_filter": None,
        "target_horizon": 4,
        "objective": "Random Mix strategy on USD/JPY 15min: API-default style: randomly composed indicator set, model learns the rule. Features: Z-score 20, Session/time features, SMA 20, CCI 14. Model: XGBoost. Label horizon 4 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 USDJPY 15m

No other strategy on USDJPY 15m passes the quality bar yet.

All USDJPY strategies and the delayed chart
QuantifyMe
DocsAgentsCommunityPricing
Sign in