57 #include "../utils/TimeScale.h"
91 int ComputeMA(
float **arraydata_c_in,
unsigned int size_input, std::string str_label,
92 int param,
double ** arraydata_c_out,
int & offset_begin,
int & out_nb_data)
const;
106 int ComputeMACD(
float **arraydata_c_in,
unsigned int size_input, std::string str_label,
107 std::vector<int> params,
double **arraydata_c_out,
unsigned int nb_array_out,
108 int & offset_begin,
int & out_nb_data)
const;
170 const std::vector< ListDataStockBase *>& vec_ldata_in,
ListDataStockBase *ldata_out)
const
long UseCount()
Wrapper to shared_ptr::use_count() return number of shared_ptr associated to private data member res_...
TAlibAPI()
Default constructor.
"Clever" enumeration of the ListDataStock type : StockCSV, Volume, EMA, BOLL,...
virtual ~TAlibAPI()
Destructor.
int ComputeMA(float **arraydata_c_in, unsigned int size_input, std::string str_label, int param, double **arraydata_c_out, int &offset_begin, int &out_nb_data) const
Compute Moving Averges : SMA, EMA, WMA.
static void GetListFunctions()
bool Compute(const ETime tmscl, const Indicator new_indic, const std::vector< int > &vec_param, const std::vector< ListDataStockBase * > &vec_ldata_in, ListDataStockBase *ldata_out) const
Compute an indicator.
static std::shared_ptr< TAResource > CreateResource()
Return a shared pointer on the current resource.
TAResource * ShrpGet()
return the pointer to TAResource.
std::shared_ptr< TAResource > res_ptr
Shared pointer to the unique TAResource.
Wrapper/Adapter to the library ta-lib.
int ComputeMACD(float **arraydata_c_in, unsigned int size_input, std::string str_label, std::vector< int > params, double **arraydata_c_out, unsigned int nb_array_out, int &offset_begin, int &out_nb_data) const
Compute others indicators : MACD, AD, RSI, STOCHF.
ETime
Enumeration for the different time representation, from instantaneous (INST) to year(YEAR) ...
TAResource()
Constructor made private, to force use of CreateResource()
Centralize all exception coming form the TALib library interface.
Abstract base class for the ListDataStock, for storing base pointers in vectors.
Base class for exception coming from talibapi interface.
virtual ~TAResource()
Destructor.