rm.strat: Remove objects associated with a strategy

Description Usage Arguments Value Examples

Description

Remove the order_book, account, and portfolio of given name.

Usage

1
rm.strat(name = "default", silent = TRUE)

Arguments

name

name of the portfolio/account/order book to clean up. (Default='default')

silent

silence warnings about trying to remove objects that do not exist. (Default=TRUE)

Value

invisible – called for side-effect

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# make some things to remove
strategy("example", store=TRUE)
initPortf('example', stock('SPY', currency("USD")))
initAcct('example', 'example')
initOrders('example', 'SPY')
#Now remove them
rm.strat('example')

## End(Not run)

redmode/quantstrat documentation built on May 27, 2019, 4:04 a.m.