Balanced Pre-Placed Orders for Portfolio Rebalancing
Summary
This educational strategy sets paired buy and sell limit orders around an account’s current balance of cash and assets. A configurable distance, denominated in the quote currency, determines the target prices and order amounts intended to rebalance holdings as the market moves. When either order fills, the program cancels remaining orders, clears its plan, reports estimated account profit using the latest price, and calculates a new pair from the updated account state. It also supports pausing, resuming, and restoring saved account information.
The document explicitly says the method is primarily for teaching and has not undergone long-term live testing. The source shows operational order handling, but supplies no performance analysis, fees, or robust risk limits. Its repeated cancellation and replacement behavior, exchange order constraints, and reliance on account balances and ticker data could affect live execution. The method should therefore be understood as a dynamic rebalancing example rather than evidence of a tested profitable strategy.
Key ideas
- The strategy places buy and sell limit orders based on current cash and asset balances.
- A configurable quote-currency distance sets the planned prices and order quantities.
- After one order fills, the script cancels outstanding orders and recalculates the pair.
- The code includes pause, resume, account restoration, and profit reporting features.
- The author describes it as educational and says it lacks long-term live testing.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.