# How To Connect 3rd Party Tools

There are many tools that you can use to connect Tradingview to an exchange, and a lot of of them are compatible with our scripts. However, we recommend using [Pionex](https://docs.tradesmartalgo.com/guides/how-to-connect-3rd-party-tools/pionex).

You can check the corresponding tutorials here: [Pionex](https://docs.tradesmartalgo.com/guides/how-to-connect-3rd-party-tools/pionex), [3Commas](https://docs.tradesmartalgo.com/guides/how-to-connect-3rd-party-tools/3commas), [WunderTrading](https://docs.tradesmartalgo.com/guides/how-to-connect-3rd-party-tools/wundertrading-previously-wunderbit)

If you don't want to use any of them, here is a general solution to connect our Tradingview script to an exchange.

### Step 1

First, you have to create an API key and secret on the exchange you would like to use.

### Step 2

Then, connect your chosen 3rd party tool to the exchange.

### Step 3

Then, you can then create a bot using the tool, and there will be a setting to get a signal from Tradingview.&#x20;

The tool will give you some data that you will have to use in Tradingview, such as

* **WebHookURL**
* **Enter Long**
* **Exit Long**
* **Enter Short**
* **Exit Short**

### Step 4

After that, open Tradingview in a new tab, set the trading pair and timeframe, and add one of our PREMIUM scripts to the chart. Open the script settings and then scroll down to the Automation Part.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2FcZDxr8Usy4meqeuivTPB%2Fenter3CommasShits.png?alt=media&#x26;token=63b188ee-6aac-441a-b684-8df4b872d12a" alt=""><figcaption></figcaption></figure>

You have to fill the Automation part with the corresponding data. If you don't want to enter Short or Long trades, you can leave that field as the default value.

{% hint style="info" %}
Don't forget to set the strategy settings to Allow Long Entries or Allow Short Entries.
{% endhint %}

Click OK to Finalize the settings.

### Step 5

Click On Alerts tab in the top right corner.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2FE1IdLBYEduGKpquPxYW0%2FclickAlertsButton.png?alt=media&#x26;token=fd4918ae-817c-4ae7-bbe5-75892bd911e0" alt=""><figcaption></figcaption></figure>

Click on Alerts Plus Button

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2FgQyYiDtNXq0CTzCHr0sM%2FclickAlertPlusButton.png?alt=media&#x26;token=202edd21-35ca-4aa3-93f0-0c753dbbf134" alt=""><figcaption></figcaption></figure>

The Conditions should be set to your chosen strategy (our Triple EMA strategy right now).

Set an expiration date for how long you want to use the strategy.

Allow Show Pop-up

Allow Webhook URL, in the textbox, insert the WebHook URL you got from the tool.

{% hint style="info" %}
Note that with Tradingview free version, you can't allow Webhook URLs.
{% endhint %}

or the message part, add the following line:

```
{{strategy.order.comment}}
```

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2F8RIvg2rGJRWjQVvMPjN2%2FswitchToTheConditions.png?alt=media&#x26;token=80f2a358-b224-440f-b0c4-936ba9bbe940" alt=""><figcaption></figcaption></figure>

Click the Create Button, and after a few seconds, you should see the alert created.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2FLCj4lmaN155hVVgTCBz6%2FFinal.png?alt=media&#x26;token=9e298eea-5f1d-491d-9d26-748ce594af6e" alt=""><figcaption></figcaption></figure>

**Congratulations! You now have a running script!**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tradesmartalgo.com/guides/how-to-connect-3rd-party-tools.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
