Integrating, sharpe ratio, balance and costs into a python jupyter script

Job ID: 37417387

Budget: €8 – €30 EUR

Request for integration into a python script of the sharpe ratio. It's just a few lines of code to integrate.
I have already integrated this into another script which can serve as an example for you.
In the new script, costs and balance must also be integrated.

I have the complete basic model, the script to modify which is simpler.
If you know the sharpe ratio, then it's about 1 hour max of work.

I have already coded a file with all of this, it can serve as an example for you.
The Sharpe ratio is:
df_days["daily_return"] = df_days["balance"].pct_change()
sharpe_ratio = 365**(1/2) * df_days["daily_return"].mean() / df_days["daily_return"].std()

The script to modify is only about 80 lines
If you are a good developer, it's less than 1 hour.

Please offer 1 day.
Related categories: Python Data Mining Data Science