You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9507d8f
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(corpus): pull equity-mirror into corpus/parity-anomalies/
Companion to the corpus submodule bump (8d1aefe..50813bc). The former
validation/parity-probe-03-equity-mirror probe documents TV-side
non-determinism at the 1x equity margin boundary, not an engine bug.
Keeping it inside --all only masked it as a regression. This commit
moves the runtime-side support for the new parity-anomalies/ category.
scripts/verify_corpus.py:
- --all defaults to the 167 reference strategies in basic/, community/,
validation/. parity-anomalies/ is excluded so the headline tier
counts stay clean.
- new --include-anomalies flag folds parity-anomalies/ back into --all
for the full 168-strategy sweep.
- parity-anomalies added as --category choice for explicit inspection.
- --all prints a one-line note pointing at parity-anomalies/README.md
when probes are skipped, so users know there is more on demand.
docs/coverage.md:
- canonical-report figure updated: excellent=165, strong=2 across the
167 reference strategies; the anomaly probe is described in its
own paragraph with pointers to the local index and the utils
write-up.
src/engine_strategy_commands.cpp:
- margin-check comment refs updated to parity-anomalies/equity-mirror.
No behaviour change.
Co-authored-by: Cursor <[email protected]>
These are the eight `request.`* calls Pine v6 exposes outside the two
773
+
that PineForge does support (`request.security` and
774
+
`request.security_lower_tf`). The support checker rejects all eight
775
+
loudly via a generic `request.`* catch-all, so user code never silently
776
+
falls through to broken codegen.
777
+
740
778
- **Feasibility:**
741
-
- `request.financial / dividends / earnings / splits / currency_rate`: *Feasible — needs aux data*. Would need a parallel data-ingestion path so the user can supply a CSV / Parquet of fundamentals or corporate actions; the runtime would then look up the right slice by `bar.timestamp`.
779
+
- `request.financial / dividends / earnings / splits / currency_rate / economic`: *Feasible — needs aux data*. Would need a parallel data-ingestion path so the user can supply a CSV / Parquet of fundamentals, corporate actions, or macroeconomic series; the runtime would then look up the right slice by `bar.timestamp`.
742
780
- `request.seed`: *Out of scope structurally*. TradingView seeds are user-published time series hosted on TV's infrastructure; PineForge has no equivalent registry.
743
781
- `request.quandl`: *Out of scope by design*. Deprecated upstream; not worth implementing.
744
-
- **Future story:** Fundamentals would land as a generic "auxiliary timeline" feature: pass `aux_data={"earnings": df}` to the runner, exposed to Pine via `request.financial`-shaped accessors that read from the aux table.
745
-
- **Why not done yet:** Most strategy logic in our test corpus relies on the chart symbol's bars + indicators. Fundamentals-driven strategies are a meaningful but smaller user segment; we have not built the aux-data ingestion contract.
782
+
- **Future story:** Fundamentals and economic indicators would land as a generic "auxiliary timeline" feature: pass `aux_data={"earnings": df, "us_gdp": df}` to the runner, exposed to Pine via `request.financial` / `request.economic`-shaped accessors that read from the aux table.
783
+
- **Why not done yet:** Most strategy logic in our test corpus relies on the chart symbol's bars + indicators. Fundamentals- and macro-driven strategies are a meaningful but smaller user segment; we have not built the aux-data ingestion contract.
746
784
747
785
#### `barmerge.lookahead_on` for lower-TF emulation
748
786
@@ -772,15 +810,26 @@ is the backing store.
772
810
773
811
## Verifying the surface yourself
774
812
775
-
The 162-strategy validation corpus under `[corpus/](../corpus/)` is the
776
-
canonical proof that this runtime delivers the surface listed above.
777
-
Run `bash scripts/run_corpus.sh` to compile every `generated.cpp`
813
+
The 168-strategy validation corpus under `[corpus/](../corpus/)` (162
814
+
reference strategies + 6 parity probes) is the canonical proof that
815
+
this runtime delivers the surface listed above. Run
816
+
`bash scripts/run_corpus.sh` to compile every `generated.cpp`
778
817
against `libpineforge.a` and diff the per-strategy `engine_trades.csv`
779
818
against the TradingView export shipped alongside it — the current
780
-
canonical report is **excellent=160, strong=2** across 162 strategies.
781
-
The strict profile checks count + entry-price + exit-price + P&L within
782
-
`1.0% / 0.01% / 0.01% / 1.0%`; the production profile is reserved for
783
-
path-dependent trailing-stop strategies.
819
+
canonical report is **excellent=165, strong=2** across the 167 reference
820
+
strategies in `basic/`, `community/`, and `validation/`. The strict
821
+
profile is the only profile and is applied to every strategy: count +
0 commit comments