Advanced Trade Options
A trade command can carry far more than direction and size: leverage, layered take-profits, DCA ladders, limit-order chasing, conditional guards, precise timing. The pages in this section document every advanced field, grouped by what it controls.
The Trade Command Builder sets these fields for you. Reach for these pages when you want a specific behaviour, when you hand-write a payload, or as a lookup alongside the Parameter Reference.
The field categories
The 84 trade-command fields fall into 12 groups, each with its own page:
| Category | Count | Detail page |
|---|---|---|
| Core (routing, direction, auth) | 12 | Core Parameters |
| Sizing | 6 | Sizing |
| Stop Loss + trailing | 11 | Stop Loss |
| Take Profit | 6 | Take Profit |
| Futures / derivatives | 9 | Futures Options |
| DCA + Scaled orders | 9 | DCA & Scaling |
| Limit-order management | 8 | Limit Order Management |
| Conditional logic | 10 | Conditional Logic |
| Close & Cancel | 7 | Close & Cancel |
| Timing & Idempotency | 3 | Timing & Idempotency |
| Math expressions | 2 | Math Expressions |
| LimitOrder sub-shape | 5 | covered in Take Profit |
The counts overlap slightly: stopLossExpression and takeProfitExpression are each listed under both Math expressions and their risk category, and the 5 LimitOrder sub-fields live inside targets[] rather than at the top level. Net unique top-level fields: 84. The Parameter Reference renders the full deduplicated list.
Worked examples and footguns
- Examples — complete Pine + JSON pairs for common setups.
- Gotchas — the footguns the parameter table can't warn you about. Read before going live.
How the server reads your command
Before any of these fields reach the exchange, TVH runs a fixed auto-mapping step: it can derive direction from orderType, force a close from strategyComment, and evaluate math expressions. When a payload behaves unexpectedly, that step is usually why. The full breakdown is in Trade Command Anatomy & Auto-Mapping.