Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 39,322
» Latest member: DishisdesignJewellery
» Forum threads: 926
» Forum posts: 6,383

Full Statistics

Online Users
There are currently 333 online users.
» 0 Member(s) | 333 Guest(s)

Latest Threads
An official Gekko service...
Forum: Announcements
Last Post: tanvirai
11-20-2025, 12:18 PM
» Replies: 113
» Views: 291,839
Gekko development status ...
Forum: Announcements
Last Post: erectilenovus
11-17-2025, 11:36 AM
» Replies: 753
» Views: 1,769,728
Gekko 0.6 released
Forum: Announcements
Last Post: soniyathakur
11-02-2025, 12:21 PM
» Replies: 129
» Views: 380,489
Gekko with malware spotte...
Forum: Announcements
Last Post: cofffee124
10-30-2025, 09:56 AM
» Replies: 216
» Views: 346,509
New Gekko UI in the works
Forum: Announcements
Last Post: cofffee124
09-04-2025, 08:12 AM
» Replies: 186
» Views: 390,848
How to add Binance Future...
Forum: Technical Support
Last Post: Xavier32
10-07-2021, 02:20 PM
» Replies: 47
» Views: 159,148
Bittrex Configuration hel...
Forum: Bittrex
Last Post: yirzolusto
10-07-2021, 07:39 AM
» Replies: 6
» Views: 31,846
[Question] Why does gekko...
Forum: General Discussion
Last Post: cryptocurrency0
10-06-2021, 01:16 PM
» Replies: 16
» Views: 70,997
a couple of technical Que...
Forum: Technical Support
Last Post: mtom78632
10-06-2021, 11:08 AM
» Replies: 25
» Views: 87,754
Is there any way to make ...
Forum: Custom Systems
Last Post: seorun
10-05-2021, 08:20 AM
» Replies: 42
» Views: 134,756

 
  Debugging Gekko
Posted by: faldor - 07-27-2018, 08:43 PM - Forum: Technical Discussion - Replies (3)

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.

Thanks and appreciate any feedback!


Sad Market exchange Bittrex
Posted by: biandrea - 07-27-2018, 11:52 AM - Forum: Technical Support - Replies (2)

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?


  Changing EMA to DEMA in a native strat (help please)
Posted by: Kris191 - 07-26-2018, 02:40 PM - Forum: Strategy Development - Replies (2)

Hi all,

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


Code:
var log = require('../core/log.js');

var method = {};

method.init = function() {
 this.name = 'Triple Moving Average';
 this.requiredHistory = this.settings.long;

 this.addIndicator('short', 'EMA', this.settings.short)
 this.addIndicator('medium', 'EMA', this.settings.medium)
 this.addIndicator('long', 'EMA', this.settings.long)
}

method.update = function(candle) {
 this.indicators.short.update(candle.close)
 this.indicators.medium.update(candle.close)
 this.indicators.long.update(candle.close)

 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;

 if((short > medium) && (medium > long)) {
   this.advice('long')
   log.info('Were going long')
 } else if((short < medium) && (medium > long)) {
   this.advice('short')
   log.info('Were getting outta this')
 } else if((short > medium) && (medium < long)) {
   this.advice('short')
   log.info('Were getting outta this')
 } else {
   this.advice();
 }
}

module.exports = method;

fig 2

Code:
/root/gekko/strategies/TMA2.js:7
 this.requiredHistory = this.settings.long;
                                      ^

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.


Question Get current 10 minutes candle and last 10 minutes candle
Posted by: Syl - 07-26-2018, 10:59 AM - Forum: Strategy Development - Replies (3)

hi, I'm trying to write a custom strategy, and I wonder how can I get this 10 minutes candle and last 10 minutes candle.

if this question is  duplicate, pls give me some  reference, thank you!


  Code help (time plus)
Posted by: Kris191 - 07-25-2018, 11:05 AM - Forum: Technical Discussion - Replies (3)

Hi all

i want my cli to report when the next candle will trigger i.e 

Next candle time: (date and time)

I have the code to report current time how do i get it to report that time plus my candle size of 4 hrs?

Code:
log.info('\t Next Candle Update:', this.marketTime.format('YYYY-MM-DD HH:mm:ss'))

All help welcome please


  [HELP] Live Trading
Posted by: kenpachi - 07-24-2018, 11:03 AM - Forum: Strategy Development - Replies (4)

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. Smile


  Import Error
Posted by: Ruskis - 07-24-2018, 07:47 AM - Forum: Binance - Replies (1)

Hi,

Can't import historic data from binance (only), any suggestions?

Thanx!



Attached Files
.jpg   Untitle22d.jpg (Size: 193.97 KB / Downloads: 5)

  Import Error
Posted by: Ruskis - 07-24-2018, 07:44 AM - Forum: Binance - Replies (2)

Hi,

Got an issue with importing data from binance, any suggestions?

Thanx!

[Image: g0tCOo]


  Crippled timespan in backtest graph
Posted by: bitbot - 07-24-2018, 03:10 AM - Forum: Technical Discussion - Replies (10)

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).



Attached Files
.png   1 year backtest result.png (Size: 112.71 KB / Downloads: 9)

  Import error - 0.6.3 - binance only
Posted by: martyc - 07-23-2018, 06:32 AM - Forum: Technical Discussion - Replies (1)

How do I reopen an issue in github?
https://github.com/askmike/gekko/issues/2348

Seems to be only an issue with binance and only with 0.6.3

Cheers