Learn R Programming

quantstrat (version 0.16.7)

initSymbol: Run standard and custom symbol initialization functions

Description

initSymbol will load a symbol and run user-defined functions to pre-process the symbol's data before constructing indicators.

Usage

initSymbol(strategy, symbol, ...)

Arguments

strategy

an object (or the name of an object) of type 'strategy' to add the init function definition to

symbol

symbol

any other passthrough parameters

Details

The custom initialization must be defined as named list containing

name

function name

argument

list of arguments

enabled

TRUE or FALSE

and included as the slot init_symbol of the strategy object.