Skip to content

A python implementation of the absolute momentum trading strategy.

Notifications You must be signed in to change notification settings

matt-dong/Absolute-Momentum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Absolute-Momentum

A programming project coded in Python by Matthew Dong under the guidance of Oakland University Finance Professor Dr. Hong.

Implementation of Gary Antonnaci's absolute momentum trading strategy. His full report can be found at https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2244633.

Programs

Get_Data.py accesses the AlphaVantage API to retrieve historical stock data and stores the data in an excel workbook for future use.

Correlation.py calculates the correlation between any two investments over a given period of time.

Momentum.py generates trading orders and executes trades based on the historical pricing data for a single asset class. It also records the value of the portfolio over time and stores the data in an excel workbook for future use.

Return.py calculates technical indicators such as Maximum Drawdown, Sharpe Ratio, Mean, Standard Deviation, and Percentage of profitable months for all asset classes. The data is compiled into a table, which is saved into an excel workbook for analysis and future use.

Monthly Statistics.py returns the results of the momentum trading. Number of months spent holding the asset, number of months spent holding treasury bonds, number of buy/sell signals, and the average duration (in months) spent in assets/treasury bonds before switching are compiled into a table and saved into an excel workbook for analysis and comparison.

About

A python implementation of the absolute momentum trading strategy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages