This project explores various Reinforcement Learning techniques on stock trading with the help of Gymnasium framework.
- Python 3.11
- Poetry (for dependency management)
-
Clone the Repository
git clone https://github.com/RohanSreelesh/4900_RL.git cd 4900_RL
-
Install Poetry
If you haven't installed Poetry yet, you can do so by following the instructions here.
-
Install Dependencies via Poetry
poetry install
poetry run basic
poetry run q_with_function_approximation
poetry run dyna_q
poetry run sarsa
poetry run ppo
Due to configuration issues and RAM + GPU needed to train neural networks, this algorithm only runs on Google Collab.
- Import the deep_q.ipynb into collab and run each code block.
- The Training() Function generates a model which can then be imported or stored for future use.
- The demo() function imports the model and runs a single episode on the NASDAQ_TEST dataset to verify performance
- Reinforcement learning techniques.
- Integration with Gymnasium for creating custom trading scenarios.
- Visualization of trading strategies and account balance using matplotlib.
- Ability to simulate and visualize buy, sell, and hold actions over time.
This project is licensed under the MIT License - see the LICENSE.md file for details.