Aide
Bots
Bots de signaux

Signal Bot Guide

8 heures 54 minute 45 secondes
38917 Lire
28

What is Signal Bot?

A Signal Bot is a trading tool that helps investors identify buy or sell opportunities based on user-defined signals. Unlike grid or martingale bots that have fixed parameters, Signal Bots allow more flexibility as users configure their own signals on TradingView platform. This supports various strategies and caters to different investment needs. Common Signal Types:

1)Technical Indicators: Utilize various technical indicators (such as moving averages, Relative Strength Index (RSI), Bollinger Bands, etc.) to generate buy or sell signals. For example, when a short-term moving average crosses above a long-term moving average, it may be considered a buy signal.

2)Chart Patterns: Analyze specific patterns on price charts (like head and shoulders, double bottoms, etc.) to predict future price movements.

3)Market Sentiment: Use market sentiment indicators (such as the Fear and Greed Index) to determine market overheating or cooling, thereby generating trading signals.

4)News and Event-Driven: Generate trading signals based on specific news or events (such as project launches, partnership announcements, regulatory changes, etc.).

5)Quantitative Trading: Use algorithms and machine learning models to analyze large data sets and automatically generate trading signals.

1.1 How Signal Bot Work

After configuring a bot on TradingView, users can link and bind it to the Gate Bots to create a signal. Uses then set parameters such as trading pair, margin, leverage, and order size. When the configured bot conditions are met, the signal is automatically sent to the Gate Bots. Upon receiving the signal, the Signal Bot executes the trade. For example: A user creates an RSI-based bot on TradingView and binds it to the Gate platform. When RSI 1 crosses above RSI 2, a buy signal is triggered, and the bot automatically buys. When RSI 1 crosses below RSI 2, the bot closes the position. The user can manually terminate the bot at any time.

1.2 Available Signal Types

Gate's Signal Bot seamlessly integrates with TradingView. You can leverage TradingView's technical analysis tools, indicators, and charts to identify market trends and trading opportunities. By defining specific bot rules and parameters, You can set buy/sell conditions and generate signals when these conditions are met. Moreover, you can customize scripts on TradingView to configure signals. Both types of signals are fully supported by Gate's Signal Bot.

2. How to Create a Signal Bot?

Note: Signal Bots are currently only supported on the web version.

2.1 Create a Custom Signal

Go to the Gate official website, click [Bots] - [Bot Pool] - [Signal Bot] - [Add Custom Signal].

Fill in the signal name, alert details, etc., then click [TradingView] in the top-right corner. On TradingView, search for "BTCUSDT.P" to find the Gate logo, and click it.

5

2.2 Set Parameters

Return to Gate Bots and configure basic parameters like trading pair, leverage, and margin. Advanced settings allow customization of order types, entry/exit conditions, etc.

2.3 Configure TradingView Signals on Web

On the bot homepage, click [Add Custom Signal], enter the signal name and description, then click [Next] to proceed. Gate will provide a Webhook and message template for integration with TradingView:

https://tradingview.gatedata.org/quant-signal-service/quant-trading/tradingview/signal/4cf1693a13fb47e19b7288fa61431ecf

{ "exchange": "((exchange))", "symbol": "((ticker))", "time":"((timenow))", "maxLag":"30", "action":"((strategy.order.action))", "position_size":"((strategy.position_size))", "market_position":"((strategy.market_position))", "prev_market_position":"((strategy.prev_market_position))" }

On TradingView, go to [Alert], paste the alert message into the [Message] field.

And then click [Notifications], paste the Webhook to Tradingview (requires two-factor authentication).

2.4 Operate on TradingView

1)Create a New Bot: Edit Pine Script.

  1. Pine Script Example (Gate's RSI Bot) Pine Script can plot MACD, RSI, etc., on candlestick chart and display backtest results at entry/exit points. Run the backtesting Support backtesting results output and performance review

  2. Bot Parameter Configuration Initial Capital (initial_capital): This represents the starting amount available for your bot, denominated in your base currency. By default, it is set to 100,000. You may need to adjust this amount to effectively trade certain assets.

Order Size: This parameter requires a value and a calculation mode to determine the order size:

Quantity: The bot will buy or sell a specified number of trading units or contracts (e.g., BTC).

USDT: The bot specifies the order size in terms of a quoted currency (e.g., USDT). For example, if the ETHUSDT.P price is 1,000 and your quantity is 100, you would purchase 0.1 ETH per order. % of equity: The position size is computed as a percentage of available equity at the start of a trade. For instance, with an initial capital of 10,000 and an equity percentage of 10%, and with ETHUSDT.P priced at 1,000, the purchase amount per entry would be 1 ETH.

  1. Complete Bot Setup and Create Alert

Alert must correspond to the signal configured on Gate's web interface.

3. How to View Your Signal Bot?

[Bot Pool] - [My Bots] - [Active Bots] - [Signal Bot]

4. How to Terminate Signal Bot?

4.1 Termination Methods

a. Manual Termination: Users can terminate the bot anytime, and all positions will be closed at market price (similar to CTA Bots).

b. Automatic Termination: 1)If the margin in a cross-margin sub-account is insufficient, liquidation will occur, depleting the bot's margin and terminating its operation.

2)If a trading pair is delisted during the bot operation, the bot will be auto-terminated.

4.2 Post-Termination Asset Calculation

a. Assets are converted to USDT. b. USDT is transferred back to the spot account.

Technical Issues/Configuration Notes

  1. Alert Setup: Ensure the alert condition is set to the bot, not just an indicator.

  2. Platform Restrictions: Webhooks only support TradingView alerts; otherwise an error message (403) will return.

  3. Supported Signals: Only entry/exit signals are supported.

  4. Parameter Rules: Entry: "market_position": "long/short", "prev_market_position": "flat" Exit: "market_position": "flat", "prev_market_position": "long/short"

  5. Time Settings: Time value must not exceed the current time.

  6. Alert Validation: Users can check signal details on TradingView to ensure compliance with Gate's requirements. 22

Inscrivez-vous dès maintenant pour tenter de gagner jusqu’à $10,000!
signup-tips