Skip to content

Quantitative analysis uses mathematical models, market data, and fixed rules to develop trading strategies. It relies on backtesting to evaluate performance but must avoid overfitting to ensure real-world effectiveness.

Notifications You must be signed in to change notification settings

Winxent/Quantitative-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Quantitative-Analysis

Quantitative analysis uses mathematical models, market data, and fixed rules to develop trading strategies. It relies on backtesting to evaluate performance but must avoid overfitting to ensure real-world effectiveness.

rainbow

Bitcoin Historical Data Quantitative Analysis Backtest

By applying a simple Exponential Moving Average (EMA) strategy to Bitcoin price action, we can backtest different EMA lengths to find the optimal parameters for maximum returns. Using the Sharpe ratio as our key metric, we aim to maximize risk-adjusted returns.

After running the optimization in Python, the best parameters identified are:

  • Optimal rolling window for MA: 57.01
  • Optimal threshold gap: 0.0398
  • Maximum Sharpe Ratio: 1.88

This strategy yielded a 400% return over a 4-year period in Bitcoin data, demonstrating the potential of quantitative optimization.

image

Please refer and download the python file (EMA backtest.py) and the csv file (Bitcoin Historical Data) to test run the backtest

rainbow

About

Quantitative analysis uses mathematical models, market data, and fixed rules to develop trading strategies. It relies on backtesting to evaluate performance but must avoid overfitting to ensure real-world effectiveness.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages