Darwinex Launches Open-Source 'Order Splitter' Tool

Darwinex Labs has released a free, open-source MQL5 library that splits large market orders into smaller child orders with a time delay, helping DARWIN providers improve capacity scores and reduce slippage.
Darwinex Labs, the technology team behind the multi-manager platform Darwinex, has released an open-source MQL5 library designed to help DARWIN providers improve their capacity scores by splitting large market orders into smaller sequential executions. The library, published under the Apache 2.0 license on GitHub, is available immediately for use on MetaTrader 5.
How the Library Works
DARWIN capacity is a metric that limits how much investor AUM a strategy can absorb before execution quality degrades. When a strategy's underlying account places a large order, it is replicated across every investor account, resulting in a large aggregate market impact. The library solves this by splitting a single order into N smaller child orders fired sequentially with a configurable delay, mirroring the TWAP execution technique used by institutional desks. This reduces slippage by giving the order book time to replenish between each fill.
The library handles both entry and exit sides. On entry, it divides the total lot size into valid increments respecting the symbol's minimum lot and lot step, placing the remainder into the first order to preserve total volume. On exit, if the first position hits its stop loss, each child position closes independently via its own broker-set SL. For take-profit or manual closes, the library sequentially closes the remaining children with the same delay to avoid slippage on the exit side.
Integration and Availability
Integration requires only three lines of code added to an existing Expert Advisor. Users include the library, adjust the lot size via SplitAdjustLots(), and register the fill with SplitRegister(). A dedicated adapter is also provided for strategies built with StrategyQuant X, requiring just a find-and-replace. The library automatically handles filling modes based on each symbol's properties, and supports retries on failed child orders.
The library is in alpha stage and the team advises thorough testing on a demo account before live deployment. A test EA is included in the repository to observe the lifecycle of split orders.
Community Benefit
Darwinex Labs stated that releasing the library as open source was a deliberate choice because capacity is not a zero-sum metric. As the INDX multi-manager fund grows, its ability to allocate institutional capital depends on the supply of DARWINs with sufficient capacity headroom. By helping individual providers raise their capacity scores, the library indirectly expands the total allocatable AUM across the entire pool, benefiting all participants.
Source: Darwinex