I Built an Offline Analyzer That Catches the 8 Trading Habits That Blow Up Accounts
Description and use
TradeGuard is an offline analyzer that detects eight common trading risk behaviors with precise evidence, enabling traders to correct mistakes before losses.
Problem
Traders often lose accounts due to repeated risky behaviors that are hard to detect until after the loss.
Outcome
TradeGuard identified eight risk patterns (e.g., over‑leverage, martingale, revenge trading) with precise evidence, enabling traders to correct behaviors before incurring losses.
Workflow
- Export trade history and account metrics to CSV.
- Run
python -m tradeguard audit --trades trades.csv --account account.csv. - Review the risk score and evidence trail in the output.
- Adjust trading strategy based on identified risky behaviors.
- Re‑run audit to confirm improvements.
- Share HTML report with mentor or reviewer if desired.
Evidence
TradeGuard is an offline, zero‑dependency trading behavior analyzer in pure Python standard library.
$ python -m tradeguard audit --trades examples/trades.csv --account examples/account.csv RISK SCORE: 100 / 100 (HIGH — account at serious risk)
The point isn't the score — it's the evidence trail. Every claim points at a row you can open and verify, so the feedback survives arguments.
Two of those assertions matter most to me: clean_history_scores_zero (no false alarms on disciplined trading) and every_finding_has_evidence (the tool can never accuse without proof).
Your full trade history is the most sensitive file you own — it's a map of your worst decisions. TradeGuard runs entirely on your machine: pure standard library, no accounts, no uploads, no API keys.
- Record date: 2026-10-12T12:56:43.007Z