Hi, The job is to create a R script that does the following. 1. Takes a number as argument. This is the number of days to look back. 2. Read in csv files in a directory. The files are named like this trades.20150519.csv The date is in the filename and the date to look back is determined by the argument. 3. Calculate profit and loss for the strategies mentioned in the CSV file and send it as email. Also list the trades for the strategies. Details: the file looks like the one attached. the strategy name is in the order_ref for the entry.