{
  "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": {
    "ema_control": "Use EMA55 instead of HMA55 in the identical slope-turn and strict C>curve rule. Equal nominal period does not match lag, frequency, entry dates or exposure; this does not isolate a causal smoothing effect.",
    "rounded_half": "Use HMA28 instead of HMA55 in the identical slope-turn and strict C>curve rule; all other assumptions unchanged."
  },
  "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 early trade; first completed primary later trade; first later trade of opposite net-PnL sign to that first later trade, otherwise second later trade. If too few trades, disclose unavailable examples rather than invent replacements. M15 panels aggregate only complete groups of 15 original M1 candles.",
  "exit_priority": "Observed opening gap, intrabar barriers, holding deadline, final available period close. A missing scheduled deadline exits at the next observed open after opening barrier checks. HMA downturn is not an exit. A new completed signal after an exit may enter only on the next scheduled H4 open.",
  "frozen_at_utc": "2026-11-13T08:13:15.528349+00:00",
  "gap_policy": "Retain actual timestamps; no invented candles. Reset every indicator at a gap. Existing positions retain their original barriers and remain exposed through missing observations. Opening gap checks have priority; missing next scheduled entry is cancelled.",
  "higher_costs": {
    "fee_each_side": 0.002,
    "slippage_each_side": 0.001
  },
  "holding_limit_h4_intervals": 30,
  "id": "mpf-xrp-h4-hma55-atr14-20261113-v1",
  "indicator_definitions": {
    "atr14": "TR[t]=max(H-L,abs(H-C_prev),abs(L-C_prev)). First dataset TR is H-L; first candle after a gap has undefined TR. Seed ATR with first 14 consecutive valid TR values, then Wilder update (13*ATRprev+TR)/14.",
    "ema55": "EMA55 of completed H4 closes; first value is the arithmetic mean of the first 55 contiguous closes, then EMA[t]=EMA[t-1]+(2/56)*(C[t]-EMA[t-1]).",
    "primary_hma55": "HMA55[t] = WMA7(2*WMA27(C)-WMA55(C))[t]. The declared primary convention floors 55/2 to 27 and sqrt(55) to 7. Each WMA requires its complete contiguous input window. Do not clamp overshoots.",
    "rounded_half_hma55": "HMA28[t] = WMA7(2*WMA28(C)-WMA55(C))[t]. This nearest-integer-half control changes 27 to 28 only; the root length remains 7.",
    "validity": "Every account requires finite HMA55, HMA28 and EMA55 on t,t-1,t-2 from three consecutive H4 timestamps, plus finite positive current ATR14. The common mask applies even when the decision uses only one curve. Reset all windows and EMA/ATR seeds after a missing scheduled H4 observation. Compare unrounded values; no tolerance threshold is added to the signal.",
    "wma": "WMA_N[t] = sum(k*C[t-N+k], k=1..N)/(N*(N+1)/2); the newest completed close has weight N, the oldest weight 1. No averaging across a missing scheduled H4 candle."
  },
  "initial_cash": 10000,
  "instrument": "Binance XRPUSDT 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": "Available cash while flat; purchase fee is 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 completed H4 close t, flat and shared inputs valid: HMA55[t-1]<=HMA55[t-2], HMA55[t]>HMA55[t-1], and C[t]>HMA55[t]. HMA is only an entry condition; no price crossover or separate trend-indicator filter is used.",
  "pyramiding": false,
  "research_question": "How does a predefined HMA55 upturn with a price gate perform after costs versus an EMA55 upturn, and how sensitive is it to a 27-versus-28 half-period convention?",
  "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": "HMA55_floor27_upturn_and_close_above"
    },
    {
      "costs": "base",
      "periods": [
        "full",
        "early",
        "later"
      ],
      "signal": "HMA55_rounded28_upturn_and_close_above"
    },
    {
      "costs": "base",
      "periods": [
        "full",
        "early",
        "later"
      ],
      "signal": "EMA55_upturn_and_close_above"
    },
    {
      "costs": "zero",
      "periods": [
        "full"
      ],
      "signal": "HMA55_floor27_upturn_and_close_above"
    },
    {
      "costs": "higher",
      "periods": [
        "full"
      ],
      "signal": "HMA55_floor27_upturn_and_close_above"
    }
  ],
  "site_baseline": {
    "commit": "9449725d7211f1ddca7534fad34ba0881097feab",
    "version": 298
  },
  "sources": [
    "https://alanhull.com/the-hull-moving-average/",
    "https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-overlays/hull-moving-average-hma",
    "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"
}
