Learn R Programming

Strategy (version 1.0.1)

newStrategyFunction: Create Own Strategy

Description

Creates a strategy function template file. This file can be used as template for the development of customized strategies.

Usage

newStrategyFunction(name = NULL, file.path = getwd(), overwrite = FALSE)

Arguments

name

String as name of the new function (without spaces).

file.path

Valid file path of existing directory where the new function shall be stored in format file.path/name.R.

overwrite

If the strategy file already exists, it will be overwritten if value is TRUE.

Examples

Run this code
# NOT RUN {
##Not run:

# Creates a file myNewStrat.R at the specific file path
newStrategyFunction(name="myNewStrat", file.path=getwd(), overwrite=T)

##End(Not run)
# }

Run the code above in your browser using DataLab