Select Page

You can send Bracket Orders from TradingView either by using buttons (basic) or using Alerts (advanced). Cover Orders can be sent only through Alerts.

How to send bracket orders or cover orders from TradingView

In APIBridge Symbol Settings, remember to change Product Type to BO. Also, the order type should be correct. Some brokers allow ONLY market orders in BO, while some allow ONLY limit orders in BO.

Important: To learn how BO works, you should first send BO manually through Broker’s trading terminal, before using BO in APIBridge. See here for more details on symbol settings.

Note Bracket Order functionality is subject to broker. All brokers do not provide this functionality. Most brokers provide BO functionality, but without Trail SL functionality.

Sending Bracket Orders from Buttons

Click on the Chrome Extension settings. Specify the SL and TGT percent you want to use in BO.

Trigger Price, SL, TGT is calculated using SL in settings and LTP from the chart.

Points to Remember:
1. Use only LE or SE buttons to place BO. Do not use LX or SX. Because you enter into a position via BO. To modify/exit BO/CO, use your broker’s web terminal. See here.
2. Using buttons, you cannot place BO using different underlying. For example, you cannot send BO in the Nifty Option using the Nifty Spot chart. Because SL and TGT are calculated using the LTP of the chart. For different underlying, use Alerts.

Sending Bracket Order from Alerts (Advanced)

If you want to send custom Price, SL, or TGT, use alerts. You can even code in pinescript to shoot SL and TGT based on indicators or price levels.

Price, TrigPrice, SL, and TGT can be specified manually or programmatically in alerts. See Examples 6 here for details.

Points to Remember:
1. Values in alerts have precedence over values in settings. If the price is 100; you specify SL: 1.5 in an alert; specify 2% SL in settings. Then SL 1.5 will be sent in Signal to APIBridge because it has higher precedence.
2. To send BO/CO based on indicators, see the video below
3. Alerts give you complete flexibility to control all parameters in Signal.

Do you want coding help to deploy your own strategy for live trading? Check our coding assistance.