Coder Social home page Coder Social logo

phatwila / gekko-trading-stuff Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thegamecat/gekko-trading-stuff

0.0 1.0 0.0 26 KB

A dumping ground for my files I use with this awesome crypto currency trading platform https://github.com/askmike/gekko

License: GNU General Public License v3.0

JavaScript 100.00%

gekko-trading-stuff's Introduction

gekko-trading-stuff

A dumping ground for my files I use with this awesome crypto currency trading platform https://github.com/askmike/gekko


Indicators: Place the indicators into the Strategies / Indicators folder then reference them inside your strategy.

TWIG.js This is a TWIGs indicator based on https://www.incrediblecharts.com/indicators/twiggs_money_flow.php

FIBO.js This is a fibonnaci retracement indicator that works out the fib levels.


Writing CSV of strat output candles

Install fs

Add this to the top of the strat: var fsw = require('fs');

Add this in .update under your logic etc I've used adx as an example:

grreadtime = candle.start.toDate(); headertxt = "date,price,adx,buys (USD),sells (BTC)\n"; outtxt = grreadtime+","+ price+","+adxresult+","+buytime+","+selltime+"\n";

if(headerset==""){ fsw.appendFileSync(this.fname, headertxt, encoding='utf8'); headerset = "1"; }

fsw.appendFileSync(this.fname, outtxt, encoding='utf8'); outtxt = "";


Running Gekko in Bash on Windows 10

SQLite wont work with Pragma WAL so open the db with DB Browser for SQLite and change the db Pragma to DEL or OFF. Then in F:\bash\gekko052\gekko\plugins\sqlite\handle.js change WAL to DEL (line 53).


Having memory issues?

Use node --max-old-space-size=8192 server.js which gives node 8gig to play with rather than 1.5 which sucks.


If you want candleprops (1000 historical candles) to be available to your strategies you can either include a talib indicator in your strategy (yuck, slow for backtests), or open plugins/baseTradingMethods.js and commend out the line below and the corresponding close bracket:

// if(this.asyncTick) {


gekko-trading-stuff's People

Contributors

thegamecat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.