Description Usage Arguments Value Author(s) See Also Examples
get the rtn.LBH object from the TSF object.
1 2 | getrtn.LBH(PB.L, bmk = "EI000300", hedge.rebFreq = "month",
hedge.posi = 1, fee.long = 0, fee.short = 0, date_start_pad)
|
PB.L |
a PB object of the long portfolio |
bmk |
a character string,giving the stockID of the benchmark index,eg. "EI000300". |
hedge.rebFreq |
giving the rebalance freq when computing the hedged rtn.An interval specification, one of "day", "week", "month", "quarter" and "year", optionally preceded by an integer and a space, or followed by "s".See |
hedge.posi |
a numeric, giving the position of the hedging assets |
fee.long |
a numeric, giving the fee of long asset |
fee.short |
a numeric, giving the fee of short asset |
a rtn.LBH object of class xts,giving the return series of long,bmk and hedge, with the attr of 'turnover'(a xts series) and 'fee'(a vector).
Ruifei.Yin
Other LSH-frame building functions: addrtn.hedge
,
getrtn.LSH
, getrtn.bmk
1 | re <- getrtn.LBH(PB.L,"EI000300")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.