This project analyzes Bitcoin (BTC) price data to generate buy and sell signals based on a simple moving average crossover strategy. The strategy uses a short-term and a long-term moving average to identify potential entry and exit points for trading.
The moving average crossover strategy is a common technical analysis tool used to predict future price movements. In this project, we apply this strategy to the Bitcoin market to determine the best times to buy and sell over the past month.
- Fetch historical Bitcoin price data using
yfinance
. - Calculate short-term and long-term moving averages.
- Generate buy and sell signals based on moving average crossovers.
- Visualize price data and trading signals on a plot.
To run this project, you will need Python and the following Python libraries installed:
- yfinance
- numpy
- matplotlib
Clone this repository to your local machine using the following command:
git clone https://github.com/sxdisbr/moving_average_crossover.git
This analysis is for educational purposes only and not financial advice. Always conduct your own research before making any investment decisions.