Health monitor
How a running strategy is checked against its backtest, what counts as drift, and when a live strategy is moved back to paper.
The health monitor compares a running strategy's closed trades with what its backtest promised. When the gap is bigger than chance explains, the strategy has drifted: you are told on Telegram and, if it is live, it goes back to paper.
Where to find it#
On Strategies, open a running strategy. The health line sits in the record, under the paper numbers. It doesn't show for strategies without a backtest to compare with. After a strategy's rules change, by you or by tuning, the old backtest no longer counts and a new one runs on its own within a few checks (a new size alone changes nothing). Trades only count from that change. A live strategy that can't get a backtest (its trigger can't be replayed) is still stopped by a losing streak, and you are told once that it runs with nothing else to compare with.
What you see#
| Line | Meaning |
|---|---|
| Healthy: In line with the backtest over 18 trades (4.1% vs 6.0%) | Results match the backtest closely enough |
| Health: learning: 6 of 15 closed trades before it is judged | Too few closed trades to judge yet |
| Drifted from its backtest: ... | Results are worse than chance explains; the reason says how, and "(Moved back to paper)" if it was demoted |
How drift is judged#
The monitor takes the strategy's closed trades from the last 90 days in its current mode (paper trades for a paper strategy, live trades for a live one) and compares them with the backtest kept on the strategy. It needs:
- a stored backtest with at least 5 trades (otherwise there is no baseline, and only a losing streak can count);
- at least 15 counted trades (a platform setting) before it judges. A position still open a day after it opened counts at what it would sell for, and one with no way to sell as a total loss.
Then the strategy has drifted when any of these is true:
- The average is too low. It averages more than 5 points per trade under the backtest, and the gap is more than two standard errors (more than the spread of its own results explains over that many trades).
- The win rate is too low. It wins 20 points less often than the backtest did.
- A losing streak. It has had 8 losing trades in a row (a platform setting) at some point. With no backtest, or too few trades to judge, only a streak still going counts.
Otherwise it is Healthy.
What happens on drift#
The first time a strategy is found drifting:
- A live strategy goes back to paper, if the platform setting for demoting live strategies is on (it is by default). The line then ends with "(Moved back to paper)". If the setting is off, you are only told.
- You get a Telegram message: "Strategy name has drifted from its backtest: reason", saying whether it was moved back to paper.
A paper strategy that drifts stays on paper; you are told the same way. You are told once when it starts drifting, not on every check.
How to use it#
- Keep the strategy's backtest current: the monitor compares with the backtest of the saved rules, which runs whenever you open the strategy or save its rules.
- When a strategy drifts, open its Live signals and Backtest tabs. Common causes: the market changed (a cold market for new tokens), your lag or costs are worse than the backtest assumes (check the replay lab), or the edge was a few early winners (check the older 70% against the newest 30%).
- Change the rules and paper-trade again, or stop it.
Good to know#
- The monitor runs on its own in the background, for every strategy on paper or live.
- Drift is a statistical warning, not proof. A strategy can also lose money while staying Healthy, if its backtest was poor to begin with.
- The portfolio allocator keeps a losing strategy at a small size so it keeps learning; the health monitor is what stops it trading real SOL.