CLI: validate trade-based WFA JSON, then analyze-trades

Source path in repo: docs/examples/05-cli-validate-and-analyze-trades.md. [View on GitHub]

Mirrored from the engine repository. Prefer reading here for a consistent experience; use GitHub for file history and blame.

1) Canonical trade-based-wfa shape

Save as trade-based-wfa.json:

Validate:

2) Raw trades array

Save trades.json as a array of trades (same objects as trades above). Run:

3) Auto format

--format auto uses CSV when the path ends with .csv, otherwise loads JSON and expects a top-level array of trades (same fields as above). Nested bot export JSON is not supported in-tree; convert to Trade[] or CSV first.

Optional permutationN (100..10000) matches AnalyzeConfig for WFE permutation draws.

[Back to documentation index]