powered by
Creates a strategy function template file. This file can be used as template for the development of customized strategies.
newStrategyFunction(name = NULL, file.path = getwd(), overwrite = FALSE)
String as name of the new function (without spaces).
Valid file path of existing directory where the new function shall be stored in format file.path/name.R.
If the strategy file already exists, it will be overwritten if value is TRUE.
TRUE
# 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