Feeding Strategy Portfolio/Exposed values
#5
(08-23-2018, 03:35 PM)mark.sch Wrote: 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.

Answering here (already did on Discord but not everyone reads that and this might help someone else) as well.

Thanks for the tip, I can probably use that. And that 1 minute candle passthrough is pretty neat too, should work better for the zTrailingStopLoss I use if it gets updated every 1 minute instead of 5 minutes, I'll add that as well until we get native stop loss.
  Reply


Messages In This Thread
RE: Feeding Strategy Portfolio/Exposed values - by limejuice - 08-23-2018, 04:34 PM

Forum Jump:


Users browsing this thread: