How to integrate FYERS API Bridge with TradingView?

How to integrate FYERS API Bridge with TradingView?

You can deploy complex Algos using TradingView’s simple web charts. The best part is that it requires zero programming knowledge. Simple or sophisticated derivative Algos can be deployed in simple English using TV Alerts.

How It Works:


Add FYERS API Bridge Extn for Google Chrome Webstore.  You will see the grey alpha icon. This extension works only on TradingView website. When you open tradingview.com, the icon turns red.

Bridge Settings –

Under Symbol Settings, fill all relevant columns (do not leave blank OrdType, Quantity etc). Also, you should carefully review Signal Settings and Risk Management before starting to trade. It is prudent to first practice in Paper Trading before placing live orders.


On TradingView charts, you can place trades for strategy in which you can create alerts. When you click the extension icon on TradingView chart, it will turn green. You will also see a message in Bridge about the connection with TradingView.



After settings, the conditions for alert, scroll down and use the Message box to configure your Algo. In the message box, you can type signal details like Symbol, Type, Price etc.

Once the alert conditions are triggered, the TV Connector pushes Signal in Bridge, which places buy/sell orders.

A note on TradingView Alert message format:

In the alert message box, you can define the following, each on a new line. All constants such as SYMBOL/TYPE should not be misspelt.

SYMBOL: (Mandatory. Provide here your own symbol which also needs to be provided in API Bridge in Symbol Settings)

  • TYPE: (Mandatory. Should be either LE, LX, SE or SX)
  • PRICE: (optional)
  • TRIG: (optional)
  • SL: (optional)
  • TGT: (optional)
  • STAG: (optional)
Example 1: Sending Market order through alert for Long Entry.

Copy the following values in the alert message box:

SYMBOL: SBIN
TYPE: LE

In APIBridge, enter the following values:

Example 2: Sending Limit order through alert for Long Exit. 

Copy the following values in the alert message box:

SYMBOL: SBIN
TYPE: LE
PRICE: 310 (If you do not know the price, put day low to get the order filled)

In APIBridge, enter the following values:

Example 3: Sending SLL Order through the alert

SYMBOL: SBIN
TYPE: LE
PRICE: 310
TRIG: 305 (TRIG is used for trigger price, and PRICE is used for limit price in SLL order)

Example 4: Sending SLM Order through the alert

SYMBOL: SBIN
TYPE: LE
TRIG: 305

Example 5: Sending Cover Order through the alert

SYMBOL: SBIN
TYPE: LE
PRICE: 310
SL: 5

Example 6: Sending Bracket Order through the alert

SYMBOL: SBIN
TYPE: LE
PRICE: 310
SL: 5
TGT: 10

Example 7: Buying Call Option based on Spot Index

SYMBOL: NIFTYCALL
TYPE: LE

Example 8: Entering fresh Long position and exiting previous Short

SYMBOL: NIFTYCALL
TYPE: LE, SX

Example 9: Creating Options Straddle based on Index Sell signal

(put entire text below in the same message)

SYMBOL: NIFTYCALL
TYPE: LE
SYMBOL: NIFTYPUT
TYPE: LE

Example 10: Create Call Butterfly Spread based on Index Buy signal

(put entire text below in the same message)

SYMBOL: NIFTYCALLA
TYPE: LE
SYMBOL: NIFTYPUT
TYPE: LE
SYMBOL: NIFTYCALLB
TYPE: SE

    • Related Articles

    • How to integrate FYERS API Bridge Advanced Extension with TradingView?

      We have released FYERS API Bridge Advanced Extension for TradingView platform with few updates. Installation For the latest version of TradingView Extension, click Help from the top menu of FYERS APIBridge. Then go to Jump Start setup and follow ...
    • How to integrate FYERS API Bridge with front-end platforms?

      You can send Signals in FYERS API Bridge through an external program such as Amibroker/MT4/TradingView/Python/C# etc. Understanding How Signals Work: The FYERS API Bridge works based on “Signals”. A Signal is basically an indication (not decision) to ...
    • How do I sign up for FYERS API Bridge?

      FYERS API Bridge is a tool that allows you to connect your trading strategies with FYERS Trading API and execute orders on various platforms such as TradingView, Amibroker, MT4, Python, Excel, etc. To sign up for FYERS API Bridge, you need to: ...
    • What is the FYERS API Bridge?

      FYERS API Bridge is a lightweight and easy to use portable application. It can be integrated with the FYERS order management engine through our Trading API to place orders or requests from the front-end charting/Algo platform. For more information, ...
    • How to integrate FYERS API Bridge with MT4/MT5 platform?

      FYERS API Bridge can be integrated with MT4/MT5 platform to send signals. Step 1 – Copy and paste chart trader.mqh, chart trader.ex4 in expert folder path -open MT4->FILES-> open data folder->MQL4->Experts Step 2 – Copy and paste Algotrading.mqh in ...