# \[Legacy] Trading bot (LuxSignals)

{% hint style="warning" %}
*We are currently improving our connector, but you can already test it today as a beta version.*
{% endhint %}

***

## Step-by-step Guide

1. **Set up LuxSignals**

   * Optimize the results and then adjust the risk management settings to your capital on your broker account.
   * Read the [**Important notes at the very bottom of this page**](#important-notes) before starting.

2. **Access Auto Trading in your Connector Account**

   * Log in to your [LuxSignals Connector Account.](https://luxsignals.com/account?auto-trading=true)
   * Open the **Message Generator**.

3. **Compose Your TradingView Alert Message**

   * There, select your broker or create an account for one of these brokers (see supported brokers below).
   * You will be able to select between demo and live alerts. Demo alerts will use fake money that let's you test the setup. Live alerts will use real money. You can see below which brokers support demo alerts. If there is no demo available, you can still test the setup with a small trading sizes.
   * Then you will see which keys you will need to compose the alert message which you will later use for the step 5 below.
   * Instructions on how to find these keys in your broker account will be published soon within 48h. In the meantime, you can easily find this information by searching online or asking ChatGPT.

4. **Get your Webhook URL**

   * Scroll down to the bottom of the Alert Message Generator page.
   * There you will find your personal Webhook URL, you will need it in the next step to send the signals to LuxSignals' server.

5. **Create Alert in TradingView**
   * Go to the [LuxSignals signal notifications page](/luxsignals/focus/luxsignals-legacy/legacy-signal-notifications.md) where you can follow the exact step-by-step instructions on how to create an alert on TradingView.&#x20;
   * In your alert you will need to paste your alert message you generated for you broker in step 3.
   * In the alert you will also need to paste your personal Webhook URL you copied in step 4.&#x20;
   * That's it - your trading is automated!

***

## Supported Brokers

Currently supported brokers include:

| Broker Name & Link                      | Demo Account Available?   | Supported Markets                                          |
| --------------------------------------- | ------------------------- | ---------------------------------------------------------- |
| [Capital.com](https://capital.com/)     | Yes                       | Crypto (Spot, Margin), Stocks, Indices, Forex, Commodities |
| [Oanda](https://www.oanda.com/)         | Yes                       | Crypto (Spot, Margin), Stocks, Indices, Forex, Commodities |
| [Alpaca](https://alpaca.markets/)       | Yes                       | Crypto (Spot), Stocks, Indices, Options                    |
| [Kraken](https://www.kraken.com/)       | Yes, but only for futures | Crypto (Spot, Margin, Futures)                             |
| [Binance.com](https://www.binance.com/) | Yes, but only for futures | Crypto (Spot, Margin, Futures)                             |
| [Binance US](https://www.binance.us/)   | No                        | Crypto (Spot)                                              |
| [Coinbase](https://www.coinbase.com/)   | No                        | Crypto (Spot, Futures)                                     |
| [MEXC](https://www.mexc.com/)           | No                        | Crypto (Spot, Margin, Futures)                             |

(More brokers are coming soon!)

{% hint style="info" %}
Don't know the difference for Spot, Margin and Futures?&#x20;

Spot Trading means that leverage is **not** allowed, Margin and Futures Trading means that leverage **is** allowed.

That's the main difference - but no worries: that's only relevant if you trade crypto. With all other markets leverage is always allowed.

Leverage means that you can borrow money to trade money.
{% endhint %}

If you don't have an account with one of these brokers, feel free to quickly create one - it's worth the automated profits!

***

## Detailed Broker Documentation

### Capital.com

**What you’ll need**

* **Login email:** the email you sign in with (visible under **Profile → Personal details**).
* **API key + custom API-key password** (set when creating the key)

**Steps**

1. After logging in → **Settings → API integrations → Generate API key**.\
   Set a any **label and custom password.**
2. Create the key and copy it.

**Demo**

* Under **Settings** you will be able to switch between your Demo and Live account.

***

### OANDA

**What you’ll need**

* **Personal Access Token** and **Account ID**.
* **Account ID,** should look something like  `001-011-5838423-001`&#x20;

**Steps**

1. You can generate your token when you log on your dashboard  under **Trading Tools.**
2. **Y**ou will find your account ID in your accounts list.

**Demo**

* You can switch between demo and live accounts anytime.

***

### Alpaca&#x20;

**What you’ll need**

* **API Key**
* **API Secret**

**Steps**

1. In dashboard, click on **API Keys → Generate.**&#x20;
2. This will give you both the API Key and Secret. **Copy** both of them.

**Demo**

* You can switch between demo and live accounts anytime.

***

### Binance.US

**What you’ll need**

* **API Key**
* **API Secret**

**Steps**&#x20;

* Under **Profile → API Management → Create API**
* **Important**: In the API key settings, enable **Restrict access to trusted IPs** and add the IP `3.220.146.253` so the setup works.
* In the settings, also tick **Enable Reading and enable all types of trading.**

**Demo**

* There is no real Demo unfortunately, but you can still check the connection by using a small trading size in Live mode.

***

### Binance.com

**What you’ll grab**

* **API Key**&#x20;
* **API Secret**

**Steps**

* &#x20;Under **Profile → API Management → Create API**
* **Important**: In the API key settings, enable **Restrict access to trusted IPs** and add the IP `3.70.252.106` (different from Binance.us) so the setup works.
* In the settings, also tick **enable reading and enable all types of trading.**

**Demo**

* You can use the **Futures Testnet** at `https://testnet.binancefuture.com/` where you can get a test API Key and test API Secret to test you setup.

***

### Coinbase

**What you’ll need**

* **API Key**
* **Private key**&#x20;

**Steps**

* Log in to your account **→ API Keys** (Advanced Trade).&#x20;
* Make sure to tick **enable reading and enable all types of trading** in the API settings if prompted to.

**Demo**

* There is no real Demo unfortunately, but you can still check the connection by using a small trading size in Live mode.

***

### Kraken

**What you’ll need**

* **API Key**
* **Private key**&#x20;

**Steps**

* Get under **Security → API → Add Key**.&#x20;
* Make sure to tick **enable reading and enable all types of trading** in the API settings if prompted to.

**Demo**

* You can use the **Futures Testnet** at `https://demo-futures.kraken.com` where you can get a test API Key and test API Secret to test you setup once you logged in there.

***

### MEXC

**What you’ll need**

* **API Key**
* **Secret**&#x20;

**Steps**

* You can get them from your **Profile → API Management**.
* Make sure to tick **enable reading and enable all types of trading** in the API settings if prompted to.

**Demo**

* There is no real Demo unfortunately, but you can still check the connection by using a small trading size in Live mode.

***

## Support

If you encounter any bugs, contact[ **info@luxsignals.com**.](mailto:info@luxsignals.com)\
We’ll fix the issue!

***

## Important Notes

{% hint style="success" %}
All trialing users and Ultimate users receive  [**TradingView’s Essential Plan**](https://www.tradingview.com/pricing/?aff_id=133050) **for free**—how cool is that!

Here’s how you can easily claim it:

* **Fastest and easiest way**:\
  Start a [30-day **Free** Trial](https://www.tradingview.com/pricing/?aff_id=133050) of the Essential Plan. It’s **risk-free** and takes less than a minute to get.
* **Long-term solution:**\
  Already finished the Trial? Just send us the receipt to [Luxy Support](https://www.luxsignals.com/luxy) (make sure to connect your account) and **we will cover it for you!**

TradingView's Essential Plan **is needed to create alerts** - so make use of this opportunity!
{% endhint %}

{% hint style="success" %}
Make sure you have enabled **auto-trading mode** in LuxSignals' settings.

Also, make sure not to hide the dashboard in LuxSignals' settings.&#x20;
{% endhint %}

{% hint style="info" %}
Make sure to select "**Order Fills Only**" in your alert settings as condition. This is **very important**, otherwise the bot won't work.
{% endhint %}

{% hint style="warning" %}
If you create an alert and later change the settings of LuxSignals, the alerts won't update (that's how TradingView is). So if you change LuxSignals' settings, create a new alert.&#x20;
{% endhint %}


---

# 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://luxsignals.gitbook.io/luxsignals/focus/luxsignals-legacy/legacy-trading-bot-luxsignals.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.
