{
  "account_initialization": "Windows are start-inclusive/end-exclusive by H4 opening timestamp. Every variant/period starts with10000USDT, flat and without orders carried from another account, while retaining the same valid prior indicator history from2019-06 subject to resets. A signal on the immediately preceding H4 bar becomes available exactly at the start boundary; when eligible it may schedule this new flat account entry at that boundary. No entry at end. Require an observed final in-period scheduled bar ending exactly at period end; liquidate surviving position there after stop and time priorities, never use post-period quotes.",
  "base_costs": {
    "fee_each_side": 0.001,
    "slippage_each_side": 0.0005
  },
  "benchmarks": "Zero-interest cash0% and fully invested buy-and-hold, independently restarted by period, baseline costs and terminal sale; different exposure, not equal-risk rankings.",
  "control_signal": "no_ema removes ONLY entry close>EMA200; same DEMA pair,200-observation gate, stop, pair exit, deadline and costs. ema_pair substitutes EMA20/50 for DEMA20/50 in BOTH entry cross and completed pair-exit level, retaining close>EMA200 and all other rules. Separate fixed controls, no parameter search.",
  "cost_model": "Independent full/early/later primary, no_ema and ema_pair account reruns; full-period zero_cost and higher_cost primary. Buy-and-hold for3 periods. Per-side fees and adverse slippage change fills, stops, quantities and cash. Fractional cash-funded spot, no leverage, interest or historical lot/notional filters.",
  "direction": "long_only",
  "entry": "Use only immediately next scheduled observed H4 opening. Cancel missing opening or opening outside account period. The current entry bar future close/canonical metadata never censors its already observed opening. E=O*(1+s). Require positive finite cash/quantity and 0<SL<O, where SL=E-2*signal ATR14.",
  "equity": "At each observed H4 scheduled close: free cash+q*C*(1-s)*(1-f). Opening peak includes initial cash. Maximum drawdown is sampled at H4 closes. Exposure counts observed intervals with position duration after opening decisions; a pre-existing position closed exactly at opening does not occupy that new interval. It is not wall-clock invested duration.",
  "example_selection": [
    "first completed primary_early trade",
    "first completed primary_later trade",
    "first primary_later trade with strictly opposite nonzero net P&L sign to first later trade; zeros excluded"
  ],
  "exit": "Observed opening: stop-gap O<=SL first, previously queued completed-close pair exit second, overdue30-H4 deadline third. Then intrabar L<=SL stop, then surviving30th scheduled H4 close or period-end close. A canonical completed close fast<=slow schedules pair exit at next opening; level condition, not fresh cross, and does not need200-entry gate, positive ATR or EMA200. Pair is DEMA20/50 except ema_pair control uses EMA20/50. Queued exit persists across missing/noncanonical bars and resets. Fresh close signal after any exit can schedule following opening; no same-opening re-entry.",
  "exit_prices": "Raw exit reference is O for an opening stop gap, queued pair exit or overdue-time exit; SL for an intrabar stop; C for a scheduled time or account-period close. Every modeled sell fill X=raw_reference*(1-s); net proceeds=q*X*(1-f). Opening exit event_ts=bar_open; scheduled-close event_ts=bar_open+14400; an intrabar stop stores bar_open and precision=within_4h, identifying the interval rather than an exact event timestamp. A noncanonical close liquidation sets partial_close_proxy=true.",
  "frozen_at_utc": "2026-11-14T18:38:34.626876+00:00",
  "higher_costs": {
    "fee_each_side": 0.002,
    "slippage_each_side": 0.001
  },
  "holding_limit_intervals": 30,
  "id": "mpf-ethereum-h4-dema20-50-ema200-20261114-v1",
  "indicators": {
    "dema": "For N=20,50 compute second EMA of the valid first EMA values, with mean seed of its first N values at original index 2*N-2. Then EMA2_t=EMA2_prev+(EMA1_t-EMA2_prev)*2/(N+1). DEMA_N=2*EMA1_N-EMA2_N. First DEMA20 index38; DEMA50 index98. DEMA is neither EMA of EMA alone nor 2*EMA alone.",
    "ema": "For each N=20,50,200, seed EMA as mean of the first N canonical closes in the contiguous segment at index N-1. Then EMA_t=EMA_prev+(C_t-EMA_prev)*2/(N+1).",
    "precision": "Primary Decimal40 from original decimal prices; independent Decimal50 and scheduled clock. No rounded display or epsilon decides crosses or net P&L signs.",
    "reset": "Missing scheduled H4 or noncanonical source close resets all indicators; no indicators on that noncanonical row. All variants require200 current-segment canonical observations, positive ATR14 and defined current/previous pair values. Previous pair need not satisfy the200-entry gate. Never interpolate.",
    "stop_atr14": "First segment TR=H-L, later TR=max(H-L,abs(H-Cprev),abs(L-Cprev)). Mean seed first14 TR at index13, then (13*ATRprev+TR)/14."
  },
  "initial_cash": 10000,
  "instrument": "Binance ETHUSDT spot",
  "leverage": false,
  "max_positions": 1,
  "missing_and_partial_path": "No interpolation or hidden future data. Existing position keeps original stop across missing/noncanonical intervals. A missing or noncanonical interval while held flags the trade. A time/period liquidation using a noncanonical close is a disclosed partial-close proxy. Original-quantity exclusion diagnostics are post-event ledger sensitivity, not executable avoidance rules or rebuilt returns. Require an observed scheduled final bar for each account period; do not read quotes beyond period.",
  "normalization": "Read only79 source_manifest ZIPs, matching pinned SHA256, adjacent CHECKSUM digest and declared ZIP filename, and ZIP CRC. Scale=1000000 for opening_raw>=100000000000000, otherwise1000; opening_raw must be divisible by scale; UTC ts=opening_raw/scale must align to14400 seconds. Preserve source_close_raw and timestamp_scale. Canonical iff source_close_raw == opening_raw+14400*scale-1. Reject all duplicate timestamps and invalid/nonfinite/nonpositive OHLC or negative volume. Retain noncanonical rows with null indicators. These are pinned previously retained source bytes, not a fresh provider download or independently authenticated origin.",
  "parameters": {
    "common_warmup_observations": 200,
    "fast_length": 20,
    "slow_length": 50,
    "stop_atr_length": 14,
    "stop_atr_multiple": 2,
    "trend_length": 200
  },
  "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"
    ]
  },
  "pnl_arithmetic": "All account arithmetic is Decimal40. Realized pnl=q*(X*(1-f)-E*(1+f)) is evaluated per-unit before quantity multiplication; mathematically zero trade remains zero without sign tolerance. R=pnl/(q*Lunit). Independent checker uses Decimal50 and separate accounting/state transitions.",
  "position_size": "Lunit=E*(1+f)-SL*(1-s)*(1-f); q=min(0.01*cash/Lunit,cash/(E*(1+f))). Fees/slippage at nominal stop included; gaps can exceed planned1% risk. Entry purchase and fee debited immediately; exit net proceeds credited.",
  "price_precision": "All candle labels are UTC H4 openings, availability is scheduled open+4h. Opening/close events have stated model timestamps. Intrabar stop identifies the H4 interval, not an exact tick time or demonstrated execution. Raw E/X references differ from modeled slippage-adjusted fills. Real elapsed UTC spacing retained in charts.",
  "primary_signal": "Flat, completed canonical H4, common eligibility: previous DEMA20<=previous DEMA50 and current DEMA20>current DEMA50, and current close>current EMA200. Strict current cross and trend filter; equality only on previous pair side.",
  "research_status": "Retrospective familiar history. This DEMA protocol and source hashes frozen before first DEMA account calculation. No parameter search or result-based tuning. Early/later periods are not prospective unseen tests.",
  "risk_fraction": 0.01,
  "site_baseline": {
    "existing_strategy_count": 63,
    "version": 339
  },
  "source_manifest": [
    {
      "file": "ETHUSDT-4h-2019-06.zip",
      "sha256": "a2c6592967505fe5669ab96291535f6939d1a62059c0fc3c329c1394b0192b92"
    },
    {
      "file": "ETHUSDT-4h-2019-07.zip",
      "sha256": "7a075e2f14425e8e4fb33b4c7488935fe5ab58865b1b723c1b7e5b4cdc8136f0"
    },
    {
      "file": "ETHUSDT-4h-2019-08.zip",
      "sha256": "72683e413044d61c8442d180ac6b6cdf44bc7183a3ad03bfb8197059b0087476"
    },
    {
      "file": "ETHUSDT-4h-2019-09.zip",
      "sha256": "9f140a6a1e5cd8a2d99e195b569079d9b852382f5ade6499972d90dbb4b39830"
    },
    {
      "file": "ETHUSDT-4h-2019-10.zip",
      "sha256": "8c064164d25ef2a4a7b27757efab5b486cd62d720e648c0447420133282b6c06"
    },
    {
      "file": "ETHUSDT-4h-2019-11.zip",
      "sha256": "243b12cddc16b2397da139dfb852de2dfb0a4932cef35da53ef3f3455c295c7b"
    },
    {
      "file": "ETHUSDT-4h-2019-12.zip",
      "sha256": "19e01236f3b636de5cc8ac558212dad5a85c828348ad588662e28ca37d944056"
    },
    {
      "file": "ETHUSDT-4h-2020-01.zip",
      "sha256": "5c03baf09497009f956b5936c6db84d206a8f0386e5b4a3665cd3d32af51e5d8"
    },
    {
      "file": "ETHUSDT-4h-2020-02.zip",
      "sha256": "88172794c16ce8de20358a881f8cd39118bc0fc95f00f92f73fa11ee11719d46"
    },
    {
      "file": "ETHUSDT-4h-2020-03.zip",
      "sha256": "c3858a5ca2259cba52f946a561ce2d782c0c9bc14ab2cbf64c79386cf7e620e7"
    },
    {
      "file": "ETHUSDT-4h-2020-04.zip",
      "sha256": "af5706a028fe544ef4783630f7db8c7eb54bc1d2ffb54c751b0dfc94d208db5b"
    },
    {
      "file": "ETHUSDT-4h-2020-05.zip",
      "sha256": "65a17250d17125874491b82363d674aaee1a78c946cae60232a5eba7681b5e9c"
    },
    {
      "file": "ETHUSDT-4h-2020-06.zip",
      "sha256": "5bd04d52decec0cf5f6076cdca91db28bddc9b9fedf09ea0153ae2c9efb08ea3"
    },
    {
      "file": "ETHUSDT-4h-2020-07.zip",
      "sha256": "20e489dc0b0c780c4142c140e28830dfe3065078b56ae4fcc691e500d3706bf3"
    },
    {
      "file": "ETHUSDT-4h-2020-08.zip",
      "sha256": "8add1f51ad6984d67fb72fb0fe45de21f7ed0e02d5500097c628ca8f21e6ce98"
    },
    {
      "file": "ETHUSDT-4h-2020-09.zip",
      "sha256": "25dd60fb70598e86b4b4eef886a80dffe8ec15a112953c497650243d86da8adc"
    },
    {
      "file": "ETHUSDT-4h-2020-10.zip",
      "sha256": "1e0902781c8b6332782e9dae13d7e013e3118344e98d5169b90475472cf2a2c5"
    },
    {
      "file": "ETHUSDT-4h-2020-11.zip",
      "sha256": "c49f6ba1c2395e7c5df8e7add13914be97435a2afc2eed8df9a52458b1847355"
    },
    {
      "file": "ETHUSDT-4h-2020-12.zip",
      "sha256": "919c22c2f8ca0951027be80c2d3e7669c7caf667525a2383cd958114c4e252a2"
    },
    {
      "file": "ETHUSDT-4h-2021-01.zip",
      "sha256": "4d2721eec9076fbf48f0882539e7e8206fbd64f0e2b76bd1e885cca07215de8d"
    },
    {
      "file": "ETHUSDT-4h-2021-02.zip",
      "sha256": "ea0ace9b5354adc9e2351ab23f43b446582ba174acc6134888512ab0a1c57ad4"
    },
    {
      "file": "ETHUSDT-4h-2021-03.zip",
      "sha256": "c155c17532645f260e0c16ffb4f41f11cdc43e944e9acab217b14c3e519348cd"
    },
    {
      "file": "ETHUSDT-4h-2021-04.zip",
      "sha256": "3d9d0c1a42ce670fbd3a99ef08d8c77e0c3a7c920b784f7988ab31c7faaccc48"
    },
    {
      "file": "ETHUSDT-4h-2021-05.zip",
      "sha256": "74290088177b7c45cdf0de1ff8dd0b058ba0681891e95ac54b9e642fb865b647"
    },
    {
      "file": "ETHUSDT-4h-2021-06.zip",
      "sha256": "546a8b813d52741a46eae51052da67e754876c10244288021e97b6e4a01a4bda"
    },
    {
      "file": "ETHUSDT-4h-2021-07.zip",
      "sha256": "082f1c7a8e89a8b3e03fda49bf152b823fb524e75f8fc6579dd829550a399f03"
    },
    {
      "file": "ETHUSDT-4h-2021-08.zip",
      "sha256": "9b041c18d1439bba67f42d3ffed0127e1b44ea68cb7ab3f78db3510cc996e8f6"
    },
    {
      "file": "ETHUSDT-4h-2021-09.zip",
      "sha256": "38d31fdc0c44a558b30b4383fcc65fb5ddbc913988f4414632b7c1d275fbabe9"
    },
    {
      "file": "ETHUSDT-4h-2021-10.zip",
      "sha256": "486c5bdd16699f81ba1ce1d08961067c07d04037339056a198e77d89f50454ac"
    },
    {
      "file": "ETHUSDT-4h-2021-11.zip",
      "sha256": "7509ffb4cadc9bc1c96a7d4eb30f5ed0b39ac48d1b6a47ae2718e3afb44a87fb"
    },
    {
      "file": "ETHUSDT-4h-2021-12.zip",
      "sha256": "aa1f1633b77ce232a560d5549ef1ec4d9f02ff356867ccaa659fe94c7f8714d2"
    },
    {
      "file": "ETHUSDT-4h-2022-01.zip",
      "sha256": "0cf9fce8e056f4f1aaa50c2fa5667478ea8abb0be86fc73966d6d3b9a3f8d3ac"
    },
    {
      "file": "ETHUSDT-4h-2022-02.zip",
      "sha256": "618742c7425e2a5556740919525bfd6229406c8208b7134f78c784e04415915f"
    },
    {
      "file": "ETHUSDT-4h-2022-03.zip",
      "sha256": "bd19ecee3a38db1ac1d0b9fe8ed36876b29a1deea032201dbbd4ee11482f65ca"
    },
    {
      "file": "ETHUSDT-4h-2022-04.zip",
      "sha256": "70ab5a849a9662fcc01a58e6698f7445ec7041a004406ddbdd1e500ed115232d"
    },
    {
      "file": "ETHUSDT-4h-2022-05.zip",
      "sha256": "88173bb4cac582941f140ed00945a7f87fc4ea5e29b8bf14a01ea29adf279b88"
    },
    {
      "file": "ETHUSDT-4h-2022-06.zip",
      "sha256": "42143bfec21e8e340ecc68acd0b5eb634a9b98f742cdfd1eaa578590e5c51e09"
    },
    {
      "file": "ETHUSDT-4h-2022-07.zip",
      "sha256": "3250db4783f1d7eeb4ee98b5debb116f1eb699dc0f03c3a01f5714eedd0f5599"
    },
    {
      "file": "ETHUSDT-4h-2022-08.zip",
      "sha256": "d3b1ecb34e97395cdedc7a83cd7fbd5ca3a00ca8de7f64299ad672cb2c5c1c50"
    },
    {
      "file": "ETHUSDT-4h-2022-09.zip",
      "sha256": "5ba49c2d33178ce453680a4d6bb9242839ee3ed548164bc9a81cb1ada5f73bba"
    },
    {
      "file": "ETHUSDT-4h-2022-10.zip",
      "sha256": "f873820ead280792750d5677b86d46dd2a3d24ab438e761a849dcdb2cf9d7004"
    },
    {
      "file": "ETHUSDT-4h-2022-11.zip",
      "sha256": "a743a520b25181852027b68599fb502601f30e8eebeb91ac0388a9b16bf1b974"
    },
    {
      "file": "ETHUSDT-4h-2022-12.zip",
      "sha256": "f7d3fcb499fb0e3e8bed4f635111bdd6f753a27caae72b1c21b2bdc07ad9225c"
    },
    {
      "file": "ETHUSDT-4h-2023-01.zip",
      "sha256": "5ef9f01e728f0cc9f154aeb8d9febfa8a72fd0817aca80d7358db5aef134ba6e"
    },
    {
      "file": "ETHUSDT-4h-2023-02.zip",
      "sha256": "af9283cb87d1a3215ca79baa2d7b98baffbdc78e44b803ac8d60503210a522d3"
    },
    {
      "file": "ETHUSDT-4h-2023-03.zip",
      "sha256": "7a7fe3e51c3784b736e9324e5e3925592e9a0f8321d7e9824b630678419ddd20"
    },
    {
      "file": "ETHUSDT-4h-2023-04.zip",
      "sha256": "73ad2403eeb91f2999c931282a65268df25dd83e3bfe6eac030fb7ef5ff62202"
    },
    {
      "file": "ETHUSDT-4h-2023-05.zip",
      "sha256": "f7186286f3a4dc80c5240ea835837ff8139e6f442e5c6df46506cabcd08ed3db"
    },
    {
      "file": "ETHUSDT-4h-2023-06.zip",
      "sha256": "f4f2ee06aed7a274ad007f356febdbad7435ec93cc1d8bc3ca322da35a8257e7"
    },
    {
      "file": "ETHUSDT-4h-2023-07.zip",
      "sha256": "8eca8ea11eac79a68cd0cf3946cc1df9e75ff9eb20b9804c7a39f337a3b7eeea"
    },
    {
      "file": "ETHUSDT-4h-2023-08.zip",
      "sha256": "99974a9843eb607cfa63fda32557d2818018f04f4860a72eae31c4209ab501f6"
    },
    {
      "file": "ETHUSDT-4h-2023-09.zip",
      "sha256": "a64811d681aa0b16b33874325a4e507d02674dccf822299e96f5c591f1089df9"
    },
    {
      "file": "ETHUSDT-4h-2023-10.zip",
      "sha256": "dd6688e1ef9c76f2de15bfeb84d9d7012ca65f5a5c61faa5b829df83a4e8407a"
    },
    {
      "file": "ETHUSDT-4h-2023-11.zip",
      "sha256": "9a3bc3235908e01c20d840f94c69da287a07bea1255e713c5d558e353e68be32"
    },
    {
      "file": "ETHUSDT-4h-2023-12.zip",
      "sha256": "5ee6e5ebf1c277e7b2556b09950be4fb63ace7280b3f5e2294a64813e08ba673"
    },
    {
      "file": "ETHUSDT-4h-2024-01.zip",
      "sha256": "d0d5b311b46ec14928ef51a828be71390d20d15ce50da2800b134ac4bbbd1cfe"
    },
    {
      "file": "ETHUSDT-4h-2024-02.zip",
      "sha256": "4c4e7fe03810454aa5bc4d7d6d207519c95eb6ec485349c2ef25456aedd35f34"
    },
    {
      "file": "ETHUSDT-4h-2024-03.zip",
      "sha256": "b3c10466f739b11910ea93c6d88cafc8e6c9f548576925a341e3892621f70391"
    },
    {
      "file": "ETHUSDT-4h-2024-04.zip",
      "sha256": "656722f3c86ea8b553512bc991492aea556a2f3e69dfaad74336221f37197a36"
    },
    {
      "file": "ETHUSDT-4h-2024-05.zip",
      "sha256": "6134ad1e4921d94b1986ef94eff4e2a40607c5cd26276d76a1eec14213b2cad1"
    },
    {
      "file": "ETHUSDT-4h-2024-06.zip",
      "sha256": "5c918814d062d8b4fcbbd9cbad34ee12576eee98a8fdd3d3ed9517a6ed4dfa4d"
    },
    {
      "file": "ETHUSDT-4h-2024-07.zip",
      "sha256": "6a94ee988a2d7475083dfc02c88728264e047b818c8a1d2b56103716e942d861"
    },
    {
      "file": "ETHUSDT-4h-2024-08.zip",
      "sha256": "ade905e3a5a46be8969b34ca309297e40c5f42224e3e2bb041160d5bb17fa6f5"
    },
    {
      "file": "ETHUSDT-4h-2024-09.zip",
      "sha256": "b0511b07ad782c697382ec9b1f26086f203d83e92e36bb98f7fc14babbd2ea85"
    },
    {
      "file": "ETHUSDT-4h-2024-10.zip",
      "sha256": "ac8ec6d113a8674630bd3978986eab32acb966336a8625936d1d41f3a5a55078"
    },
    {
      "file": "ETHUSDT-4h-2024-11.zip",
      "sha256": "c8a11e958751a9328aeac9c7b2f6ce8653c6cb44ed1a6c3b8cec7c53bddaace2"
    },
    {
      "file": "ETHUSDT-4h-2024-12.zip",
      "sha256": "94c77e4a8a55647ab98707fc05f037ec8ada0a01d9e5b958b1bb7b4b2bc20037"
    },
    {
      "file": "ETHUSDT-4h-2025-01.zip",
      "sha256": "15dc4c8e426e7cd57367cd66a14515d87a2e710a14f99471ef03a6c2206419a2"
    },
    {
      "file": "ETHUSDT-4h-2025-02.zip",
      "sha256": "11685fcda1efc3a49b65dcf025488c4c5324a0b6ebb10c5c9962b5a8d94fea75"
    },
    {
      "file": "ETHUSDT-4h-2025-03.zip",
      "sha256": "afec898d0161add484b3ac2ad4bc98405ff0d645ef361e84bd76001697d90319"
    },
    {
      "file": "ETHUSDT-4h-2025-04.zip",
      "sha256": "8ff172c8bcdd0f5ffef4d3d1ccf6abd54d78cd831eba6a2bfcd534d18a651d6d"
    },
    {
      "file": "ETHUSDT-4h-2025-05.zip",
      "sha256": "197445d5d2ffb52184b9d7732c46bd008dd69f10635f9ca9a7f5cc16913e121c"
    },
    {
      "file": "ETHUSDT-4h-2025-06.zip",
      "sha256": "726c2597e1ed06cbadb0b310540f5542c104cd15cf7b30b5a2a18c60e63eb0b1"
    },
    {
      "file": "ETHUSDT-4h-2025-07.zip",
      "sha256": "8a0b8d32bd0c31908a639ea56976d9c3e4db96567b658517acfaaf21b0bb388e"
    },
    {
      "file": "ETHUSDT-4h-2025-08.zip",
      "sha256": "cb56e207506e6db6018e40b0af8d17857d5eafb6fb2adb484bfa701bee8de211"
    },
    {
      "file": "ETHUSDT-4h-2025-09.zip",
      "sha256": "d3b105a3166a82f9f32236dafbcacd8ecee73e5aceb245ea568f8c6dcb923dca"
    },
    {
      "file": "ETHUSDT-4h-2025-10.zip",
      "sha256": "363ec30e786b469b69935f1d9ca1fd71a8412c05d2fce33d16ac15b837eb45c6"
    },
    {
      "file": "ETHUSDT-4h-2025-11.zip",
      "sha256": "17e5cb5472a07d500e0c5a39b44b87287b3704601377d0afe4f5804b19095028"
    },
    {
      "file": "ETHUSDT-4h-2025-12.zip",
      "sha256": "0f680482e711232f7e7dc291d5f309a94d784c48f25293d94cb59f7c147f9d0a"
    }
  ],
  "sources": [
    "https://www.metatrader5.com/en/terminal/help/indicators/trend_indicators/dema",
    "https://www.metatrader5.com/en/terminal/help/indicators/oscillators/atr",
    "https://github.com/binance/binance-public-data"
  ],
  "status": "frozen_before_first_calculation",
  "stop": "Fixed SL=E-2*ATR14_signal; no target or trailing; entry interval counts as1. Deadline entry_ts+30*14400.",
  "timeframe_seconds": 14400,
  "warmup_rationale": "Same fixed200-observation entry gate across all controls; mathematical availability DEMA20 index38, DEMA50 index98, EMA200 index199. Pair exits need only defined pair values after reset.",
  "warmup_start": "2019-06-01T00:00:00Z"
}
