In Reinforcement Learning, Jupyter Notebook I have two files in the same directory, quantra_reinforcement_learning.ipynb and RL_live_template.ipynb.
The problem is connecting one module to another. In RL live template I get ModuleNotFoundError.
Import
from quantra_reinforcement_learning import reward_exponential_pnl
The problem is connecting one module to another. In RL live template I get ModuleNotFoundError.
I cannot resolve the problem. Please advise,
William
Hi William,
I believe you are talking about the live trading template.
The files do not need to be put in the same folder. The template documentation in Section 21, Unit 3 located just before the template code files details the entire procedure to run the live trading template.
The RL_live_template.py file goes inside the Strategies folder and the quantra_reinforcement_learning.py goes inside the IBridgePy folder.
Do let me know if that works out for you.
Thanks!
Gaurav,
Yes that is correct. Thanks