Signal Commands

PineHook reads two command dialects, its own and PineConnector's. Compare both and pick the one matching the TradingView alerts you already run.

PineHook understands two command vocabularies. You pick one in the EA, and it applies to every alert that license receives.

Which mode do I want?#

Most people want Default Mode

Default Mode is PineHook's native syntax and the mode the EA ships in. Choose PineConnector Compatibility Mode only if you already have PineConnector alerts you would rather not rewrite.

Default Mode →

PineHook's own command set: buy, closelong, modify, trail and the rest. Parameters say what they are, like size_lots, sl_pips and tp_price, so an alert reads the same way a year later. Every PineHook feature is available here, including several PineConnector has no equivalent for.

PineConnector Compatibility Mode →

Reads PineConnector's syntax directly: risk=, sl=, tp=, closelongpct, CL+OL, and all their command aliases. Point your existing alerts at PineHook, change the license ID, flip one EA setting, and they run unmodified.

What changes between them#

Only the spelling of your alerts. Both modes execute on the same engine, place the same orders, and give you the same dashboard, ACKs and safety checks.

Default ModePineConnector Compatibility
Command namesPineHook's (closelong)PineConnector's, plus PineHook's (closelongpct, closelong)
Sizingsize_lots=0.1risk=0.1, read through your EA's Volume Type
Stopssl_pips=50sl=50, read through your EA's Target Type
sl=0not a parametermoves the stop to breakeven
Everything elseidenticalidentical

Choosing and switching#

The mode is an EA input called Signal Syntax Mode, under Syntax Compatibility. Changing it takes effect on the EA's next reconnect, and you can switch back at any time.

One mode per license at a time

A license reads one dialect. If you send a PineConnector-style alert to a license running in Default Mode, it is rejected with an error naming the problem rather than being guessed at, because a wrong guess about sl=0 could remove a stop loss instead of moving it.

Shared reference#

These apply in both modes: