This repository implements the DS-LPPLS (Diagnostic of Super-exponential Log-Periodic Power Law Singularity) model for detecting financial bubbles and crashes in cryptocurrency and traditional markets in real-time.
The DS-LPPLS model is a sophisticated tool for detecting and diagnosing financial bubbles in their development phase. It combines:
- Log-Periodic Power Law (LPPL) pattern recognition
- Multi-scale analysis
- Quantile regression methods
- Ensemble forecasting techniques
The model generates two key indicators:
- DS LPPLS Confidence™: Measures the sensitivity of bubble patterns across different time windows
- DS LPPLS Trust™: Quantifies how well the theoretical LPPL model matches empirical price data
- Real-time bubble detection in cryptocurrency and traditional markets
- Robust pattern recognition across multiple time scales
- Ensemble forecasting to improve prediction reliability
- Both positive (price increase) and negative (price decrease) bubble detection
- Detailed visualization tools for analysis
- Clone this repository:
git clone https://github.com/ImanNasrEsfahani/DS-LPPLS
cd DS-LPPLS
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
- Install required packages:
pip install -r requirements.txt
Run the main program:
python setup.py
Follow the interactive prompts to:
- Select a currency pair/asset
- Set date range
- Choose operations:
- Download data
- Run model
- Apply filters
- Display charts
Available visualization options:
- Confidence and Trust indicators
- Simulated Price trajectories
- Critical Time predictions
- Python 3.10+
- Recommended: 16+ CPU cores for optimal performance
- Sufficient storage space (1+ GB per year of data analyzed)
- Minimum 16GB RAM recommended
- Minimum 20GB HDD free space recommended
- Model results are saved in chunks of 250 rolling windows
- Each chunk is approximately 500-750MB
- Results stored in both .joblib and .csv formats
- Expect ~1GB storage per year of analyzed data
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Submit a pull request
For major changes, please open an issue first to discuss proposed changes.
If you have questions, need help, or want to contribute to this project, feel free to:
- Open an Issue for bugs, feature requests, or questions
- Contact me directly at [📧 Email:Contact]
- Website: [🌐 Website:ImanNasr.com]
I welcome feedback and contributions to improve this tool for detecting financial bubbles. Whether you want to report a bug, request a feature, or collaborate on development, I'm happy to help!
Citations:
- Early Warning Signals of Financial Crises [[1]]
- Everything You Always Wanted to Know About LPPLS [[2]]
- MPRA Paper on Log-Periodic Power Law Models [[3]]
- Log-Periodic Power Law Analysis in Financial Markets [[4]]
- ArXiv Paper on DS-LPPLS Model Applications [[5]]
- University of Pretoria Working Paper on Financial Bubbles [[6]]
- SSRN Paper on Bubble Detection Techniques [[7]]
- LPPLS Appliance GitHub Repository [[8]]
- Imperial College London Thesis on Financial Risk Modeling [[9]]
- Politecnico di Milano Thesis on LPPLS for Bubble Detection [[10]]
- PyPI Package for LPPLS Implementation [[11]]
- ETH Zurich Dissertation on Entrepreneurial Risks [[12]]
- Wiley Article on LPPLS Methodology [[13]]
- ResearchGate Paper on LPPLS Indicators Over Two Centuries [[14]]
- DS-LPPLS Confidence Indicator Visualization [[15]]
- ETH Zurich FCO Report on Financial Crises [[16]]
- Detection of Financial Bubbles Using LPPLS [[17]]
- Open University Thesis on LPPLS Applications [[18]]