{
  "study": "GBP/USD H4 CCI20 recovery above-100 with and without EMA50",
  "frozen_at_utc": "2026-11-12T01:36:23.418786+00:00",
  "frozen_before_new_strategy_results": true,
  "historical_split_is_retrospective": true,
  "periods": {
    "development": [
      "2021-01-01T00:00:00Z",
      "2025-01-01T00:00:00Z"
    ],
    "holdout": [
      "2025-01-01T00:00:00Z",
      "2026-10-01T00:00:00Z"
    ]
  },
  "source": {
    "provider": "HistData.com Generic ASCII M1 Bid",
    "timezone": "fixed EST UTC-05:00 without DST; add5h for UTC",
    "warmup_start": "2019-01-01T00:00:00Z",
    "archives": [
      {
        "symbol": "GBPUSD",
        "period": "2019",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2019.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2019",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:35:50.071054+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 3411684,
        "sha256": "bc6d390e539d267fcd7856851db463fc098de5d7f7d732ddca75604f4a259bf2",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_2019.csv",
            "bytes": 20109384,
            "crc32": "160f03e9"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_2019.txt",
            "bytes": 21130,
            "crc32": "e5e50bcf"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2020",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2020.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2020",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:35:50.189419+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 3625339,
        "sha256": "07ad9524551d1b5bc617cd6971e5a6f38156f92e7046fa368abd22cbe7d9a044",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_2020.csv",
            "bytes": 20145078,
            "crc32": "586ec6c6"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_2020.txt",
            "bytes": 37763,
            "crc32": "d75d96b9"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2021",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2021.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2021",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:35:50.111823+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 3447415,
        "sha256": "5ce226e9e1cabcb8d3cab7d5c64135da2c864b0d79a559c8a08c6e1e3d47866e",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_2021.csv",
            "bytes": 20001492,
            "crc32": "968163bc"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_2021.txt",
            "bytes": 232178,
            "crc32": "fd986272"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2022",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2022.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2022",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:02.561313+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 3670216,
        "sha256": "6c3134133d24effe9ebae1ee02c7b0db3bff8f60f92bd9add846abc54d00a86e",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_2022.csv",
            "bytes": 20114676,
            "crc32": "75949457"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_2022.txt",
            "bytes": 105440,
            "crc32": "a2d68a50"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2023",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2023.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2023",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:02.570040+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 3049553,
        "sha256": "4e7031d841a953ae76d1ba056780838bddd08e0d5eac62dd21c64b28b7b1a68b",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_2023.csv",
            "bytes": 17413218,
            "crc32": "64c30dce"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_2023.txt",
            "bytes": 118766,
            "crc32": "4872766c"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2024",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2024.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2024",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:02.448837+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 3375781,
        "sha256": "030b05b4c670c7e152bf4aa4112488c96695d2dcc2b31ca13a3b4834b8431077",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_2024.csv",
            "bytes": 20093778,
            "crc32": "67455607"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_2024.txt",
            "bytes": 173828,
            "crc32": "cc315213"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2025",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2025.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2025",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:02.582415+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 3496823,
        "sha256": "7b69c334eadd10568168634cff3ca37b06e5fb9057db4da9b590e2ef2034854e",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_2025.csv",
            "bytes": 20038914,
            "crc32": "c230c60d"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_2025.txt",
            "bytes": 153140,
            "crc32": "4f2d5df0"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2026/1",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2026-1.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2026/1",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:14.500422+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 282446,
        "sha256": "870c6a632f168004e2af0bcc8d357cb07a533c68d123aec5fa48904bc3d2ce08",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_202601.csv",
            "bytes": 1625778,
            "crc32": "ed45154b"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_202601.txt",
            "bytes": 10659,
            "crc32": "8db77b88"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2026/2",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2026-2.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2026/2",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:14.531035+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 271128,
        "sha256": "16831fa0058c5385a3b0da8127804f944a423d78d1c35f0c8b09b01e2e4f6340",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_202602.csv",
            "bytes": 1548072,
            "crc32": "5a774fa1"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_202602.txt",
            "bytes": 9515,
            "crc32": "da5126ba"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2026/3",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2026-3.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2026/3",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:14.499050+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 315578,
        "sha256": "55a7e44b8f74430122811bb869b52da174443721ae885fbe9e18836bcb1fcc7c",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_202603.csv",
            "bytes": 1725030,
            "crc32": "5b731619"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_202603.txt",
            "bytes": 5599,
            "crc32": "7f2aa3bf"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2026/4",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2026-4.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2026/4",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:14.536681+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 294494,
        "sha256": "65b5760fa4f06061ae7d8d549e55f29c6674162f76df8ea453dcbbe47d7ceebd",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_202604.csv",
            "bytes": 1699704,
            "crc32": "020dfd6f"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_202604.txt",
            "bytes": 14520,
            "crc32": "768ce7f9"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2026/5",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2026-5.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2026/5",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:26.601110+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 271883,
        "sha256": "8af401940ee755133fcd677b1ef4e7d07c4d45269370d4bfb4fcb9af98a79f1e",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_202605.csv",
            "bytes": 1586736,
            "crc32": "42a8da28"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_202605.txt",
            "bytes": 16197,
            "crc32": "c20d0299"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2026/6",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2026-6.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2026/6",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:26.574599+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 289954,
        "sha256": "b6534603559ce1d611849e99f129c224832431b0135f9cef4830c14152db2e32",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_202606.csv",
            "bytes": 1702728,
            "crc32": "faec04b4"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_202606.txt",
            "bytes": 10540,
            "crc32": "56e26ede"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2026/7",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2026-7.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2026/7",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:26.563455+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 296702,
        "sha256": "eed97b0e50df94532cd6bb5497210670fdbe27acf3e0f94238c7542402113dea",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_202607.csv",
            "bytes": 1757160,
            "crc32": "adc63caa"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_202607.txt",
            "bytes": 10490,
            "crc32": "2d5d3931"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2026/8",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2026-8.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2026/8",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:26.560588+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 267749,
        "sha256": "41d82691331216fbca668d65f449cb3a0824b3bdfb7c2d94b8689dd95b52402a",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_202608.csv",
            "bytes": 1648242,
            "crc32": "880c720f"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_202608.txt",
            "bytes": 10356,
            "crc32": "c567de5c"
          }
        ],
        "status": "downloaded"
      },
      {
        "symbol": "GBPUSD",
        "period": "2026/9",
        "path": "data/eurusd-bb-squeeze/raw/GBPUSD-M1-2026-9.zip",
        "source_page": "https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/GBPUSD/2026/9",
        "download_endpoint": "https://www.histdata.com/get.php",
        "fetched_at_utc": "2026-11-04T14:36:38.854429+00:00",
        "http_status": 200,
        "content_type": "application/octet-stream",
        "bytes": 269367,
        "sha256": "25381df15f6c7fcb6a747867da36ceeb12b427e65de1d25cf24b4dcdd4f0b858",
        "members": [
          {
            "name": "DAT_ASCII_GBPUSD_M1_202609.csv",
            "bytes": 1634418,
            "crc32": "d475c0cf"
          },
          {
            "name": "DAT_ASCII_GBPUSD_M1_202609.txt",
            "bytes": 11150,
            "crc32": "b89154f8"
          }
        ],
        "status": "downloaded"
      }
    ],
    "normalization": "Parse all real M1 Bid OHLC; reject invalid/nonpositive/inconsistent rows; collapse exact duplicates; exclude every timestamp with conflicting valid OHLC; sort strictly; no synthetic minutes or volume. Retain rows before end_exclusive only.",
    "h4": "UTC four-hour bins at00,04,08,12,16,20 accepted only with exactly240 distinct consecutive M1 timestamps from opening minute through minute239 inclusive; aggregate real OHLC. Partial four-hour intervals excluded from signals but real M1 remains available for execution. Gaps include non-trading closures; no claim of tick-complete coverage."
  },
  "indicators": {
    "cci20": "TP=(High+Low+BidClose)/3 on20 most recent accepted H4. SMA20 is the mean of those20 typical prices. MAD20 is the arithmetic mean of abs(TP_i-current_window_SMA20) for the same20 prices, not deviations from each past rolling mean and not standard deviation. CCI20=(currentTP-SMA20)/(0.015*MAD20); if MAD20=0 define CCI20=0. Typical-price source HLC3 is explicitly selected; platform defaults can differ. CCI is unbounded; -100/+100 are thresholds, not scale limits.",
    "ema50": "Bid close; arithmetic mean of first50 accepted H4 closes seeds EMA, then EMA_t=EMA_previous+2/51*(C_t-EMA_previous).",
    "atr14": "First TR=high-low; subsequent TR=max(high-low,abs(high-previous accepted close),abs(low-previous accepted close)); mean first14 TR seed, then (13*previousATR+TR)/14.",
    "gaps": "Continue all indicators across accepted H4 sequence including closures/partial-interval gaps; no reset or filled bars. Both arms need at least200 accepted H4 (common warmup), finite CCI and positive ATR. Recovery-cross additionally requires current and previous accepted H4 starts exactly4h apart.",
    "exact_cci_gate": "Source prices are exact integer millionths. Let x_i=(H_i+L_i+C_i) in those integer units, S=sum(x_i over20), A=sum(abs(20*x_i-S)). For A>0 compute CCI=20000*(20*x_current-S)/(15*A), with an equivalent integer numerator/denominator comparison to-100 to avoid rounding an exact threshold tie. Numerical CCI is reported with Decimal40 arithmetic; A=0 setsCCI0."
  },
  "signal": {
    "direction": "long only; no mirrored short study",
    "baseline": "On completed accepted H4 t: CCI20_previous<=-100 and CCI20_t>-100. Current and previous accepted H4 adjacent; full common200-bar warmup. No zero-line or+100 breakout condition.",
    "filtered": "Identical baseline candidate plus Bid close_t>EMA50_t, strictly; equality rejected. No EMA-slope, divergence or extra momentum condition.",
    "entry": "Exact next UTC H4 boundary M1 opening only, if present; otherwise cancel, never wait for a later opening. Separate one-position calendars; candidate entry must be strictly later than previous exit M1 timestamp. Signals during occupancy ignored. No rounding of indicator comparisons."
  },
  "execution": {
    "entry_fill": "Bid M1 open + modeled full spread + adverse entry slippage. This is an assumed Ask fill, not observed Ask.",
    "risk": "1R=2*ATR14_signal in USD per EUR unit; fixed stop=actual modeled entry fill-2*ATR; fixed target=actual modeled entry fill+3*ATR. No trailing or CCI/EMA exit.",
    "deadline": "120 elapsed wall-clock hours from entry, including weekends. Time exit at first observed M1 open at or after deadline; actual holding can exceed120h during a closure/source gap.",
    "event_order": "For each real M1 after entry: gap/open<=stop exits at real Bid open; otherwise open>=target exits at target cap; otherwise if deadline reached exit at Bid open; otherwise intraminute low<=stop or high>=target, stop first if both. Entry-minute standing orders are active after entry fill and may stop immediately. Apply adverse exit slippage to every exit reference. Exact level equality is a touch.",
    "gaps": "No unobserved path is invented. Standing orders assessed at next observed M1 opening and OHLC after source gaps; gap-through stop uncapped. This next-observation execution convention cannot certify real fills or hidden extremes inside gaps.",
    "boundary": "Each sample starts flat with retained preperiod indicator history. At end_exclusive, any open trade is liquidated at final real preboundary M1 close; no postboundary quotes.",
    "rollover": "Modeled debit at17:00 America/New_York on weekdays (DST aware), Wednesday3 units, other weekdays1; entry<event<=exit minute open, or <=exit minute close for boundary close. Same debit for every long; not actual broker swaps. Entry exactly at event not charged.",
    "ambiguity": "Also rerun each full one-position calendar target-first for within-M1 both-level touches; this sensitivity is not tick truth."
  },
  "costs": {
    "pip": "0.0001",
    "base": {
      "spread_pips": "1.5",
      "slippage_pips_each_side": "0.1",
      "commission_pips_each_side": "0.25",
      "debit_pips_per_roll_unit": "0.5"
    },
    "stress": {
      "spread_pips": "3.0",
      "slippage_pips_each_side": "0.3",
      "commission_pips_each_side": "0.5",
      "debit_pips_per_roll_unit": "1.0"
    },
    "stress_method": "Rerun fills, entry-based levels, outcomes and each arm calendar with stress costs; not just subtract costs from a fixed ledger."
  },
  "reporting": {
    "net_r": "(exit_reference-exit_slippage-entry_fill-2*commission-carry)/initial_price_risk. Sum of R with fixed per-trade normalization, no account sizing/compounding, margin, lot rounding or account-return percent.",
    "drawdown": "Peak-to-trough cumulative completed-trade netR, initial peak0; excludes open-trade/intraminute account equity risk.",
    "years": "Group independent period ledgers by exit UTC year.",
    "diagnostic": "Every executable holdout baseline candidate simulated in isolation, irrespective of occupancy; split by EMA50 pass/reject. May overlap and is not a portfolio. Nonpositive netR<=0 is a chosen outcome label, not objective proof of a false market reversal.",
    "examples": "Chronologically first completed filtered holdout trade regardless of sign; first rejected isolated holdout candidate with netR<=0; first rejected isolated holdout candidate with netR>0. Rejected examples are hypothetical; no sign-based selection for the filtered example.",
    "no_parameter_search": true
  },
  "sources": [
    "https://www.histdata.com/f-a-q/data-files-detailed-specification/",
    "https://www.tradingview.com/support/solutions/43000502001-commodity-channel-index-cci/",
    "https://www.tradingview.com/support/solutions/43000592270-exponential-moving-average/",
    "https://www.tradingview.com/support/solutions/43000501823-average-true-range-atr/"
  ]
}
