stock-trade-journal
Fixed storage location
results/trade-journal/records/<TS_CODE>.md
results/trade-journal/db/trades.db
Execution rules
- Record every trading action (buy/sell/add/reduce).
- Write both Markdown + SQLite (dual write).
- Markdown is continuously appended per individual stock, and the database is used for subsequent statistical calculations.
Command template
python3 scripts/record_trade.py \
--workspace ~/.openclaw/workspace \
--ts-code 603067.SH --side SELL --price 44.1 --quantity 2900 \
--position-before 36900 --position-after 34000 \
--reason "压力位先锁利润" --stop-loss 37.2 --take-profit "45.5分批"