{
 "schema": "prisme.references.v1",
 "version": "1.3.0",
 "binary_sha256": "cca03b9637d0b3f4ec085426d3ab6dc1efb094e69c5420c64cadd37e849238da",
 "endpoint": "https://strategyarena.io/prisme/mcp",
 "note": "result_sha256 identifie le contenu (stable d'une version à l'autre tant que le calcul ne change pas) ; manifest_sha256 vaut pour ce binaire seulement (le manifeste contient binary_sha256).",
 "verifier": "https://strategyarena.io/prisme/mcp/verifier_prisme.py",
 "references": [
  {
   "id": "R1",
   "title_fr": "Bougies 1 h BTCUSDT closes à T (T aligné)",
   "title_en": "1h BTCUSDT candles closed at T (aligned T)",
   "tool": "prisme_known_at",
   "arguments": {
    "market": "btcusdt",
    "as_of": 1710504000,
    "interval": "1h",
    "bars": 3
   },
   "index_url": "https://strategyarena.io/prisme/tranches/btcusdt-15m-e21/index.json",
   "expected": {
    "result_sha256": "003c58856424ae7614e8bb245411f95f20a55112df400fb894e6fc3a79f764e0",
    "manifest_sha256": "ca3cea00dcad7055f38a78651378527b75b2170155c33fa8dfa4185e006abaee",
    "closes": [
     67799.31,
     67250.78,
     67757.76
    ],
    "last_close": 1710504000,
    "last_close_utc": "2024-03-15T12:00:00Z",
    "incomplete_t": [],
    "gaps_met": 0
   }
  },
  {
   "id": "R2",
   "title_fr": "Bougies 15 min SOLUSDT, T non aligné (la bougie en cours est retirée)",
   "title_en": "15m SOLUSDT candles, non-aligned T (the open candle is dropped)",
   "tool": "prisme_known_at",
   "arguments": {
    "market": "solusdt",
    "as_of": 1699434420,
    "interval": "15m",
    "bars": 4
   },
   "index_url": "https://strategyarena.io/prisme/tranches/solusdt-15m-bv1/index.json",
   "expected": {
    "result_sha256": "1b4d121c5c83b772bbeaff1bb1cce804e8b44f983228f0ab773a0cc912bb1d8d",
    "manifest_sha256": "1b44950b423a6d7ee83d799945fd858165f311d3c79780bbccafb600a69cf75c",
    "closes": [
     43.64,
     43.67,
     43.58,
     43.5
    ],
    "last_close": 1699434000,
    "last_close_utc": "2023-11-08T09:00:00Z",
    "incomplete_t": [],
    "gaps_met": 0
   }
  },
  {
   "id": "R3",
   "title_fr": "Bougies 1 h BTCUSDT autour d'un trou de l'archive (19/02/2020, 24 bougies 15 min manquantes)",
   "title_en": "1h BTCUSDT candles around an archive gap (2020-02-19, 24 missing 15m bars)",
   "tool": "prisme_known_at",
   "arguments": {
    "market": "btcusdt",
    "as_of": 1582138800,
    "interval": "1h",
    "bars": 8
   },
   "index_url": "https://strategyarena.io/prisme/tranches/btcusdt-15m-e21/index.json",
   "expected": {
    "result_sha256": "be0b3e6d2b42f49f2f59b322512da9379ef1192b389ce36879bbf8f95a309875",
    "manifest_sha256": "9e13a5c8eb0776e970affce52fc2be5e97c0976d21403919ddd8c81798dbaa2d",
    "closes": [
     10069.02,
     10059.3,
     10159.65,
     10112.99,
     10126.09,
     10136.64,
     10158.94,
     10194.77
    ],
    "last_close": 1582138800,
    "last_close_utc": "2020-02-19T19:00:00Z",
    "incomplete_t": [
     1582110000,
     1582131600
    ],
    "gaps_met": 1
   }
  },
  {
   "id": "R4",
   "title_fr": "Dernière figure confirmée connue à T (BTCUSDT 4 h, réglage standard)",
   "title_en": "Last confirmed pattern known at T (BTCUSDT 4h, standard rule)",
   "tool": "prisme_patterns_at",
   "arguments": {
    "market": "btcusdt",
    "as_of": 1710505800,
    "interval": "4h",
    "status": "confirmed",
    "limit": 1,
    "rule": {
     "pivot_radius": 3,
     "min_separation": 8,
     "max_separation": 96,
     "tolerance_bps": 30.0,
     "min_depth_bps": 50.0,
     "confirmation_bars": 32
    }
   },
   "index_url": "https://strategyarena.io/prisme/tranches/btcusdt-15m-e21/index.json",
   "expected": {
    "result_sha256": "8f66744d29c4bf93d1a65883239b687110cf08f15a6e56f3abcf78c89d70f9ba",
    "manifest_sha256": "9f67fca944cd287a2a57d142317d9823a704335e709bc0d5cbebeb9f4bf2aded",
    "pattern": {
     "available_at": 1703448000,
     "available_at_utc": "2023-12-24T20:00:00Z",
     "depth_bps": 148.8507873704349,
     "expires_at": 1703865600,
     "first": {
      "known_at": 1703332800,
      "price": 44048.16,
      "time": 1703275200
     },
     "id": "top:1703275200:1703390400",
     "invalidation_price": 44180.30448,
     "kind": "double_top",
     "neckline": {
      "price": 43291.1,
      "time": 1703304000
     },
     "resolution": {
      "close": 42991.5,
      "known_at": 1703462400,
      "reason": null,
      "time": 1703448000
     },
     "second": {
      "known_at": 1703448000,
      "price": 43946.0,
      "time": 1703390400
     },
     "separation_bars": 8,
     "similarity_bps": 23.219722763420545,
     "status": "confirmed",
     "status_known_at_utc": "2023-12-25T00:00:00Z"
    },
    "matching": 4
   }
  },
  {
   "id": "R5",
   "title_fr": "Règle Bollinger 20/2 (retour au milieu) → script Pine v5 lu par le juge",
   "title_en": "Bollinger 20/2 rule (back to the middle) → Pine v5 script read by the judge",
   "tool": "prisme_rule_to_pine",
   "arguments": {
    "rule": {
     "type": "bollinger",
     "period": 20,
     "mult": 2.0,
     "source": "close",
     "mode": "reversion"
    },
    "interval": "4h",
    "lang": "fr"
   },
   "index_url": null,
   "expected": {
    "result_sha256": "aab21e19f9947987e42fa84c4f8c3858bb4994b1c66cac292f9b6bea83694cd7",
    "manifest_sha256": "4c6c04213853d2a32e4e06448cc50a5e57e645ac5d490a0eacb3f6430fac583f",
    "pine_v5": "//@version=5\n// Exemple de départ généré par l'atelier Prisme d'après vos réglages (graphique 4h). Pas un conseil : une règle à tester, rien de plus.\nstrategy(\"Prisme BB 20/2.0 reversion (4h)\", overlay=true, pyramiding=0, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1, process_orders_on_close=true, margin_long=0)\n[basis, upper, lower] = ta.bb(close, 20, 2.0)\nif close < lower\n    strategy.entry(\"Long\", strategy.long)\nif close > basis\n    strategy.close(\"Long\")"
   }
  }
 ]
}