Skip to content

An example on how to create a simple trading strategy using pandas dataframes, numpy and matplotlib finance

Notifications You must be signed in to change notification settings

amircp/SimpleMovingAverageCrossOver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Simple Moving Average Crossover Trading Strategy

Install dependencies:

pip install mplfinance
pip install yfinance
pip install pandas
pip install numpy

Just clone this repostiory and run the main script or open and run it into a jupyter book.

Signals

The strategy takes the close prices and gets the 5 and 30 moving averages in order to trigger BUY/SELL signals everytime the 5 crosses the 30 SMA.

The signals are going to be plotted into the chart using MPL Finance library.

Captura de Pantalla 2023-05-02 a la(s) 12 11 56

Author

About

An example on how to create a simple trading strategy using pandas dataframes, numpy and matplotlib finance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages