calc_comm: Calculate commisions on trade execution

Description Usage Arguments Examples

View source: R/calc_comm.R

Description

calc_comm calculates commission fees for trades based on TD Ameritrades fee structure

Usage

1
calc_comm(strat, close, profit)

Arguments

strat

string of strategy run

close

numeric of the trade close price

profit

numeric of the trade profit prior to commissions

Examples

1
# Function arguments:-----------------------------------------------------------

themechanicalbear/tidybacktest documentation built on July 18, 2019, 12:13 a.m.