{
  "study": "SOL/USDT H4 Parabolic SAR: baseline versus ADX14 entry filter",
  "version": "1.0",
  "frozen_at_utc": "2026-11-11T17:23:40.994771+00:00",
  "frozen_before_strategy_results": true,
  "market": {
    "symbol": "SOLUSDT",
    "venue": "Binance spot",
    "side": "long only",
    "timezone": "UTC",
    "data_from": "2020-08-01T00:00:00Z",
    "data_end_exclusive": "2026-10-01T00:00:00Z",
    "signal_interval_ms": 14400000,
    "execution_interval_ms": 900000
  },
  "periods": {
    "development": [
      "2021-01-01T00:00:00Z",
      "2025-01-01T00:00:00Z"
    ],
    "holdout": [
      "2025-01-01T00:00:00Z",
      "2026-10-01T00:00:00Z"
    ]
  },
  "indicators": {
    "psar": {
      "start": "0.02",
      "step": "0.02",
      "maximum": "0.20",
      "seed": "First complete bar has no SAR. Second bar bullish only if its close > first close; ties bearish. Initial SAR=min(two lows) for bullish, max(two highs) for bearish. Initial EP=max(two highs) for bullish, min(two lows) for bearish. AF=0.02. Seeding is not a reversal signal.",
      "recurrence": "From third bar, projected=previous SAR+previous AF*(previous EP-previous SAR). Clamp bullish projection to min(prior two lows), bearish projection to max(prior two highs) before reversal test.",
      "reversal": "Bullish reverses bearish only when current low < clamped projection: SAR=max(previous EP,current high), EP=current low, AF=0.02. Bearish reverses bullish only when current high > clamped projection: SAR=min(previous EP,current low), EP=current high, AF=0.02. Equality does not reverse.",
      "continuation": "If not reversed, SAR=clamped projection. Raise bullish EP only for a strictly higher high, lower bearish EP only for a strictly lower low; increment AF by 0.02 once on that bar, cap 0.20.",
      "scope": "Declared deterministic implementation, not a claim to reproduce every platform script."
    },
    "atr14": {
      "seed": "mean of first 14 complete true ranges in a segment, first TR=H-L",
      "smoothing": "Wilder: (previous*13+current TR)/14"
    },
    "adx14": {
      "directional_movement": "Up=current high-previous high, Down=previous low-current low. +DM=Up only if Up>Down and Up>0; -DM=Down only if Down>Up and Down>0; ties both zero. First bar DM values zero.",
      "seed": "First 14 TR,+DM,-DM means, then Wilder smoothing period14. DI=100*smoothed DM/smoothed TR; zero denominator produces zero DI. DX=100*abs(+DI--DI)/(+DI+-DI); zero denominator produces zero DX. ADX seeds with mean first14 DX values (bar27), then Wilder smoothing period14.",
      "filter": "completed signal ADX >= 25; no ADX-rising or DI-direction test"
    },
    "warmup": "At least 100 complete consecutive H4 bars after start or gap, for both arms. All indicators reset after unavailable H4."
  },
  "signal": {
    "baseline": "Confirmed SAR bearish-to-bullish reversal on adjacent complete H4 bars; at least100 consecutive bars and valid positive ATR14 and ADX14.",
    "filtered": "same candidate plus signal ADX14 >=25",
    "entry": "real opening of immediately next H4, from its first usable M15 candle; unavailable opening cancels entry",
    "deadline": "Entry belongs to its period and entry+120h strictly before exclusive period end"
  },
  "exits": {
    "stop_atr_multiple": "2",
    "target_atr_multiple": "3",
    "maximum_holding_hours": 120,
    "risk_unit": "2*ATR14 of completed signal bar",
    "levels": "Fixed for full trade, exact Decimal precision, no tick rounding. SAR is an entry signal, not a trailing order in this study.",
    "priority": [
      "unusable M15 makes unresolved outcome unavailable",
      "at exact120h deadline exit using that opening",
      "gap through fixed stop/target fills at opening",
      "intrabar stop or target; stop first if both touched"
    ],
    "stop_touch": "low <= stop",
    "target_touch": "high >= target"
  },
  "calendars": {
    "independent": "Each arm holds at most one position; filtered and baseline entry calendars may diverge. Entry opening must be strictly after the prior resolved M15 exit interval and use a fresh qualifying SAR reversal.",
    "unavailable": "Exclude unavailable outcomes from return/mean/win/drawdown totals. Reserve that arm through original120h deadline; next entry strictly after deadline."
  },
  "diagnostic": {
    "purpose": "All valid candidate entries, ignoring occupancy, split by ADX pass/reject. Completed costed net R<=0 defines nonpositive outcome, not an objectively false market reversal.",
    "overlap": "Diagnostic trades can overlap, so their sum is not a tradable portfolio or either arm calendar.",
    "unavailable": "Count separately; exclude from positive/nonpositive counts and net summaries"
  },
  "missing_data": {
    "M15": "missing, duplicate/conflicting, zero-volume, or nonstandard-duration candle is unusable",
    "H4": "exactly16 adjacent usable M15; all complete real OHLC must match publisher H4. Record volume-only differences; volume magnitude not a signal input. No interpolation. Reset all indicators after unavailable H4."
  },
  "costs": {
    "base": {
      "fee_each_side": "0.001",
      "adverse_slippage_each_side": "0.0002"
    },
    "stress": {
      "fee_each_side": "0.002",
      "adverse_slippage_each_side": "0.0004"
    },
    "net_r": "[X*(1-s)-E*(1+s)-f*(E*(1+s)+X*(1-s))]/initial_R_distance",
    "scope": "one SOL price-risk units, no sizing, reinvestment, leverage, funding, liquidity or tick rounding"
  },
  "sensitivity": {
    "costs": "double both costs on unchanged primary calendars",
    "order": "target-first references for same-candle stop/target ambiguity on unchanged primary calendars",
    "no_parameter_optimization": true
  },
  "examples": {
    "selection": [
      "first completed holdout filtered-calendar trade, regardless of sign",
      "first completed holdout ADX-rejected isolated candidate with base net R<=0",
      "first completed holdout ADX-rejected isolated candidate with base net R>0"
    ],
    "absent_class": "disclose absent rather than replace selection",
    "charts": "three real H4/SAR/ADX views and three real M15 exit details; holdout cumulative R and yearly comparison"
  },
  "sources": [
    "https://github.com/binance/binance-public-data",
    "https://www.tradingview.com/support/solutions/43000502597-parabolic-sar-sar/",
    "https://www.tradingview.com/support/solutions/43000589099-average-directional-index-adx/"
  ]
}
