tradeStrategyDY: Sample quantitative trading strategy

View source: R/tradeStrategyDY.R

tradeStrategyDYR Documentation

Sample quantitative trading strategy

Description

Based on dividend yield.

Usage

tradeStrategyDY(data, par1value = 50, par2value = 200)

Arguments

data

Dataframe of OHLC data e.g. RTL::uso. tibble

par1value

Value of first parameter e.g. short MA. numeric

par2value

Value of second parameter e.g. long MA. numeric

Value

Dataframe with indicators, signals, trades and profit and loss. tibble

Author(s)

Philippe Cote

Examples

tradeStrategyDY(data = RTL::stocks$ry, par1value = 50, par2value = 200)

RTL documentation built on Oct. 21, 2023, 1:06 a.m.