Pionex Signal Bot (Single/Multi Position)Guide: Integrating Your TradingView Strategy with a Signal Bot
This guide provides step-by-step instructions for connecting a TradingView strategy script with a compatible signal bot platform for automated execution, such as Pionex.
This script is based on DCA strategy execution, with the capability of customizable signal indicators by modifying the script section for modularity with minimal adjustments to adapt other source code. The default indicator is the moving average.
You will need an account on a compatible bot execution platform to execute the trades.
You will need a TradingView account with at least an Essential subscription for Alert and Webhook URL access.
A desktop browser is required to access the TradingView Pinescript Editor and the Signal bot configuration page on the execution platform.
1. Configuring the “Signal” on the Bot Execution Platform
Log in to your bot execution platform account (e.g., Pionex).
Navigate to the Futures → Futures Bot → Signal Bot section.
Click on the “Add signal” button and set the name and description for this signal, then click “Confirm.”
Once the signal has been created, directly click on the “I have completed the configuration” and “I have created the alert” buttons on the bot platform.
Signal setup on the bot execution platform has been completed.
2. Add a Strategy Script to the TradingView Chart
Log in to your TradingView account.
Choose the desired trading pair on your integrated exchange, and click the “ Launch chart “ button.
Click “Indicators”, select the Signal bot script you want to use.
Click the “Gear” icon to open the strategy settings, on the “Input” tab, copy the “Message” provided by your bot execution platform into the “Pionex Message” (or equivalent) textbox within the script's inputs.
On the “Properties” settings, refer to the recommended settings as follows:
• Initial capital: Keep this value at "100".
• Base currency: Keep this value at “Default”.
• Order size: 1 ~ 100 USDT. Keep the value within 1 to 100 USDT. 50 USDT may be translated as 50% fund utilization on the execution platform, such as Pionex .
• Pyramiding: 1 ~ any value. This value is for multi-position entry settings.
• Margin for long positions: Keep this value at "0".
• Margin for short positions: Keep this value at "0".
• Other parameters can be ignored as they do not impact the core configuration.
Strategy configuration in the TradingView chart has been completed.
3. Configuring the Strategy Alert on TradingView for Bot Connection
Log in to your TradingView account.
Click on the “Alarm” icon in the upper right corner, and click the “+” icon to create a new alert.
In the “Settings” tab, choose the desired strategy from the list.
Note: The latest configuration will typically be at the bottom of the list and may need to be updated every time there are changes to the strategy “Input” configuration.
In the “Message” tab, keep the value unchanged as the default content.
Note: This variable will produce the necessary JSON code for the trading instruction.
In the “Notification” tab, enable the “Webhook URL” and paste the Webhook URL obtained from your bot execution platform into the “Webhook URL” field in TradingView.
Click the “Create” button to complete the setup, and the alert will appear in the “Alert” list.
Strategy Alert configuration in the TradingView chart has been completed.
4. Creating the Signal Bot on the Execution Platform with the Linked Strategy
Log in to your bot execution platform account (e.g., Pionex).
Navigate to Futures → Futures Bot → Signal Bot.
On the “Signal Bot” page, click the “Automate signal” button to configure the bot settings, and then click the “Create the bot.”
The Signal bot creation on the execution platform has been completed.
5. Checking Signal Transmission Between TradingView and Bot Platform
Log in to your TradingView account.
Click on the “Alarm” icon in the upper right corner, and click the “Log” tab to check the alert history.
Log in to your bot execution platform account (e.g., Pionex).
Click on “Details” for your bot and then navigate to the “Signal Log” tab.
Compare the TradingView Alert log with the bot execution platform's Signal Log to ensure the signals are received properly.
To understand the raw Message content, manual interpretation or platform-specific tools may be required.
6. How to Add Other Indicator into the Strategy Script for the Signal Bot
Log in to your TradingView account.
Obtain the open-source indicator, such as “RSI”, into the TradingView chart, and copy its Pine Script™ source code.
Open the Signal bot strategy script in the Pine Script™ Editor. This script is typically optimized for integration with the bot execution platform.
Paste the custom indicator source code into the specific designated section for custom indicators within the Signal bot strategy script.
Define the conditions for “Long” (buy) and “Short” (sell) entries from your custom indicator into the pre-defined “longCondition” and “shortCondition” variables within the script.
Click the “Add to chart” or “Update on chart” button to complete the script configuration and apply changes to your chart.
Integrating a custom indicator into the strategy script has been completed.