Quantitative Analysis & Trading of the Electricity Market
Last updated Jun 24, 2026
17
Stars
5
Forks
1
Issues
0
Stars/day
Attention Score
11
Topics
Language breakdown
No language data available.
โธ Files
click to expand
README
QUANTITATIVE_ELECTRICITY
โบ An advanced platform for forecasting electricity prices and developing trading strategies.
Link to the web app: (https://quantitative-electricity.streamlit.app/)
Developed with the software and tools below.
๐ Quick Links
- ๐ Overview
- ๐ฆ Features
- ๐ Repository Structure
- ๐งฉ Modules
- โ๏ธ Installation
- ๐ค Running QuantitativeElectricity
- ๐ Project Roadmap
- ๐ค Contributing
- ๐ License
- ๐ Acknowledgments
๐ Overview
โบ Welcome to the Electricity Trading Strategy Project! This platform provides comprehensive tools and models to forecast electricity prices and develop trading strategies. We utilize advanced machine learning models including SARIMA and GRU to predict price movements and assess trading strategies. Explore live predictions, backtesting tools, and performance metrics to understand and improve trading strategies in the electricity market.
๐ฆ Features
โบ Explore a range of features designed to enhance your trading strategy:- Model Overview: Detailed descriptions of the models used for forecasting electricity prices.
- Data Exploration: Interactive visualizations of historical electricity prices and influencing factors.
- Predictions: Live forecasts of next-day electricity prices using various models.
- Trading Strategy: Insights into the logic and implementation of trading strategies.
- Performance Metrics: Evaluation of strategies using metrics such as Sharpe ratio, ROI, and more.
- Backtesting: Assess the performance of strategies on historical data.
๐ Repository Structure
โโโ Quantitative_Electricity/
โโโ README.md
โโโ app.py
โโโ assets
โ โโโ ARIMA_predictions.png
โ โโโ Average Electricity price by Month.png
โ โโโ BOS.png
โ โโโ Correlations between variables1.png
โ โโโ Correlations between variables2.png
โ โโโ Electricity seasonal decomposition.png
โ โโโ LinearRegression.png
โ โโโ Natural Gas seasonal decomposition.png
โ โโโ Net_generated electricity and Temperature.png
โ โโโ PACF_ACF.png
โ โโโ RandomForest.png
โ โโโ Relation between Electricity price and Temperature.png
โ โโโ gru_predictions.png
โ โโโ lstm_predictions.png
โโโ datasets
โ โโโ DatacleanedDataset.csv
โ โโโ NetgenerationUnitedStatesallsectorsmonthly.csv
โ โโโ Netgenerationby places.csv
โ โโโ RetailsalesofelectricityUnitedStatesmonthly.csv
โโโ model_module.py
โโโ models
โ โโโ priceARIMAmodel.pkl
โ โโโ pricegrumodel.h5
โ โโโ pricelstmmodel.h5
โ โโโ scaler.pkl
โ โโโ signLSTMmodel.keras
โ โโโ signgrumodel.keras
โ โโโ signlinearRegressionmodel.pkl
โ โโโ signrandomForestmodel.pkl
โโโ requirements.txt
โโโ trading_strategies.py
โโโ visualizations.py
๐งฉ Modules
.
| File | Summary | | --- | --- | | modelmodule.py |โบ Contains functions for model training and predictions. |
| visualizations.py | โบ Generates interactive visualizations for data exploration. |
| tradingstrategies.py | โบ Implements various trading strategies based on predictions. |
| app.py | โบ Main entry point for running the Streamlit application. |
โ๏ธ Installation
- Clone the Quantitative_Electricity repository:
git clone https://github.com/L1ZLe/Quantitative_Electricity
- Change to the project directory:
cd Quantitative_Electricity
- Install the dependencies:
pip install -r requirements.txt
๐ค Running Quantitative_Electricity
Use the following command to run Quantitative_Electricity:streamlit run app.py
๐ Project Roadmap
- [X]
โบ Initial setup and model development
- [X]
โบ Implementation of trading strategies
- [X]
โบ Enhance user interface and visualizations
- [X]
โบ Deploy and monitor application
๐ค Contributing
Contributions are welcome! Here are several ways you can contribute:- Join the Discussions: Share your insights, provide feedback, or ask questions.
- Report Issues: Submit bugs found or log feature requests for Quantitative_Electricity.
Contributing Guidelines
- Fork the Repository: Start by forking the project repository to your GitHub account.
- Clone Locally: Clone the forked repository to your local machine using a Git client.
git clone https://github.com/L1ZLe/Quantitative_Electricity
- Create a New Branch: Always work on a new branch, giving it a descriptive name.
git checkout -b new-feature-x
- Make Your Changes: Develop and test your changes locally.
- Commit Your Changes: Commit with a clear message describing your updates.
git commit -m 'Implemented new feature x.'
- Push to GitHub: Push the changes to your forked repository.
git push origin new-feature-x
- Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
๐ License
This project is protected under the MIT License. For more details, refer to the LICENSE file.๐ Acknowledgments
- Pandas: For providing the data manipulation tools.
- TensorFlow: For enabling deep learning models.
- Streamlit: For allowing easy deployment of the web application.
- eia.gov: For providing electricity data.
Thank you for exploring Quantitative_Electricity. We hope you find it valuable for your trading strategy development!
```๐ More in this category