Gekko Forum
Tradebot not working - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Technical Support (https://forum.gekko.wizb.it/forum-19.html)
+--- Thread: Tradebot not working (/thread-57738.html)



Tradebot not working - pure-eyes - 10-25-2018

Hello everyone. I have a problem with my tradebot. It is not making any trades, while papertrader with the same strategy and started at the same time is making trades. I have added API keys through the UI and in the config.js script, changed "enabled: false" to "enabled: true" as well.

[Image: IJClrsw.jpg]

I wanted my tradebot to buy using market price, not limit order, so I've changed the config.js file. But still don't know if I should change the "quantity" section, if I want my tradebot to use all my BTC I have? Or there should be "amount" as it is now?:

[Image: 6mb6c7N.jpg]

My strategy (RSI_BULL_BEAR_ADX), 1 minute, 10 minutes warmup:


Code:
[SMA]
long = 6
short = 3

[BULL]
rsi = 4
high = 68
low = 33
mod_high = 5
mod_low = -5

[BEAR]
rsi = 2
high = 90
low = 5
mod_high = 15
mod_low  = -5

[ADX]
adx = 15
high = 44
low = 21



Is there something I am doing wrong, so my tradebot is not making any trades? How can I fix that?


RE: Tradebot not working - askmike - 10-25-2018

RSI_BULL_BEAR_ADX is not a standard Gekko strategy, better to ask this in the thread about RSI_BULL_BEAR_ADX!

Unless you think the problem might be with Gekko, in which case please post logs Smile


RE: Tradebot not working - pure-eyes - 10-25-2018

(10-25-2018, 05:33 AM)askmike Wrote: RSI_BULL_BEAR_ADX is not a standard Gekko strategy, better to ask this in the thread about RSI_BULL_BEAR_ADX!

Unless you think the problem might be with Gekko, in which case please post logs Smile


Oh ok, sorry for that Wink

But regarding the market price buy thing, am I doing things correctly? Is this code looks correct, if I want to do market buy using all of my BTC?


EDIT: Ok, I have found this warning in log:

2018-10-25 13:24:16 (INFO): Trader Received advice to go long. Buying ARN
2018-10-25 13:24:16 (WARN): NOT creating order! Reason: Lot size is too small

So it seems that the amount of my BTC is too small. But can I configure it somewhere?


const reqData = {
symbol: this.pair,
side: tradeType.toUpperCase(),
type: 'MARKET',
timeInForce: 'GTC',
quantity: amount,
price: price,
timestamp: new Date().getTime()
};

Log file from tratebot:

2018-10-25 11:45:09 (INFO): Setting up Gekko in realtime mode
2018-10-25 11:45:09 (INFO):
2018-10-25 11:45:09 (INFO): Setting up:
2018-10-25 11:45:09 (INFO): Candle writer
2018-10-25 11:45:09 (INFO): Store candles in a database
2018-10-25 11:45:09 (INFO):

2018-10-25 11:45:09 (INFO): Setting up:
2018-10-25 11:45:09 (INFO): Trading Advisor
2018-10-25 11:45:09 (INFO): Calculate trading advice
2018-10-25 11:45:09 (INFO): Using the strategy: RSI_BULL_BEAR_ADX
2018-10-25 11:45:09 (INFO): ====================================
2018-10-25 11:45:09 (INFO): Running RSI Bull and Bear + ADX
2018-10-25 11:45:09 (INFO): ====================================
2018-10-25 11:45:09 (INFO): Make sure your warmup period matches SMA_long and that Gekko downloads data if needed
2018-10-25 11:45:09 (INFO):

2018-10-25 11:45:09 (INFO): Setting up:
2018-10-25 11:45:09 (INFO): Trader
2018-10-25 11:45:09 (INFO): Follows the advice and create real orders.
2018-10-25 11:45:10 (DEBUG): syncing private data
2018-10-25 11:45:10 (INFO):

2018-10-25 11:45:16 (INFO): Portfolio:
2018-10-25 11:45:16 (INFO): xxx BTC ('xxx' just for this post changed by me)
2018-10-25 11:45:16 (INFO): 0 ARN
2018-10-25 11:45:16 (INFO): Balance:
2018-10-25 11:45:16 (INFO): xxx BTC
2018-10-25 11:45:16 (INFO): Exposed:
2018-10-25 11:45:16 (INFO): no (0.00%)
2018-10-25 11:45:16 (INFO): Setting up:
2018-10-25 11:45:16 (INFO): Performance Analyzer
2018-10-25 11:45:16 (INFO): Analyzes performances of trades
2018-10-25 11:45:16 (INFO):

2018-10-25 11:45:16 (INFO): Setting up:
2018-10-25 11:45:16 (INFO): Child to parent
2018-10-25 11:45:16 (INFO): Relays events from the child to the parent process
2018-10-25 11:45:16 (INFO):

2018-10-25 11:55:10 (DEBUG): syncing private data
2018-10-25 11:57:16 (INFO): NOT selling, already no exposure