How Raven Trading Bot Handles Stop-Loss Logic Across the Full Order Lifecycle
A developer has detailed the stop-loss architecture built into Raven, a no-code framework for creating automated prediction market trading strategies. The system distinguishes between a submitted order and an active position, only activating risk management once the exchange confirms an order has been matched. A Pending Order Tracker monitors unmatched orders, while a Position Tracker takes over once a trade is live, continuously calculating profit and loss against configured thresholds. When unrealized losses exceed the stop-loss limit, the Position Monitor publishes an exit action to a separate execution layer, currently using Fill-or-Kill orders to close positions immediately. The architecture was validated using real trades, with the bot successfully triggering an exit signal when a test position crossed a roughly 10% loss threshold.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in