Bots have safeguards and limits that alert you when an automation encounters an error. These safeguards were created to protect traders and require you to think critically about your trade setup from entry to exit.
Bot event loops typically occur in bots that run on event triggers. The error can happen if youâre not careful when using open position or close position actions inside an automation.
Bots have position limits and capital allocation limits for an important reason. The limits prevent the bot from entering a âloopingâ scenario where it opens and closes positions beyond the limits youâve set in the botâs global settings.
âPosition openedâ triggers tell the bot to run an automation once instantly after the bot opens a position. âPosition closedâ triggers tell the bot to run an automation as soon as a position is closed.
Event loops are a unique situation where positions are opened or closed because of related events and subsequently become stuck in a âloop.âÂ
For example, an event could automatically open a position when another is closed. Closing the position could trigger another event that immediately opens a new position, thereby causing the bot to enter and exit positions in an endless loop.
The event loop will cause the bot to reach its daily and/or total position limit.
The bot event loop error is a specific, deliberate error you can encounter if youâre not careful setting up your event automation actions Be sure to always think through the process when creating your bots, and donât forget to test your automations and paper trade to avoid these situations!