# Connecting the TradingView indicator or strategy to Binance / OKX

Connecting **TradingView** signals differs based on source type: strategy or indicator.

Two signals need to be created on **TradingView** platform for [**indicators**](#indicator), as they can only send a single **Buy** or **Sell** signal.

А [**strategy** ](#strategy)can send both **Buy** and **Sell** messages  in 1 signal.

**Finandy** requires only **1 connection** to receive signals for both buying and selling, and place the corresponding orders on Binance or Finandy exchange. Follow our visual guide to connect your TradingView indicator or strategy to Finandy and trade automatically.

## How to connect TradingView Indicator to Binance/OKX?

{% hint style="info" %}
In **Finandy**, a single connection receives **TradingView** signals for both buying and selling.
{% endhint %}

### **Finandy Setup**

Create a signal connection (webhook) in Finandy.

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2F8vmcoihUv01pdYMwtQ9K%2Fimage.png?alt=media&#x26;token=049235c9-4259-43ac-9a31-61fff85a65c9" alt="" width="250"><figcaption></figcaption></figure>

Copy **URL** and **Signal message**.

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FX3pSWwc1MdSgX653xPQB%2Fimage.png?alt=media&#x26;token=a644c304-f38c-4937-95e9-2198e8e5d734" alt="" width="375"><figcaption></figcaption></figure>

### TradingView Setup

{% hint style="info" %}
Remember that a signal is specific to a certain timeframe, such as the 5-minute chart for a currency pair.
{% endhint %}

#### Buying

Click the button to create new signal.

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FWFMRBnugJS2jvW0PdJal%2Fimage.png?alt=media&#x26;token=8ca637de-7820-43e1-88c1-09020879b443" alt="" width="353"><figcaption></figcaption></figure>

1. Select chart's indicator
2. Select <mark style="color:green;">**BUY**</mark> signal condition
3. Name the signal, for example, "**ETHUSDT buy"**
4. Paste **Message** from **Finandy** settings

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FHO5dCjUDKASFLBb7Tlsk%2Fimage.png?alt=media&#x26;token=17282beb-c7ca-4ca8-8001-058fbbfd2702" alt="" width="563"><figcaption></figcaption></figure>

Switch to "**Notifications**" tab (1), paste **URL** (2) from Finandy settings, and click **Create** signal button (3).

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FkETCf9gCaKqrQBK5icQe%2Fimage.png?alt=media&#x26;token=a8badd8c-f9d9-42e2-aaf3-fdf77f3ce223" alt="" width="563"><figcaption></figcaption></figure>

#### Selling

Click the button to create new signal.​

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FDdakZHvsdZHEMNms5R0O%2Fimage.png?alt=media&#x26;token=1d4d987e-0543-4e6f-9ce9-4d980b87402c" alt="" width="353"><figcaption></figcaption></figure>

1. Select chart's indicator
2. Select <mark style="color:red;">**SELL**</mark> signal condition
3. Name the signal, for example, "**ETHUSDT sell**"
4. Paste **Message** from **Finandy** settings
5. Change **message**

```
"side": "buy",
```

to

```
"side": "sell",
```

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2Fld8rfJfxBRz48gWK1tGX%2Fimage.png?alt=media&#x26;token=b1f883c0-f09b-4bc8-b1c8-fe42c753ea51" alt="" width="563"><figcaption></figcaption></figure>

Switch to "**Notifications**" tab (1), paste **URL** (2) from Finandy settings, and click **Create** signal button (3).​

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2F62bMY8iueAdAhfj5kt1L%2Fimage.png?alt=media&#x26;token=56d2a6ba-1477-428d-941f-a6d4ee2538bd" alt="" width="563"><figcaption></figcaption></figure>

## How to connect TradingView Strategy to Binance/OKX?

### Finandy setup

Create a signal connection (webhook) in Finandy.

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FmsWGoVKSI3mZRAeqgSCg%2Fimage.png?alt=media&#x26;token=7d354cbf-ea14-4bcc-a6b3-140568879481" alt="" width="250"><figcaption></figcaption></figure>

Set "**PositionSide: Strategy**" (1) and "**OrderSide: Strategy**" (2) as shown in the image and **Save** (3).

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FWX4tKOZpv2cNCXkoKoDV%2Fimage.png?alt=media&#x26;token=ef64bfc0-864b-4004-b154-34f75bddf651" alt=""><figcaption></figcaption></figure>

Copy **URL** and **Signal** message.​​

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FlFNjj4CJmO0PIPfA7tCi%2Fimage.png?alt=media&#x26;token=d6bdc94f-eafc-4ade-a529-1d14745d93b7" alt="" width="375"><figcaption></figcaption></figure>

### TradingView Setup

Click button to a create signal.

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2Fcujl8pfCQMXWfsjzDzhB%2Fimage.png?alt=media&#x26;token=ef4cc7a9-7e10-4e17-9f08-e4cfa81fb8c9" alt="" width="530"><figcaption></figcaption></figure>

1. Select the strategy added to chart
2. Name signal, for example, "**ETHUSDT. Strategy**"
3. Paste **Message** from **Finandy** settings

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FedyuXlJaPnnjmE6FAay4%2Fimage.png?alt=media&#x26;token=16450e0e-c504-4de1-b0ec-5b5d1533198e" alt="" width="563"><figcaption></figcaption></figure>

Switch to "**Notifications**" tab (1), paste **URL** (2) from Finandy settings, and click **Create** signal button (3).

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2Fb3NPiOtMTxe8PyZQmPf4%2Fimage.png?alt=media&#x26;token=9ceb0f0d-9e4a-4740-af96-3713bc2e321f" alt="" width="563"><figcaption></figcaption></figure>

**Any questions? We can help in our Telegram chat.**

{% embed url="<https://t.me/finandy>" %}
