-
Notifications
You must be signed in to change notification settings - Fork 0
Decision Journal
Anupam Sinha edited this page Sep 8, 2026
·
1 revision
Every recommendation the server (or its debate workflow) produces can be logged with its rationale and the price at decision time — then measured later. This is the forward-looking companion to Backtesting: backtest validates the rules on history; the journal validates the live calls going forward.
-
actionmust be BUY / HOLD / SELL - Price at decision time is fetched automatically and stored
- Example: "Log that I'm HOLDing RELIANCE at 45 with the trend-vs-valuation rationale"
For each open decision: current price, return since decision, and a verdict:
| Action | CORRECT | WRONG | NEUTRAL |
|---|---|---|---|
| BUY | return > +1% | return < −1% | in between |
| SELL | return < −1% | return > +1% | in between |
| HOLD | — | — | |return| ≤ 5%; BROKEN beyond |
-
Primary: MongoDB collection
stock_data.decision_journal(configurable viaMONGODB_URI/MONGODB_DB_NAME) -
Fallback: if MongoDB is unreachable at call time, entries go to
decision_journal.jsonnext toserver.py(gitignored). Note: the two stores are independent — nothing migrates automatically if you switch.
The bull_bear_debate prompt ends with a mandatory log_decision call, so every
debated decision is recorded with its full rationale — no untracked opinions.
- Verdicts use the fixed thresholds above — mechanical, not generous.
- HOLD decisions that drift >5% are marked BROKEN, not quietly excused.
- Nothing is ever deleted automatically; history is append-only.
🧠 Maintained by FoodForBrains — educational analysis only, not financial advice.
🧠 FoodForBrains
stock_market_mcp
- Home
- Setup-and-Installation
- Tools-Reference
- Architecture
- APIs-and-Data-Sources
- Decision-Journal
- Backtesting
- TradingAgents-Inspiration
- Troubleshooting
- FAQ
Educational analysis — not financial advice.