Skip to content

sxdisbr/moving_average_crossover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin Trading Strategy Analysis

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.

Overview

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.

Features

  • 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.

Getting Started

Prerequisites

To run this project, you will need Python and the following Python libraries installed:

  • yfinance
  • numpy
  • matplotlib

Installation

Clone this repository to your local machine using the following command:

git clone https://github.com/sxdisbr/moving_average_crossover.git

Disclaimer

This analysis is for educational purposes only and not financial advice. Always conduct your own research before making any investment decisions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages