
Write backtest for trading strategy - Python
- or -
Post a project like this1349
$14
- Posted:
- Proposals: 2
- Remote
- #3461578
- Awarded
Description
Experience Level: Entry
Estimated project duration: less than 1 week
I have provided the shell code .ipynb file.
- You have to write back-test function that loops over all the stocks and in each loop increments the end date by 4 weeks and checks to see if any stock can be bought.
- The end date should end at current date after looping. It should also sell the previously bought(4 weeks back) stocks at current price.
- Then graph the P&L and return profitable trades/losing trades ratio.
- It should have initial capital variable like 10,000 or something.
- You have to write back-test function that loops over all the stocks and in each loop increments the end date by 4 weeks and checks to see if any stock can be bought.
- The end date should end at current date after looping. It should also sell the previously bought(4 weeks back) stocks at current price.
- Then graph the P&L and return profitable trades/losing trades ratio.
- It should have initial capital variable like 10,000 or something.

Hussain M.
100% (6)Projects Completed
6
Freelancers worked with
4
Projects awarded
64%
Last project
30 May 2022
Canada
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies