Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 28,537
» Latest member: 23winvnco
» Forum threads: 1,541
» Forum posts: 8,069
Full Statistics
|
Online Users |
There are currently 284 online users. » 1 Member(s) | 283 Guest(s) 23winvnco
|
Latest Threads |
Gekko with malware spotte...
Forum: Announcements
Last Post: adeldoors
1 hour ago
» Replies: 192
» Views: 170,480
|
Gekko development status ...
Forum: Announcements
Last Post: kontho
Yesterday, 04:00 PM
» Replies: 1,008
» Views: 934,872
|
Gekko 0.6 released
Forum: Announcements
Last Post: Pharagon
11-23-2024, 10:13 AM
» Replies: 122
» Views: 269,235
|
An official Gekko service...
Forum: Announcements
Last Post: drivemad2
11-22-2024, 07:24 AM
» Replies: 103
» Views: 190,209
|
New Gekko UI in the works
Forum: Announcements
Last Post: clduplicateremover
11-18-2024, 08:21 PM
» Replies: 174
» Views: 227,960
|
How to Soft Reset or Hard...
Forum: General Discussion
Last Post: lucifar
10-07-2021, 07:18 PM
» Replies: 22
» Views: 53,044
|
How to add Binance Future...
Forum: Technical Support
Last Post: Xavier32
10-07-2021, 02:20 PM
» Replies: 47
» Views: 108,437
|
Bittrex Configuration hel...
Forum: Bittrex
Last Post: yirzolusto
10-07-2021, 07:39 AM
» Replies: 6
» Views: 19,129
|
[Question] Why does gekko...
Forum: General Discussion
Last Post: cryptocurrency0
10-06-2021, 01:16 PM
» Replies: 16
» Views: 45,841
|
a couple of technical Que...
Forum: Technical Support
Last Post: mtom78632
10-06-2021, 11:08 AM
» Replies: 25
» Views: 58,600
|
|
|
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!
|
|
|
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.
|
|
|
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.
|
|
|
|