Command cheat sheet
Every message needs license (your key) and action. Field names and action names are case-sensitive. volume is in lots; sl and tp are price levels unless the EA input Stop level mode says otherwise; offset and trailDistance are in pips.
Use a demo account first. A reply of HTTP 200 means the command was queued, not that it ran.
Open positions
Section titled “Open positions”| Action | Required | Optional | What it does |
|---|---|---|---|
long |
symbol, volume |
sl, tp, positionID |
Open a buy (long) market position |
short |
symbol, volume |
sl, tp, positionID |
Open a sell (short) market position |
Close positions
Section titled “Close positions”| Action | Required | Optional | What it does |
|---|---|---|---|
close_percentage |
positionID, percentage |
ticket |
Close a percentage of one position |
closeAll |
none | none | Close every open position (long and short), on all symbols |
closeByID |
positionID |
ticket |
Close the position (or positions) with a given positionID |
closeByLotSize |
positionID, volume |
ticket |
Close a given number of lots of one position |
closeLong |
none | none | Close every open buy (long) position, on all symbols |
closeShort |
none | none | Close every open sell (short) position, on all symbols |
closeSymbol |
symbol |
direction |
Close the open positions on one symbol, long, short or both |
Change stops and trailing
Section titled “Change stops and trailing”| Action | Required | Optional | What it does |
|---|---|---|---|
moveStops |
positionID, one of sl / tp |
ticket, sl, tp |
Change the stop loss and/or take profit of one position |
moveStopsBreakeven |
positionID |
ticket, offset |
Move the stop loss of one position to its entry price, with an optional offset |
setTrailingStop |
positionID, trailDistance |
ticket |
Attach a trailing stop to one position |
More commands are documented as they are verified; the commands overview lists what the webhook accepts today.
Verified for EA v1.9 · dashboard 2026-10-05 · reviewed by Claude Code (owner review pending)
Trading involves substantial risk of loss. ZB Connector is software only; it does not provide investment advice, signals or brokerage services.