Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.3 KB

File metadata and controls

20 lines (13 loc) · 1.3 KB

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