Trading System API  3.0
Library for Simulating and Deploying Trading and Investment Strategies
Casting and Conversion Functions (DSL)

Functions

sref< bool > tsa::TO_BOOL (any_series_cref x)
 Casts x to type 'bool'.
 
sref< date > tsa::TO_DATE (string_series_cref x)
 Casts x to type 'tsa::date'.
 
sref< date_time > tsa::TO_DATE_TIME (string_series_cref x)
 Casts x to type 'tsa::date_time'.
 
sref< double > tsa::TO_DOUBLE (numeric_series_cref x)
 Casts x to type 'double'.
 
sref< double > tsa::TO_DOUBLE (bool_series_cref x)
 Casts x to type 'double'.
 
sref< double > tsa::TO_DOUBLE (string_series_cref x)
 Casts x to type 'double'.
 
sref< int > tsa::TO_INT (numeric_series_cref x)
 Casts x to type 'int'.
 
sref< int > tsa::TO_INT (bool_series_cref x)
 Casts x to type 'int'.
 
sref< int > tsa::TO_INT (string_series_cref x)
 Casts x to type 'int'.
 
sref< int64_t > tsa::TO_LONG (numeric_series_cref x)
 Casts x to type 'long'.
 
sref< int64_t > tsa::TO_LONG (bool_series_cref x)
 Casts x to type 'long'.
 
sref< int64_t > tsa::TO_LONG (string_series_cref x)
 Casts x to type 'long'.
 
sref< std::string > tsa::TO_STRING (any_series_cref x)
 Casts x to type 'std::string'.
 

Detailed Description