How to AutoTrade: Bots Tutorial

Hi Traders, in this short tutorial we will see how to autotrade on Binance.

Requirements

- A TradingView account with Webhooks notifications. TradingView allows you to backtest your strategy and create alerts. For now, our bot page only works with TradingView alerts Webhook notifications.

Important: the Essential TradingView plan is required to unlock this feature. Without Webhooks, you cannot link your alerts to a bot!

autotrade

- A Binance account.
You can create one here if you don't have any yet.

- A BlockchainFiesta subscription: See plans here.

First Steps

First, we need to access the Bots page.

autotrade

Click Login and create an account. Note: you only need an email and a password, but I recommend to fill in your Tradingview username in order to automatically gain access to the indicators when you will start your trial.

autotrade

Ok! Back to the bot page, we don't have access to the bots yet, but we can already setup our API connection to gain time for our trial. Click "Connect API".

autotrade

Two choices here:

Here I am connected using the Testnet API kheys, as we can see with the "Status" label.

autotrade

Creating a bot

Once you chose a plan, your trial is automatically activated. You should now able to create bots.

autotrade

When creating a bot, the first thing we can do is choose a spot trading pair. I chose BTCUSDT for this example. Then for the quantity, the quote will be "USDT", and base "BTC". This is the default quantity the bot will be buying and selling.

autotrade

Once we click create bot, we arrive on the bot page. From there we can edit its settings, place manual orders, see the trade history, the bot stats, logs and TradingView alert messages.

autotrade

I'm going to place a manual order to get some data to see. When clicking on "Start Buy Order", you will get a green tooltip "Order placed" at the top right of the screen.

The Order History will show the list of trades. Sometimes with market orders the same trade will be split on 2 lines, however the bot will aggregate those trades in its data. Here we can see our buy order from just now.

autotrade

The Bot Stats will show a quick overview of the bot current results. We can see the bot trades on the price chart just underneath it.

autotrade

The bot Equity curve will show the bot current equity + open profit. Here our bot only bought once and has a negative open profit.

autotrade

The Bot Logs will display usefull information such as the orders parameters, errors if any, and the order usage.

autotrade

From the Open Orders section, you can see any limit order placed and you can use the "Cancel Open Orders" button.
The TradingView Alert messages is what we are going to use to connect our TradingView Alerts to the bot.

autotrade

For our example, I will copy the "SELL MARKET" message. It will look like this: {"bot_id":"667ab58296917","order":"SELL"} where "667ab58296917" is your bot id that will change for each bot you create.

In TradingView, to get a quick test alert, I create an horizontal like using the drawing tool, then create an alert on it. I set the condition to "BTCUSDT less than horizontal line", which is currently true.

autotrade

Next, one important thing, is to click on the "Notifications" tab, and activate "Webhook URL" with this link: https://blockchainfiesta.com/tradingview_signal/trade.php
This is how TradingView will know how to send the alert to our bot. Note that the Essential TradingView plan is required to activate webhooks.

autotrade

Once we click "Create", we can see our alert in the Alert tab. The "Alerts log" shows it triggered once as expected since the condition was already true and the trigger was set to "only once".

autotrade

If we refresh our bot page, we should see our sell order in the Trade History, just below our buy order from before.

autotrade

We now have a green triangle buy and orange triangle sell signal on the price chart.

autotrade

Congrats if you following until here! Now you know how to create a bot, place manual orders, and set up a TradingView alert. Now we just need to see how to set an alert from the indicators and then we will be auto trading!

Using this link: https://www.tradingview.com/chart/cHjc6XtM/, you can open and click "Copy" to make it your own chart and be able to edit it. It is one of the preconfigured charts I share with the community. Once copied, it should look like this:

autotrade

Once you have this, we want to set your alert messages. It happens directly in the indicator settings "Inputs" tab, you will find a text box for each of the strategy signals. This strategy on BTCUSDT will trigger 3 signals: a long entry (copy the BUY MESSAGE here), a long take profit (copy SELL MESSAGE), and a long stop loss (copy SELL MESSAGE)

autotrade

Make sure all your messages are set, then click "Add Alert on Cyato Bands.." and check the condition: make sure Cyato Bands is selected and "alert() function calls only". Also check that the webhook URL is set in the notifications tab if you didn't set it earlier.

autotrade

That's it! A few things to know: changing an indicator setting will not update a created alert! If you want to update an alert, you need to delete it and create it again. That also means that you can do changes to your chart without impacting running alerts. However I recommend to always create and save a chart layout for each of your bot strategies, and never touch it after you create an alert. That will help you monitor your strategies easily.

I hope you find this tutorial useful. I am open to questions or requests, feel free to leave a comment or message here on in my Discord server.

Written by Cyatophilum - -

Recent Articles

Ethereum MTF Technical Analysis 2024-08-27
Ethereum MTF Technical Analysis 2024-08-27

Ethereum is now trading at $2600 and this month saw a lot of volatility but mainly bearish as the price went from above the $3000 level down to the exact 0.236 Fibonacci level at $2130.

The August monthly candle is printing a long lower shadow and the close above or below the 24 months EMA will be crucial to indicate a global trend. It will be 3 bearish candles in a row, which has been the maxi ...

Read More
Crypto Market Weekly Analysis: BTC, ETH, SOL, BNB, BTC dominance

Welcome to our weekly analysis of the cryptocurrency space.

BTC/USDT
The BTCUSDT chart shows Bitcoin trading within a descending channel, with recent price action bouncing off the lower boundary of this channel, indicating potential support around the $53,000 level. The RSI indicates bullish divergence, suggesting a possible trend reversal or a strong bounce from this support level ...

Read More
Crypto Market Weekly Analysis: BTC, ETH, SOL, BNB, BTC dominance
Applying Game Theory Optimal (GTO) to Trading
Applying Game Theory Optimal (GTO) to Trading


Game Theory Optimal (GTO) strategies are commonly used in competitive games like poker, where the objective is to make decisions that are unexploitable by opponents. Applying GTO principles to trading involves creating strategies that minimize losses and maximize gains, regardless of market conditions or the actions of other market participants.

Optimal Play
Just like in poker, trading ...

Read More
🚀 Introducing the New Bitcoin Trend Indicator – Now Available for Free on TradingView!

I'm thrilled to announce the release of my latest tool – the Bitcoin Trend Indicator (BTI), and it's available for free on TradingView!Based on CoinDesk's research, the BTI is designed to help you easily identify and analyze Bitcoin trends. With multiple exponential weighted moving averages analysis and clear trend signals, it's a powerful addition to your trading toolkit.Ready to give it a try? ...

Read More
🚀 Introducing the New Bitcoin Trend Indicator – Now Available for Free on TradingView!
All Articles