Advice Event Trigger field?
#2
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:

Code:
this.notify("whatever you want")

And you plugins can subscribe to the stratNotification event to receive it Smile
  Reply


Messages In This Thread
Advice Event Trigger field? - by Gryphon - 10-30-2018, 01:44 PM
RE: Advice Event Trigger field? - by askmike - 10-31-2018, 09:45 AM
RE: Advice Event Trigger field? - by Gryphon - 10-31-2018, 10:03 AM
威而鋼 - by fuisy - 06-04-2021, 07:12 AM
RE: Advice Event Trigger field? - by lucifar - 03-07-2021, 09:01 AM
RE: Advice Event Trigger field? - by lucifar - 03-08-2021, 09:13 AM
RE: Advice Event Trigger field? - by lucifar - 03-11-2021, 09:58 AM
RE: Advice Event Trigger field? - by lucifar - 03-16-2021, 07:21 AM
RE: Advice Event Trigger field? - by lucifar - 03-20-2021, 09:20 AM
RE: Advice Event Trigger field? - by lucifar - 03-28-2021, 12:49 PM
RE: Advice Event Trigger field? - by lucifar - 04-01-2021, 01:58 PM
RE: Advice Event Trigger field? - by toun - 04-19-2021, 09:09 PM
RE: Advice Event Trigger field? - by yirzolusto - 04-22-2021, 03:31 PM
RE: Advice Event Trigger field? - by yirzolusto - 04-24-2021, 08:53 AM
RE: Advice Event Trigger field? - by yirzolusto - 04-24-2021, 10:41 AM
RE: Advice Event Trigger field? - by yirzolusto - 05-21-2021, 04:16 PM
RE: Advice Event Trigger field? - by yirzolusto - 05-22-2021, 11:07 AM
Custom Packaging Boxes - by custom boxes - 06-17-2021, 03:44 PM
RE: Advice Event Trigger field? - by lucifar - 07-23-2021, 08:53 PM
RE: Advice Event Trigger field? - by manahilafzal - 08-12-2021, 06:19 PM

Forum Jump:


Users browsing this thread: