Usage
osMaxPos(data, timestamp, orderqty, ordertype, orderside, portfolio, symbol, ruletype, ...)
Arguments
data
an xts object containing market data.
depending on rules, may need to be in OHLCV or BBO
formats, and may include indicator and signal
information
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
ordertype
one of "market","limit","stoplimit", or
"stoptrailing"
orderside
one of either "long" or "short"
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
ruletype
one of
"risk","order","rebalance","exit","enter", see
add.rule
...
any other passthru parameters