This repository contains a collection of quantitative analysis tools for financial markets. The tools cover various aspects of market analysis, including backtesting, options analysis, correlation studies, and Monte Carlo simulations.
- Backtesting Tools
- Correlation Analysis
- Financial Analysis Tools
- Macro Economic Analysis Tools
- Options Analysis Tools
- Simulation Tools
- Stock Performance Analysis Tools
This section includes tools for backtesting trading strategies:
ActualProbabilitySTD.py
: Calculates actual probabilities based on standard deviations.MCSTDDollarMeanReg.py
: Implements a Monte Carlo simulation for dollar mean reversion strategy.- Dollar Mean Reversion strategies.
- RSI crossover strategies.
Tools for analyzing correlations between different financial instruments:
HeatmapCorrelation.py
: Generates correlation heatmaps.HeatmapCorrelationPriceChange.py
: Analyzes correlations based on price changes.HeatmapCorrelationPriceData.py
: Studies correlations using price data.PriceDeltaAndPrice.py
: Examines relationships between price deltas and prices.
Visualizations and tools for financial analysis:
MetricVisuals.py
: Creates visualizations for various financial metrics.PerformanceCompare.py
: Compares performance across different financial instruments.
Tools for analyzing macroeconomic factors:
- Linear regression tools for macroeconomic analysis.
- Time series analysis tools like
MacroCharts.py
.
Tools for options analysis and Greeks calculations:
GreekCalcAmerican.py
: Calculates Greeks for American options.GreeksCalculator.py
: A general-purpose Greeks calculator.- Options statistics tools.
Monte Carlo simulation tools:
MonteCarlo25Years.py
: Runs a 25-year Monte Carlo simulation.MonteCarloShortRandom.py
: Implements a short-term random Monte Carlo simulation.MonteCarloStocks.py
: Monte Carlo simulation for stock price movements.- Various other Monte Carlo tools for different scenarios.
Tools for analyzing stock performance:
- News analysis tools.
- Screener tools for filtering stocks based on various criteria.
- Standard deviation analysis tools.
- Linear regression tools for stock vs macro analysis.
Each script can be run independently. Most scripts will prompt for user input such as ticker symbols, date ranges, or specific parameters for analysis.
The project requires Python 3.x and several libraries including:
- yfinance
- pandas
- numpy
- matplotlib
- scipy
- scikit-learn
- pandas_datareader
- backtesting
You can install these dependencies using pip:
pip install yfinance pandas numpy matplotlib scipy scikit-learn pandas_datareader backtesting
Feel free to fork this repository and submit pull requests with improvements or additional tools/criticism