Linking XetaAI Bot Manager with TradingView Alerts
Here we are linking your strategy to the XetaAI Bot Manager
The Command Hub allows you to create and manage signals to control XetaAI bots. These signals can be triggered using TradingView alerts or any webhook-compatible platform. Follow the steps below to set up your signals for automated trading.
Step 1: Select Your Account
Choose the account that you wish to use for the signal. This is the account that will execute the trades when the signal is triggered.
Step 2: Select Signal Type
Choose the type of signal you want to send:
Open: Opens a new position. You can toggle the 'Close previous position' option to close an existing position before opening a new one.
Market Close: Closes the open position at market price.
Manual DCA: Executes a manual Dollar-Cost Averaging (DCA) for an open position.
Shutdown: Closes all positions and disables incoming signals.
Market Close All: Closes all open positions at market price.
Enable Trading: Enables the reception of incoming signals.
Disable Trading: Disables the reception of incoming signals.
Enable BOTH Configs: Enables both long and short configurations.
Disable BOTH Configs: Disables both long and short configurations.
Enable Long Configs: Enables only long configurations.
Disable Long Configs: Disables only long configurations (configurations with BOTH will still receive long signals).
Enable Short Configs: Enables only short configurations.
Disable Short Configs: Disables only short configurations (configurations with BOTH will still receive short signals).
Enable Config: Enables a specific configuration.
Disable Config: Disables a specific configuration.
Set Risk: Adjust the risk profile (e.g., VERY_LOW, LOW, etc.) for the configurations.
Set Max. Positions: Set the maximum number of allowed open positions.
Set Max. Long Positions: Set the max number of long positions (setting this to 0 disables all long positions).
Set Max. Short Positions: Set the max number of short positions (setting this to 0 disables all short positions).
Step 3: Configure Signal Details
Select the Symbol: Choose the trading pair or symbol for the signal (e.g., BTC/USD).
Select the Side: Choose whether the signal is for a long or short position.
Webhook Payload:
After selecting your options, a Webhook Payload will be generated.
Copy this payload to use in your TradingView alerts.
Example of Webhook Payload:
Step 4: Webhook URL for XetaAI Bot Manager
Use the following Webhook URL in your TradingView alert setup:
Step 5: Configure TradingView Alerts
In TradingView, go to the Alert section on your chart.
In the Webhook URL field, enter the URL:
https://webhook.xetaai.io/tradingView
.In the Alert message field, paste the webhook payload (the command to trigger the signal).
Example alert message:
Important Notes
Multiple Signals: You can send multiple signals in a single webhook. The format would look like this:
This would first change the risk profile, then open a position.
Sequential Execution: Signals that require placing orders may not execute sequentially. Consider adding delays when opening or closing multiple positions in a single webhook to ensure the proper order of execution.
Final Step: Trigger the Alert
Once you have set up the alert in TradingView, it will automatically send the signal to the XetaAI Bot Manager when the conditions are met.
The XetaAI Bot Manager will then execute the corresponding action based on the signal (e.g., open position, close position, etc.).
Last updated