Skip to content

OTHER TRADING OPTIONS

The CFB Bot includes more advanced functions that are meant to complement any trading strategies.

Delay function

The processing of the trading signals can be delayed for a specific period of time, meaning that once the CFB bot receives the trading signal, it won't be processed until the defined delay time is over. If any confirmations are configured in the trading signal along with the delay function, the confirmations won't be validated until the delay time is over.

To add the delay function to the trade signal, the variable "delaySeconds" needs to be added to the Webhook Message specifying the desired delay time in seconds:

{
  "label": "THIS IS A DELAY TEST",
  "symbol": "BTCUSDT",
  "delaySeconds": 900,
  "side": "buy",
  "entryOrderType": "market",
  "leverage": 15,
  "minimumValue": 0,
  "minimumAvailableBalancePercent": 0,
  "marketStopLossPercent": 1,
  "balancePercent": 1,
  "requiredIndicators": [{ "name": "6M_BULLISH_MOMENTUM", "value": "TRUE" }]
}

Note that the variable names are case sensitive.

In the above example, it will cause the bot to wait 15 minutes before checking for confirmations and processing the signal.

If you need to cancel a signal during the retry period, you will need to disable your bot until after the delay period has elapsed.

Retry function

The CFB bot can be set up to retry processing the trading signals a specific number of times. For each of the retries, If any confirmations are included, these will be checked, and if confirmed the orders will be placed.

To add the retry function to the trade signal, the variable "retryCount" and "retryDelay" needs to be added to the Webhook Message. These two variables allows to specify the desired number of retries and the delay time in seconds between each of the retries:

{
  "label": "THIS IS A RETRY TEST",
  "symbol": "BTCUSDT",
  "side": "sell",
  "entryOrderType": "market",
  "leverage": 5,
  "minimumValue": 0,
  "minimumAvailableBalancePercent": 0,
  "extraStopLossMovePercent": 0.19,
  "marketStopLossPercent": 1,
  "balancePercent": 1,
  "requiredIndicators": [{ "name": "12M_BEARISH_MOMENTUM", "value": "TRUE" }],
  "retryCount": 3,
  "retryDelay": 180
}

Note that the variable names are case sensitive.

In the above example it will cause the bot to retry the execution of the trade 3 times with a time delay between each retry of 3 minutes.

The bot will continue to retry until all of the attempts have failed, or the confirmations are validated and the signal is processed. Once the trade confirmations are met, the trade is executed, and further remaining retrys are stopped.

If you want to cancel the retry attempts, disable your bot until the next retry delay has elapsed.