lazytrade (version 0.4.0)

opt_aggregate_results: Function to aggregate trading results from multiple folders and files

Description

PURPOSE: Read multiple files stored in different folders Store results to the intermediate dataframe.

Usage

opt_aggregate_results(fold_path)

Arguments

fold_path

- path to the folder containing subfolders

Value

Dataframe with trading results

Details

user must provide the path to the files in the folders all files in subfolders are read and aggregated into one data object. Data object is sorted in descending order by order close time

Examples

Run this code
# NOT RUN {
 library(lazytrade)
 library(readr)
 library(dplyr)
 library(magrittr)
 library(lubridate)
 DFOLDER <- system.file("extdata/RES", package = "lazytrade")
 #dir <- normalizePath(tempdir(),winslash = "/")
 opt_aggregate_results(fold_path = DFOLDER)


# }

Run the code above in your browser using DataLab