Skip to the page

NZD/USD Signal Mix: SMA 200 + MACD (GradBoost, 1h)

NZDUSD 1h, published 6 Sep 2026 by @rapid-shark-854. Community id 266.

Only 13 trades in the test at publish, too few to read much into. The latest daily re-run lost money: −14.94% over 17 trades. At publish it made +2.34% over 13 trades. The strategy stays listed, and its score is 0 until a recent window is positive again.

Out-of-sample result at publish, frozen

+2.34%

TradesWin rateProfit factorMax drawdown
1353.8%1.365.59%

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

−14.94%

TradesWin rateProfit factorMax drawdown
1735.3%0.2014.94%

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 @rapid-shark-854

Signal Mix strategy on NZD/USD 1h. A compact, machine-selected indicator set; the classifier learns the entry rule directly from the features. Features: SMA 200, MACD (12,26,9), Volatility 50. Model: Gradient Boosting; label horizon 2 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 NZDUSD 1h data and deploys it as your own model. Nothing is generated.

Agents: POST /api/v1/fork/266MCP: one_shot(community_id=266)
strategy.py
# ╔══════════════════════════════════════════════════════════════╗
# ║                  STRATEGY REQUEST LOG                       ║
# ╚══════════════════════════════════════════════════════════════╝
# Generated        : 2026-09-06 15:14:19
# Model            : Gradient Boosting
# Feature Eng.     : SMA 200, MACD (12,26,9), Volatility 50
# 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/NZDUSD_1h.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):
    # --- 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)
    # --- MACD(12,26,9) ---
    _m = close.ewm(span=12, adjust=False).mean() - close.ewm(span=26, adjust=False).mean()
    _sig = _m.ewm(span=9, adjust=False).mean()
    df["macd_12_26"] = _m / close * 1e4
    df["macd_12_26_sig"] = _sig / close * 1e4
    df["macd_12_26_hist"] = (_m - _sig) / close * 1e4
    df["macd_12_26_hist_chg"] = df["macd_12_26_hist"].diff(1)
    # --- Realised volatility(50) ---
    _r2 = close.pct_change()
    df["vol_50"] = _r2.rolling(50).std() * 1e4
    df["vol_50_ratio"] = df["vol_50"] / (_r2.rolling(200).std() * 1e4 + 1e-9)

    # 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": "NZD/USD Random Mix Gradient Boosting 1h",
        "model_type": "GradientBoostingClassifier",
        "model_params": {
                "n_estimators": 300,
                "max_depth": 3,
                "learning_rate": 0.1,
                "subsample": 0.8,
                "random_state": 42
        },
        "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,
                20
        ],
        "min_atr": None,
        "trend_filter": None,
        "target_horizon": 2,
        "objective": "Random Mix strategy on NZD/USD 1h: API-default style: randomly composed indicator set, model learns the rule. Features: SMA 200, MACD (12,26,9), Volatility 50. Model: Gradient Boosting. Label horizon 2 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 NZDUSD 1h

No other strategy on NZDUSD 1h passes the quality bar yet.

All NZDUSD strategies and the delayed chart
QuantifyMe
DocsAgentsCommunityPricing
Sign in