Skip to the page

USD/CHF Signal Mix: ROC 20 (Logistic Regression, 15m)

USDCHF 15m, published 9 Sep 2026 by @echo-quanta-127. Community id 295.

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

Out-of-sample result at publish, frozen

+7.94%

TradesWin rateProfit factorMax drawdown
2055.0%1.658.49%

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

−5.32%

TradesWin rateProfit factorMax drawdown
825.0%0.478.72%

This exact code trained again on the last 40 days, the last 30% held out. Only 8 trades, so the numbers are shown without colour: they are too few to read much into.

Description as published by @echo-quanta-127

Random Mix strategy on USD/CHF 15min: API-default style: randomly composed indicator set, model learns the rule. Features: ROC 20, Volatility 10, Return lags 1-8, RSI 7, SMA 20. Model: Logistic Regression. Label horizon 2 bars, confidence threshold 0.60, 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 2.

Run it yourself

Trains this exact code on fresh USDCHF 15m data and deploys it as your own model. Nothing is generated.

Agents: POST /api/v1/fork/295MCP: one_shot(community_id=295)
strategy.py
# ╔══════════════════════════════════════════════════════════════╗
# ║                  STRATEGY REQUEST LOG                       ║
# ╚══════════════════════════════════════════════════════════════╝
# Generated        : 2026-09-09 01:03:13
# Model            : Logistic Regression
# Feature Eng.     : ROC 20, Volatility 10, Return lags 1-8, RSI 7, SMA 20
# 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      : —
# ══════════════════════════════════════════════════════════════

# ============================================================
# SECTION 0 — IMPORTS & CONSTANTS
import numpy as np
import pandas as pd

DATA_PATH = "data/ohlc/USDCHF_15min.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):
    # --- Rate of change(20) ---
    df["roc_20"] = close.pct_change(20) * 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)
    # --- 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()
    # --- RSI(7) with zone flags and slope ---
    _d = close.diff()
    _g = _d.clip(lower=0).ewm(com=6, min_periods=7, adjust=False).mean()
    _l = (-_d.clip(upper=0)).ewm(com=6, min_periods=7, adjust=False).mean()
    _rsi = 100.0 - 100.0 / (1.0 + _g / (_l + 1e-10))
    df["rsi_7"] = _rsi
    df["rsi_7_os"] = (_rsi < 30).astype(float)
    df["rsi_7_ob"] = (_rsi > 70).astype(float)
    df["rsi_7_slope"] = _rsi.diff(2)
    # --- 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)

    # 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/CHF Random Mix Logistic Regression 15min",
        "model_type": "LogisticRegression",
        "model_params": {
                "C": 1.0,
                "max_iter": 2000,
                "random_state": 42
        },
        "signal_threshold": 0.6,
        "direction": "both",
        "stop_loss": 25.0,
        "take_profit": 50.0,
        "risk_unit": "pips",
        "cooldown": 0,
        "max_positions": 1,
        "on_opposite": "close_only",
        "session_filter": None,
        "min_atr": None,
        "trend_filter": None,
        "target_horizon": 2,
        "objective": "Random Mix strategy on USD/CHF 15min: API-default style: randomly composed indicator set, model learns the rule. Features: ROC 20, Volatility 10, Return lags 1-8, RSI 7, SMA 20. Model: Logistic Regression. Label horizon 2 bars, confidence threshold 0.60, 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 USDCHF 15m

All USDCHF strategies and the delayed chart
QuantifyMe
DocsAgentsCommunityPricing
Sign in