strat_returns: Strategy Return

Description Usage

View source: R/time_series_manip.R

Description

Computes strategy returns given a strategy series which maps strategy states to 1 for long positions, -1 for short positions, and 0 for all others.

Usage

1
strat_returns(prices, strats)

wzhorton/finmodtk documentation built on July 31, 2020, 9:18 p.m.