Course Name: Volatility Trading Strategies for Beginners, Section No: 24, Unit No: 5, Unit type: Notebook
Empty table being generated when run this code till end. Please check?
Course Name: Volatility Trading Strategies for Beginners, Section No: 24, Unit No: 5, Unit type: Notebook
Empty table being generated when run this code till end. Please check?
Hi,
It seems to be running right now. It might take some time as we are working on a large dataset. Are you trying to run the notebook on the local system and is it on the same dataset or your own dataset? This will help us resolve the errors.
I am running on the same dataset & code as downloaded from the course. I had re-downloaded and ran it, same issue encountered with empty table. Can you please check again?
Hi,
We tried on two separate systems and the notebook on both systems run and we get the output without an empty table. We tried both, the portal version as well as the local system environment.
Can you mention the python library versions you are using in your local environment so that we can understand what is the issue.
Note that we use a virtual environment on our local system which is similar to the Quantra portal. If you haven’t, and want to create a virtual environment, you can check the steps mentioned in the blog: Setting Up Python On Your System
I hope this helps.
Hi Rekhit,
I am using the EPAT environment as downloaded from Getting Started with EPAT > Section 3 > Unit 7 and Unit 8, which is running on Python 3.8. Is this correct version?
Btw, the file “S&P500_stock_prices_2010_2022.csv” used in this code doesn’t contain “signal” column, which is required for below code, so can u also check if the csv file provided is correct?
for time in data.index:
if (current_position == 0) and (data.loc[time, ‘signal’] == 1):
Rgds,
Reed