Giter VIP home page Giter VIP logo

gekko-neuralnet's Introduction

gekko-neuralnet

Neural network strategy for Gekko

This strategy was inspired from Mounir's strategy, found on the Gekko Discord channel. For reference, that's the original work: https://github.com/cloggy45/Gekko-Bot-Resources/blob/master/gekko/strategies/mounirs-ga-version-2.js

Version / Changelog

  • 2018-04-03 - renamed hodle_threshold variable to hodl_threshold
  • 2018-03-28 - Fixed SMMA input. Cleaned the training method

Install

copy the file(s) from /strategies/ into the strategies folder of your gekko install copy the file(s) from /toml/ into the /config/strategies/ folder of your gekko install

Install the modules in your gekko folder: npm install convnetjs mathjs

Usage / Configuration

// the treshold for buying into a currency. e.g.: The predicted price is 1% above the current candle.close

threshold_buy = 1.00

// the treshold for selling a currency. e.g.: The predicted price is 1% under the current candle.close
threshold_sell = -1.00

// The length of the candle.close price buffer. It's used to train the network on every update cycle.
price_buffer_len = 100

// The learning rate of net
learning_rate = 0.01

// when the price falls up to 4% and the strat indicates to go short, hodl!
hodl_threshold = 0.96

// learning speed
momentum = 0.9
decay = 0.01

//minimum number of prictions until the network is considered 'trained'. History size should be equal
min_predictions = 1000

//enables stoploss function
stoploss_enabled = false

//trigger stoploss 5% under last buyprice
stoploss_threshold = 0.95

If this strategy is useful for you and generates profits. Buy me a coffee, or two:

ETH 0x40ddba96695bc040ccbe34b4cfa3a7ae8f225583

BTC 1AigkGB4KzzRVmDDxwUxt8EaHRDbtpLNrH

NANO xrb_1iy9ztp485o5a5kumcbazz7178hqmzgcjwbesf73owi7zceaac6jrcgk3w9b

gekko-neuralnet's People

Contributors

kenzitron avatar sirtificate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gekko-neuralnet's Issues

Paper trader: CoinFalcon not working

Hi. I just wanted to test my strategy in a paper trader but it's loading all the time... I already made sure the api keys are correct and I set my api to read+write so everyhing should work fine...

Now if I enter my pairs and click 'start', it shows me a loader all the time..

When I go to 'Live Gekkos' and select my just created Gekko, it just shows me basic information (market, exchange, type) and there is a loader in the runner section..

Is this an error in Gekko or an error at CoinFalcon??

Tradebot not buying

I tried testing the tradebot with BNB/LTC and it only seems to sell and never perform any other trades after that, I used a backtest in the same time frame with the same parameters and it made 4 trades, i split the BNB/LTC 50% each so after the warmup period it would just sell the LTC for BNB and that would be it

method

Hello,

Please, add the following functionality

// the neural network training method to use. Options are 'sgd', 'adagrad', 'windowgrad', 'nesterov'
method = 'adadelta'

Stop-loss screws trades

Seems everytime I set Stop-loss to true it just gives buy orders everytime it's triggered. How could u fix that?

Setup Issue

How to setup this strategy? I tried all I can do to setup this strategy, but I can't get good profit for this one. Could you please give me hint or basic setup for this one?

Save Neural network State

Hello very nice work
i love the idea of usig neural network for trading bots.
It makes me feels that my bot is running 24/7 but is improving instead of waiting for the right time to buy or sell.

I have a problem with Gekko because sometimes it crash and when this happens I have lost all my trainning done in my neural network.

Would it be possible to store in a file the stat of the neural network and reload it when gekko restart ?

neuralnet.toml

Hello,

Please, update/replace neuralnet.toml using the Usage / Configuration description. You have incorrect values in the "toml" which are against documentation. Please, also wrote the recommended minimal candle size - for example, 1h.

Live Trading Stops After Few Hours

Hello,
This strategy seems very promising, especially on some back testing results!
The issue I had was running a live strategy and it only trading at progressively slower intervals for about 12-24 hours and then never trade again after that.
I was also running a paper trader too in gekko ui, which showed simulated trades taking place which were not reflective for my live strategy.
I thought the issue might have been multiple instances with live and paper at same time, so I just ran it live from terminal/pm2, but same results, no trades after like 12 hours.
If I restart the live strategy, it will do a few trades at progressively increasing intervals, and then just stop trading again.
I assume a successful live strategy results for yourself. How do you configure, through terminal or gekko ui? Any other ideas? Thanks!

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.