markusaksli / TradeBot

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

Indicator weights #19

Open markusaksli opened 3 years ago

markusaksli commented 3 years ago

Config needs values for how much each indicator contributes to confluence.

vxinv commented 3 years ago

Each value needs to be weighted

markusaksli commented 3 years ago

The functionality for indicators weights 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