Rdocumentation
powered by
Learn R Programming
quantstrat (version 0.8.2)
osNoOp: default order sizing function
Description
default function performs no operation (NoOp), returns orderqty
Usage
osNoOp(timestamp, orderqty, portfolio, symbol, ruletype, ...)
Arguments
timestamp
timestamp coercible to POSIXct that will be the time the order will be inserted on
orderqty
numeric quantity of the desired order, modified by osFUN
portfolio
text name of the portfolio to place orders in
symbol
identifier of the instrument to place orders for. The name of any associated price objects (xts prices, usually OHLC) should match these
...
any other passthru parameters
ruletype
one of "risk","order","rebalance","exit","enter", see
add.rule
Details
if orderqty 'all', will only work on an exit rule type, otherwize orderqty is zero.