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.
Signalbot
[OKX Signal Bot] Indicator Script Set Up TemplateDiscover the power of the Turtle Trade Channels Indicator (TUTCI), an innovative tool that integrates the time-tested principles of the legendary Turtle Trade system. This groundbreaking system shattered the belief that successful traders are born, not made, by transforming ordinary individuals into profitable traders.
The Turtle Trade Experiment, which achieved a remarkable 80% annual return over four years and amassed a staggering $150 million, showcased the immense potential of this trend-following strategy. Unlike the conventional "buy low and sell high" approach, the Turtle Trade system embraces a different philosophy—one of capturing substantial profits by following prevailing trends.
At the heart of the Turtle Trade Channels Indicator lies the concept of Donchian Channels, a powerful technical indicator developed by Richard Donchian. Building upon this foundation, the main rule of TUTCI is to identify 20-day breakouts and capitalize on them, while simultaneously utilizing a profit-taking strategy based on breaching 10-day highs or lows.
For long trades, the indicator signals a buying opportunity when the price breaks above the 20-day high. Conversely, for short trades, a selling opportunity arises when the price falls below the 20-day low. This systematic approach allows traders to align themselves with the prevailing momentum, capturing significant price movements.
To further enhance trading precision, TUTCI incorporates two key lines. The red line represents the trading line, indicating the direction of the trend. Price bars above the trend line suggest an uptrend, while those below indicate a downtrend. The dotted blue line serves as the exit line, guiding traders to close their positions when price action breaches the 10-day high or low. This rule safeguards profits and helps traders avoid potential trend reversals.
The Turtle Trade Channels Indicator (TUTCI) is a versatile tool applicable to various financial markets, including stocks, commodities, and forex. By harnessing the power of breakouts and integrating profit-taking rules, this indicator empowers traders to capitalize on favorable trading opportunities while managing risk effectively.
As with any trading strategy, it is crucial to conduct thorough backtesting and evaluation of the TUTCI system before implementing it in live trading. Traders can customize the indicator's parameters to align with their trading preferences and adapt to changing market conditions. Employing sound risk management techniques, such as position sizing and stop-loss orders, is paramount to protect capital and minimize potential losses.
Experience the transformational potential of the Turtle Trade Channels Indicator (TUTCI) and embark on a journey of trend following, capturing significant profits, and achieving trading success.
These scripts are only functioning as sample script templates to support okx alert standards. It is not intended to provide any investment, tax, or legal advice, nor should it be considered an offer to purchase, sell, hold or offer any services relating to digital assets. Digital assets, including stablecoins, involve a high degree of risk, can fluctuate greatly, and can even become worthless. You should carefully consider whether trading or holding digital assets is suitable for you in light of your financial condition and risk tolerance. OKX does not provide investment or asset recommendations. You are solely responsible for your investment decisions, and OKX is not responsible for any potential losses. Past performance is not indicative of future results. Please consult your legal/tax/investment professional for questions about your specific circumstances.
[Fedra Algotrading LR + TTP Indicator Lite]How it works?
- It calculates the linear regression of the last X candles and define a range based on a linear regression deviation (represented by the 3 parallel lines over the last candle).
-Open trades based on the breakout of the deviation of the linear regression (represented by the yellow triangle).
-Advanced trend filter to not open trades against the trend consist in 2 SMA cross and and a few other conditions, including sptionally super trend (Represented by the red and green background).
-Percentage take profit (represented by the horizontal green line. configurable)
-Percentage stop loss (represented by the horizontal red line. Configurable
-Break even when a trade has already opened and there is a change of trend. Calculated in 1.5% when the price is under the yellow SMA.
Alerts in each case to receive notifications (BUY & SELL, TP BE SL).
Added labels with entry price and PnL of each closed trade to facilitate optimization