get_indicators: Get indicators from stock_db

Description Usage Arguments Value Functions See Also

Description

Generic function to get indicator timeseries from stock_db.

Usage

1
2
3
4
get_indicators(stock_db, indicator_codes, ...)

## S4 method for signature 'gta_db'
get_indicators(stock_db, indicator_codes, ...)

Arguments

stock_db

A stock database object to operate.

indicator_codes

A vector of indicator code.

...

Extra arguments to be passed to methods.

Value

A dataframe of indicator timeseries if succeed, otherwise NULL. In order to store multi-indicators with different periods(day, month, quarter, year), returned data frame adapts longer format, which means code of indicator is stored in "ind_code", value of factor is stored in "ind_value".

Functions

See Also

Other stock_db generics: close_stock_db(), code2name(), dir_path_db(), get_factors_info(), get_factors(), get_financial_report(), get_indicators_from_source(), get_indicators_info(), get_industry_info(), get_market_return(), get_profile(), get_riskfree_rate(), get_spt_stocks(), get_stock_dataset(), get_stock_industry(), get_stock_info(), get_stock_return(), get_table_dataset(), init_stock_db(), list_stock_tables(), name2code(), open_stock_db(), save_indicators_to_source()


chriszheng2016/zstmodelr documentation built on June 13, 2021, 8:59 p.m.