gryphonr / google-forms-gekko-plugin Goto Github PK
View Code? Open in Web Editor NEWA gekko plugin for live trading that submits all trades to a google spreadsheet through Forms
License: MIT License
A gekko plugin for live trading that submits all trades to a google spreadsheet through Forms
License: MIT License
So I downloaded your neuralnet_v2 strategy to my Gekko. I tried running a backtest but it doesn't run. I have put the .js file in the strategy folder and the .toml in the config/strategies folder. I am reading in the .js file that it requires: var convnetjs = require('convnetjs');
var math = require('mathjs');
var log = require('../core/log.js');
Are those file part of the Gekko when I originally download it? If not, where to I get those files and what subfolders do they need to be put it? I'm just starting to use the Gekko, and I'm not understanding how to get these other strategies added to it. Thanks for any help you can lend.
v/r
Hoppy
Full error below - I want to apologize in advance - I make it a practice to solve my own issues but since this is so far out of my norm, I am asking for help. I've dumped 2 hours into this already... I took Comp Sci in college about 6 years ago and haven't used it at all since then - life gets in the way, ya know?
<-- POST /api/backtest
uncaughtException { Error: Cannot find module '../core/log.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/Users/Neil/gekko/plugins.js:254:11)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3) code: 'MODULE_NOT_FOUND' }
xxx POST /api/backtest 500 202ms -
Error: non-error thrown: [object Object]
at Object.onerror (/Users/Neil/gekko/node_modules/koa/lib/context.js:105:40)
at process._tickCallback (internal/process/next_tick.js:68:7)
Update
I think this is what was causing the issue, I had the Survey Link in the wrong spot... hey, i'm very rusty! What am I doing wrong here?
config.gforms = {
enabled: true,
botTag: ‘NeilsTag', //Add a custom tag here. This will be included in the name of the spreadsheet tab for this bot.
prefill: 'https://docs.google.com/forms/d/e/1FAIpQLSdt8NGLUxwmM8MdaB8sDKEPAnozpFdEJ-nqV6iYVPyYm1YLQA/viewform?usp=pp_url&entry.307416514=+&entry.181585019= etc',
};
Hey! Gekko 0.6 has been released and unfortunately there have been breaking changes. As far I can see they are:
The advice does not come with a candle anymore, instead this plugin can keep track of the latest candle price by something as:
gforms.prototype.processCandle = function(candle, done) {
this.price = candle.close;
done();
}
(and use this.price
in the processAdvice call).
AND:
There is no "trade" event anymore, please use the new tradeCompleted event instead.
I've only glanced through the code but I think that should be it :)
After buy script could check current price. I would not have to use other tools then your sheet if it had these features.
And if it was still showing the moment of purchase and sale on the chart, then it would be a cosmos at all :)
https://jbuty.com/how-to-get-crypto-currencies-rates-and-more-in-google-sheet-1a57e571bc14
Hi, i'm getting this error when trying to run Gekko, very new to this so not entirely sure what i'm doing lol.
Here's the error msg i'm getting:
C:\Users\Ballsy\gekko\plugins.js:197
description: 'Logs Trades to Google Forms',
^
SyntaxError: Unexpected token :
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:607:28)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at pipeline (C:\Users\Ballsy\gekko\core\pipeline.js:42:26)
xxx POST /api/backtest 500 3,650ms -
Error: non-error thrown: Child process has died.
at Object.onerror (C:\Users\Ballsy\gekko\node_modules\koa\lib\c
05:40)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
So sheet gave few errors on first cell because it started with "Sell" not "buy".
So if I am trading on BTC-USD with starting balance in BTC not in USD then the first thing gekko does is sell but sheet tries to calculate profit on this sell which is not possible. I think this particular case can be handled when first order is a sell not a buy.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.