Please note that all samples in the help library are intended for educational purpose to give insight into ways to approach building different pieces of logic in ADL. Any use of the samples in production is at your own risk.
The following Smartberg algo is an Order Ticket Algo (OTA). This algo works in a similar fashion to a traditional Iceberg order with the exception of how it reacts when hitting/lifting. Where a traditional Iceberg would continuously reload at a price using an identical clip size each time the Smartberg takes the size available in addition to posting its instructed clip size in a single action. This is a more efficient way of executing as it reduces the amount of messaging, increases your chances of getting filled and is less obvious to the market that an iceberg is being worked.
Once created, you can launch this algo from the MD Trader, Market Grid, Algo Dashboard and, Autotrader.
This algo includes the following user-defined variables: Instrument, Order Price, Total Qty and, Disclosed Qty.
Note: Since this is an OTA algo with Flip for Sell functionality employed, if you launch it from the MD Trader the Instrument, Price, Order Qty and Buy / Sell direction will be picked up automatically based on where you click.
Warning: The algo will never intentionally work an order larger than your defined clip size however there may be times where the algo sends an order to take advantage of resting size which is filled whilst the order is in flight leading to a momentary breach of your defined clip size. In this scenario the order will be pulled after 100ms and the appropriate size be reallocated to the order.
The Smartberg algo uses the following process: