Course Name: Technical Indicators Strategies in Python, Section No: 21, Unit No: 7, Unit type: Notebook
Im unable to call the get_strategy_returns
function from technical_analysis_quantra_utility
module to analyse a strategy.
Where am I supposed to move the file technical_analysis_quantra_utility.py so I can use it on my strategy?
Thanks a lot!
Hi Diego,
I am not able to see your code. However, based on your query I'm assuming that you are trying to run the code on your local machine. Also, that you are using the same code to import the module as it is in the notebook.
In this case, you need to save the technical_analysis_quantra_utility.py file in a folder named data_modules.
The technical_analysis_quantra_utility.py and your notebook should be placed in 2 seperate folders:
Folder 1: data_modules (save the py file here)
Folder 2: Chaikin Oscillator (save the notebook in this folder)
An easier approach would be to follow the zip file folder structure which can be downloaded from the last unit of the course.
Hope this answers your question.
Thanks,
Rushda Ansari