dwlf_create_trade
Log a new trade in the journal with symbol, direction, entry price, and optional stop loss/take profit; add structured confirmReasons so the rationale feeds decision analytics.
Instructions
Log a new trade in the journal. Specify symbol, direction, entry price, and optional stop loss / take profit. STRONGLY RECOMMENDED: pass confirmReasons[] — WHY the trade is being taken, in the same structured vocabulary dwlf_confirm_trade uses, so a directly-logged trade feeds the byConfirmReason decision analytics exactly like a confirmed planned one. Valid confirmReasons: fresh_cycle_entry, trendline_break_confirmed, cluster_confluence, regime_aligned, risk_reward_attractive, adding_to_winner, other. confirmNote is required when a reason is "other". Reasons are optional (untagged trades still log) but every untagged entry is decision-analytics data lost — and unlike a skip, it cannot be reconstructed later. reasonText is the free-text thesis and does NOT substitute: no rollup can read it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"direction": "<direction>",
"entryPrice": "<entryPrice>"
},
"name": "dwlf_create_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Trading symbol (e.g. BTC, TSLA, RIOT) | |
| assetType | No | Asset type | |
| direction | Yes | Trade direction | |
| timeframe | No | Timeframe (e.g. 1d, 4h, 1h) | |
| entryPrice | Yes | Entry price | |
| reasonText | No | Free-text trade reasoning / thesis. Not machine-readable — use confirmReasons for analytics. | |
| confirmNote | No | Free-text detail on the entry rationale. REQUIRED when a reason is "other". Max 2000 chars. | |
| initialStop | No | Stop loss price | |
| isPaperTrade | No | Whether this is a paper trade (default: false) | |
| positionSize | No | Position size (quantity) | |
| confirmReasons | No | WHY this trade is being taken. Valid: fresh_cycle_entry, trendline_break_confirmed, cluster_confluence, regime_aligned, risk_reward_attractive, adding_to_winner, other. | |
| initialTakeProfit | No | Take profit price |