10-31-2018, 09:45 AM
The only purpose of the advice method (and all other events within Gekko) is to relay information from one plugin to another. So my question is: what do you want to do with the information you pass? If you simply want to log (to CLI or log file) you can simply use console.log.
-----
If you want to pass it to other plugins (advanced usage): For that I recommend using a different event called stratNotification:
https://gekko.wizb.it/docs/internals/eve...tion-event
in your strategy you can do:
And you plugins can subscribe to the stratNotification event to receive it
-----
If you want to pass it to other plugins (advanced usage): For that I recommend using a different event called stratNotification:
https://gekko.wizb.it/docs/internals/eve...tion-event
in your strategy you can do:
Code:
this.notify("whatever you want")
And you plugins can subscribe to the stratNotification event to receive it