There was a problem loading the comments.

Switching the trading pair of the bot when receiving a TradingView signal

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Switching the trading pair of the bot when receiving a TradingView signal

You can create multiple signals on the TradingView platform for different trading pairs and use these signals in one bot with the LONG algorithm.
The bot will switch the trading pair based on the information about the pair from the incoming signal.
In order for the bot to switch a trading pair when a signal is received, when creating a signal on TradingView, add information about the pair in the signal message (which you copy from the bot editing menu).
Below is an example of a signal message without specifying a trading pair and specifying a trading pair:
Signal message without specifying a trading pair:

{
"bot_id": 100279,
"ref_token": "982d2195-61c0-11e8-aa40-80418d442871",
"action": "enter_cycle"
}

Signal message indicating a trading pair:

{
"bot_id": 100279,
"ref_token": "982d2195-61c0-11e8-aa40-80418d442871",
"action": "enter_cycle",
"pair": "link/usdt"
}

The correctness of the signal message format after adding the pair parameter can be checked here https://jsonlint.com/
Please note that if a trading pair entered in a signal does not fit the bot, then such a signal will be ignored.
The bot's wallet (deposit) must be suitable for all trading pairs for which the bot will receive signals.
Switching a pair is impossible if a bot with the SHORT algorithm is used, since changing a pair requires changing the bot's wallet to a new coin.


Share via

Related Articles

© RevenueBot