Setting up a trading bot for VOOI

1. Theoretical part. How it works

Before we move on to the practical part, let’s talk a little bit about the principle of operation. How does it all work? To begin with, we need to make a certain trading strategy for ourselves. By the phrase “trading strategy” I mean a kind of plan that we will follow, i.e. these will be certain rules that will guide us in trading.

Based on our strategy, we will use various indicators to determine the optimal entry point for a position. For example, our strategy will sound like this: we will open only long positions when the coin is oversold. This is our strategy. What indicator can we use? Obviously, we can use the RSI (relative strength index) indicator, which will help us find an entry point. It should be noted that everyone uses indicators differently, but we will agree that we will consider the coin oversold when the value of the PAD indicator is less than 20.

So, adding an indicator makes our strategy more concrete. Now “Our Strategy” will look like this: We will open only long positions when the RSI indicator shows a value of less than 20.

After we have decided on the strategy and selected the necessary indicators, we need to create certain Alerts. These are certain “alarms” that will be triggered when the indicators have the indicators we need.

These alerts will then transmit information to the platform where our bot will be located, and then the bot itself will open or close positions on the stock exchange.

Let’s now summarize step by step:

  1. Creating a strategy

  2. Creating an indicator that will correspond to our strategy

  3. Creating Alerts based on our indicators

  4. Creating tasks for our bot based on information from Alerts

  5. Opening and closing positions on the stock exchange by a bot

It should be noted that your strategy may be much more complex and may use more indicators, but the principle of operation will be the same.

2. Practical part

Go to the Alertatron page and create a new bot.

We give it a name (I’ll call mine Terminator 3000) and fill in all the fields: specify where it will trade, on which pair, and click Create Bot.

Next, we need to add API keys to our bot. First, click on the name that we specified when creating it.

Then click on “Add keys

Next, we need to fill in all empty fields without text

Find the information to fill in here. Choose Orderly (or another one if you will trade on it) as your trading platform.

After you add all the necessary keys and click Save, you will see the following window.

So, we have created our bot on the Alertatron platform, transferred the keys from VOOI, and specified the platform and pair on which our bot will run.

Next, we will use the TradingView platform to generate alerts and send messages to our bot.

It is worth noting that on the TradingView platform you must have a basic subscription (currently costs $15) and two-factor authentication.

Since we specified the BTC/USDC trading pair when creating the bot, we choose the appropriate one on TradingView.

Next, let’s move on to the strategy and indicators. As an example, we will use Follow Line Strategy and Follow line Indicator.

On the platform itself, you can find many ready-made strategies and indicators. Our task is to see how it works on an example.

Go to the “Indicators” tab

Search in the search box and add

For convenience, I also added the RSI indicator. After all the additions, our chart will look like this

Next, let’s move on to creating Alerts.

While we are creating Alerts, we will go back to our bot on Alertatron and create opening and closing instructions for the position. Choose the type of signal to open and click on “New signal”.

Choose the name of the signal, how much money will be in the position, the leverage, and save the signal.

Similarly, create a signal type for closing a position.

To summarize. We have created two signals for our bot: for opening and closing a position. (That is, only a long will be opened, we will not create a short for familiarization). Now let’s return to creating Alerts in TradingView.

Important note! When you create an alert on TradingView, pay attention to the timeframe you have on the chart at the moment of creating it. To see how it works, let’s create an alert on the minute chart.

So, we fill in all the charts for opening a long.

You can find information on how to fill in the webhook URL column in your bot’s information on Alertatron

Fill in the fields for Alerts below. Pay special attention to the “Message” column, it is very important because it contains the command that will be transmitted to the bot signal that we created earlier. Return to the created opening signal on Alertatron and copy the command that was created there

After copying this command, return to the Alerts settings and paste it into the message. The final settings will look like this

Save. So, we have created an Alert that will send a message to our bot and the bot will activate the signal for long. Similarly, we create an Alert for closing a position.

So, when the indicator on the TradingView chart shows a long position, the bot will open a long position on the stock exchange, and when the indicator shows a short position, the bot will close the position on the stock exchange.

If you have specified everything correctly, you will be able to view the bot’s trading history on Alertatron

After that, you can also track all positions on the VOOI platform itself

3. Conclusion

So far, we have created basic strategies and indicators, and considered the principle of the bot itself and the signals on the platform. It should be noted that there may be more signals and their logic may be more complex, but the principle of operation and creation will be similar.

Last updated