Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeout in config sample #3

Closed
dinankou opened this issue Nov 10, 2017 · 6 comments
Closed

timeout in config sample #3

dinankou opened this issue Nov 10, 2017 · 6 comments

Comments

@dinankou
Copy link

dinankou commented Nov 10, 2017

Correct in the sample the macd long short signal are hard coded.. So it's only doing candles thresholds and history size.
You reminded me.. I'm going to move the timeout setting into the config. Keep in mind when this happens it will break configs.. So keep an eye out for commits where Sample-config.js has new stuff added to it.. Because you will need to add them to your config in the event you update

putting this here so it doesnt mix with thread #2

what do you mean by "it will break configs" ?

about the hard coded long short signal, i guess i just have to add 'randomExt' function to "short", and to ajust "long" with something like long: short + randomExt ?

@generalectric
Copy link
Collaborator

If I move timeout to config.. And out of main GA script.. When you update if you don't add the timeout option to your custom config gekkoga will error.. So keep an eye on Sample-config to get new additions and put them in your custom config to keep it up to date when updating gekkoga

@generalectric
Copy link
Collaborator

Oh and if you want to GA the macd settings just put randomExt.integer(50, 1), instead of the hard coded number

@dinankou
Copy link
Author

thanks ! and if i want to change the tested strategy (stochRSI, DEMA...), i just have to change line 33 ( stratName: 'MACD',), or is there other lines to modify ?

@generalectric
Copy link
Collaborator

Correct... There are no other lines to modify

@dinankou
Copy link
Author

dinankou commented Nov 10, 2017

cool ! i'll try this tonight.
I want to run the genetic algorithm on this : askmike/gekko#1275

it will need some configuration but it could be useful.

@generalectric
Copy link
Collaborator

Actually now that I think about it I believe I have timeout cranked up to something ridiculous. So this means it's capped at 2 minutes by default in uiconfig for your server. Edit the timeout setting there and restart server.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants