New Strategy Format - Printable Version +- Gekko Forum (https://forum.gekko.wizb.it) +-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html) +--- Forum: Strategy Development (https://forum.gekko.wizb.it/forum-12.html) +--- Thread: New Strategy Format (/thread-57723.html) |
New Strategy Format - askmike - 10-19-2018 Gekko Strategies are about to change! The main thing I need to update now is meta information (things about your strategy) so strategies become easier to work with for Gekko. The goal of these changes are: - Better dealing with strategy parameters (no more TOML files) - More information so Gekko can display all strategies in a nice page so people can read about more conviently. Specifically so Gekko can render this page: https://app.gekkoplus.com/strategies/macd See the link above for the full page. New strategy format proposal That page currently needs a JSON structure that describes the meta of the strategy, this is the JSON structure: Code: { - market and tradingAdvisor are the "default" market & candleSize. - "highlightedBacktest" is the performanceReport of a backtest using this strategy (over the default market and configSize). - "parameters" is now in JSON. - rest is meta That's a draft, does anyone think we need anything else? Maybe we can pull out the HTML and put it in a readme MD file? RE: New Strategy Format - tommiehansen - 11-15-2018 Just add an optional json file for a strategy and let the rest be as is, therefor no compatbility issues? /strategies/ myStrat.js myStrat.toml myStrat.json if( !myStrat.json ) desc = 'No description available', title = filename, etc .. RE: New Strategy Format - askmike - 11-22-2018 Yeah either that or make the JSON part of the strategy under strat.meta or something. However we end up implementing it, it will be backwords compatible and not break existing strategies. |