{
  "base_costs": {
    "fee_each_side": 0.001,
    "slippage_each_side": 0.0005
  },
  "benchmarks": "Cash0%; fully invested cash-funded buy-and-hold separately restarted for each period, same base costs, terminal sale. Exposure differs.",
  "control_signal": "Same eligibility and ROC crossing; remove only C>EMA100. Both use the same 100-bar current gate.",
  "cost_model": "Adverse slippage on each entry/exit reference and fees on traded notional. Full reruns for primary/no_filter all3 periods; zero_cost/higher_cost full period. Cash interest zero. Continuous cash ledger. Stop gap can exceed planned1% loss.",
  "direction": "long_only",
  "entry": "Enter only at next scheduled H4 observed open; cancel if missing or outside period. E=O*(1+s). The later close-time metadata of that entry bar never censors an otherwise available opening. Reject an entry if its fixed stop is not strictly below the raw available opening (require 0<SL<O); this check uses only known opening and signal values.",
  "equity": "At each observed H4 close, cash+q*C*(1-s)*(1-f); opening peak includes initial cash. Maximum drawdown sampled at H4 closes, not intrabar.",
  "example_selection": [
    "first chronologically completed early primary trade; unavailable if none",
    "first chronologically completed later primary trade; unavailable if none",
    "first later primary trade with strictly opposite net P&L sign to first later primary trade (positive versus negative only; zero has no opposite sign); unavailable if no such trade, with no outcome-selected substitute"
  ],
  "exit": "At an observed bar open, stop-gap (O<=SL) first; queued ROC exit next; a previously missed 30-interval deadline next. Then intrabar stop if L<=SL; then surviving 30th scheduled close/time or period-end close. A valid completed close with ROC<=0 queues exit for next scheduled open, including a close on the entry interval. If queued exit open missing, execute at first observed open with stop-gap priority; flag delayed exit. Entry interval counts as 1. A new close signal after an exit may queue the following open. The oscillator exit is a level condition, not a requirement for a new crossing. Once queued it remains pending until the position exits; an unavailable later reading does not revoke it. The time deadline is entry_open_time+30*14400 seconds, counting scheduled intervals, including missing observations, rather than 30 observed bars. If a terminal scheduled close cannot be observed, use the first subsequent observed opening under the declared priorities; period-end uses the last available observed close within the period and reports that event timestamp.",
  "exposure": "Observed-interval occupancy proxy: count each observed evaluation bar during which a position was already open at its opening or was opened on that bar, including an exit-at-open bar, divided by observed evaluation bars. This is not elapsed-time or capital-weighted exposure; missing intervals and the unknown intrabar stop time prevent an exact time exposure estimate from these candles.",
  "float_arithmetic_review": "Canonical replay uses Python binary64 for EMA/ATR, math.fsum for the 100-close EMA and first14-TR ATR mean seeds, EMA update alpha*C+(1-alpha)*previous with alpha=2/101, and ATR update (13*previous+TR)/14. Original-price-scaled integer ROC zero-line comparisons remain exact. Independent Decimal(40) rebuild compares discrete decisions exactly; absolute tolerance 1e-6 USDT account amounts, 1e-8 price/indicator/dimensionless values, 1e-10 SOL quantities. Any discrepancy is documented and corrected without retuning strategy parameters. The SOL quantity tolerance is chosen before seeing outcomes to accommodate larger unit counts at low early SOL prices; it is 100 times smaller than1e-8 SOL. No tolerance is allowed to change an event or threshold decision.",
  "frozen_at_utc": "2026-11-14T10:42:18.944852+00:00",
  "higher_costs": {
    "fee_each_side": 0.002,
    "slippage_each_side": 0.001
  },
  "holding_limit_intervals": 30,
  "id": "mpf-solana-h4-roc12-ema100-20261114-v1",
  "indicators": {
    "atr14": "First canonical bar in a restarted segment has TR=H-L; seed ATR with the arithmetic mean of the first14 TR, then (13*previous+TR)/14. Subsequent TR=max(H-L,abs(H-Cprev),abs(L-Cprev)).",
    "ema100": "Close EMA100, mean seed at100th consecutive canonical observation, then EMA=alpha*C+(1-alpha)*previous with alpha2/101. Strict close>EMA comparison without display rounding.",
    "reset": "A missing scheduled H4 observation or noncanonical source-close row ends the segment. Retain raw noncanonical rows but calculate no indicators on them; restart on next canonical bar. Both primary and no-EMA control require at least100 consecutive canonical observations at the current signal candle, positive ATR14, and available current and immediately previous ROC12 in that segment. The prior ROC candle need not itself satisfy100-bar eligibility.",
    "roc12": "ROC=100*(C_t-C_(t-12))/C_(t-12), including current close and the close exactly 12 scheduled H4 intervals earlier in the same uninterrupted canonical segment. Requires13 consecutive observations. Verify original prices are exactly representable as integers scaled by100000000; derive numerator100*(C_int-lag12_int) and positive denominatorlag12_int. Compare numerator signs exactly for crossing and exit; store the quotient as percent for display, never use display rounding in a decision. A positive ROC means current close exceeds its rolling reference, not that every intervening candle rose. On the stated contiguous H4 grid, the lookback covers48 hours. ROC need not rise whenever price rises because its lagged reference also rolls. There is no additional positive ROC ceiling in the entry condition."
  },
  "initial_cash": 10000,
  "instrument": "Binance SOLUSDT spot",
  "ledger_interval_count": "The trade ledger holding_intervals field is 1+(exit_bar_open-entry_open)/14400, an observed-bar index-span count that includes an exit-at-open interval. It must not be presented as exact elapsed holding duration; scheduled time-cap deadlines remain entry_open+30*14400.",
  "leverage": false,
  "max_positions": 1,
  "missing_and_partial_path": "No interpolation. Existing positions keep their original stop across gaps/noncanonical intervals; actual available openings/ranges drive fills. Trades exposed to a missing/noncanonical H4 interval are flagged even if closed before metadata is known. Missing prices can conceal paths; exclusions at original quantities are diagnostics, never rebuilt account returns.",
  "net_r": "Net realized P&L divided by frozen entry q*Lunit. Profit factor gross positive net-trade P&L / absolute negative net-trade P&L, undefined without losses.",
  "parameter_origin": "ROC length12 and EMA length100 are the pre-established cluster preset, not an assertion of universal platform defaults; the referenced TradingView help page states a ROC default length9.",
  "period_restarts": "Periods are [start,end), separately cash-funded and initially flat, with no position carried from another run. Indicators retain the continuous preperiod warmup history (since 2020-09-01, subject to segment resets), rather than restarting at each account start. A valid close signal on the immediately preceding scheduled H4 candle may enter at the first period opening. If that scheduled opening is missing, cancel it; never carry a preperiod pending exit or position. No new entry is scheduled at or after end.",
  "periods": {
    "early": [
      "2021-01-01T00:00:00Z",
      "2023-01-01T00:00:00Z"
    ],
    "full": [
      "2021-01-01T00:00:00Z",
      "2026-01-01T00:00:00Z"
    ],
    "later": [
      "2023-01-01T00:00:00Z",
      "2026-01-01T00:00:00Z"
    ]
  },
  "position_size": "Lunit=E*(1+f)-SL*(1-s)*(1-f); q=min(0.01*cash/Lunit,cash/(E*(1+f))). Continuous fractional quantity; venue historical lot/notional rules not reconstructed. Flat account pre-entry equity equals cash.",
  "price_precision": "Single stop touch identifies the observed H4 interval, not a tick timestamp. Signal/time/period exits use stated completed-close or opening prices. Scheduled availability is open+4h even for noncanonical source closes. A noncanonical row close used by a scheduled time/period liquidation is an explicitly flagged stale/partial-close proxy, not a demonstrated executable fill.",
  "primary_signal": "At a completed canonical H4 close when flat, require current eligibility, previous ROC<=0<current ROC and C>EMA100. The previous reading must exist in the same contiguous canonical segment but need not itself have the 100-observation gate. Strict current positivity and strict C>EMA; previous equality at zero is included.",
  "research_status": "Retrospective, already familiar historical data. The cluster preset ROC12 + EMA100, periods, and execution specification are fixed before computing this Solana strategy. No parameter search, optimization, or prospective unseen-test claim.",
  "risk_fraction": 0.01,
  "site_baseline": {
    "existing_strategy_count": 59,
    "version": 334
  },
  "sources": [
    "https://www.tradingview.com/support/solutions/43000502343-rate-of-change-roc/",
    "https://github.com/binance/binance-public-data/blob/master/README.md"
  ],
  "status": "frozen_before_first_calculation_of_this_strategy",
  "stop": "Fixed SL=E-2*ATR14_signal; no trailing and no profit target. Reject nonpositive stop.",
  "timeframe_seconds": 14400,
  "warmup_start": "2020-09-01T00:00:00Z"
}
