Let the order do the thinking for you: Detailed explanation of the conditional order combination strategy engine
- 2026-01-30
- Posted by: Wmax
- Category: Featured solutions
In CFD trading, the ideal operation is often not a single action, but a set of interrelated instructions: for example, "If the price breaks through a certain level, open a position and set a take-profit and stop-loss at the same time"; or "If the entry is not triggered, cancel the entire plan." Performing these multi-step operations manually is not only time-consuming, but can also lead to strategy failure due to delays or oversights. Wmax The platform launches a conditional order combination strategy engine that supports three logical structures: If-Done (if executed), OCO (choose one to cancel) and ladder order (triggered in batches), allowing users to realize automated execution of complex trading intentions through one setting.
This function does not replace user decision-making, but converts the formulated strategy into an executable command chain, ensuring that it can still operate according to the preset rules even when there is no one on duty or emotional interference, and improves the consistency and discipline of transactions.
1. If-Done: Build a complete closed transaction loop
If-Done (if executed) is the most commonly used combination logic and is suitable for the integrated scenario of "admission + risk control". Users can first set up a main order (such as buying gold at a limited price), and then attach one or more sub-orders (such as take-profit orders, stop-loss orders). Only when the main order is filled, the sub-order will be activated and submitted to the market.
For example, the user plans to go long when the gold price falls back to 5,400 US dollars, and hopes to automatically take profit at 5,600 and stop loss at 5,300. Through If-Done, these three instructions are bound as a whole: if the 5400 buy is not triggered, the stop-profit and stop-loss will not take effect; once the buy is completed, the two risk control orders will be placed immediately. This design avoids human errors such as "forgetting to set a stop loss" or "hesitating whether to take profit after making a profit".
2. OCO: Locking the optimal path in uncertainty
OCO (One-Cancels-the-Other) is suitable for two-way breakthrough or interval boundary monitoring scenarios. Users can set two mutually exclusive orders at the same time (such as "buy above 5500" and "sell below 5300"). Once one of them is completed, the other will be automatically canceled.
This logic is particularly suitable for the critical point where shocks turn into trends. For example, near the key support and resistance zone, users do not need to guess the direction, but only need to set up a two-way net: whether it breaks upward or breaks down, the market can be captured, and there will be no risk superposition due to two-way positions. Wmax's OCO supports cross-variety settings, such as "long gold or short US dollar index, choose one of the two" to meet the needs of hedging strategies.
3. Ladder order: realize batch building of positions and dynamic adjustment
Step Order allows users to execute multiple orders in the same direction in stages based on price or time dimensions. For example, it is planned to buy crude oil in three levels during the decline: 5,000 lots @ $70, 5,000 lots @ $68, and 5,000 lots @ $66. Each level triggers independently and does not affect each other, making it easy to spread the cost of building a position when the bottom is uncertain.
In addition, ladder orders support "dynamic parameters": the lot size or price of subsequent orders can be automatically adjusted based on the transaction results of the previous order. For example, after the first order is completed, the second lot size is increased by 20% to strengthen trend following. This flexibility allows users to maintain discipline while retaining strategic flexibility.
![]()
4. Combination nesting and failure management
Wmax’s strategy engine supports conditional nesting. For example, an If-Done main order can include an OCO subgroup (i.e., "after entry, set a two-way take profit"), or each step of the ladder order can have an independent stop loss attached. The system will automatically generate an execution dependency graph to ensure there is no logic conflict.
All combined orders have a unified expiration mechanism: users can set the overall validity period (such as "valid for the day" or "valid for the GTC long term"), and can also set separate timeout cancellations for sub-orders. If the main order is partially filled, the untriggered sub-order can still continue to run according to the rules to avoid strategy interruption.
5. Transparent execution and retrospective verification
In order to ensure user control, Wmax fully records the life cycle of the combined order in the order history: main order status, sub-order activation time, cancellation reason, etc. Users can view the "Policy Execution Pipeline" to verify whether it is running as expected.
For example, if an order in OCO is only partially filled due to insufficient liquidity, the system will clearly mark "another order has been canceled" and retain the original parameters of the unfilled portion for review. This transparency allows users to enjoy the convenience of automation without losing oversight of the process.
Conclusion: Let tools extend your strategic will
The financial market is changing rapidly, but human attention and execution capabilities are limited. Wmax Through the conditional order combination strategy engine, complex trading intentions are transformed into reliable execution logic, allowing users to upgrade from "operators" to "strategy architects".
Because in professional trading experience, the most efficient discipline is not maintained by watching the market all the time, but through a clear setting, so that the order can make the right choice for you at the right time.