Learn R Programming

RTL (version 1.3.7)

tradeStrategyDY: Sample quantitative trading strategy

Description

Based on dividend yield.

Usage

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

Value

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

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

Author

Philippe Cote

Examples

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

Run the code above in your browser using DataLab