quantstrat (version 0.11.0)

rm.strat: Remove objects associated with a strategy

Description

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

Usage

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

Run this code
# 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')
# }

Run the code above in your browser using DataCamp Workspace