f_ma_slope: This function calculates the slope of a moving average based...

Description Usage Arguments Value

View source: R/f_indicator.R

Description

This function calculates the slope of a moving average based on n data points

Usage

1
f_ma_slope(data, n = 10)

Arguments

data

data.table. data should be a obj an outcome from f_indicators to ensure MA is present in data.

n

number of days used to calculate the slope

Value

data.table object with moving average slope for each day


kristian-bak/kb.modelling documentation built on Dec. 21, 2021, 7:46 a.m.