L1ZLe
Quantitative_Electricity
Python

Quantitative Analysis & Trading of the Electricity Market

Last updated Jun 24, 2026
17
Stars
5
Forks
1
Issues
0
Stars/day
Attention Score
11
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/)

license last-commit repo-top-language repo-language-count

Developed with the software and tools below.

Python


๐Ÿ”— 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:
  • 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.
Once your PR is reviewed and approved, it will be merged into the main branch.

๐Ÿ“„ 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.
  • 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

ยฉ 2026 GitRepoTrend ยท L1ZLe/Quantitative_Electricity ยท Updated daily from GitHub