Strategies#
A strategy in HookTrader is a webhook URL plus the behaviour that runs when signals arrive: how much to trade, where to place the stop-loss, and what to do at each TP level.
Articles:
- TP levels — up to 10 levels, action lists, ordering rules.
- Actions — full reference for
move_sl_be,move_sl_pct,reduce_position,add_to_position,close_position,activate_trail,cancel_algo_orders. - Position sizing — risk %, from indicator, fixed quantity.
- Pair lock — auto-lock vs pick-now, and why you can't change after the first trade.
- Examples — battle-tested templates you can paste in and tweak.
Lifecycle#
A strategy's webhook goes through draft → learning → configuring → active ↔ paused. See Webhooks → Lifecycle.
The strategy itself (TP actions, sizing, pair lock) is frozen onto a trade at entry time. Editing the strategy mid-trade does not affect the in-flight trade — the next entry picks up the new config.
Templates#
Templates are reusable action sets you can apply to a new strategy from the wizard. Edit any strategy inline to diverge from its template; the strategy stops tracking the template at that point.
TP source#
Where TP actions are gated from. Set under settings.tp_source:
| Value | Behaviour |
|---|---|
webhook |
TP actions run when the TradingView tp_hit alert arrives. Legacy behaviour. |
platform |
TP actions only run when HookTrader's own price feed crosses the level. The matching TV alert is logged as advisory. |
auto (default) |
Resolves to platform for paper/demo keys, webhook for live keys. Protects paper trades from testnet/mainnet feed divergence. |
The resolved value is frozen onto the trade at entry. Entry remains webhook-driven in all cases regardless of tp_source.
Bulk delete#
Tick the checkbox on each row in the Strategies list, then click Delete above the table and type DELETE to confirm. This is irreversible — it removes the webhook URL, all trade history, mapping rules, and captures. Active exchange positions are not closed; close them manually first if needed.