11-11-2018, 06:35 PM
(11-10-2018, 10:15 AM)dray01 Wrote: HI guys,
Firstly this might help someone. https://github.com/valentinbercot/gekkoga works against the Gekko 0.6* api. Thanks valentinbercot for updating the API configuration.
Secondly, hoping someone can help me. I would like to run gekkoga against NNv2 strat. I have loaded it all up and it works fine BUT the strat needs to use decimal places. Just 2 really. When using randomExt.float it defaults to 0.0000000000000000 meaning that GA will have to run perhaps millions more tests.
I tested randomExt.floatArray with 2 as the length but this messed up the outputs in gekkoga.
Is there a way in js to limit the decimal places?
I can fallback to integer but my results will not be as accurate as I would like.
Thanks!
BD
Im using it like this:
threshold_buy: randomExt.float(1.20,0.40).toFixed(2),
threshold_sell: randomExt.float(-0.50,-1.00).toFixed(2),