Giter VIP home page Giter VIP logo

moving-average-breakout's Introduction

Moving-Average-Breakout

This strategy applies 5-days, 10-days and 20-days simple moving averages in order to buy stocks when it breaks above the moving averages with a bullish candlestick pattern in daily resolution.

Objective

The objective of this project is to test if this moving average breakout strategy can be proved to be effective and consistent.

Signal Generation

A buy signal is generated when the price breaks above the 5-days, 10-days and 20-days simple moving averages with a bullish candlestick patterns. Noted that the 5-days SMA should be above 10-days SMA which is also above the 20-days SMA.

Result

The performance is captured by only calculating its successful rate. The strategy is regarded as successful if its price does not fall under its buying price within 5 days.

First of all, the program takes the top 50 stocks in terms of trading volume throughout the backtest period. Result is shown below:

alt text

Another universe is selected picking the top 50 stocks in terms of market capitalization.

alt text

Conclusion:

The success rate of this MA breakout strategy fluctuates over time, and it sometimes drop to as low as 30%. It seems that the method of buying the MA breakout cannot be proved to be a consistent strategy but in the meanwhile could be a profitable strategy if suitable portfolio and risk management models are applied.

moving-average-breakout's People

Contributors

kelvonlys avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.