Function to find and write the best control parameters.
Function to find and write the best control parameters.
This function is supposed to run on a weekly basis. Purpose of this function is to perform RL and trading simulation and find out the best possible control parameters for the RL function.