code wiki / (root) / nx_fin_strategy_gate.nx

nx_fin_strategy_gate.nx

buildroot/runtime/nx_fin_strategy_gate.nx

4013 B72 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic fin
docsdependenciesstructsconstsfunctions

about

nx_fin_strategy_gate.nx -- R3 GATE: proves the SMA signal generator on known bars, then runs the FULL LOOP R1(md_parse_csv) -> R3(st_sma_cross) -> R2(bt_run) end-to-end. The crossover buys into a top on this fixture and takes a loss -> the loop HONESTLY reports a losing strategy (that is the whole point of the truth engine). Exits 0 iff all pass. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_gate.nx nx_fin_marketdata.nx nx_fin_backtest.nx nx_fin_strategy.nx nx_fin_strategy_gate.nx

imports: nx_gate.nxnx_fin_marketdata.nxnx_fin_backtest.nxnx_fin_strategy.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main md_parse_csv md_find md_date_key md_price_cents md_atoi chk gw sys_write gn sys_write ↻ sys_mmap st_sma st_sma_cross st_sma ↻ bt_run bt_position_size md_capacity st_above_sma st_sma ↻ st_below_sma st_sma ↻ st_donchian_high st_donchian_signal st_donchian_high ↻ gw ↻ gn ↻

structs

none

consts

none

functions

10func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: gwgn
16func main() -> i64