Closed JThobbyist closed 6 years ago
I'm guessing this was for performance reasons? How difficult/valuable would it be to support this
Hey! There are a few different reasons why the candle is limited to 1 minute, the short story is here. The longer story:
The biggest thing though:
Gekko is a platform to create trend watching trading bots, this involves looking at how the price has historically developed and trying to base predicitons of of that. But the smaller your timeframe the more noise and the less reliable the concept of candles work. You can definitely build strategies that trade on shorter timeframes, but you wouldn't use candles:
Even though it sounds similar, it's a very different problem space. And when building strategies that trade on short timeframes you'd build a completely different system in all aspects. (Gekko is 100% based on candles).
Note: for support questions, please join our Discord server
I'm submitting a ... [ ] bug report [X] feature request [ ] question about the decisions made in the repository
Action taken (what you did) I've looked through the docs trying to find out where candleCreator got its "1min" minimum candle size from, hoping that there would be one variable referenced from a config file specifying the length of time in each mini candle (the ones from which 1hr/1day/etc candles are made).
Expected result (what you hoped would happen) There would be a variable in some config file somewhere that was set to 60000 milliseconds or something like that, which could easily be changed to 10000ms or even 1000ms for smaller candle sizes.
Actual result (unexpected outcome) the 1min candle size seemed to be hard-coded into the candleCreator, not something that could easily be changed.
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)
I would suggest if someone is familiar with the gekko's internals, that they re-code the candleCreator to operate using a candle size that can be set either from a config file, or even set in just one variable at the top of the page. Maybe using a switch(minCandleSize) statement to determine some of the syntax for the candle start dates and such