getPriceRatio: Get Price Ratio / Spreads between a Pair of Prices

Description Usage Arguments Value

View source: R/Utilities.R

Description

Get Price Ratio / Spreads between a Pair of Prices

Usage

1
getPriceRatio(y, x, log = TRUE, spread = FALSE)

Arguments

y

y series

x

x series

log

log scaled or not

spread

return spread instead of price ratio

Value

A vector of price ratio OR spreads


ivanliu1989/RQuantTrader documentation built on Sept. 13, 2019, 11:54 a.m.