The basis of this algo is to submit a BUY Order from the Discrete Order Block at the Bid Price for an order qty of 10 ( Time Sliced Qty) up to a TOTAL of 100 (TOTAL QTY). These orders are to be placed every 5 seconds (Time Sliced Period).
This example leverages several user-defined variable to set the Instrument, Time Sliced Qty, Total Qty, and Time Sliced Period.
In addition, the Time Sliced Generator Block uses the Conditional output from comparing the “working Order Qty” to the Total Order QTY. This comparison gives us the “Total QTY Condition” input for the Enable / Disable condition (i.e., TRUE or FALSE). In this Time Sliced Generator Block, you also have the User Defined Variable for your Time Sliced period.
This includes a few EXPORT Value places for users to monitor internal algo values while the algo is running.
The individual child orders are virtualized since they could possibly have all different BID Prices if the market is moving quickly. Plus, inside that Virtualized Group Block (Order ADDS) is where you could put custom Child Order Management logic for the price, qty, or delete conditions.
From the FILLS or even the Working Order QTY accumulator blocks, you can carry on the downstream Hedge Logic part of your algo.