So, let's get started.
Let's implement this system in Excel before moving on to Python.
I started with Excel because
So, let's implement this in Excel (Attachment enclosed)
More on Step 2
I put all the NIFTY 50 symbols in a separate sheet and filtered them in the first sheet using VLOOKUP and then filtered out all cells without N/A. This makes it easier to change the stock universe in future.
I have kept the Leverage to 1 in the Excel file. You can calculate the profit by the end of the day and I need you to post them. It must be the same for everyone. You can try this system live from tomorrow (you won't lose a lot).
Testing a new system on live data is popularly called walk-forward testing (paper trading)
This system makes money. As at the time of posting, its in green and you can backtest it for the last 3 years with your software
Freshers Warning
Don't get too much excited by the results in a few days
Let's implement this system in Excel before moving on to Python.
I started with Excel because
- Most people are familiar with Excel
- to compare and contrast results
- to see where Excel really lacks and programming really takes over
So, let's implement this in Excel (Attachment enclosed)
- Download bhav copy from NSE website
- Filter the NIFTY 50 stocks
- Calculate the daily returns
- Select the stocks with the highest returns for the day
(prevclose/close)-1
- Short them the next day at the open price with a stop loss of 3%
More on Step 2
I put all the NIFTY 50 symbols in a separate sheet and filtered them in the first sheet using VLOOKUP and then filtered out all cells without N/A. This makes it easier to change the stock universe in future.
I have kept the Leverage to 1 in the Excel file. You can calculate the profit by the end of the day and I need you to post them. It must be the same for everyone. You can try this system live from tomorrow (you won't lose a lot).
Testing a new system on live data is popularly called walk-forward testing (paper trading)
This system makes money. As at the time of posting, its in green and you can backtest it for the last 3 years with your software
Freshers Warning
Don't get too much excited by the results in a few days
Attachments
-
216.8 KB Views: 201