Function that returns the profit factors of the systems in a form of a DataFrame
Calculation of profit factor using dplyr verbs
get_profit_factorDF(x, num_orders)
x
: * data frame with orders. Note x must contain MagicNumber and Profit columns!num_orders
: * desired number of orders to base profit factor calculationlibrary(lazytrade) library(dplyr) library(magrittr) data(profit_factorDF) get_profit_factorDF(x = profit_factorDF, num_orders = 10)
Useful links