powered by
Function that returns the profit factors of the systems in a form of a DataFrame
get_profit_factorDF(x, num_orders)
- data frame with orders. Note x must contain MagicNumber and Profit columns!
- desired number of orders to base profit factor calculation
- Function returns dataframe with column PrFact with calculated profit factor value for each trading robot
# NOT RUN { library(lazytrade) library(dplyr) library(magrittr) data(profit_factorDF) get_profit_factorDF(profit_factorDF, 10) # }
Run the code above in your browser using DataLab