Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Example of using setups
Example of using setups for trading on different market conditions
Beware: this is an example, not serious trading advice. Always check if you agree on the settings used before putting them to use for you.
With setups you can save a set of trading pairs and their trading strategy as presets for running Gunbot. You can use this to easily switch between setups to change the way Gunbot trades when you notice that market conditions change.
In this article you'll read about an example of how to create setups for trading in different market conditions.
Let's assume we have three different market conditions to create setups for:
Prices are going to the moon, all over the market. (let's call this setup "Super Bullish")
Prices are kind of flat, there are fluctuations, but nothing is going seriously down- or upwards. (let's call this setups "Sideways")
Prices are going down and fast, all over the market. (let's call this setup "Super Bearish")
To handle these market conditions, we'll use two different strategies, and one override.
|Super Bullish||Fast, aggressive
||Market is great, let's buy on small price drops at fast trends and sell for moderate to great gains.|
||Market is kind of neutral, let's be more careful and only buy low on the lower Bollinger Band, sell for moderate to great gains.|
|Super Bearish||Slower, sell only with
||Market is a total disaster. Let's only sell our assets as soon as a profit is reached. Do not buy again until market improves and another setup is activated.|
So, let's set up these strategies. Go to Strategies in Gunthy UI and configure them as shown in the picture below.
Now it's time to create three setups to work with these strategies. Go to
+New Setup, name it
Super Bullish and add your pairs with
stepgain as strategy. Save it.
For the second setup, create a new one and add the same pairs, now choosing
bbstepgain as the strategy to use. Save it.
To create your setup for bearish conditions, name a new one
Super Bearish, add the same pairs again choosing
bbstepgain as strategy. Additionally, append an override to to set
BUY_ENABLED to false, and make sure that when you have this setup running, no buy orders will be placed.
Choose your setup and run Gunbot
Go to the dashboard, choose the setup you want to run. Hit
Run Setup to start Gunbot.
Anytime you notice market conditions changed and you need to run Gunbot with another setup, just stop your running setup on the dashboard, then run another one.