In at least one aspect, the present invention is directed to systems and methods for enabling a user to have multiple trading strategies implemented automatically, with switching between strategies also implemented automatically and based upon user-selected conditions. The description herein should be understood to describe only certain embodiments of the invention. Those skilled in the art will recognize, for example, that one described embodiment is just one simplified example of an inventive system and method for a “strategy state machine” that enables users to specify multiple trading strategies that are implemented based upon various criteria.
In at least one aspect, the invention comprises an interactive software toolkit for creating custom trading strategies. Traders are provided with the ability to easily construct hybrid strategies using automated trading and event building blocks: (a) trading algorithms (for example, so-called “percentage of volume” algorithms and algorithms designed to minimize the difference between average executed price and standardized benchmarks such as volume-weighted average price (“VWAP”)); (b) intelligent “sweeps” (automated trading actions designed to rapidly execute a specified number of shares); and (c) event triggers (time-, price-, spread-, depth-based, or based on other real-time market data or on current order status). Traders can create and store a set of custom strategies tailored to specific order types or trading styles. The software (referred to herein for brevity as “Conditional Autotrader,” or “CAT”) provides an added degree of control over the execution process.
It is important to note that the term “algorithm” as used herein (and as used by those skilled in the automated trading strategy field) refers to an automated trading strategy, and not to a mathematical algorithm as such.
In at least one embodiment of the invention, a user is allowed to specify particular cycling logic. That is, a user may specify that strategy A should be implemented unless condition 1 occurs, during which time strategy B should be implemented (so that if condition 1 ceases to occur, the system switches back from strategy B to strategy A).
In one aspect, the invention comprises a computer system operable to display a graphical user interface comprising a time horizon component, a base action component, a condition component, and a conditional action component, wherein the time horizon component is operable to display a start time and an end time for a trading order for a security; the base action component is operable to display information identifying one or more automated trading strategies to be initially used to execute the order; the condition component is operable to display one or more market conditions for triggering one or more triggered strategies; and the conditional action component is operable to display information identifying one or more triggered strategies to be used to execute the order when triggered by the one or more market conditions.
In various embodiments: (a) the time horizon component comprises a time configuration tab display; (b) a default start time is immediately; (c) a default end time is time of market closing; (d) a one shot component that allows a user to specify that a transition from an action to a conditional action occurs only once; (e) the system further comprises a rest period component that displays at least a specified time period that an order must spend in each action after an action shift; (f) the system further comprises a rest period component that displays at least a specified time period that must elapse following completion of an action before it can occur again; (g) the base action component comprises an action tab; (h) the base action component is operable to display trading strategy choices comprising one or more of: VWAP, With Volume, Target Strike, TWAP, and Idle; (i) the market conditions comprise passage of time; (j) at least one of the trading strategy choices is displayed with a set of parameter options that can be used to set constraints and tailor execution style for the trading strategy; (k) the condition component comprises a condition tab; (l) the condition component is operable to display condition choices comprising one or more of: price condition, time condition, size on opposite side condition, and bid/ask spread condition, and wherein each condition has parameters that can be set; (m) the price condition is operable to trigger a conditional action when the security's price reaches a threshold level; (n) the time condition is operable to trigger a conditional action at a specified time; (o) the size on opposite side condition is operable to trigger a conditional action when at least a specified number of shares is available within a specified range of a midpoint of a bid/ask spread; (p) the bid/ask condition is operable to trigger a conditional action when a bid/ask spread is wider or narrower than a specified threshold level; (q) the conditional action component comprises a conditional action tab; (r) the conditional action component is operable to display conditional action choices comprising at least one of: VWAP, With Volume, Target Strike, TWAP, Idle, and Fast Exec, along with corresponding parameter settings; and (s) the Fast Exec condition comprises one or more of: a Limit Sweep condition and a 2 Minutes VWAP condition.
Those skilled in the art will recognize that the invention, in at least one aspect, is directed to providing an interface that allows traders to choose various combinations of trading strategies and implementation parameters. The invention does not depend on the particular events or trading strategies used, and is not limited to any particular combination of events or trading strategies. Moreover, since various automated trading strategies are known in the art, such strategies are not described in detail herein. The invention (at least in one aspect) lies in the interface described herein as well as an underlying software framework, which together allow for the creation, storage, and execution of complex trading strategies. Given that the interface presents to a user the methods and functions executed by the framework, the system is therefore enabled by describing the principles of operation of that interface.
Embodiments of the present invention comprise computer components and computer-implemented steps that will be apparent to those skilled in the art. For ease of exposition, not every step or element of the present invention is described herein as part of a computer system, but those skilled in the art will recognize that each step or element may have a corresponding computer system or software component. Such computer system and/or software components are therefore enabled by describing their corresponding steps or elements. (that is, their functionality), and are within the scope of the present invention.
CAT provides an advanced trading interface that enables users to easily build custom order execution strategies (also known as “trading strategies”) on the fly as well as a framework for representing, storing, and implementing (trading) these custom strategies. With CAT, users can customize standard trading strategies like VWAP or percentage of volume by adding contingency rules that instruct the strategy to deviate from the standard action under certain pre-defined conditions. Alternatively, users can create completely new hybrid strategies, drawing from a collection of automated trading building blocks. Many unique strategies can be built by specifying just a few parameters, giving a trader an unprecedented degree of control over the execution process.
Example: A trader is liquidating a position in a small market capitalization stock that trades in uneven frequency and quantity. She wants to participate more heavily when the market is more active and sit out any quieter periods. Additionally, she wants to proactively sweep the market whenever there is above-average depth available on the buy side of the order book within a four cent per share range of the mean of the bid-offer quotation (“bid-ask midpoint”).
Thus, the trader decides to participate with 20 percent of volume (see
Preferred Structure of a CAT Order: Every CAT strategy preferably is made up of four components: (1) the Time Horizon for the order, consisting of start and end times; (2) the Base Action, the automated trading action that will initially be used to execute the order; (3) the Conditional Action, a second, “triggered” trading action that can be triggered under pre-defined market conditions; and (4) the Condition, the rule that governs when and how the conditional action will be triggered. Each of these components preferably is represented by a tab on the CAT interface.
Time Config Tab: See
Action Tab: See
The first four options are trading algorithms that also are available as stand-alone execution strategies. Each algorithm has a set of parameter options that can be used to set constraints and tailor the execution style. These parameters apply only to this action; they do not apply when the order is in the conditional action state.
Choosing the Idle action instructs CAT to take no action until the specified condition occurs. When the order is in an Idle state, CAT will monitor market conditions, but will not generate any orders.
Condition Tab: The Condition tab is used to define the scenario that will trigger the conditional action. Preferably, there are four types of conditions that can be set, each with its own set of parameters: Price Condition, Time Condition, Size on Opposite Side Condition, and Bid/Ask Spread Condition.
Condition Tab—Price Condition: See
If the Enable Second Condition box is checked, two price conditions can be combined. If the OR modifier is selected, then the condition evaluates to true when either of the two price thresholds are reached. If the AND modifier is selected, both price thresholds must be met for the condition to evaluate as true.
The One Shot and Rest Period parameters are discussed below.
Condition Tab—Time Condition: See
If the One Shot box is checked, then the transition will only occur once. If the One Shot box is not checked, the order will trade using the action until the specified time, and then cycle between the action and conditional action. The number of minutes between cycle transitions is defined using the Rest Period. For example, if the time is set to 1:15 PM and the Rest Period is set to 15 minutes, then the order will trade with the base action until 1:15 PM, then switch to the conditional action for 15 minutes (1:15-2:00 PM), then revert back to the base action from 2:00-2:15 PM, then switch over to the conditional action, and so on.
Condition Tab—Size on Opposite Side Condition: See
Condition Tab—Bid/Ask Spread Condition: See
Unlike the other conditions, the Bid/Ask Spread Condition interface preferably does not allow users to set the One Shot or Rest Period parameters. Because of the flickering nature of quotes, the condition is always applied in a multi-shot capacity (i.e., with the One Shot parameter set to false) with a default Rest Period of 1 minute.
Condition Tab—the One Shot and Rest Period Parameters. The One Shot checkbox on the Condition tab is used to indicate whether the state transition should occur only once or more than once. Checking the One Shot box indicates that the transition to the conditional action state is a one-time, permanent switch (when the conditional action is set to Fast Exec, the One Shot and Rest Period parameters are interpreted differently; see the description of the Fast Exec action below for details). Leaving the One Shot box unchecked indicates that the order can cycle between the action and the conditional action.
One Shot Example: Trade using a With Volume algorithm and a 20% target rate. If the security price ever falls below $20 then increase to a 40% rate for the remainder of the order.
Cycling Example: Trade using a With Volume algorithm and a 20% target rate. Whenever the security is trading below $20 then increase to a 40% rate until the price rises above $20 again.
The Rest Period setting is used to specify the minimum amount of time that the order must spend in each action state after an action shift. Because Rest Period only applies after an action shift, there is no timing restriction on how soon the initial state change can occur. In other words, if the specified condition is true at the start of the time horizon, then the strategy can shift to the conditional action state immediately, regardless of the Rest Period setting. For example, if Rest Period is set to 2 minutes, then whenever the order switches state from base action to conditional action or vice versa, it must spend a minimum of 2 minutes in the new action state before considering switching back to the previous action. When the One Shot box is checked, the Rest Period is not applicable. Note that the algorithm does not literally rest during the rest period: at all times the order is active in either the base action or conditional action states. Also note that the behavior of the Rest Period parameter is different for the Time Condition, as described above.
Conditional Action Tab: See
The first four options are core trading algorithms that also are available as stand-alone execution strategies. Each algorithm has a set of parameter options that can be used to set constraints and tailor the execution style. These parameters only apply to this conditional action, they do not apply when the order is in the base action state.
Choosing the Idle action instructs CAT to do nothing but monitor the condition for as long as the specified condition occurs. When the strategy is in an Idle state, CAT will cancel open orders (if any) and then wait, monitoring market conditions but not generating any orders. If the One Shot box on the condition tab is checked and the Idle conditional action is selected then as soon as the condition fires, all open orders will be canceled and any unexecuted shares will be immediately returned to the trader.
Conditional Action Tab—Using Fast Exec: See
The Cents from Mid box is used to specify the number of cents beyond the midpoint of the bid-ask spread that a user is willing to pay to grab liquidity. Note that this parameter can be specified more generally as a number of ticks, for application to non-US markets. The user also can set a hard Limit Price for additional price protection. The user can set either or both of these two price constraints. If both constraints are set, then the most passive (conservative) of the two price constraints will apply.
Fast Exec can use either of two techniques to grab liquidity. The size and price constraints discussed above apply to both techniques.
(1) Limit Sweep will aggressively sweep liquidity (i.e. execute against posted orders in the order book) orders from the order book up to the selected size and selected price. If there are residual shares, they will be posted briefly (5 seconds for NASDAQ stocks and 45 seconds for listed stocks) and then canceled.
(2) 2 Minutes VWAP will trade the desired size over 2 minutes using an aggressive VWAP algorithm.
As soon as the chosen technique has run its course, the strategy will immediately revert back to the base action state regardless of whether the One Shot box is checked.
Preferably users receive the following warning if they select Fast Exec as their conditional action: “Warning: Fast Exec is a powerful action and must be used carefully! If the price and size constraints are not set properly, this action can cause significant market impact. Rest Period (on the Condition tab) must also be set appropriately to avoid invoking Fast Exec too frequently. Finally, before using a Fast Exec action, be sure you fully understand how the One-Shot and Rest Period condition parameters operate in conjunction with it.”
Fast Exec is unlike other actions in that its activity occurs at a focused point in time instead of over a longer horizon. Because of this, the One Shot and Rest Period parameters (found on the Condition tab) are used in a slightly different way when the conditional action is set to Fast Exec. If the One-Shot box is checked, then when the condition is triggered the Fast Exec action will grab liquidity once and then return to the original action for the remainder of the trade. If One-Shot is not checked, then whenever the condition is triggered (subject to having satisfied the Rest Period parameter, described below), the strategy will grab liquidity using Fast Exec and then return to the base action. In this case, the Rest Period is used to tune the frequency with which Fast Exec can fire. For example, if Rest Period is set to 90 seconds, then the strategy cannot invoke the conditional action until 90-seconds have elapsed since the last time the conditional Fast Exec action completed.
Cycling Fast Exec Example: Execute a buy order using a VWAP algorithm as the base action. Whenever 5000 shares is available on the offer side within 2 cents of the spread midpoint, trigger Fast Exec and then immediately return to the VWAP algorithm. Never grab liquidity more frequently than 2 minutes after the previous Fast Exec action has completed.
More CAT Strategy Examples
Stealthy Target Strike: Work the order using an optimal schedule (i.e., one that balances price impact and price risk; see
Lurk and Pounce: Lie in wait using the Idle action (see
With Volume with 3:45 PM Clean-Up: Participate at a rate of 20% of traded volume using the With Volume algorithm (see
Scaled With Volume: Participate at a rate of 10% of traded volume using the With Volume Algorithm (see
In another illustrative example, a trader wishes to work an order with a VWAP style over a specified time horizon. Referring to
Referring to
Referring to
Other Embodiments
In a re-usable strategies embodiment, the user does not need to re-enter Actions or Conditional Actions, for example, for a sequence of securities to which designated strategies are to be applied—the same parameters can be re-used. Instead of a Price condition, for example, the user may select a Relative Price condition (i.e., instead of a Price level triggering a change in strategy, a percent change in price may be the trigger) that may be used several times for various securities.
In a savable strategies embodiment, a user may save some or all parameters (particularly parameters such as a Relative Price condition) under a user-defined name, so those parameters can be recalled and re-used at will, without those parameters needing to be re-entered.
In one embodiment, a user may ask to be alerted when the system has switched from one strategy to another or upon the occurrence of some other event relevant to operation of the auto-trading system.
In another embodiment, a user is provided with a display that enables the user to quickly see which strategies are being used for each security being traded. For example, if strategies A and B are being used, the display may have a column listing orders in securities and indicating to which order strategy A is being applied and to which order strategy B is being applied. In another example, the display may have a column for strategy A and a column for strategy B, wherein orders in securities are listed across both columns, and indications are provided in column A for an order to which strategy A is being applied and in column B for an order to which strategy B is being applied.
After a hybrid strategy has been built using the interface as previously described, the new hybrid strategy can be stored and then subsequently recalled and implemented to execute securities trades. The hybrid strategy is preferably represented using a markup language that may be stored and recalled from a computer-readable medium such as, for example, a semiconductor, magnetic or optical storage device. The markup language preferably represents each parameter of a trading strategy by a key-value pair where the key identifies a parameter and the value is the value of the parameter. The final component of the system is an automated trading engine configured to read the represented hybrid strategy, generate the trading orders to implement the strategy, and submit the generated orders to an order routing system for execution in the desired exchange. The engine executes over the time interval defined in the strategy, switching states between the selected Action and Conditional Action based on the selected Condition settings.
A strategy interpreter retrieves hybrid algorithms that have previously been stored and converts them into a set of machine instructions defining a set of actions and conditions, as well as a timeframe for the order. A state machine that has access to a set of actions routes orders to these actions in accordance with the machine instructions loaded from the hybrid strategy.
The state machine may use a set of specified conditions to determine which action should be active at any given time, and will then route the order (or a portion of the order) to this active action for automated execution.
The underlying trading strategies that make up the family of actions available to the state machine are used to execute orders according to a set of local instructions passed from the state machine. These trading strategies are utilized by the invention to deliver orders to the market. Those skilled in the art will be familiar with the various trading strategies that could be used as components in the action set.
After a hybrid strategy has been built using the interface as previously described, the new hybrid strategy can be stored and then subsequently recalled and implemented to execute securities trades. The hybrid strategy is preferably represented using a markup language that may be stored and recalled from a computer-readable medium such as, for example, a semiconductor, magnetic or optical storage device. The markup language preferably represents each parameter of a trading strategy by a key-value pair where the key identifies a parameter and the value is the value of the parameter.
A strategy interpreter converts the encoded strategy into a set of machine instructions that defines the set of actions to be included in the hybrid strategy; any required parameter values for each action that are to be passed to the action at run time; the set of conditions to be used to determine when and how to shift between active strategies based on market events; and the desired time frame for the order.
The final component of the system is a state machine that guides trading based on the hybrid strategy definition. Specifically, this state machine has access to a collection of actions, which are generally underlying trading strategies. For example, in the CAT state machine, there are six actions: VWAP, TWAP, With Volume, Target Strike, Idle, and FastExec. Each of these actions is an automated trading strategy with access to trade on external securities markets. Each action has a set of parameters that are used to guide its behavior. The definition of the hybrid strategy contains a set of actions as well as a full definition of desired parameter values for each action.
The hybrid strategy definition also includes definitions of each condition to be used. The set of conditions collectively define the event(s) to be monitored; the criteria under which certain events should trigger a state change; and the specific action to be invoked for each possible state change. Given these definitions, the state machine is responsible for monitoring the specified real-time events (typically using a real-time market data feed); evaluating these events given the specified criteria; and effecting the specified state change when the specified criteria are met. A state change is effected by passing control over the order to a new action. Typically, this means cancelling an order from the previous action and sending an order to the new action.
Finally, the state machine must ensure that the time configuration parameters in the hybrid strategy definition are met. This means commencing trading at the desired start time and closing out the trade at the desired end time (cancelling orders and returning any unexecuted shares back to the user.)
The CAT interface description provides details on the types of actions and conditions that can be utilized to create hybrid strategies, as well as the way in which state changes are effected.
The set of actions (typically a set of trading algorithms accessible by the state machine) is responsible for the actual execution of orders. These actions have access to external markets and logic that determines how to make all trading microdecisions (order timing, order placement, and subsequent correction/cancellation) according to any instructions passed in from the state machine.
Those skilled in the art will be familiar with the various trading strategies that can be implemented with CAT, including the strategies explicitly mentioned herein. However, for those not skilled in the art, some additional information regarding some of the more easily explained strategies is provided below.
VWAP stands for volume-weighted average price. This is the average price for the stock over a specified time horizon, with more weight given to periods of heavier trading. The VWAP over any time period is the result of dividing total dollar volume by total share volume over that time period.
TWAP stands for time-weighted average price, and is a simpler way of averaging a stock price over a specified time period. Calculating a TWAP entails dividing the time period into intervals (e.g., minutes), taking a snapshot of the stock price at the end of each interval, and then averaging those interval prices. No extra weight is given to any one interval, even if an extraordinary number of shares were traded during that interval.
The main goal of a VWAP strategy is to minimize slippage relative to the VWAP benchmark over the selected time period. This is achieved by constructing a trading profile that matches expected market liquidity over time and allocating a greater share of the order to the periods of the day that typically attract the highest levels of market activity. The strategy releases slices of the order using this trading profile as a roadmap and continuously monitors short-term indicators to optimize order timing and pricing.
The goal of the TWAP strategy is to trade with minimal shortfall relative to a TWAP benchmark. The TWAP strategy trades at a constant rate during the time period, participating evenly so that the percent of the order that is filled at any time during the period matches the percentage of the time period that has elapsed.
Thus, the TWAP strategy trades at a rate linearly proportional to elapsed time, spreading the trade evenly across a time period. On the other hand, the VWAP strategy tracks an expected volume profile, overweighting the portions of the day that correspond to heaviest trading.
Various embodiments described herein are not intended to be mutually exclusive; those skilled in the art will recognize that various combinations of these and other embodiments are within the scope of the invention.
While particular elements, embodiments, and applications of the present invention have been shown and described, it should be understood that the invention is not limited thereto, since modifications may be made by those skilled in the art, particularly in light of the foregoing teaching. For example, although the embodiment described in
This application claims the benefit of U.S. Provisional Application No. 60/664,079, filed Mar. 22, 2005. The entire contents of that provisional application are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
60664079 | Mar 2005 | US |