shpi: Step Hedge Portfolio Insurance (SHPI)

Description Usage Arguments Value

View source: R/shpi_strategy.R

Description

Implements SHPI strategy for commodity price risk management

Usage

1
shpi(q, tdate, f, daysleft, tper = 0.1, tcost = 0, int = TRUE)

Arguments

q

numeric value for quantity to be hedged, either positive (net buyer) or negative (net seller)

tdate

date vector with trading days

f

numeric futures price vector

daysleft

integer with days left to contract expiry

tper

numeric target price markup/down to the price on the first trading day

tcost

numeric transaction costs pr unit

int

TRUE/FALSE integer restriction on tradable volume

Value

instance of the SHPI class


sleire/etrm documentation built on Dec. 17, 2020, 8:05 a.m.