Skip to content

Commit

Permalink
update function documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhomeexperiments committed Dec 14, 2020
1 parent c695352 commit a511300
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
23 changes: 9 additions & 14 deletions R/aml_test_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
#' @author (C) 2020 Vladimir Zhbanko
#'
#' @param symbol Character symbol of the asset for which to train the model
#' @param num_bars Number of bars used to test the model
#' @param timeframe Data timeframe e.g. 60 min
#' @param path_model Path where the models are be stored
#' @param path_data Path where the aggregated historical data is stored, if exists in rds format
#' @param path_sbxm Path to the sandbox where file with strategy test results should be written (master terminal)
#' @param path_sbxs Path to the sandbox where file with strategy test results should be written (slave terminal)
#' @param num_bars Integer, Number of (rows) bars used to test the model
#' @param timeframe Integer, Data timeframe e.g. 60 min. This will be equal to 1 bar
#' @param path_model String, User path where the models are be stored
#' @param path_data String, User path where the aggregated historical data is stored, if exists in rds format
#' @param path_sbxm String, User path to the sandbox where file with strategy test results should be written (master terminal)
#' @param path_sbxs String, User path to the sandbox where file with strategy test results should be written (slave terminal)
#'
#' @return Function is writing file into Decision Support System folder
#' @return Function is writing file into Decision Support System folders
#' @export
#'
#' @examples
Expand Down Expand Up @@ -116,10 +116,6 @@ aml_test_model <- function(symbol, num_bars, timeframe, path_model, path_data,
# file name with the tick data
path_tick <- file.path(path_data, "TickSize_AI_RSIADX.csv")

## !!!!!! TDL
## only select the latest 30% of data... or only last 2 month


#dataset with date column X1
y <- readr::read_rds(full_path) %>%
# remove empty rows
Expand All @@ -139,6 +135,8 @@ aml_test_model <- function(symbol, num_bars, timeframe, path_model, path_data,
#value z will contain tick value for this symbol
X2

#TDL add fail safe mechanism for 'z'

# generate a file name for model
m_name <- paste0("DL_Regression", "-", symbol,"-", timeframe)
m_path <- file.path(path_model, m_name)
Expand All @@ -158,9 +156,6 @@ aml_test_model <- function(symbol, num_bars, timeframe, path_model, path_data,
#NB <- 3





# To DO: Add ATR multiplier to simulate TP/SL
# add for loop for ATR Multiplier

Expand Down
14 changes: 7 additions & 7 deletions man/aml_test_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a511300

Please sign in to comment.