The Loop block generates and outputs a user-specified number of empty discrete event messages, one after another, to facilitate designs which require loops.
Note The Loop block updates the counter before the actual message is generated and output.
It is important to note that the Loop block does not allow any "actor" block (i.e., a block that can take tangible actions such as placing an order) to take an action while it is performing the loop.
Example Using a Loop block to decrement an order price.
In this example, the Loop block is designed to loop up to three times, and at each iteration it decrements the price input of the Order block by one price increment. At a glance, it might seem that the Order block will generate three change requests to incrementally move its child orders down the market. However, the Loop block does not allow the Order block to take any actions during the loop. It is only after the loop has completed that the Order block can take an action using the final resulting price input.
The following sequence of events occurs when this algorithm is started:
To customize the block, update the Block Properties.
|Name||Name to display beneath the block on the ADL canvas|