Open gbittoun opened 5 years ago
Just wanted to add two things: 1) the update function are all doing nothing… I don’t get why, I might be missing something in the doc 2) I have error when executing install.sh script, spaces in indicators/strategies paths are causing errors
I keep digging :)
If ema.result is a boolean type, ema.result can't execute the ema.result.toFixed function, it would only work for number type.
A quick fix is to force number type when you need to call it, replacing it like this:
ema.result -> Number(ema.result)
now if ema.result === false
then Number(ema.result) === 0
and Number(ema.result).toFixed
can be called.
I'm not sure this would break the logic of the plugin, I think it doesn't.
Thanks dude :)
In fact, it was more a problem of install script not working, spaces in paths caused errors in the script. I changed the script and re-did npm install --only=production
in gekko repository and it fixed everything… I wonder if I should ask for a merge request for my change, I think my change could fix linux/ubuntu install (and maybe add an install procedure in README in the MR).
Cheers,
Hello, I have trouble executing backtest and livetest (thankfully leads to the same errors :) ):
printed variable
ema.result
with aconsole.error(ema.result)
and got:Indicator { weight: 50, result: false, age: 0 }
Might be a kraken configuration issue (I’m using kraken) but other “builtin” gekko strategies are working fine with my current configuration.
Thanks,