Skip to main content

Change PERIOD for buy/sell side

type_autoconfig developer

date_of_upload

Simple config example of how to use a different PERIOD setting for the buy and sell side of a strategy.

How does it work?

The example is made for Binance and BTC-x pairs. It works by checking every active trading pair every minute and checks if the balance is lower/higher than "min volume to sell".

If a pairs balance is lower than "min volume to sell", the buy side job will place an override with PERIOD: 60

If a pairs balance is higher than "min volume to sell", the sell side job will change the PERIOD override to 5.

Instructions

Place the autoconfig.json file in your Gunbot folder and make sure to enable Autoconfig in Gunbot.

If you already have other autoconfig jobs in place, just copy out the two jobs from this download and add them to your autoconfig.json file.

For both jobs, make sure to change the following:

Exchange: this field must match the exchange you trade on update the following line for your base currency: "include": "BTC-", use "USDT-" if you want to use it on USDT pairs

Make sure that this line matches the value for "MIN_VOLUME_TO_SELL" in your trading strategy: "ourBaginBase": 0.001 Set the value for "PERIOD" you want to use for each side.

Enjoy!

I'd appreciate it if you do not contact me through personal messages about this free config example.

Download

change-period_v1.0.0.zip