Welcome to the repository for hosting algorithmic trading strategies on the QuantConnect platform. This repository contains implementations of various trading algorithms in both Python and C#. Each algorithm is designed to leverage QuantConnect's powerful backtesting and live trading capabilities. All algorithm codes are organized and saved in the Algorithms
folder.
├── Algorithms
│ ├── Python
│ │ ├── Algorithm1.py
│ │ └── Algorithm2.py
│ ├── C#
│ │ ├── Algorithm1.cs
│ │ └── Algorithm2.cs
├── README.md
└── LICENSE
- Algorithms: This folder contains all the algorithm implementations.
- Python: Subfolder for algorithms implemented in Python.
- C#: Subfolder for algorithms implemented in C#.
To run these algorithms, you need to have an account on QuantConnect and set up the QuantConnect Lean engine on your local machine or use QuantConnect's cloud platform.
-
Clone the Repository:
git clone https://github.com/baobach/QC_Algorithms.git cd QC_Algorithms
-
Upload to QuantConnect:
- Navigate to the QuantConnect platform.
- Create a new project.
- Upload the desired algorithm files from the
Algorithms
folder into your QuantConnect project.
-
Configure and Run:
- Configure the algorithm settings as needed.
- Run backtests or deploy live on the QuantConnect platform.
-
Implement the Algorithm:
- Write your algorithm in Python or C# and save it in the respective folder under
Algorithms
.
- Write your algorithm in Python or C# and save it in the respective folder under
-
Follow the Naming Conventions:
- Use meaningful names for your files and include a brief description of the algorithm at the top of the file.
-
Commit and Push:
git add Algorithms/your-algorithm-file git commit -m "Add new algorithm: Your Algorithm Name" git push origin main
We welcome contributions to this repository! To contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Make your changes.
- Commit your changes (
git commit -m 'Add feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Create a pull request.
This repository is licensed under the Apache 2.0 License. See the LICENSE file for more information.
For any questions or suggestions, please open an issue or contact us at [email protected].
Thank you for using and contributing to our repository! Happy coding and successful trading!