Reference
Deep reference material for advanced PineHook users: every webhook command, every parameter, every edge case.
The Reference section is the complete, technical handbook for advanced users. It documents every webhook command, every parameter, and every behavioral edge case the relay and EA implement, with worked examples for each.
If you're getting started, the Setup guides and TradingView Integration docs are a better entry point. If you're troubleshooting a specific problem, check Troubleshooting first. Use this section when you need the precise contract for a command or parameter and you want the full behavioral story.
What's here#
Signal format and parameters
- Signal Formatting: CSV, JSON, and minified-JSON payload formats; field order; common formatting errors.
- Common Parameters: every cross-command parameter (sizing, magic, delay, expiry, active hours) with exact rules and interactions.
- Signal Auth (Secret Key): the per-license
auth=switch, when it is on every signal must carry the password, and how it works end-to-end.
Order placement
- Place Orders:
buy,sell,buylimit,buystop,selllimit,sellstop,buyat,sellat. Sizing, SL, TP, expiry, schedules. - Multi-Target TP/SL: split a position across up to ten take-profit and ten stop-loss levels.
- Trail and Breakeven: trailing stops and auto-breakeven behaviour, modes, and triggers.
- Slippage Protection: how the EA's pre-trade slippage gate works and how to tune it.
- Execution Times: what each timestamp on a signal means and how to read end-to-end latency.
Closing and cancelling
- Close Positions:
closelong,closeshort,closeall,closeallprofit,closeallloss,closecancelall. Partial closes and emergency-brake variants. - Cancel Orders:
cancellong,cancelshort,cancelall. Targeted vs. sweep cancels. - Trade Management:
modify,breakeven,trail,notrail,nobreakeven. Order-type targeting and SL/TP removal.
EA control
- EA Control Commands:
eaon,eaoff,eaoffexcept,eaonexcept,closealleaoff,closecancelalleaoff. Symbol filters and the 100-symbol ceiling.
A note on tier limits#
Each command's behaviour is the same on every tier. What varies is capacity: signals per minute, signals per day, how many strategies you can run per symbol on each license (2 Standard / 5 Pro / 10 Premium), simultaneous live pending orders per license, and how many licenses you can run. See Subscription Tiers for the comparison and the pricing section for current rates.