gekko icon indicating copy to clipboard operation
gekko copied to clipboard

Video of my GA working with Gekko

Open thegamecat opened this issue 9 years ago • 22 comments

For peoples interest more than anything:

https://www.youtube.com/watch?v=93OiWRBRTJw

thegamecat avatar Aug 17 '17 19:08 thegamecat

If you don't mind I def want to post a link to that here: https://gekko.wizb.it/docs/extending/other_software.html

(as discussed we might at some point integrate into gekko, but that is not too close imo)

askmike avatar Aug 17 '17 19:08 askmike

Yep ofc.

thegamecat avatar Aug 17 '17 19:08 thegamecat

Looks cool, would love to play with it.

chrisedington avatar Aug 18 '17 11:08 chrisedington

It's funny. Just this morning I mentioned to my partner on the drive in that I was wondering if it would be possible to setup a "survival of the fittest" or genetic algorithm to work with Gekko.

GuyPaddock avatar Aug 18 '17 21:08 GuyPaddock

looks interesting, would also love to play with it.

Question of interest, did you calculate on cpu or gpu? And have you considered the possibiity of the ga to be bankrupt?

decoye avatar Aug 21 '17 07:08 decoye

I wanna see more! :) did you try this one live/paper trading?

bsliran avatar Aug 21 '17 08:08 bsliran

Question of interest, did you calculate on cpu or gpu?

CPU - it's written in node, I don't think you can run that on a GPU, in any case the speed is 100% dependant on Gekkos backtesting. At the moment I'm running 25 variations per epoch with 8 in parallel at any one time.

And have you considered the possibiity of the ga to be bankrupt?

Well these are all backtests so if it goes bankrupt it will tell me.

did you try this one live/paper trading?

No, this is only running backtests

thegamecat avatar Aug 21 '17 12:08 thegamecat

Would be interested in doing some testing as well - anything code-wise you can share?

dlasher avatar Sep 01 '17 23:09 dlasher

At the moment I'm keeping it to myself, but I'm doing some optimizing work with a gekko user as well meaning he sends me strats and I run the GA and give him the results. It's quite interesting as we get to discuss strategies and such like. I could do something similar with you?

thegamecat avatar Sep 02 '17 07:09 thegamecat

I've written some more detail about the ga here: http://gekkowarez.com/gekko-genetic-algorithm/

thegamecat avatar Sep 07 '17 13:09 thegamecat

@thegamecat, would you like to make a test for me on poloniex eth/usdt timeframe 23.05.2017- 23.08.2017?

decoye avatar Sep 07 '17 13:09 decoye

sure, you'll need to send me your strat and config for it. I may not get to do it until the weekend though to be clear!

thegamecat avatar Sep 07 '17 13:09 thegamecat

So you still need a strategy to back test? I have to admit that ive pictured it completely differently in my head. Then never mind.

decoye avatar Sep 07 '17 17:09 decoye

@decoye You may be thinking ML ? A GA would just vary the Thresholds and Variables ( Mutate ) for an instance, and run a back-test for the instance. Then I assume it would run a number of these instances ( A population ) in parallel and based on the output from the back-test results calculate how well the instance did ( Fitness ). Then any instances that had a fitness under a certain threshold would be removed from the population. This continues until your happy with the results, and you can pick your favorite instance out of the population to actually run against the market.

@bsliran From what I wrote above, it probably isn't a great idea to run this live because some mutations may preform very badly, especially during initial training life cycles.

mnoseworthy avatar Sep 07 '17 18:09 mnoseworthy

@decoye yes you run a strategy and the GA works out the optimal thresholds for that strategy.

@mnoseworthy not quite true, you're thinking one dimensionally. I'm running the outputs from an optimal GA output and it's foolproof. It's a question of understanding what will work and what wont, then control that in your strat.

thegamecat avatar Sep 07 '17 19:09 thegamecat

I used to run a couple of dedicated boxes doing ga-bitbo.. was very useful at the time, but those boxes were scrapped, not finding my old configs. I have hardware again, need to get it back up and running. Love the idea of integration with Gekko, well done.

dlasher avatar Sep 07 '17 19:09 dlasher

@thegamecat, ahh okay i see. I really had something completely different in my head. Saw a bunch of things during my research and evaluation period since you talked about it. Had things like marI/O in my head. And just thought if i need the bot to tell what is the way to the solution of the level the bot does not really learn anything. Im sure im messing up toppics in my head here about what ga term means and what deep learning does.

My theory about technical analysis is that it hast to stay for a while and you have to be strong and diciplined about your strategy for it to be profitable once you confirmed it is profitable with a back test. So im struggeling abit with changing strategy over the time of running the strategy. But thanks for your time and effort of explaining it to me.

decoye avatar Sep 07 '17 19:09 decoye

Now thinking about it. Yes i was thinking about machine lesrning rather then ga. And now that i have thought about the terms it all makes sense...

decoye avatar Sep 07 '17 20:09 decoye

@thegamecat Super interesting, looking forward to seeing your implementation if you ever release it, good work.

@decoye I agree 100% with your TA theory. I think the way I'd use this is train a specific indicator to the trend you're usually applying it to by backtesting on trades you've made before with said indicator. And like @thegamecat said, you'd want to start the training from a pre-determined set of values.

mnoseworthy avatar Sep 07 '17 20:09 mnoseworthy

You can download my latest version here: http://gekkowarez.com/gekko-genetic-algorithm/

thegamecat avatar Sep 08 '17 23:09 thegamecat