Plugin execution order
Hi there,

I'd like to create a plugin that acts as an advisor to my strategy. So ideally it should be updated before the strategy gets updated. This way the plugin might decide to fire off an event to which the strat is subscribed and then in the update of the strategy it uses the result of the plugin.

However I noticed that plugins seem to be updated after the strat update() and check() methods. I can add some hackery in the code to change execution code for particular plugins, but chances are that I'm probably doing something wrong. 

So the question is: how to properly setup some sort of plugin that advises the main strategy, so that the main strategy can use that result in its check() or update() method?



Forum Jump:

Users browsing this thread: