Description Usage Arguments Details Value See Also
View source: R/indicator-generate.R
Generate customized indicators of stock_db in batch, and save into files.
1 2 3 4 5 6 7 8 9 |
stock_db |
A stock database object to operate. |
ds_indicator_defs |
A dataframe of indicator definition to generate. |
validate_def |
A logic flag to determine whether to validate indicator definition or not.Default FALSE, means to produce indicators on full dataset, TRUE means to validate definition on small datasets. |
validate_stkcds |
A character vector of stock codes used for validating indicator definition. |
parallel |
A logic to determine whether to use parallel processing. Default TRUE means to use parallel processing. |
log_file_prefix |
A character of log file prefix to name log file. Log file is named as format of "log_file_prefix(current).csv" Default is "generate_indicator_log". |
log_dir |
Path to save log file. If NULL, don't save log file by default "./log". |
There are two methods of generating indicators:
formal production: produce final result of indicators on full dataset from stock_db, which will take longer time ;
validating definition: produce trial results of indicators on small dataset from stock_db, which will take shorter time.
NULL invisibly. Raise error if anything goes wrong.
Other indicator generate functions:
backup_indicators()
,
delete_indicators()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.