After training,Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tripolskypetr/pump-anomaly/llms.txt
Use this file to discover all available pages before exploring further.
model.dump() gives you the complete signal history of the selected configuration — one flat record per candidate burst, including trades that did not enter, cascade vetoes, and inversions. This is the raw material for post-trade analytics: win-rate attribution, PnL distribution, regime analysis, and traceback to the exact source post that triggered a trade. The history is serialized inside model.save() and restored by PumpMatrix.load(), so it travels with the model.
dump() API
dump() always returns a copy — mutating the returned array or its elements does not affect the model’s internal state. dump(true) is a convenience for writing directly to disk or sending over HTTP. historySize lets you check whether history is present before calling dump().
SignalRecord Fields
Each record is a flat object with no nested sub-objects:pnl is the honest realized fraction — consistent with BacktestResult.pnl. A hard-stop loss is -(hardStop / 100), never softened to a prior peak.
Including Non-Entered Signals
dump() includes every candidate burst evaluated by the selected training configuration, not only the ones that entered a position. Records with entered: false represent two distinct skip reasons:
reason: "no-entry"— candles existed but price never touched the entry zone during the full life-cap window.reason: "cascade-veto"— the cascade detector firedsqueezePolicy = "veto"and the signal was suppressed.
ID Threading for Traceback
Theid and ids fields thread the ParserItem.id through the full pipeline so a realized trade can be traced back to the exact source post.
- A
ParserItem.idcan be a string or number. Numbers are normalized to strings before storage so the type is consistent indump()records andTradeSignal.origin. - In matrix mode, several
ParserItementries from different channels can be folded into a single burst.idscontains all of their ids;idis the anchor (the earliest or primary item’s id). idsurvivesmodel.save()/PumpMatrix.load()— it is serialized with the history and restored exactly.- When a
ParserItemhas noid, the field is simply absent from the record (undefined).
Persistence
dump() data is embedded in the JSON produced by model.save():
historySize returns 0 and dump() returns an empty array. No error is thrown.
Using dump() for Analytics
Becausedump() records are plain objects, they compose directly with standard array methods:
model.pnl and model.riskReward computed over the same history — see the Backtesting guide for their shape.
dump() is the training-time history of the selected configuration — the records come from replaying the chosen hyperparameters over the training data. backtest() is the same replayExit machinery applied to any ParserItem[] and candle source you pass at call time. Use dump() for understanding what training saw; use backtest() for evaluating new signals or time periods not in the training set.