{
 "meta": {
  "lot": "benchmark-pine",
  "run_at_utc": "2026-11-23T16:41:24.138Z",
  "engine": {
   "js": "/static/juge/v271r/sa_judge_wasm.js",
   "wasm": "/static/juge/v271r/sa_judge_wasm_bg.wasm",
   "wasm_sha256": "f97e787660726ff766adac73e896e6438435c9e27deaf07e7841f5546bf81867",
   "coach": "/static/juge/v254/juge_coach.js",
   "verdict_schema": "sa.judge.verdict.v254"
  },
  "data": {
   "file": "/static/juge/data/v3/btcusdt-1d.bin",
   "sha256": "48a5598c9380a16af8534fee682d1b7e1a52838de1b13f157612ce7103052603",
   "candles": 3348,
   "first": "2017-08-17T00:00:00.000Z",
   "last": "2026-10-16T00:00:00.000Z"
  },
  "settings": {
   "unit": "1d",
   "undeclared_fee_bps": 10,
   "certified": false,
   "holdout_percent": 20
  },
  "node": "v22.22.2"
 },
 "runs": [
  {
   "group": "classic",
   "file": "01-rsi-30-70.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"RSI 30/70\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nrsiValue = ta.rsi(close, 14)\nif ta.crossover(rsiValue, 30)\n    strategy.entry(\"Long\", strategy.long)\nif ta.crossunder(rsiValue, 70)\n    strategy.close(\"Long\")",
   "pineSha256": "ee9c44efadf357ce3d5068d6d29a99df2e2bfb5c4b9d89a0760c55de4a26ac43",
   "ms": 271,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 3 trades sur la période jamais vue, il en faut 10.",
      "en": "Only 3 trades on the period it never saw, 10 are needed."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 48.57,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 28.69,
     "pnlPct": 25.32,
     "startIndex": 2679,
     "trades": 3,
     "winRatePct": 100
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "824aefacacb3d026892a15f1975154ee31b2d4ceeadd19bcadf59e4c4af1d9eb",
    "sealedTrades": [
     {
      "entry_index": 2754,
      "entry_price": 86064.54,
      "exit_index": 2817,
      "exit_price": 95856.42,
      "pnl_pct": 11.16599128979253,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3016,
      "entry_price": 92960.83,
      "exit_index": 3074,
      "exit_price": 95604.81,
      "pnl_pct": 2.6413429828455666,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3096,
      "entry_price": 70580.26,
      "exit_index": 3301,
      "exit_price": 77682,
      "pnl_pct": 9.851873229143681,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "ee9c44efadf357ce3d5068d6d29a99df2e2bfb5c4b9d89a0760c55de4a26ac43",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 94.377882,
       "status": "complete",
       "trialSharpeVariance": 0.0003766478342749529,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 3,
      "events": 1,
      "maxHoldBars": 205,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 14.241581388101073,
     "observationStartIndex": 23,
     "observations": 2656,
     "skewness": 0.7029644166672989,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 159,
      "consistentPValuePct": 15.9,
      "meanDifferentialPerBar": 0.0006062325282708565,
      "observedTestStatistic": 1.01445212583,
      "receiptFingerprintSha256": "2558d4b32db4f533c674f8ddfb7a2b83a214ebec4c909823b469e87cce789881",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 159,
         "lower95Pct": 14.024142,
         "simulations": 1000,
         "upper95Pct": 17.926246
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.03052130910784245
    },
    "train": {
     "firstTradableIndex": 15,
     "pnlPct": 217.11,
     "sharpePerBar": 0.03052131,
     "trades": 11
    },
    "universeFingerprintSha256": "d66b0c58bde39cf77c2ddf4bb5eb7647b8e5e37dfb34f1e0d69284e36a5f7190",
    "verdict": {
     "alphaPct": 5,
     "code": "insufficient_activity",
     "judgeMode": "free",
     "reasons": [
      "holdout_trades_below_10"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "02-ema-ribbon-8-21-55.pine",
   "code": "mirage",
   "title": {
    "fr": "Pas de preuve d’avantage, pour l’instant",
    "en": "No evidence of an edge, for now"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✓, gain face à la détention ✗, essais comptés ✓, hasard ✗, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✓, gain vs holding ✗, trials counted ✓, chance ✗, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"EMA ribbon 8/21/55\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nfast = ta.ema(close, 8)\nmiddle = ta.ema(close, 21)\nslow = ta.ema(close, 55)\nif fast > middle and middle > slow\n    strategy.entry(\"Long\", strategy.long)\nif fast < middle\n    strategy.close(\"Long\")",
   "pineSha256": "6acb3d6f130a367e5318511c2605dc75e059169fe949ea75aec0bd64b928436a",
   "ms": 184,
   "marches": {
    "code": "mirage",
    "k": 2,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ok",
      "fr": "11 trades sur la période jamais vue (il en faut 10).",
      "en": "11 trades on the period it never saw (10 needed)."
     },
     {
      "key": "detention",
      "state": "ko",
      "fr": "−7,8 % sur la période jamais vue : une perte, même si garder le BTC faisait −23,3 %.",
      "en": "−7.8% on the period it never saw: a loss, even though holding BTC made −23.3%."
     },
     {
      "key": "essais",
      "state": "ok",
      "fr": "Sharpe déflaté de l’entraînement : 99,9 % (il faut 95 %).",
      "en": "Training Deflated Sharpe: 99.9% (95% needed)."
     },
     {
      "key": "hasard",
      "state": "ko",
      "fr": "Sur 100 marchés tirés au hasard, 45 font aussi bien face à la détention (il en faut 5 au plus).",
      "en": "Out of 100 random markets, 45 do as well against holding (5 at most)."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 15.48,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 20.56,
     "pnlPct": -7.77,
     "startIndex": 2679,
     "trades": 11,
     "winRatePct": 27.27
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "2e7df2d84109a18e2283198b8d02cb99212a0afd92f53f0aeff8117dc0b8eada",
    "sealedTrades": [
     {
      "entry_index": 2680,
      "entry_price": 106133.74,
      "exit_index": 2686,
      "exit_price": 94881.47,
      "pnl_pct": -10.791370595250863,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2699,
      "entry_price": 98363.61,
      "exit_index": 2703,
      "exit_price": 92552.49,
      "pnl_pct": -6.101886764831012,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2709,
      "entry_price": 100497.35,
      "exit_index": 2729,
      "exit_price": 97763.14,
      "pnl_pct": -2.9179580257588946,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2809,
      "entry_price": 94638.68,
      "exit_index": 2850,
      "exit_price": 101508.69,
      "pnl_pct": 7.051939682590682,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2853,
      "entry_price": 105734.01,
      "exit_index": 2863,
      "exit_price": 104886.79,
      "pnl_pct": -1.0004735467802661,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2871,
      "entry_price": 106947.06,
      "exit_index": 2908,
      "exit_price": 112546.35,
      "pnl_pct": 5.030336121441774,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2915,
      "entry_price": 116462.25,
      "exit_index": 2925,
      "exit_price": 112872.95,
      "pnl_pct": -3.2788609184521187,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2952,
      "entry_price": 115349.71,
      "exit_index": 2961,
      "exit_price": 113307.01,
      "pnl_pct": -1.9691048378015097,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2968,
      "entry_price": 118594.99,
      "exit_index": 2979,
      "exit_price": 114958.81,
      "pnl_pct": -3.2629825256530722,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3166,
      "entry_price": 77072.01,
      "exit_index": 3198,
      "exit_price": 76834.36,
      "pnl_pct": -0.5080396501920661,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3291,
      "entry_price": 73027.02,
      "exit_index": 3346,
      "exit_price": 81682.02,
      "pnl_pct": 11.63992582471529,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "6acb3d6f130a367e5318511c2605dc75e059169fe949ea75aec0bd64b928436a",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.983635,
       "status": "complete",
       "trialSharpeVariance": 0.0003812428516965307,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 11,
      "events": 4,
      "maxHoldBars": 55,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 16.235375788232265,
     "observationStartIndex": 55,
     "observations": 2624,
     "skewness": 0.854701571366164,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 448,
      "consistentPValuePct": 44.8,
      "meanDifferentialPerBar": 8.418916765983677e-05,
      "observedTestStatistic": 0.115950791105,
      "receiptFingerprintSha256": "813f90ab870aedfe145c2a0bbeb473be88edefc30a157376f92681b910e2fac1",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 448,
         "lower95Pct": 42.177218,
         "simulations": 1000,
         "upper95Pct": 47.445522
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.06870457498542541
    },
    "train": {
     "firstTradableIndex": 54,
     "pnlPct": 3563.97,
     "sharpePerBar": 0.06870457,
     "trades": 32
    },
    "universeFingerprintSha256": "52d887e1d9dbae8f79144522583d4a9a2a8fc413e73f572fccb058563446d53d",
    "verdict": {
     "alphaPct": 5,
     "code": "mirage",
     "judgeMode": "free",
     "reasons": [
      "holdout_not_profitable"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "03-bollinger-reversion-20-2.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"Bollinger mean reversion 20/2\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\n[basis, upper, lower] = ta.bb(close, 20, 2.0)\nif close < lower\n    strategy.entry(\"Long\", strategy.long)\nif close > upper\n    strategy.close(\"Long\")",
   "pineSha256": "670a9918a5ae360fd2e899c8d11f140c15a0576e516f05f8f0cf26cd017c54b5",
   "ms": 142,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 8 trades sur la période jamais vue, il en faut 10.",
      "en": "Only 8 trades on the period it never saw, 10 are needed."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 18.99,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 39.44,
     "pnlPct": -4.26,
     "startIndex": 2679,
     "trades": 8,
     "winRatePct": 50
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "7098eff310209c2ef9a4cef5da7c8c790b2d43eb0c1ab924b4e8f8c4ee5e5ed3",
    "sealedTrades": [
     {
      "entry_index": 2729,
      "entry_price": 97763.14,
      "exit_index": 2806,
      "exit_price": 93442.99,
      "pnl_pct": -4.614577774404539,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2850,
      "entry_price": 101508.69,
      "exit_index": 2885,
      "exit_price": 116010.01,
      "pnl_pct": 14.071505897672399,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2906,
      "entry_price": 115764.07,
      "exit_index": 2919,
      "exit_price": 123306.44,
      "pnl_pct": 6.3087791315561,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2931,
      "entry_price": 110111.98,
      "exit_index": 2948,
      "exit_price": 115482.69,
      "pnl_pct": 4.6726208447073665,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2962,
      "entry_price": 108994.49,
      "exit_index": 2969,
      "exit_price": 120529.35,
      "pnl_pct": 10.372392365889322,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3002,
      "entry_price": 101497.23,
      "exit_index": 3061,
      "exit_price": 89995.14,
      "pnl_pct": -11.521085225675613,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3090,
      "entry_price": 78741.1,
      "exit_index": 3122,
      "exit_price": 72666.77,
      "pnl_pct": -7.90659245298834,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3201,
      "entry_price": 75539.5,
      "exit_index": 3261,
      "exit_price": 66556.15,
      "pnl_pct": -12.080362790328246,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "670a9918a5ae360fd2e899c8d11f140c15a0576e516f05f8f0cf26cd017c54b5",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 59.916943,
       "status": "complete",
       "trialSharpeVariance": 0.0003766478342749529,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 8,
      "events": 2,
      "maxHoldBars": 77,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 33.30540987633568,
     "observationStartIndex": 23,
     "observations": 2656,
     "skewness": -1.1094500707585775,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 363,
      "consistentPValuePct": 36.3,
      "meanDifferentialPerBar": 0.00021978972151808182,
      "observedTestStatistic": 0.371707136823,
      "receiptFingerprintSha256": "923718ae0c7f0660f708a9b7ba6c0caf427413a837ee97e7f204b6791edbe2bd",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 363,
         "lower95Pct": 33.781086,
         "simulations": 1000,
         "upper95Pct": 38.878874
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.004888774866476764
    },
    "train": {
     "firstTradableIndex": 19,
     "pnlPct": -43.25,
     "sharpePerBar": 0.00488877,
     "trades": 25
    },
    "universeFingerprintSha256": "ff0ababcb3d260be503e5f91f56ccf491ca368fbc2fcef6ff7af9a1c9dfdcd0e",
    "verdict": {
     "alphaPct": 5,
     "code": "insufficient_activity",
     "judgeMode": "free",
     "reasons": [
      "holdout_trades_below_10"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "04-macd-12-26-9.pine",
   "code": "mirage",
   "title": {
    "fr": "Pas de preuve d’avantage, pour l’instant",
    "en": "No evidence of an edge, for now"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✓, gain face à la détention ✗, essais comptés ✓, hasard ✗, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✓, gain vs holding ✗, trials counted ✓, chance ✗, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"MACD 12/26/9 signal cross\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\n[macdLine, signalLine, histogram] = ta.macd(close, 12, 26, 9)\nif ta.crossover(macdLine, signalLine)\n    strategy.entry(\"Long\", strategy.long)\nif ta.crossunder(macdLine, signalLine)\n    strategy.close(\"Long\")",
   "pineSha256": "1791aaa10eae25ff4b1c3702fa1db6979ce59afa6302fe291f6b70c7d1438105",
   "ms": 151,
   "marches": {
    "code": "mirage",
    "k": 2,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ok",
      "fr": "28 trades sur la période jamais vue (il en faut 10).",
      "en": "28 trades on the period it never saw (10 needed)."
     },
     {
      "key": "detention",
      "state": "ko",
      "fr": "−10,9 % sur la période jamais vue : une perte, même si garder le BTC faisait −23,3 %.",
      "en": "−10.9% on the period it never saw: a loss, even though holding BTC made −23.3%."
     },
     {
      "key": "essais",
      "state": "ok",
      "fr": "Sharpe déflaté de l’entraînement : 99,9 % (il faut 95 %).",
      "en": "Training Deflated Sharpe: 99.9% (95% needed)."
     },
     {
      "key": "hasard",
      "state": "ko",
      "fr": "Sur 100 marchés tirés au hasard, 45 font aussi bien face à la détention (il en faut 5 au plus).",
      "en": "Out of 100 random markets, 45 do as well against holding (5 at most)."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 12.31,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 28.09,
     "pnlPct": -10.94,
     "startIndex": 2679,
     "trades": 28,
     "winRatePct": 28.57
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "80be6d97893b2a214a1c068ef4c056a174762e8419d48c42dc5a8c65ca007040",
    "sealedTrades": [
     {
      "entry_index": 2699,
      "entry_price": 98363.61,
      "exit_index": 2703,
      "exit_price": 92552.49,
      "pnl_pct": -6.101886764831013,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2709,
      "entry_price": 100497.35,
      "exit_index": 2722,
      "exit_price": 101335.52,
      "pnl_pct": 0.6331879696330284,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2745,
      "entry_price": 98305.01,
      "exit_index": 2749,
      "exit_price": 91552.88,
      "pnl_pct": -7.0616827056932205,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2759,
      "entry_price": 89931.88,
      "exit_index": 2761,
      "exit_price": 86222.46,
      "pnl_pct": -4.320575017446536,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2768,
      "entry_price": 84338.44,
      "exit_index": 2790,
      "exit_price": 78430,
      "pnl_pct": -7.198625490345805,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2795,
      "entry_price": 83423.83,
      "exit_index": 2831,
      "exit_price": 103126.65,
      "pnl_pct": 23.394118347239623,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2832,
      "entry_price": 106454.27,
      "exit_index": 2833,
      "exit_price": 105573.73,
      "pnl_pct": -1.0263261398532988,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2835,
      "entry_price": 109643.99,
      "exit_index": 2838,
      "exit_price": 107761.9,
      "pnl_pct": -1.9148298871648237,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2855,
      "entry_price": 110274.39,
      "exit_index": 2857,
      "exit_price": 105671.74,
      "pnl_pct": -4.369642062857926,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2871,
      "entry_price": 106947.06,
      "exit_index": 2896,
      "exit_price": 117380.36,
      "pnl_pct": 9.545818819142857,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2897,
      "entry_price": 119954.43,
      "exit_index": 2898,
      "exit_price": 118756,
      "pnl_pct": -1.198071992839275,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2917,
      "entry_price": 118686,
      "exit_index": 2923,
      "exit_price": 117405.01,
      "pnl_pct": -1.2782308022850253,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2943,
      "entry_price": 110187.98,
      "exit_index": 2960,
      "exit_price": 111998.8,
      "pnl_pct": 1.4417482015733543,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2968,
      "entry_price": 118594.99,
      "exit_index": 2977,
      "exit_price": 112774.49,
      "pnl_pct": -5.102972292505779,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2993,
      "entry_price": 114559.41,
      "exit_index": 3001,
      "exit_price": 106583.05,
      "pnl_pct": -7.155677966567739,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3025,
      "entry_price": 91333.94,
      "exit_index": 3045,
      "exit_price": 86243.23,
      "pnl_pct": -5.768159317335927,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3048,
      "entry_price": 88360.91,
      "exit_index": 3079,
      "exit_price": 88427.66,
      "pnl_pct": -0.12453308821740294,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3105,
      "entry_price": 68832.59,
      "exit_index": 3140,
      "exit_price": 67859,
      "pnl_pct": -1.6130173076445278,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3143,
      "entry_price": 71336.53,
      "exit_index": 3144,
      "exit_price": 68820.31,
      "pnl_pct": -3.723725894713411,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3155,
      "entry_price": 68853.66,
      "exit_index": 3177,
      "exit_price": 76342.78,
      "pnl_pct": 10.665988648969417,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3183,
      "entry_price": 79861.01,
      "exit_index": 3191,
      "exit_price": 80504.47,
      "pnl_pct": 0.6049191213584781,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3223,
      "entry_price": 64458.01,
      "exit_index": 3237,
      "exit_price": 60029.01,
      "pnl_pct": -7.064268692129962,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3239,
      "entry_price": 60260.2,
      "exit_index": 3240,
      "exit_price": 58624.71,
      "pnl_pct": -2.9113327038410057,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3241,
      "entry_price": 60024,
      "exit_index": 3267,
      "exit_price": 63755.86,
      "pnl_pct": 6.011062475009997,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3278,
      "entry_price": 64923.2,
      "exit_index": 3282,
      "exit_price": 63600.01,
      "pnl_pct": -2.236046913892099,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3289,
      "entry_price": 64725.42,
      "exit_index": 3304,
      "exit_price": 77340.01,
      "pnl_pct": 19.269901330883595,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3305,
      "entry_price": 81270.37,
      "exit_index": 3306,
      "exit_price": 79660.77,
      "pnl_pct": -2.1785690652078875,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3323,
      "entry_price": 86620.01,
      "exit_index": 3331,
      "exit_price": 83663.66,
      "pnl_pct": -3.6095974475181793,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "1791aaa10eae25ff4b1c3702fa1db6979ce59afa6302fe291f6b70c7d1438105",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.949311,
       "status": "complete",
       "trialSharpeVariance": 0.00037893141341417203,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 28,
      "events": 1,
      "maxHoldBars": 36,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 13.315942200074845,
     "observationStartIndex": 39,
     "observations": 2640,
     "skewness": 1.1060086707708645,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 452,
      "consistentPValuePct": 45.2,
      "meanDifferentialPerBar": 7.274763961254714e-05,
      "observedTestStatistic": 0.11553109838,
      "receiptFingerprintSha256": "b3cdf34c4e294c6d3d84296588c1c90612e7f87442917cd9e3795dca33529ab4",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 452,
         "lower95Pct": 42.574257,
         "simulations": 1000,
         "upper95Pct": 47.846734
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.06213429691280955
    },
    "train": {
     "firstTradableIndex": 34,
     "pnlPct": 2663.41,
     "sharpePerBar": 0.0621343,
     "trades": 91
    },
    "universeFingerprintSha256": "413154f2d51b74ee0ae94233467354b15cba62b7a90ae82ac00cf065d9847b10",
    "verdict": {
     "alphaPct": 5,
     "code": "mirage",
     "judgeMode": "free",
     "reasons": [
      "holdout_not_profitable"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "05-supertrend-3-10.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"SuperTrend 3/10\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\n[trendLine, direction] = ta.supertrend(3, 10)\nif direction < 0\n    strategy.entry(\"Long\", strategy.long)\nif direction > 0\n    strategy.close(\"Long\")",
   "pineSha256": "e03e6336688b69b7e66d97384e819d6e9be9ffbfa000357a1373f297591f2323",
   "ms": 95,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 9 trades sur la période jamais vue, il en faut 10.",
      "en": "Only 9 trades on the period it never saw, 10 are needed."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": -6.7,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 46.08,
     "pnlPct": -29.95,
     "startIndex": 2679,
     "trades": 9,
     "winRatePct": 33.33
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "a471b969bd8e10459a3b66c411114ec99fd80d81ad5b368b0e478bf2b3f02322",
    "sealedTrades": [
     {
      "entry_index": 2680,
      "entry_price": 106133.74,
      "exit_index": 2686,
      "exit_price": 94881.47,
      "pnl_pct": -10.791370595250863,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2711,
      "entry_price": 104077.47,
      "exit_index": 2749,
      "exit_price": 91552.88,
      "pnl_pct": -12.22187698259767,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2755,
      "entry_price": 94269.99,
      "exit_index": 2763,
      "exit_price": 78595.86,
      "pnl_pct": -16.81022332769952,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2806,
      "entry_price": 93442.99,
      "exit_index": 2867,
      "exit_price": 100963.87,
      "pnl_pct": 7.840580807613273,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2884,
      "entry_price": 111234,
      "exit_index": 2927,
      "exit_price": 112500,
      "pnl_pct": 0.9370030745994931,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2968,
      "entry_price": 118594.99,
      "exit_index": 2977,
      "exit_price": 112774.49,
      "pnl_pct": -5.102972292505779,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3072,
      "entry_price": 95413.99,
      "exit_index": 3079,
      "exit_price": 88427.66,
      "pnl_pct": -7.514801183767707,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3122,
      "entry_price": 72666.77,
      "exit_index": 3147,
      "exit_price": 66010.93,
      "pnl_pct": -9.350240419382905,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3162,
      "entry_price": 74418,
      "exit_index": 3201,
      "exit_price": 75539.5,
      "pnl_pct": 1.305520841731839,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "e03e6336688b69b7e66d97384e819d6e9be9ffbfa000357a1373f297591f2323",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.869297,
       "status": "complete",
       "trialSharpeVariance": 0.0003766478342749529,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 9,
      "events": 2,
      "maxHoldBars": 61,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 13.269901130478562,
     "observationStartIndex": 23,
     "observations": 2656,
     "skewness": 0.7659362760078714,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 1000,
      "consistentPValuePct": 100,
      "meanDifferentialPerBar": -0.0002969902053938087,
      "observedTestStatistic": 0,
      "receiptFingerprintSha256": "bd18f877669867caf20fee5cb5e7cf35266eec17813c2a3960aa959a947cebe0",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 1000,
         "lower95Pct": 99.700875,
         "simulations": 1000,
         "upper95Pct": 100
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.05741519241324291
    },
    "train": {
     "firstTradableIndex": 10,
     "pnlPct": 1745.5,
     "sharpePerBar": 0.05741519,
     "trades": 30
    },
    "universeFingerprintSha256": "85b9015423ebfc62d086240f4c3d347e0a57811e6441d4fa8c4f30763939b4f8",
    "verdict": {
     "alphaPct": 5,
     "code": "insufficient_activity",
     "judgeMode": "free",
     "reasons": [
      "holdout_trades_below_10"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "06-stoch-rsi.pine",
   "code": "mirage",
   "title": {
    "fr": "Pas de preuve d’avantage, pour l’instant",
    "en": "No evidence of an edge, for now"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✓, gain face à la détention ✗, essais comptés ✗, hasard ✗, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✓, gain vs holding ✗, trials counted ✗, chance ✗, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"Stochastic RSI 14/14/3/3\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nrsiValue = ta.rsi(close, 14)\nk = ta.sma(ta.stoch(rsiValue, rsiValue, rsiValue, 14), 3)\nd = ta.sma(k, 3)\nif ta.crossover(k, d) and k < 20\n    strategy.entry(\"Long\", strategy.long)\nif ta.crossunder(k, d) and k > 80\n    strategy.close(\"Long\")",
   "pineSha256": "de800e3c81700ea424aef9506d84f56d681e392aa002edea5e2c23ad0ea47402",
   "ms": 172,
   "marches": {
    "code": "mirage",
    "k": 1,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ok",
      "fr": "14 trades sur la période jamais vue (il en faut 10).",
      "en": "14 trades on the period it never saw (10 needed)."
     },
     {
      "key": "detention",
      "state": "ko",
      "fr": "−13,6 % sur la période jamais vue : une perte, même si garder le BTC faisait −23,3 %.",
      "en": "−13.6% on the period it never saw: a loss, even though holding BTC made −23.3%."
     },
     {
      "key": "essais",
      "state": "ko",
      "fr": "Sharpe déflaté de l’entraînement : 83,6 % (il faut 95 %).",
      "en": "Training Deflated Sharpe: 83.6% (95% needed)."
     },
     {
      "key": "hasard",
      "state": "ko",
      "fr": "Sur 100 marchés tirés au hasard, 49 font aussi bien face à la détention (il en faut 5 au plus).",
      "en": "Out of 100 random markets, 49 do as well against holding (5 at most)."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 9.67,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 41.1,
     "pnlPct": -13.58,
     "startIndex": 2679,
     "trades": 14,
     "winRatePct": 57.14
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "c49478456b8a1a8d0b1dabc516de379465966fbbfa8953cda21ca4511c529e69",
    "sealedTrades": [
     {
      "entry_index": 2687,
      "entry_price": 98663.58,
      "exit_index": 2713,
      "exit_price": 101331.57,
      "pnl_pct": 2.5014243857763985,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2728,
      "entry_price": 101328.51,
      "exit_index": 2780,
      "exit_price": 87232.01,
      "pnl_pct": -14.0977702326818,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2841,
      "entry_price": 108938.17,
      "exit_index": 2875,
      "exit_price": 107146.51,
      "pnl_pct": -1.8430130412508339,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2902,
      "entry_price": 119415.56,
      "exit_index": 2920,
      "exit_price": 118295.09,
      "pnl_pct": -1.1373565136737636,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2928,
      "entry_price": 116936,
      "exit_index": 2951,
      "exit_price": 115268.01,
      "pnl_pct": -1.6249863258534631,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2963,
      "entry_price": 109643.46,
      "exit_index": 2974,
      "exit_price": 121332.96,
      "pnl_pct": 10.450713229954617,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2986,
      "entry_price": 108642.77,
      "exit_index": 2995,
      "exit_price": 112898.44,
      "pnl_pct": 3.7132050204537297,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3021,
      "entry_price": 86830,
      "exit_index": 3028,
      "exit_price": 90360.01,
      "pnl_pct": 3.8613612691466024,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3081,
      "entry_price": 89559.68,
      "exit_index": 3107,
      "exit_price": 67503.52,
      "pnl_pct": -24.80270496723524,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3148,
      "entry_price": 66797.38,
      "exit_index": 3161,
      "exit_price": 70741.56,
      "pnl_pct": 5.698787976414633,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3199,
      "entry_price": 77552.24,
      "exit_index": 3227,
      "exit_price": 64509.4,
      "pnl_pct": -17.001316325614845,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3238,
      "entry_price": 59577.01,
      "exit_index": 3247,
      "exit_price": 63364,
      "pnl_pct": 6.150105535675587,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3270,
      "entry_price": 64780.03,
      "exit_index": 3293,
      "exit_price": 77074.94,
      "pnl_pct": 18.760496143641802,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3306,
      "entry_price": 79660.77,
      "exit_index": 3325,
      "exit_price": 84397.6,
      "pnl_pct": 5.740305585798382,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "de800e3c81700ea424aef9506d84f56d681e392aa002edea5e2c23ad0ea47402",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 83.627608,
       "status": "complete",
       "trialSharpeVariance": 0.00037893141341417203,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 14,
      "events": 3,
      "maxHoldBars": 52,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 27.05959123138588,
     "observationStartIndex": 39,
     "observations": 2640,
     "skewness": -1.0382349530884232,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 494,
      "consistentPValuePct": 49.4,
      "meanDifferentialPerBar": 6.080860991723982e-05,
      "observedTestStatistic": 0.105740138353,
      "receiptFingerprintSha256": "ce5ca56687675dc809f73485d68304fe7eecab553af9512f4b800cf37e5da480",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 494,
         "lower95Pct": 46.753272,
         "simulations": 1000,
         "upper95Pct": 52.049352
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.019275205153341423
    },
    "train": {
     "firstTradableIndex": 32,
     "pnlPct": 44.8,
     "sharpePerBar": 0.01927521,
     "trades": 52
    },
    "universeFingerprintSha256": "777c15acf139ac2358ad2e9ee7dc6da5b10349c57057b483fe129a4d1cc5f20b",
    "verdict": {
     "alphaPct": 5,
     "code": "mirage",
     "judgeMode": "free",
     "reasons": [
      "holdout_not_profitable"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "07-atr-breakout.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"ATR breakout 20 with 2 ATR stop\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\natrValue = ta.atr(14)\npriorHigh = ta.highest(high, 20)[1]\natrAverage = ta.sma(atrValue, 20)\nvar float stopPrice = na\nif strategy.position_size == 0\n    stopPrice := na\n    if close > priorHigh and atrValue > atrAverage\n        stopPrice := close - 2 * atrValue\n        strategy.entry(\"Long\", strategy.long)\nif not na(stopPrice)\n    strategy.exit(\"ATR stop\", \"Long\", stop=stopPrice)",
   "pineSha256": "bebef56f4e32209db045ad8b1f382210978dcdb4c1f973bbacc02c32aac93d60",
   "ms": 9,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 8 trades sur la période d’entraînement, il en faut 10 pour ouvrir la période scellée.",
      "en": "Only 8 trades on the training period, 10 are needed to open the sealed period."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : le juge s’est arrêté avant.",
      "en": "Not judged: the judge stopped before."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : le juge s’est arrêté avant.",
      "en": "Not judged: the judge stopped before."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : le juge s’est arrêté avant.",
      "en": "Not judged: the judge stopped before."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": null,
   "engine": {
    "error": {
     "code": "proof.training_activity_insufficient",
     "details": {
      "fixedRuleRegistered": false,
      "minTrainTrades": 10,
      "researchJournal": "training-activity-refusals-246d.jsonl",
      "testPeriodOpened": false,
      "trainTrades": 8
     },
     "field": "script",
     "message": "The training winner made 8 trades on the training part (at least 10 are needed to judge it): the test period was not opened and nothing was counted as an opening or a fixed rule. Select a longer window, a smaller holdoutPercent, or a rule that trades more."
    },
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_EXIT_UNVERIFIED",
       "message": "This script has strategy.exit and fills at the next open. The Lab arms its stop and target on the fill bar; that timing has not been checked against TradingView for a level computed from strategy.position_avg_price.",
       "messageFr": "Ce script a un strategy.exit et s'exécute à l'ouverture suivante. La Lab arme son stop et son objectif dès la barre d'exécution ; ce moment n'a pas été contrôlé sur TradingView pour un niveau calculé depuis strategy.position_avg_price."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_EXIT_UNVERIFIED",
       "message": "This script has strategy.exit and fills at the next open. The Lab arms its stop and target on the fill bar; that timing has not been checked against TradingView for a level computed from strategy.position_avg_price.",
       "messageFr": "Ce script a un strategy.exit et s'exécute à l'ouverture suivante. La Lab arme son stop et son objectif dès la barre d'exécution ; ce moment n'a pas été contrôlé sur TradingView pour un niveau calculé depuis strategy.position_avg_price."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "feeBps": 10,
    "ok": false,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "8098bda048f80ac2b7a94d6348b2ab18a3b823967ca62edda79a5292083315e6",
    "sourceSha256": "bebef56f4e32209db045ad8b1f382210978dcdb4c1f973bbacc02c32aac93d60",
    "stage": "proof"
   }
  },
  {
   "group": "classic",
   "file": "08-ema-cross-12-26.pine",
   "code": "inconclusive",
   "title": {
    "fr": "Pas encore de preuve d’avantage : 3 marches sur 4 franchies",
    "en": "No evidence of an edge yet: 3 of 4 steps passed"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✓, gain face à la détention ✓, essais comptés ✓, hasard ✗, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✓, gain vs holding ✓, trials counted ✓, chance ✗, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"EMA cross 12/26\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nfast = ta.ema(close, 12)\nslow = ta.ema(close, 26)\nif ta.crossover(fast, slow)\n    strategy.entry(\"Long\", strategy.long)\nif ta.crossunder(fast, slow)\n    strategy.close(\"Long\")",
   "pineSha256": "e874c7643099bf783638eaa81eed71b7e684dc8bb5a07687361b0e10d7a349bd",
   "ms": 124,
   "marches": {
    "code": "inconclusive",
    "k": 3,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ok",
      "fr": "12 trades sur la période jamais vue (il en faut 10).",
      "en": "12 trades on the period it never saw (10 needed)."
     },
     {
      "key": "detention",
      "state": "ok",
      "fr": "+1,5 % sur la période jamais vue, quand garder le BTC faisait −23,3 %.",
      "en": "+1.5% on the period it never saw, while holding BTC made −23.3%."
     },
     {
      "key": "essais",
      "state": "ok",
      "fr": "Sharpe déflaté de l’entraînement : 99,9 % (il faut 95 %).",
      "en": "Training Deflated Sharpe: 99.9% (95% needed)."
     },
     {
      "key": "hasard",
      "state": "ko",
      "fr": "Sur 100 marchés tirés au hasard, 35 font aussi bien face à la détention (il en faut 5 au plus).",
      "en": "Out of 100 random markets, 35 do as well against holding (5 at most)."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 24.71,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 31.87,
     "pnlPct": 1.46,
     "startIndex": 2679,
     "trades": 12,
     "winRatePct": 25
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "735e72798d5ff15c2bb6bac7f88cb03de8dcb0e03ee60ae26e50d4c5aa93e71e",
    "sealedTrades": [
     {
      "entry_index": 2699,
      "entry_price": 98363.61,
      "exit_index": 2703,
      "exit_price": 92552.49,
      "pnl_pct": -6.101886764831013,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2710,
      "entry_price": 99987.3,
      "exit_index": 2730,
      "exit_price": 96612.44,
      "pnl_pct": -3.5719133729983708,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2803,
      "entry_price": 85077,
      "exit_index": 2866,
      "exit_price": 102120.02,
      "pnl_pct": 19.812432243732154,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2870,
      "entry_price": 107340.59,
      "exit_index": 2926,
      "exit_price": 114271.23,
      "pnl_pct": 6.250224803124335,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2950,
      "entry_price": 115918.29,
      "exit_index": 2962,
      "exit_price": 108994.49,
      "pnl_pct": -6.167027463914444,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2968,
      "entry_price": 118594.99,
      "exit_index": 2982,
      "exit_price": 110763.28,
      "pnl_pct": -6.797140646497804,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3064,
      "entry_price": 93859.71,
      "exit_index": 3083,
      "exit_price": 89225.34,
      "pnl_pct": -5.132612331744909,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3133,
      "entry_price": 72815.25,
      "exit_index": 3140,
      "exit_price": 67859,
      "pnl_pct": -6.999803269232749,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3141,
      "entry_price": 70906.45,
      "exit_index": 3144,
      "exit_price": 68820.31,
      "pnl_pct": -3.139159780245661,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3158,
      "entry_price": 71787.98,
      "exit_index": 3201,
      "exit_price": 75539.5,
      "pnl_pct": 5.020607238147673,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3255,
      "entry_price": 64756.28,
      "exit_index": 3272,
      "exit_price": 62823.65,
      "pnl_pct": -3.1814828306999687,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3277,
      "entry_price": 64323.61,
      "exit_index": 3283,
      "exit_price": 63479.99,
      "pnl_pct": -1.5102131239213759,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "e874c7643099bf783638eaa81eed71b7e684dc8bb5a07687361b0e10d7a349bd",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.990436,
       "status": "complete",
       "trialSharpeVariance": 0.00037893141341417203,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 12,
      "events": 3,
      "maxHoldBars": 63,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 12.687933999666784,
     "observationStartIndex": 39,
     "observations": 2640,
     "skewness": 0.7263765810675574,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 349,
      "consistentPValuePct": 34.9,
      "meanDifferentialPerBar": 0.00024791764960281886,
      "observedTestStatistic": 0.37278350881,
      "receiptFingerprintSha256": "8429993ceb973e0ff89c545b5f6ec5db4f3c6d97ba3c185f5500732d3340a3e1",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 349,
         "lower95Pct": 32.406016,
         "simulations": 1000,
         "upper95Pct": 37.460086
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.07126059242893344
    },
    "train": {
     "firstTradableIndex": 26,
     "pnlPct": 5708.64,
     "sharpePerBar": 0.07126059,
     "trades": 36
    },
    "universeFingerprintSha256": "b8f4c8c6a3f6590bceb1751a098049aec35a694ed0739c33de554a441698522e",
    "verdict": {
     "alphaPct": 5,
     "code": "inconclusive",
     "judgeMode": "free",
     "reasons": [
      "spa_test_not_significant"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "09-rsi-pullback-ema200.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"RSI pullback above EMA 200, 3% stop\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\ntrend = ta.ema(close, 200)\nrsi = ta.rsi(close, 14)\nif close > trend and ta.crossover(rsi, 30) and strategy.position_size == 0\n    strategy.entry(\"Long\", strategy.long)\n    strategy.exit(\"Stop\", \"Long\", stop=close * 0.97)\nif rsi > 70\n    strategy.close(\"Long\")",
   "pineSha256": "0feb96f41fbfe4fd980f7c15fe7d10b4ea051fb82065e82730ae3f1af071aa0b",
   "ms": 9,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 3 trades sur la période d’entraînement, il en faut 10 pour ouvrir la période scellée.",
      "en": "Only 3 trades on the training period, 10 are needed to open the sealed period."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : le juge s’est arrêté avant.",
      "en": "Not judged: the judge stopped before."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : le juge s’est arrêté avant.",
      "en": "Not judged: the judge stopped before."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : le juge s’est arrêté avant.",
      "en": "Not judged: the judge stopped before."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": null,
   "engine": {
    "error": {
     "code": "proof.training_activity_insufficient",
     "details": {
      "fixedRuleRegistered": false,
      "minTrainTrades": 10,
      "researchJournal": "training-activity-refusals-246d.jsonl",
      "testPeriodOpened": false,
      "trainTrades": 3
     },
     "field": "script",
     "message": "The training winner made 3 trades on the training part (at least 10 are needed to judge it): the test period was not opened and nothing was counted as an opening or a fixed rule. Select a longer window, a smaller holdoutPercent, or a rule that trades more."
    },
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_EXIT_UNVERIFIED",
       "message": "This script has strategy.exit and fills at the next open. The Lab arms its stop and target on the fill bar; that timing has not been checked against TradingView for a level computed from strategy.position_avg_price.",
       "messageFr": "Ce script a un strategy.exit et s'exécute à l'ouverture suivante. La Lab arme son stop et son objectif dès la barre d'exécution ; ce moment n'a pas été contrôlé sur TradingView pour un niveau calculé depuis strategy.position_avg_price."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_EXIT_UNVERIFIED",
       "message": "This script has strategy.exit and fills at the next open. The Lab arms its stop and target on the fill bar; that timing has not been checked against TradingView for a level computed from strategy.position_avg_price.",
       "messageFr": "Ce script a un strategy.exit et s'exécute à l'ouverture suivante. La Lab arme son stop et son objectif dès la barre d'exécution ; ce moment n'a pas été contrôlé sur TradingView pour un niveau calculé depuis strategy.position_avg_price."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "feeBps": 10,
    "ok": false,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "7173a62f7c9a034500813f93b9c59888c89a333f0a656ea3b1c51b9b7e88986a",
    "sourceSha256": "0feb96f41fbfe4fd980f7c15fe7d10b4ea051fb82065e82730ae3f1af071aa0b",
    "stage": "proof"
   }
  },
  {
   "group": "classic",
   "file": "10-donchian-20-atr-stop-target.pine",
   "code": "inconclusive",
   "title": {
    "fr": "Pas encore de preuve d’avantage : 2 marches sur 4 franchies",
    "en": "No evidence of an edge yet: 2 of 4 steps passed"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✓, gain face à la détention ✓, essais comptés ✗, hasard ✗, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✓, gain vs holding ✓, trials counted ✗, chance ✗, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"Donchian 20 breakout, ATR stop and target\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nupper = ta.highest(high, 20)[1]\natr = ta.atr(14)\nif close > upper and strategy.position_size == 0\n    strategy.entry(\"Long\", strategy.long)\n    strategy.exit(\"ATR exit\", \"Long\", stop=close - 2 * atr, limit=close + 3 * atr)",
   "pineSha256": "84c4df50f09089a1205841c340ec5853532badd535e6eac594066b33dc67b1f8",
   "ms": 99,
   "marches": {
    "code": "inconclusive",
    "k": 2,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ok",
      "fr": "13 trades sur la période jamais vue (il en faut 10).",
      "en": "13 trades on the period it never saw (10 needed)."
     },
     {
      "key": "detention",
      "state": "ok",
      "fr": "+33,8 % sur la période jamais vue, quand garder le BTC faisait −23,3 %.",
      "en": "+33.8% on the period it never saw, while holding BTC made −23.3%."
     },
     {
      "key": "essais",
      "state": "ko",
      "fr": "Sharpe déflaté de l’entraînement : 83,5 % (il faut 95 %).",
      "en": "Training Deflated Sharpe: 83.5% (95% needed)."
     },
     {
      "key": "hasard",
      "state": "ko",
      "fr": "Sur 100 marchés tirés au hasard, 19 font aussi bien face à la détention (il en faut 5 au plus).",
      "en": "Out of 100 random markets, 19 do as well against holding (5 at most)."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_EXIT_UNVERIFIED",
       "message": "This script has strategy.exit and fills at the next open. The Lab arms its stop and target on the fill bar; that timing has not been checked against TradingView for a level computed from strategy.position_avg_price.",
       "messageFr": "Ce script a un strategy.exit et s'exécute à l'ouverture suivante. La Lab arme son stop et son objectif dès la barre d'exécution ; ce moment n'a pas été contrôlé sur TradingView pour un niveau calculé depuis strategy.position_avg_price."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_EXIT_UNVERIFIED",
       "message": "This script has strategy.exit and fills at the next open. The Lab arms its stop and target on the fill bar; that timing has not been checked against TradingView for a level computed from strategy.position_avg_price.",
       "messageFr": "Ce script a un strategy.exit et s'exécute à l'ouverture suivante. La Lab arme son stop et son objectif dès la barre d'exécution ; ce moment n'a pas été contrôlé sur TradingView pour un niveau calculé depuis strategy.position_avg_price."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 57.04,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 20.6,
     "pnlPct": 33.79,
     "startIndex": 2679,
     "trades": 13,
     "winRatePct": 61.54
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "6487378e2382de2b6b6af81071ffbf3c5c905f94a60cadd5ed6253852f485f06",
    "sealedTrades": [
     {
      "entry_index": 2711,
      "entry_price": 104077.47,
      "exit_index": 2726,
      "exit_price": 96400.68401879241,
      "pnl_pct": -7.568654517857115,
      "reason": "stop_loss",
      "side": "long"
     },
     {
      "entry_index": 2806,
      "entry_price": 93442.99,
      "exit_index": 2821,
      "exit_price": 103711.10737652403,
      "pnl_pct": 10.777655208964845,
      "reason": "take_profit",
      "side": "long"
     },
     {
      "entry_index": 2822,
      "entry_price": 103261.61,
      "exit_index": 2884,
      "exit_price": 112085.40763485177,
      "pnl_pct": 8.336545030836648,
      "reason": "take_profit",
      "side": "long"
     },
     {
      "entry_index": 2885,
      "entry_price": 116010.01,
      "exit_index": 2919,
      "exit_price": 124358.91111095829,
      "pnl_pct": 6.989510810185548,
      "reason": "take_profit",
      "side": "long"
     },
     {
      "entry_index": 2953,
      "entry_price": 116788.96,
      "exit_index": 2958,
      "exit_price": 111941.35792865303,
      "pnl_pct": -4.346585832492754,
      "reason": "stop_loss",
      "side": "long"
     },
     {
      "entry_index": 2968,
      "entry_price": 118594.99,
      "exit_index": 2972,
      "exit_price": 126172.2656426676,
      "pnl_pct": 6.1828146256641405,
      "reason": "take_profit",
      "side": "long"
     },
     {
      "entry_index": 3063,
      "entry_price": 91529.74,
      "exit_index": 3083,
      "exit_price": 86663.28567240693,
      "pnl_pct": -5.511484412897365,
      "reason": "stop_loss",
      "side": "long"
     },
     {
      "entry_index": 3122,
      "entry_price": 72666.77,
      "exit_index": 3146,
      "exit_price": 65348.54621741775,
      "pnl_pct": -10.26086490262285,
      "reason": "stop_loss",
      "side": "long"
     },
     {
      "entry_index": 3162,
      "entry_price": 74418,
      "exit_index": 3184,
      "exit_price": 82210.44071725894,
      "pnl_pct": 10.260706114840069,
      "reason": "take_profit",
      "side": "long"
     },
     {
      "entry_index": 3254,
      "entry_price": 65043.99,
      "exit_index": 3290,
      "exit_price": 71186.83000136616,
      "pnl_pct": 9.234687449777914,
      "reason": "take_profit",
      "side": "long"
     },
     {
      "entry_index": 3291,
      "entry_price": 73027.02,
      "exit_index": 3291,
      "exit_price": 78393.98728898677,
      "pnl_pct": 7.141940451216246,
      "reason": "take_profit",
      "side": "long"
     },
     {
      "entry_index": 3292,
      "entry_price": 78338.03,
      "exit_index": 3322,
      "exit_price": 84710.84676834485,
      "pnl_pct": 7.926887989877344,
      "reason": "take_profit",
      "side": "long"
     },
     {
      "entry_index": 3323,
      "entry_price": 86620.01,
      "exit_index": 3339,
      "exit_price": 81599.48404998542,
      "pnl_pct": -5.990238795937061,
      "reason": "stop_loss",
      "side": "long"
     }
    ],
    "sourceSha256": "84c4df50f09089a1205841c340ec5853532badd535e6eac594066b33dc67b1f8",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 83.522187,
       "status": "complete",
       "trialSharpeVariance": 0.0003766478342749529,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 13,
      "events": 4,
      "maxHoldBars": 62,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 23.556876027297083,
     "observationStartIndex": 23,
     "observations": 2656,
     "skewness": 0.46932333231799456,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 191,
      "consistentPValuePct": 19.1,
      "meanDifferentialPerBar": 0.0006446463031255225,
      "observedTestStatistic": 0.917454703652,
      "receiptFingerprintSha256": "16521a2ee76f1f30f014a9fd34bea9a0a47f4ccb744b922aee0e3fc337c03659",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 191,
         "lower95Pct": 17.074682,
         "simulations": 1000,
         "upper95Pct": 21.261292
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.01885751650442481
    },
    "train": {
     "firstTradableIndex": 20,
     "pnlPct": 60.43,
     "sharpePerBar": 0.01885752,
     "trades": 92
    },
    "universeFingerprintSha256": "626d61e32daf6c31d32787e581f3a892b1e46576c7a4c450c3b103ad08610215",
    "verdict": {
     "alphaPct": 5,
     "code": "inconclusive",
     "judgeMode": "free",
     "reasons": [
      "spa_test_not_significant",
      "dsr_below_95"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "11-golden-cross-50-200.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"Golden cross SMA 50/200\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nfast = ta.sma(close, 50)\nslow = ta.sma(close, 200)\nif ta.crossover(fast, slow)\n    strategy.entry(\"Long\", strategy.long)\nif ta.crossunder(fast, slow)\n    strategy.close(\"Long\")",
   "pineSha256": "a4281e8c0bb16f39831bfa8345b6873ed3ab5550b057956b65b04901abe03341",
   "ms": 8,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 6 trades sur la période d’entraînement, il en faut 10 pour ouvrir la période scellée.",
      "en": "Only 6 trades on the training period, 10 are needed to open the sealed period."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : le juge s’est arrêté avant.",
      "en": "Not judged: the judge stopped before."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : le juge s’est arrêté avant.",
      "en": "Not judged: the judge stopped before."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : le juge s’est arrêté avant.",
      "en": "Not judged: the judge stopped before."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": null,
   "engine": {
    "error": {
     "code": "proof.training_activity_insufficient",
     "details": {
      "fixedRuleRegistered": false,
      "minTrainTrades": 10,
      "researchJournal": "training-activity-refusals-246d.jsonl",
      "testPeriodOpened": false,
      "trainTrades": 6
     },
     "field": "script",
     "message": "The training winner made 6 trades on the training part (at least 10 are needed to judge it): the test period was not opened and nothing was counted as an opening or a fixed rule. Select a longer window, a smaller holdoutPercent, or a rule that trades more."
    },
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "feeBps": 10,
    "ok": false,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "66f993e1038ccef9d595a61162ba4837d6557f96a04e0b61a2a269f985db4d76",
    "sourceSha256": "a4281e8c0bb16f39831bfa8345b6873ed3ab5550b057956b65b04901abe03341",
    "stage": "proof"
   }
  },
  {
   "group": "classic",
   "file": "12-sma-cross-20-50.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"SMA cross 20/50\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nfast = ta.sma(close, 20)\nslow = ta.sma(close, 50)\nif ta.crossover(fast, slow)\n    strategy.entry(\"Long\", strategy.long)\nif ta.crossunder(fast, slow)\n    strategy.close(\"Long\")",
   "pineSha256": "d215a9c01ddcc61777f4d82017b00c47837fc3eed119dfddfdfca2e2c6562b90",
   "ms": 110,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 7 trades sur la période jamais vue, il en faut 10.",
      "en": "Only 7 trades on the period it never saw, 10 are needed."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 34.72,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 28.83,
     "pnlPct": 11.47,
     "startIndex": 2679,
     "trades": 7,
     "winRatePct": 57.14
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "a9e25e1e4fdea2cf5d37a1a07f61e13f3a84d1084e4a210e4f66b92202d5523c",
    "sealedTrades": [
     {
      "entry_index": 2715,
      "entry_price": 106143.82,
      "exit_index": 2741,
      "exit_price": 96118.12,
      "pnl_pct": -9.635946718329915,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2808,
      "entry_price": 93980.47,
      "exit_index": 2874,
      "exit_price": 108356.93,
      "pnl_pct": 15.081987353329893,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2883,
      "entry_price": 108922.99,
      "exit_index": 2931,
      "exit_price": 110111.98,
      "pnl_pct": 0.8904961477829342,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2964,
      "entry_price": 109635.85,
      "exit_index": 2990,
      "exit_price": 110078.19,
      "pnl_pct": 0.20305945546096144,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3067,
      "entry_price": 91100,
      "exit_index": 3092,
      "exit_price": 78738.6,
      "pnl_pct": -13.755475960482979,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3138,
      "entry_price": 70510.73,
      "exit_index": 3155,
      "exit_price": 68853.66,
      "pnl_pct": -2.5477461231786886,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3160,
      "entry_price": 73043.16,
      "exit_index": 3209,
      "exit_price": 73884.38,
      "pnl_pct": 0.950523580852747,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "d215a9c01ddcc61777f4d82017b00c47837fc3eed119dfddfdfca2e2c6562b90",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.667934,
       "status": "complete",
       "trialSharpeVariance": 0.0003812428516965307,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 7,
      "events": 3,
      "maxHoldBars": 66,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 13.184637943445566,
     "observationStartIndex": 55,
     "observations": 2624,
     "skewness": 0.632186413524965,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 264,
      "consistentPValuePct": 26.4,
      "meanDifferentialPerBar": 0.0003964495460296533,
      "observedTestStatistic": 0.631689117935,
      "receiptFingerprintSha256": "0680aaece73bee2ba4fbe1fd78c119bf751ef242122c3ecfbefeedea79137438",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 264,
         "lower95Pct": 24.110836,
         "simulations": 1000,
         "upper95Pct": 28.792682
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.052338403202631445
    },
    "train": {
     "firstTradableIndex": 50,
     "pnlPct": 1477.29,
     "sharpePerBar": 0.0523384,
     "trades": 28
    },
    "universeFingerprintSha256": "1995b5975a76a1854697e7a05bd90cc0e8f37e2363c286288dffbda49768af88",
    "verdict": {
     "alphaPct": 5,
     "code": "insufficient_activity",
     "judgeMode": "free",
     "reasons": [
      "holdout_trades_below_10"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "13-ema-cross-9-21.pine",
   "code": "inconclusive",
   "title": {
    "fr": "Pas encore de preuve d’avantage : 3 marches sur 4 franchies",
    "en": "No evidence of an edge yet: 3 of 4 steps passed"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✓, gain face à la détention ✓, essais comptés ✓, hasard ✗, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✓, gain vs holding ✓, trials counted ✓, chance ✗, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"EMA cross 9/21\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nfast = ta.ema(close, 9)\nslow = ta.ema(close, 21)\nif ta.crossover(fast, slow)\n    strategy.entry(\"Long\", strategy.long)\nif ta.crossunder(fast, slow)\n    strategy.close(\"Long\")",
   "pineSha256": "255326f5b419b4cb4b35663030460678dbbad6ac002e700d8ff4a99bfe3bf94a",
   "ms": 131,
   "marches": {
    "code": "inconclusive",
    "k": 3,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ok",
      "fr": "16 trades sur la période jamais vue (il en faut 10).",
      "en": "16 trades on the period it never saw (10 needed)."
     },
     {
      "key": "detention",
      "state": "ok",
      "fr": "+2,9 % sur la période jamais vue, quand garder le BTC faisait −23,3 %.",
      "en": "+2.9% on the period it never saw, while holding BTC made −23.3%."
     },
     {
      "key": "essais",
      "state": "ok",
      "fr": "Sharpe déflaté de l’entraînement : 99,9 % (il faut 95 %).",
      "en": "Training Deflated Sharpe: 99.9% (95% needed)."
     },
     {
      "key": "hasard",
      "state": "ko",
      "fr": "Sur 100 marchés tirés au hasard, 36 font aussi bien face à la détention (il en faut 5 au plus).",
      "en": "Out of 100 random markets, 36 do as well against holding (5 at most)."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 26.12,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 24.65,
     "pnlPct": 2.87,
     "startIndex": 2679,
     "trades": 16,
     "winRatePct": 25
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "77c70794d92517f4d259f1da0ef67934c5c84e38ae44b454edaabe2ed94d594a",
    "sealedTrades": [
     {
      "entry_index": 2688,
      "entry_price": 99429.61,
      "exit_index": 2689,
      "exit_price": 95791.6,
      "pnl_pct": -3.8552210050909324,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2700,
      "entry_price": 102235.6,
      "exit_index": 2703,
      "exit_price": 92552.49,
      "pnl_pct": -9.661896726776192,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2709,
      "entry_price": 100497.35,
      "exit_index": 2729,
      "exit_price": 97763.14,
      "pnl_pct": -2.917958025758894,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2780,
      "entry_price": 87232.01,
      "exit_index": 2781,
      "exit_price": 84424.38,
      "pnl_pct": -3.415359098110878,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2800,
      "entry_price": 84030.38,
      "exit_index": 2851,
      "exit_price": 104288.43,
      "pnl_pct": 23.883899120770355,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2852,
      "entry_price": 105552.15,
      "exit_index": 2863,
      "exit_price": 104886.79,
      "pnl_pct": -0.8297310286905578,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2871,
      "entry_price": 106947.06,
      "exit_index": 2908,
      "exit_price": 112546.35,
      "pnl_pct": 5.030336121441776,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2915,
      "entry_price": 116462.25,
      "exit_index": 2925,
      "exit_price": 112872.95,
      "pnl_pct": -3.2788609184521187,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2948,
      "entry_price": 115482.69,
      "exit_index": 2962,
      "exit_price": 108994.49,
      "pnl_pct": -5.8127128663178835,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2968,
      "entry_price": 118594.99,
      "exit_index": 2980,
      "exit_price": 115166,
      "pnl_pct": -3.0884533908219947,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3062,
      "entry_price": 90628.01,
      "exit_index": 3081,
      "exit_price": 89559.68,
      "pnl_pct": -1.3776289361313372,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3130,
      "entry_price": 70541.34,
      "exit_index": 3145,
      "exit_price": 66407.28,
      "pnl_pct": -6.054617930422073,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3156,
      "entry_price": 71924.22,
      "exit_index": 3198,
      "exit_price": 76834.36,
      "pnl_pct": 6.619997297155256,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3250,
      "entry_price": 64161.72,
      "exit_index": 3271,
      "exit_price": 62887.88,
      "pnl_pct": -2.1833728896295233,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3278,
      "entry_price": 64923.2,
      "exit_index": 3283,
      "exit_price": 63479.99,
      "pnl_pct": -2.4207266277694246,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3290,
      "entry_price": 69334.78,
      "exit_index": 3346,
      "exit_price": 81682.02,
      "pnl_pct": 17.590339509262172,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "255326f5b419b4cb4b35663030460678dbbad6ac002e700d8ff4a99bfe3bf94a",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.9779,
       "status": "complete",
       "trialSharpeVariance": 0.0003766478342749529,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 16,
      "events": 2,
      "maxHoldBars": 56,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 12.874603338519732,
     "observationStartIndex": 23,
     "observations": 2656,
     "skewness": 0.6532214226678199,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 364,
      "consistentPValuePct": 36.4,
      "meanDifferentialPerBar": 0.0002724326353632117,
      "observedTestStatistic": 0.410732571742,
      "receiptFingerprintSha256": "8c1c0ed1f36c0790eee9c057bd808df9b80e3dddbcb7127116d08795766bbc25",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 364,
         "lower95Pct": 33.879394,
         "simulations": 1000,
         "upper95Pct": 38.980128
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.06714355860731329
    },
    "train": {
     "firstTradableIndex": 21,
     "pnlPct": 4203.84,
     "sharpePerBar": 0.06714356,
     "trades": 49
    },
    "universeFingerprintSha256": "5104e654739feff30a2e0a81050dadb9351b49d20baaf6fbc92508f181f97a7e",
    "verdict": {
     "alphaPct": 5,
     "code": "inconclusive",
     "judgeMode": "free",
     "reasons": [
      "spa_test_not_significant"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "14-trend-filter-sma200.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"200-day SMA trend filter\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\ntrend = ta.sma(close, 200)\nif close > trend\n    strategy.entry(\"Long\", strategy.long)\nif close < trend\n    strategy.close(\"Long\")",
   "pineSha256": "4202a403d76ab3e015ff73cccd9fe8c7e14d5640565c8af1d018f6b547213b4e",
   "ms": 148,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 9 trades sur la période jamais vue, il en faut 10.",
      "en": "Only 9 trades on the period it never saw, 10 are needed."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 9.19,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 31.73,
     "pnlPct": -14.06,
     "startIndex": 2679,
     "trades": 9,
     "winRatePct": 11.11
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "bfb059bc820d31eb3f73c804c4f7c9d6dbf6bd9d5663563ab2cf1e3fd71e4ae8",
    "sealedTrades": [
     {
      "entry_index": 2680,
      "entry_price": 106133.74,
      "exit_index": 2762,
      "exit_price": 80734.48,
      "pnl_pct": -24.107440499128753,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2765,
      "entry_price": 83680.12,
      "exit_index": 2766,
      "exit_price": 81115.78,
      "pnl_pct": -3.2613909970492356,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2767,
      "entry_price": 83983.19,
      "exit_index": 2769,
      "exit_price": 82574.52,
      "pnl_pct": -1.875646435911756,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2772,
      "entry_price": 86845.93,
      "exit_index": 2773,
      "exit_price": 84223.38,
      "pnl_pct": -3.216753289417234,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2776,
      "entry_price": 86082.5,
      "exit_index": 2781,
      "exit_price": 84424.38,
      "pnl_pct": -2.12427250602619,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2806,
      "entry_price": 93442.99,
      "exit_index": 2984,
      "exit_price": 106431.68,
      "pnl_pct": 13.686222294470657,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2986,
      "entry_price": 108642.77,
      "exit_index": 2989,
      "exit_price": 107567.45,
      "pnl_pct": -1.1887861658902905,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2990,
      "entry_price": 110078.19,
      "exit_index": 2997,
      "exit_price": 108322.87,
      "pnl_pct": -1.7930173633850695,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2998,
      "entry_price": 109608.01,
      "exit_index": 3001,
      "exit_price": 106583.05,
      "pnl_pct": -2.957038504758906,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "4202a403d76ab3e015ff73cccd9fe8c7e14d5640565c8af1d018f6b547213b4e",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.247698,
       "status": "complete",
       "trialSharpeVariance": 0.0004033884630899556,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 9,
      "events": 1,
      "maxHoldBars": 178,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 11.477864943277707,
     "observationStartIndex": 199,
     "observations": 2480,
     "skewness": 0.2811908963713466,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 516,
      "consistentPValuePct": 51.6,
      "meanDifferentialPerBar": 2.3324503704267135e-05,
      "observedTestStatistic": 0.037120716579,
      "receiptFingerprintSha256": "31ae9515c6ade8e634c0052e2ae92a1cafc92d4b908c1393b1c0aa862c01a0e7",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 516,
         "lower95Pct": 48.949604,
         "simulations": 1000,
         "upper95Pct": 54.243399
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.04864792552161246
    },
    "train": {
     "firstTradableIndex": 199,
     "pnlPct": 786.98,
     "sharpePerBar": 0.04864793,
     "trades": 23
    },
    "universeFingerprintSha256": "4cf1c89c077791e130497918400e54af2fe742fd0ce675c1b4fa08d320dc2443",
    "verdict": {
     "alphaPct": 5,
     "code": "insufficient_activity",
     "judgeMode": "free",
     "reasons": [
      "holdout_trades_below_10"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "15-turtle-20-10.pine",
   "code": "mirage",
   "title": {
    "fr": "Pas de preuve d’avantage, pour l’instant",
    "en": "No evidence of an edge, for now"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✓, gain face à la détention ✗, essais comptés ✓, hasard ✗, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✓, gain vs holding ✗, trials counted ✓, chance ✗, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"Turtle breakout 20/10 (Donchian)\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nentryHigh = ta.highest(high, 20)[1]\nexitLow = ta.lowest(low, 10)[1]\nif close > entryHigh and strategy.position_size == 0\n    strategy.entry(\"Long\", strategy.long)\nif close < exitLow\n    strategy.close(\"Long\")",
   "pineSha256": "7c4f2b6bac5337961dbd42a159c2d6a51b877c394dcc9d2814dd211f5b4bfa73",
   "ms": 96,
   "marches": {
    "code": "mirage",
    "k": 2,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ok",
      "fr": "11 trades sur la période jamais vue (il en faut 10).",
      "en": "11 trades on the period it never saw (10 needed)."
     },
     {
      "key": "detention",
      "state": "ko",
      "fr": "−18,2 % sur la période jamais vue : une perte, même si garder le BTC faisait −23,3 %.",
      "en": "−18.2% on the period it never saw: a loss, even though holding BTC made −23.3%."
     },
     {
      "key": "essais",
      "state": "ok",
      "fr": "Sharpe déflaté de l’entraînement : 99,9 % (il faut 95 %).",
      "en": "Training Deflated Sharpe: 99.9% (95% needed)."
     },
     {
      "key": "hasard",
      "state": "ko",
      "fr": "Sur 100 marchés tirés au hasard, 100 font aussi bien face à la détention (il en faut 5 au plus).",
      "en": "Out of 100 random markets, 100 do as well against holding (5 at most)."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 5.04,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 38.02,
     "pnlPct": -18.21,
     "startIndex": 2679,
     "trades": 11,
     "winRatePct": 36.36
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "f0f78ec2ac6478b6528fda4bf0a32195ff96cf2e7e4689973b335e9f4db94ef4",
    "sealedTrades": [
     {
      "entry_index": 2711,
      "entry_price": 104077.47,
      "exit_index": 2727,
      "exit_price": 97700.59,
      "pnl_pct": -6.320924269200629,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2806,
      "entry_price": 93442.99,
      "exit_index": 2844,
      "exit_price": 103985.47,
      "pnl_pct": 11.070976581549878,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2884,
      "entry_price": 111234,
      "exit_index": 2907,
      "exit_price": 113297.92,
      "pnl_pct": 1.6536203678731307,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2919,
      "entry_price": 123306.44,
      "exit_index": 2925,
      "exit_price": 112872.95,
      "pnl_pct": -8.652970104400067,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2953,
      "entry_price": 116788.96,
      "exit_index": 2959,
      "exit_price": 112650.99,
      "pnl_pct": -3.7395743142160023,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2968,
      "entry_price": 118594.99,
      "exit_index": 3002,
      "exit_price": 101497.23,
      "pnl_pct": -14.602515856698508,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3063,
      "entry_price": 91529.74,
      "exit_index": 3079,
      "exit_price": 88427.66,
      "pnl_pct": -3.5857606500357173,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3122,
      "entry_price": 72666.77,
      "exit_index": 3140,
      "exit_price": 67859,
      "pnl_pct": -6.809571651526555,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3162,
      "entry_price": 74418,
      "exit_index": 3195,
      "exit_price": 78148.05,
      "pnl_pct": 4.80728311698783,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3254,
      "entry_price": 65043.99,
      "exit_index": 3317,
      "exit_price": 75644.48,
      "pnl_pct": 16.081119147210984,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3323,
      "entry_price": 86620.01,
      "exit_index": 3340,
      "exit_price": 81754.46,
      "pnl_pct": -5.811502988743581,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "7c4f2b6bac5337961dbd42a159c2d6a51b877c394dcc9d2814dd211f5b4bfa73",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.989316,
       "status": "complete",
       "trialSharpeVariance": 0.0003766478342749529,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 11,
      "events": 2,
      "maxHoldBars": 63,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 15.479417456933476,
     "observationStartIndex": 23,
     "observations": 2656,
     "skewness": 1.0537142364346668,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 1000,
      "consistentPValuePct": 100,
      "meanDifferentialPerBar": -9.171581155233584e-05,
      "observedTestStatistic": 0,
      "receiptFingerprintSha256": "f3ad2b4264f98abadcf84cb9fe8095f8150756f271c3bd97b9c1ea0e9e93131a",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 1000,
         "lower95Pct": 99.700875,
         "simulations": 1000,
         "upper95Pct": 100
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.06981357003235482
    },
    "train": {
     "firstTradableIndex": 20,
     "pnlPct": 3838.31,
     "sharpePerBar": 0.06981357,
     "trades": 33
    },
    "universeFingerprintSha256": "b0f42cd6bae6fa8ab1564e7614238f031d4e50b9644ebbd1ee709a83e0ee711c",
    "verdict": {
     "alphaPct": 5,
     "code": "mirage",
     "judgeMode": "free",
     "reasons": [
      "holdout_not_profitable"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "16-turtle-55-20.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"Turtle breakout 55/20 (Donchian)\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nentryHigh = ta.highest(high, 55)[1]\nexitLow = ta.lowest(low, 20)[1]\nif close > entryHigh and strategy.position_size == 0\n    strategy.entry(\"Long\", strategy.long)\nif close < exitLow\n    strategy.close(\"Long\")",
   "pineSha256": "c9c9255cdb447a1fbd7b8042deae4903a2fb834640870900b03e1253c1279653",
   "ms": 96,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 6 trades sur la période jamais vue, il en faut 10.",
      "en": "Only 6 trades on the period it never saw, 10 are needed."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 6.13,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 31.61,
     "pnlPct": -17.12,
     "startIndex": 2679,
     "trades": 6,
     "winRatePct": 33.33
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "79244f3e0d3cd0e8bd83048512f848ce0dfb95a416729988a1c97b0eaa96b44d",
    "sealedTrades": [
     {
      "entry_index": 2815,
      "entry_price": 96489.9,
      "exit_index": 2850,
      "exit_price": 101508.69,
      "pnl_pct": 4.996161681170784,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2885,
      "entry_price": 116010.01,
      "exit_index": 2907,
      "exit_price": 113297.92,
      "pnl_pct": -2.5354690771942843,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2919,
      "entry_price": 123306.44,
      "exit_index": 2931,
      "exit_price": 110111.98,
      "pnl_pct": -10.889843563726279,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3072,
      "entry_price": 95413.99,
      "exit_index": 3084,
      "exit_price": 86670.36,
      "pnl_pct": -9.354722876592838,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3166,
      "entry_price": 77072.01,
      "exit_index": 3201,
      "exit_price": 75539.5,
      "pnl_pct": -2.1864247604285847,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3290,
      "entry_price": 69334.78,
      "exit_index": 3317,
      "exit_price": 75644.48,
      "pnl_pct": 8.891238625117145,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "c9c9255cdb447a1fbd7b8042deae4903a2fb834640870900b03e1253c1279653",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.908077,
       "status": "complete",
       "trialSharpeVariance": 0.0003812428516965307,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 6,
      "events": 5,
      "maxHoldBars": 35,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 16.93033749925423,
     "observationStartIndex": 55,
     "observations": 2624,
     "skewness": 0.7348798978279054,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 1000,
      "consistentPValuePct": 100,
      "meanDifferentialPerBar": -0.00010330023783367203,
      "observedTestStatistic": 0,
      "receiptFingerprintSha256": "0e022a8097ead7e16d5d7c5b42091103587bf6107f4c4f98df7994989cb7ee48",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 1000,
         "lower95Pct": 99.700875,
         "simulations": 1000,
         "upper95Pct": 100
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.05991378352535833
    },
    "train": {
     "firstTradableIndex": 55,
     "pnlPct": 2027.86,
     "sharpePerBar": 0.05991378,
     "trades": 15
    },
    "universeFingerprintSha256": "c5260eadeda0c96f7945feb959a85a3188d76d03380031be626b8bad8e182e50",
    "verdict": {
     "alphaPct": 5,
     "code": "insufficient_activity",
     "judgeMode": "free",
     "reasons": [
      "holdout_trades_below_10"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "17-bollinger-breakout-20-2.pine",
   "code": "mirage",
   "title": {
    "fr": "Pas de preuve d’avantage, pour l’instant",
    "en": "No evidence of an edge, for now"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✓, gain face à la détention ✗, essais comptés ✓, hasard ✗, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✓, gain vs holding ✗, trials counted ✓, chance ✗, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"Bollinger breakout 20/2\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\n[basis, upper, lower] = ta.bb(close, 20, 2.0)\nif close > upper\n    strategy.entry(\"Long\", strategy.long)\nif close < basis\n    strategy.close(\"Long\")",
   "pineSha256": "4d7ea28260846d8719f8b3ef9c0607e8a920e63175c3e03eb8583549b7010ccc",
   "ms": 109,
   "marches": {
    "code": "mirage",
    "k": 2,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ok",
      "fr": "15 trades sur la période jamais vue (il en faut 10).",
      "en": "15 trades on the period it never saw (10 needed)."
     },
     {
      "key": "detention",
      "state": "ko",
      "fr": "−31,1 % sur la période jamais vue : une perte, même si garder le BTC faisait −23,3 %.",
      "en": "−31.1% on the period it never saw: a loss, even though holding BTC made −23.3%."
     },
     {
      "key": "essais",
      "state": "ok",
      "fr": "Sharpe déflaté de l’entraînement : 99,8 % (il faut 95 %).",
      "en": "Training Deflated Sharpe: 99.8% (95% needed)."
     },
     {
      "key": "hasard",
      "state": "ko",
      "fr": "Sur 100 marchés tirés au hasard, 100 font aussi bien face à la détention (il en faut 5 au plus).",
      "en": "Out of 100 random markets, 100 do as well against holding (5 at most)."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": -7.89,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 36.36,
     "pnlPct": -31.14,
     "startIndex": 2679,
     "trades": 15,
     "winRatePct": 20
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "004da3c9fd5b8e7e4790ce8e1a63a4338b2209f1a4aab524deacc5b9577c7c71",
    "sealedTrades": [
     {
      "entry_index": 2680,
      "entry_price": 106133.74,
      "exit_index": 2682,
      "exit_price": 97461.86,
      "pnl_pct": -8.362539188763163,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2700,
      "entry_price": 102235.6,
      "exit_index": 2702,
      "exit_price": 95060.61,
      "pnl_pct": -7.211075408174848,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2711,
      "entry_price": 104077.47,
      "exit_index": 2726,
      "exit_price": 100635.66,
      "pnl_pct": -3.503662348825349,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2806,
      "entry_price": 93442.99,
      "exit_index": 2843,
      "exit_price": 105589.75,
      "pnl_pct": 12.786114035948545,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2885,
      "entry_price": 116010.01,
      "exit_index": 2904,
      "exit_price": 117950.75,
      "pnl_pct": 1.4712344564059647,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2919,
      "entry_price": 123306.44,
      "exit_index": 2924,
      "exit_price": 116227.05,
      "pnl_pct": -5.935556561360461,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2948,
      "entry_price": 115482.69,
      "exit_index": 2959,
      "exit_price": 112650.99,
      "pnl_pct": -2.6496037458081356,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2969,
      "entry_price": 120529.35,
      "exit_index": 2977,
      "exit_price": 112774.49,
      "pnl_pct": -6.62756734355574,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3061,
      "entry_price": 89995.14,
      "exit_index": 3079,
      "exit_price": 88427.66,
      "pnl_pct": -1.9399967598250263,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3122,
      "entry_price": 72666.77,
      "exit_index": 3125,
      "exit_price": 67262.91,
      "pnl_pct": -7.629057518312704,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3134,
      "entry_price": 74884.67,
      "exit_index": 3137,
      "exit_price": 69930.01,
      "pnl_pct": -6.80977118547762,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3184,
      "entry_price": 80905.53,
      "exit_index": 3194,
      "exit_price": 79113.2,
      "pnl_pct": -2.4131214887288936,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3261,
      "entry_price": 66556.15,
      "exit_index": 3264,
      "exit_price": 64140,
      "pnl_pct": -3.82661279235652,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3290,
      "entry_price": 69334.78,
      "exit_index": 3311,
      "exit_price": 78306.43,
      "pnl_pct": 12.726670207938923,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3323,
      "entry_price": 86620.01,
      "exit_index": 3339,
      "exit_price": 83321.81,
      "pnl_pct": -4.00385756131868,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "4d7ea28260846d8719f8b3ef9c0607e8a920e63175c3e03eb8583549b7010ccc",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.890675,
       "status": "complete",
       "trialSharpeVariance": 0.0003766478342749529,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 15,
      "events": 7,
      "maxHoldBars": 37,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 20.13208626547485,
     "observationStartIndex": 23,
     "observations": 2656,
     "skewness": 1.4897384604899275,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 1000,
      "consistentPValuePct": 100,
      "meanDifferentialPerBar": -0.00037084580441971353,
      "observedTestStatistic": 0,
      "receiptFingerprintSha256": "bc0d22c0ea1e58636368cdae8c21f7a4ee00eaf40efaf9d8a93b025ba530195f",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 1000,
         "lower95Pct": 99.700875,
         "simulations": 1000,
         "upper95Pct": 100
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.05734802756435783
    },
    "train": {
     "firstTradableIndex": 19,
     "pnlPct": 1214.48,
     "sharpePerBar": 0.05734803,
     "trades": 54
    },
    "universeFingerprintSha256": "203c4e6110666edbd82b3839d9dd359f4ad5958667584ee434437c3cabb4ce32",
    "verdict": {
     "alphaPct": 5,
     "code": "mirage",
     "judgeMode": "free",
     "reasons": [
      "holdout_not_profitable"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "18-rsi2-connors.pine",
   "code": "inconclusive",
   "title": {
    "fr": "Pas encore de preuve d’avantage : 2 marches sur 4 franchies",
    "en": "No evidence of an edge yet: 2 of 4 steps passed"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✓, gain face à la détention ✓, essais comptés ✗, hasard ✗, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✓, gain vs holding ✓, trials counted ✗, chance ✗, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"RSI(2) pullback above SMA 200 (Connors)\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nrsi2 = ta.rsi(close, 2)\ntrend = ta.sma(close, 200)\nexitMa = ta.sma(close, 5)\nif close > trend and rsi2 < 10 and close < exitMa and strategy.position_size == 0\n    strategy.entry(\"Long\", strategy.long)\nif close > exitMa\n    strategy.close(\"Long\")",
   "pineSha256": "3a51eeb2000812d37286a75b9c7c406d6c36baf337136ea4cf4495634229c544",
   "ms": 136,
   "marches": {
    "code": "inconclusive",
    "k": 2,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ok",
      "fr": "14 trades sur la période jamais vue (il en faut 10).",
      "en": "14 trades on the period it never saw (10 needed)."
     },
     {
      "key": "detention",
      "state": "ok",
      "fr": "+5,0 % sur la période jamais vue, quand garder le BTC faisait −23,3 %.",
      "en": "+5.0% on the period it never saw, while holding BTC made −23.3%."
     },
     {
      "key": "essais",
      "state": "ko",
      "fr": "Sharpe déflaté de l’entraînement : 83,7 % (il faut 95 %).",
      "en": "Training Deflated Sharpe: 83.7% (95% needed)."
     },
     {
      "key": "hasard",
      "state": "ko",
      "fr": "Sur 100 marchés tirés au hasard, 39 font aussi bien face à la détention (il en faut 5 au plus).",
      "en": "Out of 100 random markets, 39 do as well against holding (5 at most)."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 28.29,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 11.69,
     "pnlPct": 5.04,
     "startIndex": 2679,
     "trades": 14,
     "winRatePct": 64.29
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "45e2abdf71f7f8482264569d3c61a1140cf590e2618e8031137d66af60929d0e",
    "sealedTrades": [
     {
      "entry_index": 2682,
      "entry_price": 97461.86,
      "exit_index": 2687,
      "exit_price": 98663.58,
      "pnl_pct": 1.0317826481046033,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2722,
      "entry_price": 101335.52,
      "exit_index": 2723,
      "exit_price": 103733.25,
      "pnl_pct": 2.1637637325983983,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2727,
      "entry_price": 97700.59,
      "exit_index": 2735,
      "exit_price": 97430.82,
      "pnl_pct": -0.4758429913268585,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2749,
      "entry_price": 91552.88,
      "exit_index": 2754,
      "exit_price": 86064.54,
      "pnl_pct": -6.188726580747663,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2843,
      "entry_price": 105589.75,
      "exit_index": 2846,
      "exit_price": 105642.93,
      "pnl_pct": -0.14968562762958237,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2850,
      "entry_price": 101508.69,
      "exit_index": 2852,
      "exit_price": 105552.15,
      "pnl_pct": 3.7793800314041994,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2865,
      "entry_price": 103297.98,
      "exit_index": 2868,
      "exit_price": 105333.94,
      "pnl_pct": 1.7689872347939488,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2906,
      "entry_price": 115764.07,
      "exit_index": 2910,
      "exit_price": 115055.03,
      "pnl_pct": -0.8118746170551953,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2924,
      "entry_price": 116227.05,
      "exit_index": 2928,
      "exit_price": 116936,
      "pnl_pct": 0.4093599123439828,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2959,
      "entry_price": 112650.99,
      "exit_index": 2965,
      "exit_price": 112163.96,
      "pnl_pct": -0.6319029686290364,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2977,
      "entry_price": 112774.49,
      "exit_index": 2980,
      "exit_price": 115166,
      "pnl_pct": 1.9184919479573743,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2983,
      "entry_price": 108194.27,
      "exit_index": 2986,
      "exit_price": 108642.77,
      "pnl_pct": 0.21411758681859958,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3312,
      "entry_price": 76568.73,
      "exit_index": 3316,
      "exit_price": 78189.2,
      "pnl_pct": 1.9142436736249921,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3339,
      "entry_price": 83321.81,
      "exit_index": 3343,
      "exit_price": 83773.12,
      "pnl_pct": 0.34110525203424846,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "3a51eeb2000812d37286a75b9c7c406d6c36baf337136ea4cf4495634229c544",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 83.750829,
       "status": "complete",
       "trialSharpeVariance": 0.0004033884630899556,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 14,
      "events": 11,
      "maxHoldBars": 8,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 59.61408073637122,
     "observationStartIndex": 199,
     "observations": 2480,
     "skewness": 0.3394433454341418,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 385,
      "consistentPValuePct": 38.5,
      "meanDifferentialPerBar": 0.00022983738477127676,
      "observedTestStatistic": 0.279173876771,
      "receiptFingerprintSha256": "42f428fda7faab152aac1e43c4210f5978297f345b1f155a3b2523f0457bba8d",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 385,
         "lower95Pct": 35.946518,
         "simulations": 1000,
         "upper95Pct": 41.103799
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.01975882836876212
    },
    "train": {
     "firstTradableIndex": 199,
     "pnlPct": 49.45,
     "sharpePerBar": 0.01975883,
     "trades": 56
    },
    "universeFingerprintSha256": "07d540a225a5aac262840fe47e8e3cde81c50f9070f7f5d0b1451e88dfe34711",
    "verdict": {
     "alphaPct": 5,
     "code": "inconclusive",
     "judgeMode": "free",
     "reasons": [
      "spa_test_not_significant",
      "dsr_below_95"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "20-price-ema50.pine",
   "code": "inconclusive",
   "title": {
    "fr": "Pas encore de preuve d’avantage : 3 marches sur 4 franchies",
    "en": "No evidence of an edge yet: 3 of 4 steps passed"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✓, gain face à la détention ✓, essais comptés ✓, hasard ✗, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✓, gain vs holding ✓, trials counted ✓, chance ✗, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"Close crosses EMA 50\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nema50 = ta.ema(close, 50)\nif ta.crossover(close, ema50)\n    strategy.entry(\"Long\", strategy.long)\nif ta.crossunder(close, ema50)\n    strategy.close(\"Long\")",
   "pineSha256": "db1738f82ad28015002fd77666c78118bbb2b8bcba8210e2ea6d4ad9367c4d50",
   "ms": 110,
   "marches": {
    "code": "inconclusive",
    "k": 3,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ok",
      "fr": "20 trades sur la période jamais vue (il en faut 10).",
      "en": "20 trades on the period it never saw (10 needed)."
     },
     {
      "key": "detention",
      "state": "ok",
      "fr": "+17,0 % sur la période jamais vue, quand garder le BTC faisait −23,3 %.",
      "en": "+17.0% on the period it never saw, while holding BTC made −23.3%."
     },
     {
      "key": "essais",
      "state": "ok",
      "fr": "Sharpe déflaté de l’entraînement : 99,7 % (il faut 95 %).",
      "en": "Training Deflated Sharpe: 99.7% (95% needed)."
     },
     {
      "key": "hasard",
      "state": "ko",
      "fr": "Sur 100 marchés tirés au hasard, 25 font aussi bien face à la détention (il en faut 5 au plus).",
      "en": "Out of 100 random markets, 25 do as well against holding (5 at most)."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 40.23,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 27.64,
     "pnlPct": 16.98,
     "startIndex": 2679,
     "trades": 20,
     "winRatePct": 20
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "3f7989d6e232817e6fbbf1bd78972d53f7461a122162253f2d2978d42c0fa1ad",
    "sealedTrades": [
     {
      "entry_index": 2694,
      "entry_price": 93576,
      "exit_index": 2703,
      "exit_price": 92552.49,
      "pnl_pct": -1.2926802705821951,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2704,
      "entry_price": 94726.1,
      "exit_index": 2727,
      "exit_price": 97700.59,
      "pnl_pct": 2.93695540088739,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2728,
      "entry_price": 101328.51,
      "exit_index": 2729,
      "exit_price": 97763.14,
      "pnl_pct": -3.7151060940301948,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2745,
      "entry_price": 98305.01,
      "exit_index": 2746,
      "exit_price": 96181.99,
      "pnl_pct": -2.3574658097283034,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2805,
      "entry_price": 87516.22,
      "exit_index": 2866,
      "exit_price": 102120.02,
      "pnl_pct": 16.47027689267201,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2868,
      "entry_price": 105333.94,
      "exit_index": 2908,
      "exit_price": 112546.35,
      "pnl_pct": 6.640338061976987,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2909,
      "entry_price": 114208.81,
      "exit_index": 2925,
      "exit_price": 112872.95,
      "pnl_pct": -1.3684949173360623,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2928,
      "entry_price": 116936,
      "exit_index": 2930,
      "exit_price": 113493.59,
      "pnl_pct": -3.1408972343846235,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2947,
      "entry_price": 113960,
      "exit_index": 2959,
      "exit_price": 112650.99,
      "pnl_pct": -1.3475087662337615,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2966,
      "entry_price": 114311.97,
      "exit_index": 2977,
      "exit_price": 112774.49,
      "pnl_pct": -1.5436410202711017,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2993,
      "entry_price": 114559.41,
      "exit_index": 2995,
      "exit_price": 112898.44,
      "pnl_pct": -1.6484266547811317,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3064,
      "entry_price": 93859.71,
      "exit_index": 3066,
      "exit_price": 91364.16,
      "pnl_pct": -2.8561497473196997,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3072,
      "entry_price": 95413.99,
      "exit_index": 3079,
      "exit_price": 88427.66,
      "pnl_pct": -7.514801183767708,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3133,
      "entry_price": 72815.25,
      "exit_index": 3136,
      "exit_price": 71246.55,
      "pnl_pct": -2.352202045587974,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3156,
      "entry_price": 71924.22,
      "exit_index": 3201,
      "exit_price": 75539.5,
      "pnl_pct": 4.821486114135126,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3203,
      "entry_price": 77064.96,
      "exit_index": 3205,
      "exit_price": 75930.01,
      "pnl_pct": -1.6712458813966964,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3260,
      "entry_price": 65255.51,
      "exit_index": 3263,
      "exit_price": 65098.98,
      "pnl_pct": -0.43963259194510756,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3266,
      "entry_price": 65400,
      "exit_index": 3267,
      "exit_price": 63755.86,
      "pnl_pct": -2.711461559633027,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3276,
      "entry_price": 64665.24,
      "exit_index": 3277,
      "exit_price": 64323.61,
      "pnl_pct": -0.7277771643621789,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3278,
      "entry_price": 64923.2,
      "exit_index": 3281,
      "exit_price": 63970.01,
      "pnl_pct": -1.666712685141822,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "db1738f82ad28015002fd77666c78118bbb2b8bcba8210e2ea6d4ad9367c4d50",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.707461,
       "status": "complete",
       "trialSharpeVariance": 0.0003812428516965307,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 20,
      "events": 2,
      "maxHoldBars": 61,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 12.21265015693174,
     "observationStartIndex": 55,
     "observations": 2624,
     "skewness": 0.571485107203433,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 251,
      "consistentPValuePct": 25.1,
      "meanDifferentialPerBar": 0.00045937307407230396,
      "observedTestStatistic": 0.713711565694,
      "receiptFingerprintSha256": "7cb49afc1ad5dc54c2f00b7dcd77c3816b5cc1dbcea1f58442480ac8bcaf5889",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 251,
         "lower95Pct": 22.851138,
         "simulations": 1000,
         "upper95Pct": 27.45813
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.05320464876533826
    },
    "train": {
     "firstTradableIndex": 50,
     "pnlPct": 1227.15,
     "sharpePerBar": 0.05320465,
     "trades": 83
    },
    "universeFingerprintSha256": "744f01fa9514d54a4c5b2e2b8291659d8178eca7c56a39a0bfddd842da493f7d",
    "verdict": {
     "alphaPct": 5,
     "code": "inconclusive",
     "judgeMode": "free",
     "reasons": [
      "spa_test_not_significant"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "21-stochastic-14-3.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"Stochastic 14/3 cross 20/80\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nk = ta.sma(ta.stoch(close, high, low, 14), 3)\nd = ta.sma(k, 3)\nif ta.crossover(k, d) and k < 20\n    strategy.entry(\"Long\", strategy.long)\nif ta.crossunder(k, d) and k > 80\n    strategy.close(\"Long\")",
   "pineSha256": "34364854cf9f565a3bb57ab5963e09495be00e8556223cb85b6357e235e9fdde",
   "ms": 116,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 6 trades sur la période jamais vue, il en faut 10.",
      "en": "Only 6 trades on the period it never saw, 10 are needed."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 2.35,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 44.42,
     "pnlPct": -20.9,
     "startIndex": 2679,
     "trades": 6,
     "winRatePct": 66.67
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "d7a8f0a534a5b684be7ce84fc298413ca308c60f71506033b21f8c306dcf23fc",
    "sealedTrades": [
     {
      "entry_index": 2695,
      "entry_price": 94591.78,
      "exit_index": 2713,
      "exit_price": 101331.57,
      "pnl_pct": 6.918007727521363,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2753,
      "entry_price": 84349.95,
      "exit_index": 2780,
      "exit_price": 87232.01,
      "pnl_pct": 3.213372432348801,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3016,
      "entry_price": 92960.83,
      "exit_index": 3065,
      "exit_price": 93747.97,
      "pnl_pct": 0.6458969869352493,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3086,
      "entry_price": 89249.99,
      "exit_index": 3161,
      "exit_price": 70741.56,
      "pnl_pct": -20.91700127921584,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3199,
      "entry_price": 77552.24,
      "exit_index": 3256,
      "exit_price": 63830.2,
      "pnl_pct": -17.876237282121068,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3315,
      "entry_price": 76842.01,
      "exit_index": 3325,
      "exit_price": 84397.6,
      "pnl_pct": 9.62279668374111,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "34364854cf9f565a3bb57ab5963e09495be00e8556223cb85b6357e235e9fdde",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 60.760852,
       "status": "complete",
       "trialSharpeVariance": 0.0003766478342749529,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 6,
      "events": 2,
      "maxHoldBars": 75,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 38.79144789561932,
     "observationStartIndex": 23,
     "observations": 2656,
     "skewness": -1.3025083750397783,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 1000,
      "consistentPValuePct": 100,
      "meanDifferentialPerBar": -7.597625473718998e-05,
      "observedTestStatistic": 0,
      "receiptFingerprintSha256": "39ec7e1cf1e13e50a9c550ec9424b4bb9de46387bab86b8e9040fda0db415581",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 1000,
         "lower95Pct": 99.700875,
         "simulations": 1000,
         "upper95Pct": 100
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.005319032953018442
    },
    "train": {
     "firstTradableIndex": 18,
     "pnlPct": -37.44,
     "sharpePerBar": 0.00531903,
     "trades": 25
    },
    "universeFingerprintSha256": "9a4b971b7b647be0ab9b70bbd4b54259c56097cd2d1cf967eee4306b072ec18a",
    "verdict": {
     "alphaPct": 5,
     "code": "insufficient_activity",
     "judgeMode": "free",
     "reasons": [
      "holdout_trades_below_10"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "22-parabolic-sar.pine",
   "code": "mirage",
   "title": {
    "fr": "Pas de preuve d’avantage, pour l’instant",
    "en": "No evidence of an edge, for now"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✓, gain face à la détention ✗, essais comptés ✓, hasard ✗, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✓, gain vs holding ✗, trials counted ✓, chance ✗, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"Parabolic SAR 0.02/0.2\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nsar = ta.sar(0.02, 0.02, 0.2)\nif ta.crossover(close, sar)\n    strategy.entry(\"Long\", strategy.long)\nif ta.crossunder(close, sar)\n    strategy.close(\"Long\")",
   "pineSha256": "fab09277178141fe2bde877d5f84a29f66656a94eef6293242d31e364f3c5063",
   "ms": 137,
   "marches": {
    "code": "mirage",
    "k": 2,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ok",
      "fr": "27 trades sur la période jamais vue (il en faut 10).",
      "en": "27 trades on the period it never saw (10 needed)."
     },
     {
      "key": "detention",
      "state": "ko",
      "fr": "−8,8 % sur la période jamais vue : une perte, même si garder le BTC faisait −23,3 %.",
      "en": "−8.8% on the period it never saw: a loss, even though holding BTC made −23.3%."
     },
     {
      "key": "essais",
      "state": "ok",
      "fr": "Sharpe déflaté de l’entraînement : 99,5 % (il faut 95 %).",
      "en": "Training Deflated Sharpe: 99.5% (95% needed)."
     },
     {
      "key": "hasard",
      "state": "ko",
      "fr": "Sur 100 marchés tirés au hasard, 43 font aussi bien face à la détention (il en faut 5 au plus).",
      "en": "Out of 100 random markets, 43 do as well against holding (5 at most)."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 14.46,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 30.35,
     "pnlPct": -8.79,
     "startIndex": 2679,
     "trades": 27,
     "winRatePct": 40.74
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "7509f3e2f287818eb3920628e418c052207a0ca6d0232f43ce8194154c1fbae2",
    "sealedTrades": [
     {
      "entry_index": 2700,
      "entry_price": 102235.6,
      "exit_index": 2703,
      "exit_price": 92552.49,
      "pnl_pct": -9.661896726776192,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2710,
      "entry_price": 99987.3,
      "exit_index": 2721,
      "exit_price": 102082.83,
      "pnl_pct": 1.8937003699469819,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2745,
      "entry_price": 98305.01,
      "exit_index": 2749,
      "exit_price": 91552.88,
      "pnl_pct": -7.0616827056932205,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2755,
      "entry_price": 94269.99,
      "exit_index": 2762,
      "exit_price": 80734.48,
      "pnl_pct": -14.54388026348577,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2773,
      "entry_price": 84223.38,
      "exit_index": 2787,
      "exit_price": 83213.09,
      "pnl_pct": -1.398336744500171,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2796,
      "entry_price": 85276.91,
      "exit_index": 2819,
      "exit_price": 94733.68,
      "pnl_pct": 10.878395347580007,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2821,
      "entry_price": 97030.5,
      "exit_index": 2839,
      "exit_price": 109004.2,
      "pnl_pct": 12.127800330823813,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2853,
      "entry_price": 105734.01,
      "exit_index": 2863,
      "exit_price": 104886.79,
      "pnl_pct": -1.000473546780266,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2870,
      "entry_price": 107340.59,
      "exit_index": 2893,
      "exit_price": 117924.84,
      "pnl_pct": 9.650575397433535,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2913,
      "entry_price": 117472.02,
      "exit_index": 2921,
      "exit_price": 117342.04,
      "pnl_pct": -0.3105369772308423,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2939,
      "entry_price": 111240.01,
      "exit_index": 2958,
      "exit_price": 115232.29,
      "pnl_pct": 3.3852996776968998,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2966,
      "entry_price": 114311.97,
      "exit_index": 2977,
      "exit_price": 112774.49,
      "pnl_pct": -1.5436410202711022,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3023,
      "entry_price": 87369.97,
      "exit_index": 3029,
      "exit_price": 86286.01,
      "pnl_pct": -1.439414457850914,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3031,
      "entry_price": 93429.95,
      "exit_index": 3043,
      "exit_price": 86432.08,
      "pnl_pct": -7.682474442082005,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3061,
      "entry_price": 89995.14,
      "exit_index": 3078,
      "exit_price": 92630.99,
      "pnl_pct": 2.7259515013810813,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3098,
      "entry_price": 70330.38,
      "exit_index": 3114,
      "exit_price": 64058.15,
      "pnl_pct": -9.109318803623701,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3122,
      "entry_price": 72666.77,
      "exit_index": 3140,
      "exit_price": 67859,
      "pnl_pct": -6.809571651526555,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3156,
      "entry_price": 71924.22,
      "exit_index": 3169,
      "exit_price": 75840.97,
      "pnl_pct": 5.24021645281659,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3171,
      "entry_price": 78178.22,
      "exit_index": 3192,
      "exit_price": 79313.61,
      "pnl_pct": 1.2508575534208881,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3205,
      "entry_price": 75930.01,
      "exit_index": 3206,
      "exit_price": 74449.31,
      "pnl_pct": -2.148135262987582,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3221,
      "entry_price": 63626,
      "exit_index": 3229,
      "exit_price": 63543.9,
      "pnl_pct": -0.3289062647345402,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3243,
      "entry_price": 62583.26,
      "exit_index": 3257,
      "exit_price": 63931.67,
      "pnl_pct": 1.952431161304151,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3260,
      "entry_price": 65255.51,
      "exit_index": 3268,
      "exit_price": 63915,
      "pnl_pct": -2.2521937381226533,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3278,
      "entry_price": 64923.2,
      "exit_index": 3284,
      "exit_price": 63490.86,
      "pnl_pct": -2.404000511373433,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3289,
      "entry_price": 64725.42,
      "exit_index": 3303,
      "exit_price": 77439.01,
      "pnl_pct": 19.422702193357726,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3305,
      "entry_price": 81270.37,
      "exit_index": 3312,
      "exit_price": 76568.73,
      "pnl_pct": -5.979398272703815,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3320,
      "entry_price": 80883.86,
      "exit_index": 3339,
      "exit_price": 83321.81,
      "pnl_pct": 2.811122429122444,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "fab09277178141fe2bde877d5f84a29f66656a94eef6293242d31e364f3c5063",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.574662,
       "status": "complete",
       "trialSharpeVariance": 0.00037439161362785476,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 27,
      "events": 3,
      "maxHoldBars": 23,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 13.193616312759946,
     "observationStartIndex": 7,
     "observations": 2672,
     "skewness": 0.9240080973118336,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 431,
      "consistentPValuePct": 43.1,
      "meanDifferentialPerBar": 0.00010321313258253946,
      "observedTestStatistic": 0.157332668832,
      "receiptFingerprintSha256": "205ee89052b3cc222b80404289af6be8f9c9b86e24372194cba01cdda9812f82",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 431,
         "lower95Pct": 40.491696,
         "simulations": 1000,
         "upper95Pct": 45.738481
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.049922371835909016
    },
    "train": {
     "firstTradableIndex": 2,
     "pnlPct": 1148.76,
     "sharpePerBar": 0.04992237,
     "trades": 110
    },
    "universeFingerprintSha256": "740d72487420136cf99fc7562d177a8529cd1b2492716ce95f9cd6c6427894a0",
    "verdict": {
     "alphaPct": 5,
     "code": "mirage",
     "judgeMode": "free",
     "reasons": [
      "holdout_not_profitable"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "classic",
   "file": "23-keltner-breakout.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"Keltner breakout (EMA 20, 2 ATR 10)\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)\nmiddle = ta.ema(close, 20)\nupper = middle + 2 * ta.atr(10)\nif close > upper and strategy.position_size == 0\n    strategy.entry(\"Long\", strategy.long)\nif close < middle\n    strategy.close(\"Long\")",
   "pineSha256": "b8137360d4086d362905d4760a437a2b437ea1a78606156c6432ae822d7abba3",
   "ms": 142,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 7 trades sur la période jamais vue, il en faut 10.",
      "en": "Only 7 trades on the period it never saw, 10 are needed."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 17.72,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 25.23,
     "pnlPct": -5.53,
     "startIndex": 2679,
     "trades": 7,
     "winRatePct": 28.57
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "e8ca896f8670f118e0e8f0bb75c1e3e82a06dab603e81fb3c5034c96490c4e4f",
    "sealedTrades": [
     {
      "entry_index": 2806,
      "entry_price": 93442.99,
      "exit_index": 2844,
      "exit_price": 103985.47,
      "pnl_pct": 11.07097658154988,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2885,
      "entry_price": 116010.01,
      "exit_index": 2906,
      "exit_price": 115764.07,
      "pnl_pct": -0.41178694838487456,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2919,
      "entry_price": 123306.44,
      "exit_index": 2921,
      "exit_price": 117342.04,
      "pnl_pct": -5.032217684656218,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2969,
      "entry_price": 120529.35,
      "exit_index": 2977,
      "exit_price": 112774.49,
      "pnl_pct": -6.62756734355574,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3073,
      "entry_price": 96951.78,
      "exit_index": 3079,
      "exit_price": 88427.66,
      "pnl_pct": -8.983331136364898,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3290,
      "entry_price": 69334.78,
      "exit_index": 3312,
      "exit_price": 76568.73,
      "pnl_pct": 10.222930670581196,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 3323,
      "entry_price": 86620.01,
      "exit_index": 3339,
      "exit_price": 83321.81,
      "pnl_pct": -4.00385756131868,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "b8137360d4086d362905d4760a437a2b437ea1a78606156c6432ae822d7abba3",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.979216,
       "status": "complete",
       "trialSharpeVariance": 0.0003766478342749529,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 7,
      "events": 5,
      "maxHoldBars": 38,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 22.97504559540863,
     "observationStartIndex": 23,
     "observations": 2656,
     "skewness": 1.3217409229395098,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 452,
      "consistentPValuePct": 45.2,
      "meanDifferentialPerBar": 8.51250782089449e-05,
      "observedTestStatistic": 0.109912602073,
      "receiptFingerprintSha256": "d167665754d2041335f9d0097ddc1db911ccb8ffa4f7d0f2c8b164538ae8b6c4",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 452,
         "lower95Pct": 42.574257,
         "simulations": 1000,
         "upper95Pct": 47.846734
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.06629660437853485
    },
    "train": {
     "firstTradableIndex": 19,
     "pnlPct": 1738.91,
     "sharpePerBar": 0.0662966,
     "trades": 31
    },
    "universeFingerprintSha256": "3dc0b83caedd9b1c850bd35b640049da5c4d081895a7dc7f72e05c02cdc88c02",
    "verdict": {
     "alphaPct": 5,
     "code": "insufficient_activity",
     "judgeMode": "free",
     "reasons": [
      "holdout_trades_below_10"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "ia",
   "file": "glm-1.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"BTC Long-Only Trend Regime (SMA200 + Band)\", shorttitle=\"BTC Trend\", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1, pyramiding=0)\n\nsmaLen = input.int(200, \"SMA length\", minval=20)\nbandPct = input.float(1.0, \"Hysteresis band %\", minval=0, step=0.25)\n\nsm = ta.sma(close, smaLen)\nupper = sm * (1 + bandPct / 100)\nlower = sm * (1 - bandPct / 100)\n\nvar bool inRegime = false\nif not inRegime and close > upper\n    inRegime := true\nelse if inRegime and close < lower\n    inRegime := false\n\nif inRegime and strategy.position_size == 0\n    strategy.entry(\"Long\", strategy.long)\nif not inRegime and strategy.position_size > 0\n    strategy.close(\"Long\")\n\nplot(sm, \"SMA\", color=color.orange)\nbgcolor(inRegime ? color.new(color.green, 92) : color.new(color.red, 92))",
   "pineSha256": "94447a6dc346876692570cf8ef78ebc7bd4e7d1f7063070fd43bdd2a636c17f9",
   "ms": 155,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 4 trades sur la période jamais vue, il en faut 10.",
      "en": "Only 4 trades on the period it never saw, 10 are needed."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      },
      {
       "code": "PINE_AI_APPROX_CARRIED_STATE",
       "message": "The script keeps values from one bar to the next (`var`, `:=`, `x[1]` of a computed value). They are computed here from the first bar of the judged data; TradingView starts them at the first bar of its chart, so the first values can differ; and no trade is opened here before every indicator the script reads is defined. This reading follows the Pine documentation and a control interpreter; it has not been compared trade by trade on TradingView.",
       "messageFr": "Le script garde des valeurs d'une bougie à la suivante (`var`, `:=`, `x[1]` d'une valeur calculée). Elles sont calculées ici depuis la première bougie des données jugées ; TradingView les démarre à la première bougie de son graphique, les premières valeurs peuvent donc différer ; et aucun trade n'est ouvert ici avant que tous les indicateurs lus par le script soient définis. Cette lecture suit la documentation de Pine et un interpréteur de contrôle ; elle n'a pas été comparée trade par trade sur TradingView."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      },
      {
       "code": "PINE_AI_APPROX_CARRIED_STATE",
       "message": "The script keeps values from one bar to the next (`var`, `:=`, `x[1]` of a computed value). They are computed here from the first bar of the judged data; TradingView starts them at the first bar of its chart, so the first values can differ; and no trade is opened here before every indicator the script reads is defined. This reading follows the Pine documentation and a control interpreter; it has not been compared trade by trade on TradingView.",
       "messageFr": "Le script garde des valeurs d'une bougie à la suivante (`var`, `:=`, `x[1]` d'une valeur calculée). Elles sont calculées ici depuis la première bougie des données jugées ; TradingView les démarre à la première bougie de son graphique, les premières valeurs peuvent donc différer ; et aucun trade n'est ouvert ici avant que tous les indicateurs lus par le script soient définis. Cette lecture suit la documentation de Pine et un interpréteur de contrôle ; elle n'a pas été comparée trade par trade sur TradingView."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 14.24,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 28.41,
     "pnlPct": -9.01,
     "startIndex": 2679,
     "trades": 4,
     "winRatePct": 25
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "3894c3d33342883ab4946ac2ba010d3628d9efa15a8cc51343930f6a4292323e",
    "sealedTrades": [
     {
      "entry_index": 2680,
      "entry_price": 106133.74,
      "exit_index": 2762,
      "exit_price": 80734.48,
      "pnl_pct": -24.107440499128753,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2772,
      "entry_price": 86845.93,
      "exit_index": 2775,
      "exit_price": 83840.59,
      "pnl_pct": -3.6570815926549427,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2776,
      "entry_price": 86082.5,
      "exit_index": 2781,
      "exit_price": 84424.38,
      "pnl_pct": -2.12427250602619,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2806,
      "entry_price": 93442.99,
      "exit_index": 3001,
      "exit_price": 106583.05,
      "pnl_pct": 13.84805212247596,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "94447a6dc346876692570cf8ef78ebc7bd4e7d1f7063070fd43bdd2a636c17f9",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.11776,
       "status": "complete",
       "trialSharpeVariance": 0.0004033884630899556,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 4,
      "events": 1,
      "maxHoldBars": 195,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 11.416303678006509,
     "observationStartIndex": 199,
     "observations": 2480,
     "skewness": 0.27656504066514603,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 446,
      "consistentPValuePct": 44.6,
      "meanDifferentialPerBar": 0.00010624325871156635,
      "observedTestStatistic": 0.167150982574,
      "receiptFingerprintSha256": "fbbad7444972253b94cdb62e2b181a20c48a1041233a91137c20648618d448c6",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 446,
         "lower95Pct": 41.978763,
         "simulations": 1000,
         "upper95Pct": 47.244852
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.0474870207329191
    },
    "train": {
     "firstTradableIndex": 199,
     "pnlPct": 729.71,
     "sharpePerBar": 0.04748702,
     "trades": 19
    },
    "universeFingerprintSha256": "ef1b0b6ac275e4630e9bee2362d0a2a899bc565da4e223aa3209696dfd87e7ec",
    "verdict": {
     "alphaPct": 5,
     "code": "insufficient_activity",
     "judgeMode": "free",
     "reasons": [
      "holdout_trades_below_10"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  },
  {
   "group": "ia",
   "file": "glm-2.pine",
   "code": "refused",
   "title": {
    "fr": "Ce script n’est pas lu tel quel",
    "en": "This script is not read as written"
   },
   "stepsLine": null,
   "pine": "//@version=5\nstrategy(\"BTC Daily Regime Trend (Long Only)\", overlay=true,\n     initial_capital=100000,\n     default_qty_type=strategy.percent_of_equity,\n     default_qty_value=100,\n     commission_type=strategy.commission.percent,\n     commission_value=0.1,\n     pyramiding=0,\n     calc_on_every_tick=false,\n     process_orders_on_close=true)\n\nlen    = input.int(200,  \"Regime SMA length\", minval=50)\nbufIn  = input.float(2.0, \"Entry buffer %\",   minval=0.0)\nbufOut = input.float(2.0, \"Exit buffer %\",    minval=0.0)\n\nma        = ta.sma(close, len)\nenterLvl = ma * (1 + bufIn  / 100)\nexitLvl  = ma * (1 - bufOut / 100)\n\ninLong = strategy.position_size > 0\n\nif not inLong and close > enterLvl\n    strategy.entry(\"Long\", strategy.long)\n\nif inLong and close < exitLvl\n    strategy.close(\"Long\")",
   "pineSha256": "c5a6397f6eb11120990f9f5db0814af09a5a2bef4a828d73f244165f20735f97",
   "ms": 3,
   "marches": null,
   "holdBenchmark": null,
   "engine": {
    "message": "ArenaScript parse error: PINE_AI_SHAPE_NOT_CARRIED: this script is read as a whole, and 1 construct is not carried: (1) the long entry and a close of the long position can be true on the same bar: with process_orders_on_close=true the script closes there and cannot enter (its position was open when it ran), the plan would close and enter on that close; write conditions that exclude each other. The line-by-line reader: Pine import currently requires SMA/EMA/WMA/HMA/ALMA/VWMA/RMA crossover/cross/crossunder, price-vs-SMA/EMA/WMA/HMA/ALMA/VWMA/RMA/LINREG/VWAP gates, EMA/RMA trend, RSI/Stochastic/CCI/ROC/WilliamsR/ADX/MFI/OBV/MACD, Bollinger/Keltner/SuperTrend/Parabolic SAR close-band, ATR breakout, Donchian channel breakout or volume SMA signal",
    "ok": false,
    "refusal": {
     "code": "PINE_AI_SHAPE_NOT_CARRIED",
     "construct": null,
     "line": null,
     "reasons": [
      {
       "code": "PINE_AI_SHAPE_NOT_CARRIED",
       "construct": null,
       "line": null,
       "message": "the long entry and a close of the long position can be true on the same bar: with process_orders_on_close=true the script closes there and cannot enter (its position was open when it ran), the plan would close and enter on that close; write conditions that exclude each other"
      }
     ]
    },
    "schema": "sa.judge.verdict.v254",
    "stage": "pine_import"
   }
  },
  {
   "group": "ia",
   "file": "glm-3.pine",
   "code": "insufficient_activity",
   "title": {
    "fr": "Pas encore assez de trades pour juger",
    "en": "Not enough trades to judge yet"
   },
   "stepsLine": {
    "fr": "Marches franchies : activité ✗, gain face à la détention ·, essais comptés ·, hasard ·, autre marché —, période en avant —.",
    "en": "Steps passed: activity ✗, gain vs holding ·, trials counted ·, chance ·, other market —, forward period —."
   },
   "pine": "//@version=5\nstrategy(\"BTC Long-Only SMA200 Regime\", overlay=true, initial_capital=10000,\n     default_qty_type=strategy.percent_of_equity, default_qty_value=100,\n     commission_type=strategy.commission.percent, commission_value=0.1,\n     pyramiding=0)\n\nlen = 200\nsmaVal = ta.sma(close, len)\n\nvar int upRun = 0\nvar int dnRun = 0\nupRun := close > smaVal ? upRun + 1 : 0\ndnRun := close < smaVal ? dnRun + 1 : 0\n\nif upRun >= 2 and strategy.position_size == 0\n    strategy.entry(\"Long\", strategy.long)\n\nif dnRun >= 2 and strategy.position_size > 0\n    strategy.close(\"Long\")\n\nplot(smaVal, \"SMA200\", color=color.orange)",
   "pineSha256": "d210ec8adfcc05a83713a4549edb9889b4f7e16a4ae8de1edc086858b17138ae",
   "ms": 106,
   "marches": {
    "code": "insufficient_activity",
    "k": 0,
    "n": 4,
    "steps": [
     {
      "key": "activite",
      "state": "ko",
      "fr": "Seulement 5 trades sur la période jamais vue, il en faut 10.",
      "en": "Only 5 trades on the period it never saw, 10 are needed."
     },
     {
      "key": "detention",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "essais",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "hasard",
      "state": "na",
      "fr": "Non jugée : trop peu de trades pour mesurer.",
      "en": "Not judged: too few trades to measure."
     },
     {
      "key": "autre_marche",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : rejugez la même règle sur les bougies d’un autre marché (fichier CSV).",
      "en": "Not measured by the online judge: judge the same rule on another market’s candles (CSV file)."
     },
     {
      "key": "en_avant",
      "state": "off",
      "fr": "Non mesurée par le juge en ligne : il ne suit pas encore un script dans le temps.",
      "en": "Not measured by the online judge: it does not follow a script over time yet."
     }
    ]
   },
   "holdBenchmark": {
    "fromIndex": 2679,
    "toIndex": 3347,
    "firstClose": 106133.74,
    "lastClose": 81615.64,
    "maxDrawdownPct": 52.97
   },
   "engine": {
    "datasetFingerprintSha256": "3be459bb7df833d5236aee93b3fcaf19f3b6134b1d0cf5c0c05ca7d427734984",
    "execution": {
     "commissionDeclared": true,
     "feeBps": 10,
     "feeFromScript": true,
     "fillModel": "next_open",
     "followsScript": true,
     "gaps": [
      {
       "code": "PINE_FILL_NEXT_OPEN",
       "message": "Without process_orders_on_close=true, TradingView fills one bar later, at the next open. A default Lab run, the quick proof and the CUDA kernels fill at the signal close: same signals, dates one bar earlier, other prices. Pass replayArguments to follow the script.",
       "messageFr": "Sans process_orders_on_close=true, TradingView exécute une barre plus tard, à l'ouverture suivante. Un rejeu par défaut de la Lab, la preuve rapide et les noyaux CUDA remplissent à la clôture du signal : mêmes signaux, dates une barre plus tôt, autres prix. Passez replayArguments pour suivre le script."
      },
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      },
      {
       "code": "PINE_AI_APPROX_CARRIED_STATE",
       "message": "The script keeps values from one bar to the next (`var`, `:=`, `x[1]` of a computed value). They are computed here from the first bar of the judged data; TradingView starts them at the first bar of its chart, so the first values can differ; and no trade is opened here before every indicator the script reads is defined. This reading follows the Pine documentation and a control interpreter; it has not been compared trade by trade on TradingView.",
       "messageFr": "Le script garde des valeurs d'une bougie à la suivante (`var`, `:=`, `x[1]` d'une valeur calculée). Elles sont calculées ici depuis la première bougie des données jugées ; TradingView les démarre à la première bougie de son graphique, les premières valeurs peuvent donc différer ; et aucun trade n'est ouvert ici avant que tous les indicateurs lus par le script soient définis. Cette lecture suit la documentation de Pine et un interpréteur de contrôle ; elle n'a pas été comparée trade par trade sur TradingView."
      }
     ],
     "initialCapital": 10000,
     "inputs": [],
     "judgeGaps": [
      {
       "code": "PINE_NEXT_OPEN_QTY_DIFFERS",
       "message": "TradingView sizes a percent of equity on the signal close, commission included; the Lab sizes it on the fill price. Measured on TradingView, 1 Nov 2026: -0.015 % on final equity over 66 trades at 100 %. With margin_long=100 TradingView also liquidates a small part on the fill bar after an upward gap, which the Lab does not model.",
       "messageFr": "TradingView calcule un pourcentage du capital sur la clôture du signal, commission comprise ; la Lab sur le prix d'exécution. Mesuré sur TradingView le 1/11/2026 : -0,015 % sur le capital final en 66 trades à 100 %. Avec margin_long=100, TradingView liquide aussi une petite part sur la barre d'entrée après un trou à la hausse, ce que la Lab ne modélise pas."
      },
      {
       "code": "PINE_AI_APPROX_CARRIED_STATE",
       "message": "The script keeps values from one bar to the next (`var`, `:=`, `x[1]` of a computed value). They are computed here from the first bar of the judged data; TradingView starts them at the first bar of its chart, so the first values can differ; and no trade is opened here before every indicator the script reads is defined. This reading follows the Pine documentation and a control interpreter; it has not been compared trade by trade on TradingView.",
       "messageFr": "Le script garde des valeurs d'une bougie à la suivante (`var`, `:=`, `x[1]` d'une valeur calculée). Elles sont calculées ici depuis la première bougie des données jugées ; TradingView les démarre à la première bougie de son graphique, les premières valeurs peuvent donc différer ; et aucun trade n'est ouvert ici avant que tous les indicateurs lus par le script soient définis. Cette lecture suit la documentation de Pine et un interpréteur de contrôle ; elle n'a pas été comparée trade par trade sur TradingView."
      }
     ],
     "labDefaultFollowsScript": false,
     "processOrdersOnClose": false,
     "quantityType": "percent_of_equity",
     "quantityValue": 100,
     "replayArguments": {
      "executionSemantics": "tv_exact_v1",
      "feeBps": 10,
      "fillModel": "next_open"
     },
     "schema": "strategyarena.pine_script_execution.v1",
     "undeclaredFeeApplied": false
    },
    "executionPolicy": {
     "executionSemantics": "tv_exact_v1",
     "fillModel": "next_open"
    },
    "feeBps": 10,
    "holdout": {
     "bars": 669,
     "buyHoldPct": -23.25,
     "endIndexInclusive": 3347,
     "excessVsBuyHoldPct": 4.16,
     "firstTimestamp": "2024-12-17T00:00:00.000Z",
     "lastTimestamp": "2026-10-16T00:00:00.000Z",
     "maxDrawdownPct": 30.77,
     "pnlPct": -19.09,
     "startIndex": 2679,
     "trades": 5,
     "winRatePct": 20
    },
    "judgeMode": "free",
    "ok": true,
    "schema": "sa.judge.verdict.v254",
    "scriptSha256": "6ae53c5c93a8eb516420760f9757b8c0f4664fd6154908791233c6fc43a65663",
    "sealedTrades": [
     {
      "entry_index": 2680,
      "entry_price": 106133.74,
      "exit_index": 2763,
      "exit_price": 78595.86,
      "pnl_pct": -26.120449161595555,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2768,
      "entry_price": 84338.44,
      "exit_index": 2770,
      "exit_price": 84010.02,
      "pnl_pct": -0.5890178428721212,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2777,
      "entry_price": 87498.16,
      "exit_index": 2782,
      "exit_price": 82648.53,
      "pnl_pct": -5.737008286802836,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2807,
      "entry_price": 93691.07,
      "exit_index": 2985,
      "exit_price": 107185,
      "pnl_pct": 14.188176023606081,
      "reason": "exit_condition",
      "side": "long"
     },
     {
      "entry_index": 2987,
      "entry_price": 110532.09,
      "exit_index": 3002,
      "exit_price": 101497.23,
      "pnl_pct": -8.365796141193025,
      "reason": "exit_condition",
      "side": "long"
     }
    ],
    "sourceSha256": "d210ec8adfcc05a83713a4549edb9889b4f7e16a4ae8de1edc086858b17138ae",
    "statistics": {
     "fixedRule243b": {
      "alphaPct": 5,
      "alphaPctCertified249a": 5,
      "deflatedSharpe": {
       "probabilitySharpeExceedsBenchmarkPct": 99.21957,
       "status": "complete",
       "trialSharpeVariance": 0.0004033884630899556,
       "trials": 1
      },
      "eligible": true,
      "regime": "fixed_rule_preregistered_v1",
      "trials": 1
     },
     "independentEvents244a": {
      "axis": "bars",
      "closedTrades": 5,
      "events": 1,
      "maxHoldBars": 178,
      "minimumForSurvives": 30,
      "preregistrationSha256": "7236d8cff4216d8f114764a259a544bf3eba3542c64694f97bf710fd7d8395b2",
      "rule": "closed test trades sorted by entry; a trade opens a new event when it enters at least the longest holding time (maxHoldBars) after the end of the current event; pooled: calendar time across the assets (a common fall is one event); fewer than 30 events never read survives"
     },
     "kurtosis": 11.314555695065996,
     "observationStartIndex": 199,
     "observations": 2480,
     "skewness": 0.31344418250825806,
     "spaVsBuyHoldTest": {
      "aggregationBars": 1,
      "blockLengthMethod": "politis_white_2004_patton_politis_white_2009",
      "consistentExceedanceCount": 1000,
      "consistentPValuePct": 100,
      "meanDifferentialPerBar": -6.753864137326676e-05,
      "observedTestStatistic": 0,
      "receiptFingerprintSha256": "4f97a0d14ee6a6c71f95a754e51b606e15a7e5ae7ad5fdad74ddb6a4f060f58b",
      "simulationsCompleted": 1000,
      "spaResolution246d": {
       "alphaPct": 5,
       "decision": "not_significant",
       "rule": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
       "steps": [
        {
         "alphaBelowResolution": false,
         "alphaPct": 5,
         "decision": "not_significant",
         "exceedances": 1000,
         "lower95Pct": 99.700875,
         "simulations": 1000,
         "upper95Pct": 100
        }
       ]
      },
      "status": "complete"
     },
     "trainSharpePerBar": 0.04834110738976987
    },
    "train": {
     "firstTradableIndex": 199,
     "pnlPct": 782.82,
     "sharpePerBar": 0.04834111,
     "trades": 16
    },
    "universeFingerprintSha256": "38d47f8a7a53f5a18b91a7981c2c34a9eeb3cb3ec52d46b6afb6e04b53a789c7",
    "verdict": {
     "alphaPct": 5,
     "code": "insufficient_activity",
     "judgeMode": "free",
     "reasons": [
      "holdout_trades_below_10"
     ],
     "regime": "fixed_rule_preregistered_v1",
     "rules": {
      "independentEvents": "certified mode only: at least 30 independent events on the test period (closed trades grouped by the longest holding time; calendar time across assets) for survives",
      "judgeMode249a": "free mode (default): a test period already opened, a test period already seen at 20% or more, fewer than 30 independent events and the summable alpha spending are information, never a cap (fixed rule: the test threshold of a first rule, alpha_1; walk-forward: 10%); the test period unseen during this run's selection, PBO, Deflated Sharpe (trials counted), SPA, CPCV and Monte Carlo still decide. certified:true applies the strict rules; only a certified report counts for the badge, the AI scoreboard, the server and the weekly challenge",
      "mirage": "a loss on the test period, or Deflated Sharpe (N trials) < 50%",
      "periodAlreadySeen": "certified mode only: a test period whose bars were already >= 20% inside test periods opened by the same rule family on the same market and timeframe (any dataset, sweep holdout columns included) never gives survives",
      "spaResolution": "B = 1000, then 4000, then 10000 (engine maximum) while the one-sided 95% Clopper-Pearson interval of p = k/B contains alpha; significant when its upper bound <= alpha, not significant when its lower bound > alpha (or the statistic is truncated, p = 100%); still undecided at B = 10000, or alpha below 1/(B+1): spa_resolution_insufficient (never survives)",
      "survives": "fixed rule registered before the proof (no selection: PBO and CPCV not applicable): test trades >= 10, test profit above buy-and-hold, SPA on the test period p <= 5.0000% and Deflated Sharpe on training (N = 1 trials, V = 1/(T-1)) >= 95%, at least 10 training trades",
      "trials": "N = distinct scripts among the fixed rules registered on this Lab in the last 30 days and the scripts that already opened these test windows; alpha = 10% / [N(N+1)] (summable spending, wave-246d; 10% / N before the 246)"
     },
     "statisticsLibrary": "strategyarena.proof_statistics.v5",
     "trials": 1
    },
    "warnings": [
     "The script header names BTC 10m; the proof runs it on the selected dataset BTC 1d."
    ],
    "window": {
     "bars": 3348,
     "endIndexInclusive": 3347,
     "holdoutPercent": 20,
     "startIndex": 0,
     "trainBars": 2679
    }
   }
  }
 ]
}