|the market opens daily||wake||Generally used to load data and/or calculate signals.|
|the market is open, the wake event is done and all requested data has loaded||scan and/or monitor are triggered repeatedly||scan is triggered if the number of open opportunities is less than the strategy's opportunity limit.
monitor is triggered if the bot has an open opportunity.
|$bot.reload() is called||load||Used to reload data and/or recalculate signals.|
|the bot opens a new opportunity||open||Can be used to leg into opportunities, reload data, etc.|
|the bot closes an opportunity||close||"|
|the bot has an error||error||$bot.message has the error message.|
|the bot is paused||pause||$bot.message has the pause message.|
You response to these events with scripts.