The TradingView bot is developed for trading based on signals from the TradingView platform. On this platform, you can create your own strategies or use ready-made strategies created by other traders. And, after connecting a TradingView strategy, the bot will exactly repeat the execution of this strategy.
TradingView signal trading bot for OKX crypto exchange SPOT AND futures
The bot is multi-pair, and can trade TradingView signals on several pairs at the same time. Thus, you can trade several strategies at the same time, or one strategy on different pairs.
The bot qualitatively repeats tradingview strategies – it not only buys and sells, but also supports strategy partial position closing, averaging, position reversal. Among the important settings – you can allow or disallow long or short positions. Also, the trader sets the volume of the transaction, in % of the deposit, thus – independently controls the risk management. In addition, there is a function “only exit the strategy”.
For the convenience of traders, for the possibility of adapting the strategy (without making changes to the tradingview script), as well as external risk management, the bot has the ability to set take profit, stop loss and trailing stop.
Moreover, the trading bot allows you to average positions even if the original strategy does not. This gives the strategy flexibility, especially considering the series of averaging settings in the bot.
Now you can improve your strategy without changing its code in tradingview!
Detailed how to configure the bot can be found in the instructions (below on this page), as well as, I recommend to read the video:
Video will be available here soon
TradingView Bybit trading bot is fully autonomous (only installation and setup is required), then the bot trades without operator assistance (resistance to disconnection from the internet, lack of communication with the exchange, etc. is implemented in the OKX bot). Also, this trading bot is adapted for trading both on a local computer and on a remote server (under OS Windows).
The cost of the tradingview bot is FREE
To start trading with the free OKX bot, follow the link and download the archive (the password to the archive is in the link). Unpack all the files from the archive into a folder and launch the bot from there. Enter API keys into the bot and run it. According to API keys – trading operations should be allowed, and for security purposes – withdrawal of funds should be disabled.
Technical support of the trading bot
Everyone who registers through the affiliate link of the project FreeTradingBot will be added to the chat of traders and technical support for OKX bots.
After registration, passing KYC on the exchange and depositing your account – write me your account number. After checking I will join you to the private telegram chat.
Besides, by registering via our Bybit link, you will receive 20% lifetime discount on the commission from the OKX and help create and upgrade free bots!
VPS for tradingview signal bot
Even though the bot works perfectly on a local computer, I strongly recommend using it on a remote server (VPS).
This will guarantee high-quality and uninterrupted work around the clock. This is important to ensure a positive trading outcome.
I recommend using a server from ZOMRO. All bots of FreeTradingBot project work exclusively on these servers.
By registering through an affiliate ZOMRO link, you will receive a 100% high-quality server, as well as a discount of up to 15%.
Manual for using the Tradingview signal bot
Connection Settings Block
Open API Key, Secret API Key and API Password (not an account password!) are keys from the exchange’s personal account to enable automated trading. The keys are encrypted, so the bot can be run even in unsafe places. It is mandatory to have a trading permitions.
Next, select the required trading section – spot or futures/swaps (coin futures are not supported).
The “Connect to OKX” button is used to connect and verify the account and API keys. After successful connection, all other bot blocks become available.
BOT managament BLOCK
This block is designed to control the trading process. The “Start” button is used to start the robot. “Stop” button – to stop trading.
“Close all positions” – to close all open positions (used if you are going to disable the trading robot for a long time or change the strategy).
LOGGING BLOCK
This is an information block that displays general details about current operations of the bot. Due to logging, you can track the actions of a trading bot in real time
Logs are also saved in the bot’s Logs folder if you need to analyze.
OPEN POSITIONS BLOCK
This block shows the current open positions.
It displays the instrument in which the position is opened, the average price of the position (including possible averages), the volume of the position and the unrealized profit or loss.
There is no such term as a position on the spot. But the bot calculates what it has bought and displays all the information about it.
Profit/loss is shown in the quote currency. For example, in the BTC-USDT pair, it is profit/loss in USDT, and in the ETH-BTC pair, it is profit/loss in BTC.
Balances BLOCK
The balance block shows the balances on the OKX trading account.
It displays information on coins, their full and free balance, and their value in USDT.
The bottom of the block summarizes the value of all coins in USDT and BTC at the current market rate.
SETTING UP A TRADING STRATEGY BLOCK
The “Strategy Settings” block is used to customize your strategy directly.
In the “Pair on TradingView” field write the name of the instrument exactly as it is written in the TradingView platform.
In the “Symbol on Exchange” field, select the required instrument from the drop-down list of contracts. When a signal is received on the ticker specified in the “Pair on TradingView” field, the bot will open a position in the “Symbol on Exchange”. It is necessary to have two fields, because not always the same ticker on TradingView and on the crypto exchange.
If the “Exit only” field is set, the bot will work only in position closing mode. That is, if a position is opened, the bot will trade it according to the settings, but will not open a new one after closing current trade.
Checking the “Long” and “Short” checkboxes gives the bot permission to open long and short positions. If a bot trades on the spot, it can trade only in the buy direction (long).
The next field “Volume” is the volume of the position in % of the deposit. If the bot trades on the spot, it is a % of the deposit in the quote currency (the second coin in the pair).
If the bot trades on futures or swaps, it is a % of the free deposit in USDC or USDT (depending on the selected contract)
In the “Take Profit, %” field, set the take profit level (from the average price of the position). If you do not want to use Take Profit in the strategy, set “0” in this field.
In the “Stop Loss, %” field, set the stop-loss level (from the average price of the position). If you do not want to use a stop-loss in the strategy, set “0” in this field.
In the “Trailing, %” field, set the trailing profit level. If you do not want to use a trailing stop in the strategy, set “0” in this field.
The trading bot uses trailing profit, not a trailing stop. That is, this order is activated only when the position is already in the plus by the value of the trailing (only profit is trailed).
If you want to use position averaging, specify the maximum number of averages in the “Avg Orders Count” field. If you do not want to add averaging, set the value “0” in this field.
The distance between averages is specified in the “Avg Distance, %” field.
In the “Avg Martingale” field specify the martingale coefficient for averages. If, for example, we set the value to 2, then the volume of each next averaging will be twice as much as the previous one. If we want the volume of averages to remain the same, then we leave the value 1.
In the “Avg Multiplier” field, specify the multiplier for the averaging distance step. If we want the averaging distance to increase, we make the multiplier greater than 1. I.e., if we set 1.5, with a distance of 1%, then the distance between the first and the second averaging order will be 1.5% (1.5 x 1%), and between the second and the third 2.25% (1.5 x 1.5 x 1%). If you want the step to be unchanged, leave 1 in this field.
Important! The bot does not use placing orders to set take profit, stop loss, trailing, and averaging orders. The bot remembers all the data and executes trades when the price targets are reached.
There are several reasons for this. The first is to ensure proper synchronization of the TradingView strategy with the bot, speed of signal processing, and economical margin management (especially important on the spot).
To delete the current pair from the settings, click the trash button in the “Delete Setting” column.
To close a position in a pair, click on the button with a cross in the “Close Position” column.
To add a new line to customize the strategy, click the “Add Settings Line” button
Exchange settings
Important. For the trading bot to work correctly, the “Spot and Futures” mode must be set on the exchange. Please check the mode as shown in the figure (to set it up, go to the trading section).
Customization in TradingView.com
In order for the signals to work correctly, the tradingview application must be properly configured. The first thing to do is to choose a strategy (a strategy, not an indicator).
After selecting a strategy, you need to configure the Alert. Do as shown in the screenshot below:
The code to be inserted into the “Message” field is located in the file “TVCode.txt”. Open the file, copy the entire text and paste it into the Message field.
Next, you need to set up notifications so that the bot can read the signals:
The link to the Webhook URL will be available after clicking the “Connect to OKX” button in the trading bot.
And that’s it! Once the signal from the tradingview is set up, click the Start button in the bot and it will start copying the strategy from the tradingview to your trading account according to your settings.
This way, you can set up an unlimited number of strategies on different trading instruments, and the bot will repeat them!
VersionS lOG
You can monitor the availability of a new version of the bot in this section. If your version is lower than the current one, please update the trading bot.
The bot version is specified in the bot header (at the end of the bot name [x.x.y.y]). Here x.x is the version of the bot, y.y is the version of the connector to the exchange.
What has been changed in the bot and how to upgrade is specified in the description of the upgrade.
Important! Upgrade only when all trades are closed.
Current version [0.1.2.2]