08-23-2018, 03:35 PM
Hi,
probably best is to sort out the bugs to avoid any restart.
Today I had the same need to get further events inside my strategy. Since the strategy isn't a plugin itself it can not directly subscribe to events, but it is wrapped by the tradingAdvice plugin so it is pretty straight forward to extend your event needs there: https://github.com/askmike/gekko/blob/de...Advisor.js
E.g. I did it to receive the 1 min. candles inside the strategy also, so you can simply setup multi candlesize strategies without the need to change your e.g. existing 60 min. strategy and candlebatch everything manually.
probably best is to sort out the bugs to avoid any restart.
Today I had the same need to get further events inside my strategy. Since the strategy isn't a plugin itself it can not directly subscribe to events, but it is wrapped by the tradingAdvice plugin so it is pretty straight forward to extend your event needs there: https://github.com/askmike/gekko/blob/de...Advisor.js
E.g. I did it to receive the 1 min. candles inside the strategy also, so you can simply setup multi candlesize strategies without the need to change your e.g. existing 60 min. strategy and candlebatch everything manually.