lazytrade (version 0.4.0)

write_control_parameters: Function to find and write the best control parameters.

Description

This function is supposed to run on a weekly basis. Purpose of this function is to perform RL and trading simulation and find out the best possible control parameters for the RL function.

Usage

write_control_parameters(x, path_control_files)

Arguments

x

- dataset containing the trading results for one trading robot

path_control_files

- path where control parameters will be saved

Value

Function writes best control parameters to be used by the Reinforcement Learning Function

Details

Function is used by the R script Adapt_RL_control.R

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
#test lasts 15 sec:
library(dplyr)
library(readr)
library(ReinforcementLearning)
library(magrittr)
data(data_trades)
write_control_parameters(data_trades, path_control_files = tempfile())

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab