Trigger-Based Planned Selling with Market or Limit Orders
Summary
This document describes an order utility that starts selling when price crosses a chosen trigger in either direction. It records the initial price to determine whether the trigger is crossed upward or downward, then submits the configured sell amount. Users can choose a market-style execution that repeatedly offers at the best bid while checking fills, or place a limit sell at a specified price. The settings also include a polling interval and a minimum remaining quantity.
The routine checks that the account holds enough of the asset, monitors ticker and order-book data, and attempts to cancel pending orders while managing market-style execution. The limit path retries submission a finite number of times. This is execution plumbing rather than a predictive trading strategy: it does not specify how to choose the trigger, quantify slippage, or protect against adverse price moves. Its behavior depends on reliable market data and exchange order handling, and no performance evidence is presented.
Key ideas
- The initial price determines whether an upward or downward crossing activates the sell instruction.
- A trigger can lead to a market-style sale or a limit order at a configured price.
- The market-style path checks fills and may divide the sale across available bid liquidity.
- The utility validates the available asset balance but does not provide a price-risk rule.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.