rm.strat: Remove objects associated with a strategy

View source: R/wrapup.R

rm.stratR Documentation

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

## 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)

braverock/quantstrat documentation built on Sept. 15, 2023, 11:32 a.m.