Description Objects from the Class Slots Extends Methods Author(s)
Class "stiFromSignal" is an interface that stores information regarding portfolio formation and trading to be used in determining trades during the simulation.
Objects can be created by calls of the form new("stiFromSignal",
...)
in.var
:Object of class "character"
representing a column in the data interface to be used the
"in.var" for creating portfolios.
type
:Object of class "character"
representing the type of weight calculation to be used.
size
:Object of class "characterOrNumeric"
representing the size of the portfolio to be created during the
simulation.
sides
:Object of class "character"
containing
"long", "short", or both, indicating the type of portfolio to be
created.
equity
:Object of class "numeric"
representing
the equity for the portfolio.
target
:Object of class "environment"
representing the environment in which to search for the target portfolio.
rebal.on
:Object of class "orderable"
containing the periods at which the portfolio should be rebalanced
during the simulation.
trading.style
:Object of class "character"
representing the trading style to use during the simulation.
Defaults to "immediate".
chunk.usd
:Object of class "numeric"
specifying the size of chunk to use in the interface's tradelist
generation algorithm. May be ignored depending on which
trading.style
is used. Defaults to 50000.
turnover
:Object of class "numeric"
specifying the turnover limit to use in the interface's tradelist
generation algorithm. May be ignored depending on which
trading.style
is used. Defaults to Inf
(no limit).
Class "simTradesInterface"
, directly.
signature(.Object = "stiFromSignal")
:
Initializes the interface by setting the target environment.
signature(object = "stiFromSignal", period
= "orderable", holdings = "portfolio", sim.data = "simData", vebose =
"logical")
: Returns an object of class "simTrades"
containing all the trades that should be made for this period.
Jeff Enos jeff@kanecap.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.