Hey all! I come from a Java/C# coding background and had a few questions around javascript/nodejs.
What do you use for debugging Gekko? I have made quite a few changes to my Gekko branch and the problems I have come across have been painful without a proper debugging technique.
What IDE is good for Debugging/stepping through code with javascript/nodejs? I have been using Visual Studio Code with no plugins. It has been nice for navigating files in the folder structure and coding, but need to have debugging setup in place.
Hello to all
Gekko boot (Gekko v0.5.13)
within via browser http: // localhost: 3000
in config
I insert the kay api of bittrex
Locate data
Import data
Market exchange
there is no Bittrex
because?
I want to change the below strat from using EMA to using DEMA but if i change
'this.addIndicator('short', 'EMA', this.settings.short)' to this.addIndicator('short', 'DEMA', this.settings.short).
Then i get the error in fig 2, the only thing that changes is the addition of the letter D. Even if
This is the working code, when i change 'EMA' to 'DEMA' i get the error in fig 2
if((this.indicators.short.result > this.indicators.medium.result) && (this.indicators.medium.result > this.indicators.long.result)) {
log.info('We are in an UP trend: Price =', this.indicators.short.result.toFixed(8))
} else if(this.indicators.medium.result < this.indicators.long.result) {
log.info('We are in a DOWN trend: Price =', this.indicators.short.result.toFixed(8))
}
}
method.check = function() {
const short = this.indicators.short.result;
const medium = this.indicators.medium.result;
const long = this.indicators.long.result;
TypeError: Cannot read property 'long' of undefined
at Base.method.init (/root/gekko/strategies/TMA2.js:7:40)
at Base.bound [as init] (/root/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Base (/root/gekko/plugins/tradingAdvisor/baseTradingMethod.js:70:8)
at Actor.setupTradingMethod (/root/gekko/plugins/tradingAdvisor/tradingAdvisor.js:60:17)
at Actor.bound [as setupTradingMethod] (/root/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Actor (/root/gekko/plugins/tradingAdvisor/tradingAdvisor.js:23:8)
at load (/root/gekko/core/pluginUtil.js:98:22)
at /root/gekko/node_modules/async/dist/async.js:1156:9
at replenish (/root/gekko/node_modules/async/dist/async.js:1030:17)
at iterateeCallback (/root/gekko/node_modules/async/dist/async.js:1015:17)
root@vps520385:~/gekko# node gekko --config test.js --backtest
Help please, i'm guessing EMA and DEMA read code different but the DEMA indicator uses the EMA indicator??/
Thanks
EDIT: @askmike i hope this makes it clearer as to where my issue is.
Hi everyone,
Im just new to Gekko.
Already installed and run headless server.
Tried backtest also.
But got this error when running BTC/POWR on Binance
CCI strategies
2018-07-24 18:58:28 (DEBUG): NOT creating order! Reason: Lot size is too small
2018-07-24 18:59:09 (DEBUG): syncing private data
Not sure what it means...any help or explanation would do.
I've performed a couple of backtests but something is wrong with the results' time frame. My database timespan should be 1 year, but somehow the results I get on the graph are depicted as a couple of hours long (see screenshot). I have tried different pairs with different exchanges and strategies, but all gave me the same kind of crippled result. The attached screenshot illustrates the problem (i.e. the X-axis shows minutes instead of months). Please also note the low volume of trades (only 60) in the supposedly 12 month period. Any help is appreciated (I'm using Gekko v.0.6.2 by the way).