Accéder au contenu principal
Paris
New York
Chicago
Londres
Kyiv
Sidney
Tokyo
Shanghai
Dubai
São Paulo
Madrid

Accumulate/Distribute Algorithm for Stocks in the Trader Workstation Platform

Plus d'informations
il y a 2 semaines 3 jours #80 par Masters Trade
The Accumulate/Distribute algorithm was originally introduced as a way to submit large stock orders to make them harder to detect in the market.

This advanced interface allows a trader to efficiently and simultaneously manage multiple algorithm orders single-handedly.

It can be used for any assets traded with us.

Randomized order sizes and time intervals between them, along with other attributes, help keep large orders unnoticed. Even if they are detected, taking advantage of such a situation will be difficult.

Existing templates allow you to quickly and easily create multiple Accumulate/Distribute algorithm orders.

image missing https://guild.masters.trade/images/forum/tws_tools/ADalgo1.jpg

Defining the Algorithm

Open the algorithm window from the "New Window" drop-down menu in the Mosaic interface. At the bottom of the window, select "More Advanced Tools", and then "Accumulate/Distribute".
The algorithm field is the window where you set the main parameters for your algorithm. Fields highlighted in pink are mandatory.

image missing https://guild.masters.trade/images/forum/tws_tools/ADalgo2.jpg

1. Specify the BUY or SELL action.

2. Enter the total order quantity, for example, 1,000,000.

3. Define the component part (step size) of each component, for example, 500.
4. Specify the time for transmitting components in seconds, minutes, or hours.
5. Select the order type. Price setting fields depend on the selected order type. For stock orders, select from: Select Time in Force: Good-Til-Canceled (GTC) or Day (DAY).

Limit - set a limit price with an offset amount (optional) that must be reached or exceeded for the order to execute.

Market - attempt to execute the order at the current market price.

Relative - use this order type to add market liquidity by placing a bid or ask that is significantly more aggressive than the current best bid and ask. Set an offset amount (optional) and specify a ceiling/floor. As the market moves, the algorithm will adjust automatically based on specified criteria.

Retail Price Improvement (RPI) - similar to a relative order except that the price offset MUST be greater than zero.
6. Select Time in Force: Good-Til-Canceled (GTC) or Day (DAY).
7. Set price at ... (for RELATIVE/RPI orders) in case of BUY orders, use bid plus/minus an amount (relative orders can have a zero offset). For SELL orders, use ask minus/plus an amount. This column displays only for REL orders and works with the following field:
8. Above/Below (for RELATIVE/RPI orders) - this is a price cap that works in parallel with the price calculation set in the previous field.
9. For LMT orders, the field "Set limit price to: ..."
For MKT orders, this field is not displayed.
Select from the following calculations: (enter a negative value for a minus offset) Click "and" to add more price conditions if possible for calculating the price limit "but no higher than / no lower than". When you add multiple price constraint conditions, a new field "greater of / lesser of" appears to guarantee that the order price will not be higher (lower) than the greater/lesser value of conditions A, B, and C.

No - for REL orders only. No price limit.

Value - opens a column for entering an absolute limit price.

Bid - Bid plus/minus possible offset amount.

Ask - Ask plus/minus possible offset amount.

Last - last trade price plus/minus possible offset amount.

VWAP - VWAP value plus/minus possible offset amount.

Moving VWAP - moving VWAP value (for the current contract) for the last [specified period of time] plus/minus possible offset amount.

Moving Avg - moving average value (for the current contract) for the last [specified period of time] plus/minus possible offset amount.

Exp Moving Avg - exponential moving average value (for the current contract) for the last [specified period of time] plus/minus possible offset amount.

My Last Trade - price of the last trade under the algorithm, displayed as the last trade price in the "Summary" section. Note that this value cannot be used to specify a limit price, as there will be no price for the first trade in that case.

Relative to Filled Units - calculates the price cap as: a user-specified base price minus the entered offset value per number of shares relative to the total size traded with the algorithm and displayed in the "Summary" section in the "Units Filled" column. For example, if specified values are: $5.50 - .02 per 100 shares, the price limit for the order of the first 100 shares (where trade size = 0) will be $5.50. Suppose the trade continues and is executed in step sizes of 100 shares. The price limit in this case will change as follows: trade size = 100 limit = $5.48; trade size = 200 limit = $5.46; trade size = 300 limit = $5.44.

Relative to Position - calculates the price cap in the same way as relative to trade size, except that the calculation is relative to the position as indicated in the "Account" window and in the "Position" column, whereas trade size is relative only to what occurs under the Accumulate/Distribute algorithm.
10. Click "and" to add more price conditions if possible for calculating the price limit "but no higher than / no lower than". When you add multiple price constraint conditions, a new field "greater of / lesser of" appears to guarantee that the order price will not be higher (lower) than the greater/lesser value of conditions A, B, and C.
11. Start Time - by default, start time is set to current or next market open (if markets are currently closed). Click the field to specify a new start time, but note that the algorithm will not start until you click the "Start" button.
12. End Time - by default, end time is set to the close of the current day or next trading session if the algorithm is launched outside trading hours. Click the field to specify a new end time.
13. Time Zone - set a different start time if necessary.
14. Wait for Current Order to Fill Before Transmitting Next - if checked, the next component will be held until the current quantity is filled. The countdown timer to the next order stops while the algorithm waits for the current order to execute. Once executed, the next order will be sent if its specified time interval has elapsed.
15. Catch Up In Time - if checked and the algorithm falls behind schedule, the next order will be placed immediately upon execution of the current order, regardless of the time interval. This procedure will repeat until the algorithm catches up with its timetable. Missed orders are logged in the algorithm's "Summary" section.
After one order is executed, there is always a brief 2-second delay before transmitting the next.
16. Randomize Time Interval by +/- 20% - if checked, your specified time interval will be randomly increased or decreased by up to 20% in both directions to make the order less noticeable in the market.
17. Randomize Size by +/- 55% - if checked, your specified step size will be randomly increased or decreased by up to 55% (rounded to the nearest 100) in both directions to make the order less noticeable in the market.
18. Allow This Order to Be Filled Outside Regular Trading Hours - if checked, the order can execute outside regular trading hours.
19. Take Entire Offer If Size Is ... and Price Is ... or Better - for a buy order, if current size is greater than or equal to the size entered in this field, the algorithm will take the entire size or the maximum size that does not exceed total order quantity. Such an order is transmitted as an Immediate-or-Cancel (IOC) order.

Defining Algorithm Conditions

All conditions are optional, but if you set any requirement, fields you must fill in to satisfy that condition will be highlighted in pink.
Note that the more conditions specified, the harder it will be to execute your order in full or on time.

image missing https://guild.masters.trade/images/forum/tws_tools/ADalgo3.jpg

An order will always stop running if any of your configured conditions become false. Use these options to specify how the algorithm should behave after stopping:

Permanently cancel if one or more conditions become false

Resume order if all conditions become true again
To clear condition parameters, click the "x" at the end of the row. The "x" icon appears only if you have entered data in the field.
1. Price - specify the range within which contract price must remain for the order to continue running.
2. News - news items will not affect price fluctuations when specifying this value in minutes. As long as there is no news for your specified timeframe, the algorithm runs. News is monitored from providers configured in TWS, including Google news, Yahoo! headlines, and Reuters subscriptions.
3. Position - acts as a position restriction. If the position condition is violated, the TWS platform will not place an order or execute any order that would cause such a violation.
4. Moving Averages for This Contract - defines moving average criteria for the current contract. Specify for the current contract whether moving VWAP, moving average, exponential moving average, or last price over a past [specified period of time] is at least [by specified percentage] greater than or less than another moving average (for the current contract) over a [specified period of time]. To clear parameters, click "x" at the end of the row.
5. Moving Averages for - compare two moving average criteria setups, including moving VWAP, moving average, exponential moving average, or last. Use the same contract or two different contracts for single or different time periods. Specify underlying asset and configure parameters.
6. The next two fields work together to compare price changes of two stocks over a specified time period based on the difference between stock price and its moving average value. The algorithm performs calculations based on your input data. Enter symbol. Enter the percentage value that must be reached for the calculation difference between the two stocks.

Transmitting and Adjusting the Algorithm

Use buttons located along the bottom edge of the conditions area to control the algorithm.

image missing https://guild.masters.trade/images/forum/tws_tools/ADalgo4.jpg

Once all fields are filled, you can activate the algorithm.
1. Preview - click to update the order line and display the order preview window.
2. Transmit - to submit the order. Additionally, if you adjust any order parameters, click to apply those changes to the algorithm. For example, if you decrease step size from 500 to 300, this change will not take effect until you click "Transmit".
3. Save - saves the order for transmission at a later time.
4. Restore - click to restore original parameters instead of unapplied changes. For example, by clicking Restore, you can revert your change. After applying a change (clicking Apply), restore option is no longer available.
5. Cancel Order - cancels the order.
6. Start - launches the algorithm. If you stop the algorithm manually, click Start to resume from the point where it was stopped.
7. Stop - stops the algorithm. This button becomes active after starting the algorithm.
8. Reset - if the algorithm is stopped due to completion or manually, this reset button will start the algorithm from the beginning. If you prefer to resume the algorithm from where it stopped, use the "Start" button.
9. Status Text - this note informs you about what is currently happening on the algorithm screen.

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.116 secondes