Skip to content
Ebo Eppenga edited this page May 9, 2024 · 3 revisions

Welcome to the Sunflow-Cryptobot wiki!

Configuration

Default values

symbol             = "OPUSDT"     # Symbol bot used for trading
interval_1         = 1            # Klines timeframe default interval
interval_2         = 3            # Klines timeframe first confirmation interval, set to 0 if you do not want to use this
interval_3         = 5            # Klines timeframe second confirmation interval, set to 0 if you do not want to use this
limit              = 250          # Number of klines downloaded, used for calculcating technical indicators
profit             = 0.40         # Minimum profit percentage
distance           = 0.10         # Trigger price distance percentage when Fixed is used by wiggle
wiggle             = "Wave"       # Method for trigger price distance, Fixed, Spot, EMA or Wave
depth              = 0.10         # Depth in percentages used to calculate market depth from orderbook
multiplier         = 1.00         # Multiply minimum order quantity by this

Symbol

The symbol, or pair, you would Sunflown to trade in. You can check Bybit which symbols are available. Tip, use symbols that have some volume, it will enhance the performance.

Intervals

Klines are a way to determine if a buy order can be placed. You can select the timeframe of the interval here, 1 means a kline with an interval of 1 minute and 60 an hour, please see all possible intervals here: https://bybit-exchange.github.io/docs/v5/enum#interval.

If you are using interval, defined by the setting later in the config (indicators_enabled), please set at least one interval. Interval 2 and 3 can be used as buy confirmation. For example if you set interval 1 to 3 and interval 2 to 10 it means that the technical indicators have to agree on on the 3 minute and 10 minute klines.

Limit

The amount of data items in a kline, in this example it is set to 250 which means that the three klines with intervals 1, 3 and 5 all contain 250 data items to be able to calculate technical indicators. Preferably set this number between 250 and 1000.

Profit

Minimum profit percentage on each trade. This can become more due to trailing sell. The higher you set the profit, the longer it takes to sell a previous bought order and the higher the risc of loss, but of course also your profit will be higher. Volatile markets are more suitable for higher profit settings.

Distance and Wiggle

Sunflow can use multiple methods to calculate trigger price distance. Trigger price distance is the distance in percentage between the order and the price. When the trigger price is hit, the order will be executed, making it a conditional order. Sunflow is programmed to use trailing buy and sell orders which will allow the order to move along with the price of the symbol. For buy it floats on top of the order, for sell vice versa. A nice explanation can be found here: https://www.youtube.com/watch?v=-4dIZPhm0uo

Fixed is a fixed percentage Sunflow will keep as distance. EMA uses an exponential mean average calculation to set the distance, EMA tends to give priority to the last price data making it more flexible. Wave following the movement of the price, when price is more volatile, wave will be set to a higher value. The spot setting follows the spot price more closely and factors in a risc premium, the more possible profit, the higher the distance will be. In backtesting wave seems to give the best result for the fewest bags.

Multiplier

By default Sunflow sets orders at the minimum order value of the symbol. You can multiply this value here to force Sunflow to set orders with a larger quantity.

Clone this wiki locally