markusaksli / TradeBot

Crypto trading bot using Binance API (Java)
GNU General Public License v3.0
373 stars 138 forks source link

Make indicators optional and allow different candle lenghts #25

Open rulezzpt opened 3 years ago

rulezzpt commented 3 years ago

First of all I would like to thank you for your dedication to creating this BOT that for the short time I tested it seems to work well and even stable.

I would like to know if it is possible to just activate one indicator instead of having 3 to activate constantly. That is, instead of having the 3 (BB, MACD and RSI) just activate the purchase with one that I define, be it MACD, SMA or any other.

Another thing is whether it is possible to change the time chart from 5 to 15 minutes or 1 hour.

Thanks .

markusaksli commented 3 years ago

Hi @rulezzpt and thanks for the kind words.

These are changes that we are planning to implement for the next version of the bot, which will be a major rework of some key areas. Since the two main guys working on this (me and @martentyrk) are still university students and this is a side project we can't provide a clear timeline for this though.

markusaksli commented 3 years ago

The functionality for optional indicators is now completed for the next version. The new config file is in YAML format and will look something like this:

moneyPerTrade: 0.1
trailingSl: 0.1
takeProfit: 0.15

confluenceToOpen: 2
# confluenceToClose: 2
indicators:
  - !<RSI>
    weight: 1
    period: 14
    positiveMax: 15
    positiveMin: 30
    negativeMax: 70
    negativeMin: 80
  - !<MACD>
    weight: 1
    shortPeriod: 12
    longPeriod: 26
    signalPeriod: 9
    requiredChange: 0.15
  - !<DBB>
    weight: 1
    period: 20