optimalTEMA: Compute the optimal TEMA-window period

View source: R/TEMAbacktest.R

optimalTEMAR Documentation

Compute the optimal TEMA-window period

Description

Numerically maximize log-growth of the backtest over the range of TEMA-window sizes for the given fraction to invest.

Usage

optimalTEMA(prices, kelly, rate, bankroll)

Arguments

prices

time-series of prices

kelly

the fixed fraction for reallocation

rate

the rate earned on the cash account

bankroll

the initial bankroll to invest

Value

list or data.frame


shill1729/trader documentation built on Dec. 27, 2022, 10:55 p.m.