You can use any external signals as a condition for starting the bot. Namely, before starting each new cycle, the started bot will wait for a signal.
To enable the bot to work on external signals, you need to use the bot's functionality based on TradingView signals.
1. Enabling the bot to work on external signals.
To do this, when editing a bot, in the TradingView Signals menu, activate the "Enable bot using TradingView signals" checkbox and save the bot.
This menu contains all the information that is necessary for the bot to work on an external signal, namely:
- URL for the signal;
- Message for the signal (the message is unique for each bot).
2. Create an external signal.
To create an external signal, use the URL specified in the bot settings and a message.
The external signal should be sent using the POST method with Content-Type: application/json from specific IP addresses. Be sure to specify the IP addresses in the user profile, the main information menu, from which the signals will come, if this is not done, the bot will not see the signal. Examples of specifying IP addresses "184.108.40.206, 220.127.116.11/32, 18.104.22.168/24, 0.0.0.0/0". Specifying 0.0.0.0/0 will set the bot to receive a signal from any IP address.