Static Bid and Ask Order Ladders with Increasing Size
Summary
The code places a fixed set of buy limit orders below the current BTC perpetual-futures price and sell limit orders above it. The price offsets widen in regular increments, while order quantities grow rapidly at deeper levels, creating symmetric bid and ask ladders. It sets leverage and direction before submitting each side, then logs the ticker and open orders.
This is a concrete example of a two-sided grid-like order placement scheme, but it does not include logic to cancel, refresh, or rebalance orders, nor does it describe how fills are managed or positions are closed. The published settings give a backtest date range, but no results or assessment of costs, margin usage, or drawdown. Because quantities increase sharply farther from the reference price and leverage is set, exposure can accumulate substantially if price moves through multiple levels. The document offers code behavior rather than a complete, evaluated trading strategy.
Key ideas
- The script places buy limits below and sell limits above the current market price.
- Price levels are spaced progressively farther from the reference price.
- Order quantities increase at deeper ladder levels, increasing potential accumulated exposure.
- The code does not manage cancellations, filled positions, or exits.
- The backtest settings contain no reported performance evidence.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.