Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 264 online users. » 1 Member(s) | 263 Guest(s) johnmerryy
|
Latest Threads |
Gekko development status ...
Forum: Announcements
Last Post: kontho
Yesterday, 12:29 PM
» Replies: 1,010
» Views: 939,518
|
Gekko with malware spotte...
Forum: Announcements
Last Post: adeldoors
Yesterday, 06:45 AM
» Replies: 192
» Views: 171,306
|
Gekko 0.6 released
Forum: Announcements
Last Post: Pharagon
11-23-2024, 10:13 AM
» Replies: 122
» Views: 269,939
|
An official Gekko service...
Forum: Announcements
Last Post: drivemad2
11-22-2024, 07:24 AM
» Replies: 103
» Views: 190,629
|
New Gekko UI in the works
Forum: Announcements
Last Post: clduplicateremover
11-18-2024, 08:21 PM
» Replies: 174
» Views: 228,847
|
How to Soft Reset or Hard...
Forum: General Discussion
Last Post: lucifar
10-07-2021, 07:18 PM
» Replies: 22
» Views: 53,162
|
How to add Binance Future...
Forum: Technical Support
Last Post: Xavier32
10-07-2021, 02:20 PM
» Replies: 47
» Views: 108,509
|
Bittrex Configuration hel...
Forum: Bittrex
Last Post: yirzolusto
10-07-2021, 07:39 AM
» Replies: 6
» Views: 19,143
|
[Question] Why does gekko...
Forum: General Discussion
Last Post: cryptocurrency0
10-06-2021, 01:16 PM
» Replies: 16
» Views: 45,926
|
a couple of technical Que...
Forum: Technical Support
Last Post: mtom78632
10-06-2021, 11:08 AM
» Replies: 25
» Views: 58,637
|
|
|
Cannot read property 'time' |
Posted by: mambotech - 11-08-2019, 06:02 PM - Forum: Technical Support
- No Replies
|
|
Hi,
I am using this fork https://github.com/crypto49er/moddedgekko/tree/DCA
I have tested the import on Binance and it has not failed. I am wondering if anyone can help with the issue below.
This failed when trying to import a month.
uncaughtException TypeError: Cannot read property 'time' of undefined
at handle (/root/moddedgekko/importers/exchanges/gdax.js:49:37)
at checkFn (/root/moddedgekko/exchange/exchangeUtils.js:24:16)
at /root/moddedgekko/exchange/wrappers/gdax.js:108:12
at Request._callback (/root/moddedgekko/exchange/node_modules/gdax/lib/clients/public.js:83:11)
at Request.self.callback (/root/moddedgekko/exchange/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/root/moddedgekko/exchange/node_modules/request/request.js:1157:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
RECEIVED ERROR IN IMPORT 900291731656734
|
|
|
Adding Events to your strategy |
Posted by: Hallonstedt - 11-05-2019, 09:13 AM - Forum: Guides
- Replies (23)
|
|
There are a large number of Events with interesting data that are emitted by the Gekko plugins. Some would be quite useful in strategies but they are not available for the simple reason that strategies are not plugins and therefore cannot directly pick up the triggered events.
My quest was initially to be able to read live portfolio data as I have two strategies running in parallell and I need to know if I am exposed or not. I also want the strategy to react correctly to manual changes in the portfolio. I have since added more events that have proven quite useful.
Before using this guide, please be aware that it requires changes to two core Gekko plugins, meaning that if you update Gekko your changes are lost and the strategy will not work. It may also mean you break something else if you are not careful.
That being said, it is quite easy to do. Let's add the PortfolioChange event (~ is your Gekko root folder);
Edit ~/plugins/tradingAdvisor/tradingAdvisor.js and add:
Actor.prototype.processPortfolioChange = function(portfolio) { // This must be the handler name. The parameter name can be made up (portfolio). Just be consistent.
this.strategy.processPortfolioChange(portfolio); // This will be executed in baseTradingMethod.js
}
Edit ~/plugins/tradingAdvisor/baseTradingMethod.js and add:
Base.prototype.processPortfolioChange = function(portfolio) {
this.onPortfolioChange(portfolio); // onPortfolioChange will be accessible in the strategy
}
In your strategy, onPortfolioChange will trigger when the portfolio has changed so you can read the asset and currency variables. This is independent of your candle size so this can trigger at any moment. Add, for example;
strat.onPortfolioChange = function (portfolio) {
log.info('Portfolio has changed; Asset=', portfolio.asset.toFixed(3), 'and Currency=', portfolio.currency.toFixed(0) );
}
That's it!
Follow the same logic for any other Events. This adds Balance updates;
Edit ~/plugins/tradingAdvisor/tradingAdvisor.js and add:
Actor.prototype.portfolioValueChange = function(balance) {
this.strategy.portfolioValueChange(balance);
}
Edit ~/plugins/tradingAdvisor/baseTradingMethod.js and add:
Base.prototype.portfolioValueChange = function(balance) {
this.onBalanceChange(balance);
}
In your strategy, add:
strat.onBalanceChange = function (balance) {
log.info('Balance has changed; it is now', balance.balance.toFixed(1) );
}
|
|
|
raspberry pi 4 |
Posted by: sil - 11-03-2019, 01:58 PM - Forum: Technical Support
- No Replies
|
|
Hallo @all
Does anybody has a gekko trader bot running on a raspery pi 4?
I tried since a few days, but still not successfull..
there are problems with the sqllite modul and after with the node npm install of exchanges..
Does anybody has a short overview or manual how to set it up (which version of node, npm, commands to use)?
or even betther, is there a docker container running with gekko for raspberry pi 4
thanks and regards, sil
|
|
|
Cannot find module '../core/log.js |
Posted by: animehacker - 11-02-2019, 03:05 AM - Forum: Technical Support
- Replies (3)
|
|
So I was lazy and just installed Gekko as root, so that might be a potential cause of all my issues, if not then there's a bigger problem.
I'm getting the error "Cannot find module '../core/log.js" from some strategies. even though that file definitely exists on the correct relative path as I have manually tested.
I'm also getting various errors like RSI indicator not found, even though it definitely is in the indicators folder.
Anyone have any idea what's going wrong? Of course first thing I will do is try a full re-install as non-root user but it would be nice to know what went wrong. Thanks.
I'm also trying to get tommiehansen's 'simple bull/bear' RSI strategy working, hence I was also getting the errors on that, as well as when trying to run RSI or StockRSI on the backtester.
|
|
|
Gekko Deployment Tool |
Posted by: brobrobraap - 10-30-2019, 07:44 AM - Forum: Third Party Software
- Replies (16)
|
|
Hey guys, I am working on a one-click solution to deploy Gekko in the cloud seamlessly.
Some features:
- One-click deploy
- Run backtests
- Use your own strategies
- Monitor your instances
- Live trading and paper trading optimized machines
Please let me know what you think!
There will be a trial once it goes live.
https://gekkoserver.io
|
|
|
gekko supported exchange for U.S. investors |
Posted by: macktastic - 10-22-2019, 10:47 PM - Forum: Binance
- Replies (4)
|
|
Everywhere has been shutting their doors to U.S. accounts lately. My question(s) is will an API from Binance.us work on Gekko or should I start a coinbase pro account and just set the bot to gdax since the gdax api now just forwards you to coinbase pro? Also, are all the bugs worked out with the gdax.js file yet? I heard some chatter about people having trouble executing trades on gdax because of the date or something. Poloniex is shutting it's doors to U.S. based trades next month and I'm basically asking what exchange to trade on as a U.S. investor and please don't say Kraken because I tried them before and they're API was just awful!
|
|
|
Error when import strategy files |
Posted by: Looser - 10-22-2019, 08:53 PM - Forum: Technical Support
- No Replies
|
|
Hi,
Newbie under Gekko but accustomed to mt4, I receive an error when I try to use an external strategy download from https://github.com/xFFFFF/Gekko-Strategies
All strategy download have the same error :
Expected "[", Comment, DoubleQuote, Newline, Whitespace, [a-z], [A-Z], [0-9], "-", "_" or end of input but "<" found.
[url=<a][/url]https://nsa40.casimages.com/img/2019/10/...603343.jpg
Any idea?
Thanks
|
|
|
|