Every ChartBridge command and field on one page.
How to use: copy the template into your TradingView alert's Message, replace YOUR_EA_TOKEN, the command and the symbol, then add only the fields that command needs. Units of volume, stopLoss, takeProfit and price come from your EA settings, so test on demo first.
eaToken=YOUR_EA_TOKEN;command=buy;symbol=EURUSD;volume=0.01;stopLoss=20;takeProfit=40
Fields are name=value pairs separated by semicolons. Field names are case-sensitive. Webhook URL: https://tf.staging.chartbridge.com/webhook
Pick a command, fill in the fields it needs, and copy the message into your TradingView alert.
eaToken=YOUR_EA_TOKEN;command=buy;symbol=EURUSD;volume=0.01;stopLoss=20;takeProfit=40https://tf.staging.chartbridge.com/webhook| Field | What it is | Unit set by (EA input) |
|---|---|---|
| eaToken | Your EA Token from Strategies | Always required |
| command | What to do (see tables below) | Lowercase, exact |
| symbol | Broker symbol, e.g. EURUSD | Not needed for EA controls |
| volume | Trade size | Volume Type |
| stopLoss | Stop loss (0 or omitted = none) | Target Type |
| takeProfit | Take profit (0 or omitted = none) | Target Type |
| price | Entry for pending orders | Pending Order Price Basis |
| comment | Optional label saved on the trade | Free text |
| Command | What it does | Needs |
|---|---|---|
| buy | Open a buy at market | symbol, volume |
| sell | Open a sell at market | symbol, volume |
| buystop | Place a buy stop above market | symbol, volume, price |
| buylimit | Place a buy limit below market | symbol, volume, price |
| sellstop | Place a sell stop below market | symbol, volume, price |
| selllimit | Place a sell limit above market | symbol, volume, price |
| Command | What it does | Needs |
|---|---|---|
| closelong | Close buy positions on the symbol | symbol |
| closeshort | Close sell positions on the symbol | symbol |
| closeall | Close buy and sell positions on the symbol; pending orders stay | symbol |
| closelongbuy | Close buy positions, then open a new buy | symbol, volume |
| closeshortsell | Close sell positions, then open a new sell | symbol, volume |
| closelongpct | Reduce each buy position by a percentage | symbol; volume if % comes from signal |
| closeshortpct | Reduce each sell position by a percentage | symbol; volume if % comes from signal |
| closelongvol | Reduce each buy position by volume lots | symbol, volume |
| closeshortvol | Reduce each sell position by volume lots | symbol, volume |
| Command | What it does | Needs |
|---|---|---|
| cancelall | Cancel all pending orders on the symbol | symbol |
| cancellong | Cancel buy stops and buy limits on the symbol | symbol |
| cancelshort | Cancel sell stops and sell limits on the symbol | symbol |
| cancellongbuystop | Cancel buy stops on the symbol | symbol |
| cancellongbuylimit | Cancel buy limits on the symbol | symbol |
| cancelshortsellstop | Cancel sell stops on the symbol | symbol |
| cancelshortselllimit | Cancel sell limits on the symbol | symbol |
Send both stopLoss and takeProfit: an omitted or 0 value removes that level.
| Command | What it does | Needs |
|---|---|---|
| newsltplong | Set SL/TP on buy positions | symbol, stopLoss, takeProfit |
| newsltpshort | Set SL/TP on sell positions | symbol, stopLoss, takeProfit |
| newsltpbuystop | Set SL/TP and entry on buy stops | symbol, price, stopLoss, takeProfit |
| newsltpbuylimit | Set SL/TP and entry on buy limits | symbol, price, stopLoss, takeProfit |
| newsltpsellstop | Set SL/TP and entry on sell stops | symbol, price, stopLoss, takeProfit |
| newsltpselllimit | Set SL/TP and entry on sell limits | symbol, price, stopLoss, takeProfit |
| Command | What it does | Needs |
|---|---|---|
| eastop | Stop processing signals; trades stay open | — |
| eastart | Resume a stopped EA | — |
| ceaseall | Close all positions and pending orders on every symbol | — |
| ceasealleastop | ceaseall, then stop the EA | — |
| eashutdown | Remove the EA from its chart; trades stay open | — |
| ceasealleashutdown | ceaseall, then remove the EA from its chart | — |
See Syntax for full explanations and worked examples.