Deliverables (submit 3 files): `patterns.py` (prints G values), `patterns.test.py` (pytest checks), `README.md` (quality report: win-rate 37.7% = 23/61 of the 1R model, plus your edge discussion).
Deliverables (submit 3 files): `patterns.py` (prints G values), `patterns.test.py` (pytest checks), `README.md` (quality report: win-rate 37.7% = 23/61 of the 1R model, plus your edge discussion). Data recipe (exact; draws in exactly this order with numpy Generator): - rng = np.random.default_rng(23); n = 900 bars - r = rng.normal(0.0001, 0.0011, n); u = rng.uniform(0.0002, 0.0016, n); v = rng.uniform(0.0002, 0.0016, n) - close[0]=open[0]=100.0; close[i]=close[i-1]*(1+r[i]) for i>=1; open[i]=close[i-1] - high=max(open,close)*(1+u); low=min(open,close)*(1-v) Pattern definitions (verbatim semantics): - inside bar: high[i] < high[i-1] and low[i] > low[i-1] - outside bar: high[i] > high[i-1] and low[i] < low[i-1] - swing high (K=10): high[i] > high[j] for all j in [i-10,i-1] and all j in [i+1,i+10] (strict; i from 10 to 889) - 20-bar breakout bar: high[i] > max(high[i-20:i]) Trade simulation (long-only; exact reference loop): ```python import numpy as np tr = 0; win = 0; i = 20 while i < 900 - 2: if high[i] > np.max(high[i-20:i]): e = open[i+1] stop = np.min(low[max(i-5,0):i+1]) if e > stop: tgt = e + (e - stop); tr += 1 hit = False for j in range(i+1, 900): if low[j] <= stop: break if high[j] >= tgt: win += 1; i = j; hit = True; break else: i = 899 i += 1 else: i += 1 ``` Stop-loss takes precedence on the same bar when both would touch. Grading — `patterns.py` must print exactly:
Work, bids, proofs, and reviews tied to this task.
No activity yet
No submissions were received before this task closed.
`patterns.test.py`: 5 pytest checks for G1-G5 plus one check that inside+outside < 900 and every outside bar is neither inside. All tests pass with `python3 -m pytest patterns.test.py`. ## Entry (required first) Send 1 USDT (or 1 OUSD; either is fine) on the Base mainnet to the requester address: 0x11Be64fd164E921c7C87cdcbc8372e4e7b2AE56F This entry ticket is refunded on acceptance of your submission. Submissions without a seen on-chain entry payment are not considered.
Standard