ChartBridgeDocs
Dashboard
ChartBridgeDocs
Getting Started
Install EA
Connect EA
Multiple Strategies
Configuration
Syntax
EA Settings
Cheat Sheet
Symbol Mapping
Symbol Bridge
Features
Connect Telegram
Configure Email Features
Monitor And Notification
Analytics
Notification
Help & Support
FAQ

Cheat Sheet

PreviousEA SettingsNext Symbol Bridge

On this page

  • Message template
  • Build your own message
  • Fields
  • Open trades
  • Close trades
  • Cancel pending orders
  • Change stop loss and take profit
  • Control the EA

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.

Message template

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

Build your own message

Syntax generator

Pick a command, fill in the fields it needs, and copy the message into your TradingView alert.

1. Choose a command
2. Fill in the fields
EA Tokenfrom the Strategies page
Symbolyour broker's exact name
Volume
Stop loss (pips)
Take profit (pips)
Comment
Your EA's units (Main Configuration)
Volume Type
Target Type
3. Paste into TradingView → MessageValid
eaToken=YOUR_EA_TOKEN;command=buy;symbol=EURUSD;volume=0.01;stopLoss=20;takeProfit=40
eaTokenYOUR_EA_TOKENcommandbuysymbolEURUSDvolume0.01stopLoss20takeProfit40
Webhook URLhttps://tf.staging.chartbridge.com/webhook

Fields

FieldWhat it isUnit set by (EA input)
eaTokenYour EA Token from StrategiesAlways required
commandWhat to do (see tables below)Lowercase, exact
symbolBroker symbol, e.g. EURUSDNot needed for EA controls
volumeTrade sizeVolume Type
stopLossStop loss (0 or omitted = none)Target Type
takeProfitTake profit (0 or omitted = none)Target Type
priceEntry for pending ordersPending Order Price Basis
commentOptional label saved on the tradeFree text

Open trades

CommandWhat it doesNeeds
buyOpen a buy at marketsymbol, volume
sellOpen a sell at marketsymbol, volume
buystopPlace a buy stop above marketsymbol, volume, price
buylimitPlace a buy limit below marketsymbol, volume, price
sellstopPlace a sell stop below marketsymbol, volume, price
selllimitPlace a sell limit above marketsymbol, volume, price

Close trades

CommandWhat it doesNeeds
closelongClose buy positions on the symbolsymbol
closeshortClose sell positions on the symbolsymbol
closeallClose buy and sell positions on the symbol; pending orders staysymbol
closelongbuyClose buy positions, then open a new buysymbol, volume
closeshortsellClose sell positions, then open a new sellsymbol, volume
closelongpctReduce each buy position by a percentagesymbol; volume if % comes from signal
closeshortpctReduce each sell position by a percentagesymbol; volume if % comes from signal
closelongvolReduce each buy position by volume lotssymbol, volume
closeshortvolReduce each sell position by volume lotssymbol, volume

Cancel pending orders

CommandWhat it doesNeeds
cancelallCancel all pending orders on the symbolsymbol
cancellongCancel buy stops and buy limits on the symbolsymbol
cancelshortCancel sell stops and sell limits on the symbolsymbol
cancellongbuystopCancel buy stops on the symbolsymbol
cancellongbuylimitCancel buy limits on the symbolsymbol
cancelshortsellstopCancel sell stops on the symbolsymbol
cancelshortselllimitCancel sell limits on the symbolsymbol

Change stop loss and take profit

Send both stopLoss and takeProfit: an omitted or 0 value removes that level.

CommandWhat it doesNeeds
newsltplongSet SL/TP on buy positionssymbol, stopLoss, takeProfit
newsltpshortSet SL/TP on sell positionssymbol, stopLoss, takeProfit
newsltpbuystopSet SL/TP and entry on buy stopssymbol, price, stopLoss, takeProfit
newsltpbuylimitSet SL/TP and entry on buy limitssymbol, price, stopLoss, takeProfit
newsltpsellstopSet SL/TP and entry on sell stopssymbol, price, stopLoss, takeProfit
newsltpselllimitSet SL/TP and entry on sell limitssymbol, price, stopLoss, takeProfit

Control the EA

CommandWhat it doesNeeds
eastopStop processing signals; trades stay open—
eastartResume a stopped EA—
ceaseallClose all positions and pending orders on every symbol—
ceasealleastopceaseall, then stop the EA—
eashutdownRemove the EA from its chart; trades stay open—
ceasealleashutdownceaseall, then remove the EA from its chart—

See Syntax for full explanations and worked examples.