Skip to content
All library documents

Timed Rebalancing with a Sell and Below-Market Limit Buy

Article Strategy library · Author: ChaoZhang

Summary

This strategy schedules a recurring position change at a user-selected time. At the specified time, it submits a short entry intended to sell at market and places a long limit entry priced one percent below the current close. The inputs include execution hour and minute and date fields for testing; the accompanying example uses BTC futures and hourly bars. Although the description presents the process as selling an existing position before buying again, the source uses separate strategy entries, so the exact position effects depend on the platform’s order and position rules.

The approach automates time-based rebalancing and aims to reacquire at a lower price, but the limit order may never fill. The document flags poor timing, slippage, fees, and lack of management between scheduled actions. It offers no performance evidence, and its code sets the date-range condition to always true despite providing date inputs. Testing should therefore account for execution behavior, fill assumptions, and market risk between scheduled orders.

Key ideas

  • The strategy schedules orders at a chosen hour and minute.
  • At the scheduled time it submits a short entry and a long limit order one percent below the close.
  • A below-market limit order may remain unfilled, so the intended rebalance is not guaranteed.
  • The implementation includes date inputs but does not use them to restrict trading in the shown logic.
  • Timing, slippage, fees, and unattended exposure between scheduled actions are key limitations.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.