Bot setup & testing · Digital guide
Build a Trade Journal for a Crypto Trading Bot
Record bot decisions, skipped signals and test fills in a journal. Use the Grok guide’s Logger and reporting prompts to review your paper dataset.
View the guide →One-time payment · Instant download
- Level
- Beginner
- First pass
- About 3 hours
- Mode
- Research and simulation only
- Format
- Digital guide, self-paced
What you’ll work on
You need more than a list of fills to understand a bot. Keep the reason each candidate reached a decision so you can tell a strategy change apart from a delay, failed request or broken data feed.
What you need before you start
- A spreadsheet, CSV or SQLite database
- An event ID created when the bot first sees a candidate
- Fields for decision, reason, outcome and assumptions
- One test day of data to reconcile by hand
How to approach the project
Assign one ID to the event and its decisions
Record an original event ID, input timestamp, observation timestamp and data source. Append the filter decision and reason without rewriting the original observations. This lets you trace a rejected token even when it never produced a paper entry, and it makes later source corrections easier to identify.
Track outcomes separately from decisions
Log a simulated fill only when your paper execution model accepts it. Record skipped, expired and unfilled candidates as their own categories. Add model assumptions for fees and slippage so you can compare runs and spot where an unrealistic assumption changed a headline number.
Reconcile a daily report against the raw journal
Pick one test day and manually count the input events, rejections and simulated fills. Compare your tally to the report and investigate mismatches before adding more fields. Test a duplicate input and a missing timestamp to make sure the report exposes data problems rather than silently discarding them.
Worked example: Decisions and outcomes in separate columns
| Event ID | Decision | Reason | Outcome | Assumptions |
|---|---|---|---|---|
| e-1001 | pass | Liquidity ok | Simulated fill | fee 0.3%, slip 1% |
| e-1002 | reject | Stale quote | no entry | - |
| e-1003 | pass | Liquidity ok | Unfilled (no route) | fee 0.3%, slip 1% |
| e-1004 | pass | Liquidity ok | Expired before handling | - |
Invented rows. Skipped, expired and unfilled candidates are their own categories.
Common mistakes to avoid
Logging fills only
You lose the context of what the bot rejected and why.
Editing history
Append new decisions instead of rewriting original observations.
No reconciliation
Count one day by hand and compare it to the report.
You’re done when…
- Every event has an ID linking observation, decision and outcome
- Fees and slippage assumptions are stored with each run
- A hand count matches the daily report
- Duplicate and missing-timestamp inputs show up as data problems
Frequently asked questions
Will this import results from my real trading accounts?
The guide teaches logging for the project you build. Importing a separate exchange account’s historical fills would require its own integration.
Can I use a spreadsheet for the first version?
Yes. Start with a small table that preserves identifiers, outcomes and timestamps. The guide’s longer workflow includes structured logging and a database prompt.
Can I import my exchange history?
Not in this guide. Importing real account history needs its own integration.
Do I need SQLite?
No. Start with a spreadsheet. Move to a database when volume or querying needs grow.
Grok Trading Bot Prompt Guide
Build a six-agent Solana trading desk with prompts for screening, simulated trades, alerts and testing.
Explore the guide · $37Educational material only, not financial advice. Example figures on this page are invented to illustrate the method. Crypto assets are volatile and you can lose money. Test in simulation and check current provider terms before using any service.