{
  "account_currency": "USDT",
  "ambiguity": "Opening gap first; one-minute replay for H4 bars touching both barriers; unresolved stop-first primary and complete target-first alternative account paths.",
  "base_costs": {
    "fee_each_side": 0.001,
    "slippage_each_side": 0.0005
  },
  "buy_and_hold_runs": {
    "costs": "base",
    "periods": [
      "full",
      "early",
      "later"
    ],
    "sizing": "All initial cash once, cash-constrained including buy fee; terminal sale including costs."
  },
  "cash_interest": 0,
  "controls": {
    "no_ema": "Same TSI cross, exits, shared warm-up validity, sizing and costs; omit only C>EMA200.",
    "roc13": "ROC13[t-1]<=0 and ROC13[t]>0 and C[t]>EMA200; identical shared validity, exits, sizing and costs. This is a simpler momentum comparison, not a frequency-matched causal isolation of smoothing."
  },
  "data_source": "Official monthly spot kline archives and checksum files; native H4, M1 for replay.",
  "direction": "long_only",
  "entry": "Only the next scheduled H4 open; cancel if missing or outside the run. Purchase E=Open*(1+s).",
  "entry_interval_counts_as": 1,
  "example_selection": "First completed primary trade in early; first completed primary trade in later; first later trade of the opposite net-profit sign. If no opposite sign, use second later trade; if too few trades, disclose and show available trades only. M15 views are aggregated exclusively from complete original M1 groups around the exit.",
  "exit_priority": "Opening gap first; then intrabar barriers; then 30 scheduled intervals including entry bar; then forced period-end liquidation. A signal after an exit may enter only on the next scheduled H4 open. If a period has no final scheduled candle, liquidate on its last available close and label it.",
  "frozen_at_utc": "2026-11-13T05:24:04.509206+00:00",
  "gap_policy": "Retain actual timestamps; do not fill holes. Reset every indicator seed and recursion at a gap. Existing positions remain exposed; if an observed opening price crosses a barrier, exit at that opening reference with slippage. Cancel a signal when its scheduled next open is absent.",
  "higher_costs": {
    "fee_each_side": 0.002,
    "slippage_each_side": 0.001
  },
  "holding_limit_h4_intervals": 30,
  "id": "mpf-eth-h4-tsi25-13-ema200-20261113-v1",
  "indicator_definitions": {
    "atr14": "Mean of first 14 contiguous valid TR values, then Wilder smoothing alpha=1/14. Reset the seed and all EMA recursions after every missing scheduled H4 observation.",
    "ema": "EMA_N seed = arithmetic mean of the first N contiguous valid inputs; then EMA[t]=EMA[t-1]+2/(N+1)*(input[t]-EMA[t-1]).",
    "ema200": "EMA200 of completed H4 closing prices, initialized with the first 200 contiguous closes.",
    "invalid": "All variants require finite current TSI, EMA200, ROC13 and positive ATR14, and finite prior TSI/ROC13 from the immediately preceding H4 candle. This common warm-up mask is also applied when a control omits one input. Nonpositive TSI denominator or missing input gives no signal.",
    "momentum": "M[t]=C[t]-C[t-1]; A[t]=abs(M[t]). No momentum is calculated across a missing H4 candle.",
    "roc13": "ROC13[t]=100*(C[t]/C[t-13]-1), requiring 14 contiguous closing prices.",
    "true_range": "TR[t] = max(H[t]-L[t], abs(H[t]-C[t-1]), abs(L[t]-C[t-1])). On the first dataset candle only, TR=H-L; on the first candle after a gap TR is undefined.",
    "tsi": "TSI[t]=100*EMA13(EMA25(M))[t]/EMA13(EMA25(abs(M)))[t]. The second EMA is seeded with the first 13 valid outputs of the first EMA. Undefined when the denominator is zero."
  },
  "initial_cash": 10000,
  "instrument": "Binance ETHUSDT spot",
  "leverage": false,
  "mark_to_market": "Cash + q*H4_close*(1-s)*(1-f), using the applicable run costs.",
  "max_positions": 1,
  "net_R": "Net realized trade profit divided by q*Lunit fixed at that entry.",
  "period_end_exclusive": true,
  "periods": {
    "early": [
      "2020-01-01T00:00:00Z",
      "2023-01-01T00:00:00Z"
    ],
    "full": [
      "2020-01-01T00:00:00Z",
      "2026-01-01T00:00:00Z"
    ],
    "later": [
      "2023-01-01T00:00:00Z",
      "2026-01-01T00:00:00Z"
    ]
  },
  "position_size": {
    "lot_model": "Continuous base quantity; historical venue lot/notional rules not reconstructed.",
    "planned_loss_per_unit": "Lunit=E*(1+f)-SL*(1-s)*(1-f)",
    "pre_entry_equity": "When flat, available cash; all entry costs included in the cash constraint.",
    "quantity": "q=min(0.01*pre_entry_equity/Lunit, available_cash/(E*(1+f)))",
    "risk_fraction": 0.01
  },
  "primary_signal": "At a completed H4 close t, flat account, all shared inputs valid: TSI[t-1]<=0 and TSI[t]>0 and C[t]>EMA200[t]. No TSI signal line is used.",
  "pyramiding": false,
  "research_question": "Does EMA200 improve a predefined TSI zero-cross rule after costs, and how does that rule compare with a simpler ROC13 zero-cross control?",
  "research_status": "All periods are retrospective; this history has been studied before. No prospective unseen test claim.",
  "runs": [
    {
      "costs": "base",
      "periods": [
        "full",
        "early",
        "later"
      ],
      "signal": "TSI_zero_cross_with_EMA200"
    },
    {
      "costs": "base",
      "periods": [
        "full",
        "early",
        "later"
      ],
      "signal": "same_TSI_zero_cross_without_EMA200"
    },
    {
      "costs": "base",
      "periods": [
        "full",
        "early",
        "later"
      ],
      "signal": "ROC13_zero_cross_with_EMA200"
    },
    {
      "costs": "zero",
      "periods": [
        "full"
      ],
      "signal": "TSI_zero_cross_with_EMA200"
    },
    {
      "costs": "higher",
      "periods": [
        "full"
      ],
      "signal": "TSI_zero_cross_with_EMA200"
    }
  ],
  "site_baseline": {
    "commit": "50b33989a150fee06db971e972ce205cca35277e",
    "version": 296
  },
  "sources": [
    "https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/true-strength-index",
    "https://www.tradingview.com/support/solutions/43000592290-true-strength-index/",
    "https://github.com/binance/binance-public-data"
  ],
  "status": "initial_protocol_frozen_before_new_strategy_calculation",
  "stop": "SL=E-D; reject if SL<=0",
  "stop_distance": "D=2*ATR14[t]",
  "strategy_run_count": 11,
  "target": "TP=E+2*D",
  "warmup_start": "2019-06-01T00:00:00Z"
}
