![]() |
Trading System API
3.0
Library for Simulating and Deploying Trading and Investment Strategies
|
Class order is the library's internal order representation. Users are not intended to interact with this class directly and its member functions are not documented. Use class order_ref to interact with orders. More...
#include <TSAOrder.h>
Classes | |
struct | order_info |
Information about an order. More... | |
Public Types |
Static Public Member Functions | |
static std::string | to_string (order::status) |
returns a string representation of order::state. | |
static std::string | to_string (order::time_in_force) |
returns a string representation of order::time_in_force. | |
static std::string | to_string (order::action) |
returns a string representation order::action. | |
static std::string | to_string (order::type) |
returns a string representation order::type. | |
static std::string | to_string (order::exec_interval) |
returns a string representation order::exec_interval. | |
Additional Inherited Members | |
![]() | |
object (void) | |
Constructor. | |
virtual | ~object (void) |
Destructor. | |
const char * | class_name (void) const |
Returns the class name as returned by the 'Real Time Type Information' (RTTI) mechanism. More... | |
bool | has_same_class_as (const object &other) const |
Returns true if self has the same type as other object. More... | |
Class order is the library's internal order representation. Users are not intended to interact with this class directly and its member functions are not documented. Use class order_ref to interact with orders.
enum tsa::order::action |
The order 'execution interval' determines when an order will be executed. Note: By default market orders are to be executed immediately, which means at the 'open' of the 'next' bar (in relation to the bar that just closed). 'Stop' and 'limit' orders are to be executed anytime between as well as during the next bar's 'opening' and 'closing' intervals. For research purposes, it is possible to mark orders for execution at 'this_close' (meaning the closing price of the bar that has already closed). This only makes sense when researching end- of-day strategies, where deployment could require the order to be placed manually, just before the close, with the assumption that the actual close will not change strategy signals.
enum tsa::order::status |
Order state.
Time-in-force (TIF). By default all orders are placed as good-till-cancel (GTC) orders. See instrument::default_time_in_force(order::time_in_force).
Enumerator | |
---|---|
gtc |
Good Till Cancel (default). |
day |
Expires at the end of day/session. |
user_defined_tif |
User defined time-in-force. |
enum tsa::order::type |