GithubHelp home page GithubHelp logo

priceaction's Introduction

Performing price action analysis with FinSpace

This repository contains a sample notebook that uses FinSpace to backtest price action trading pattern "Head and Shoulders", referred to as HS.

Price action workflow

The price action notebook shows the workflow of loading trade and quote data and identifying price action patterns. It covers the following steps: Load raw security price data into FinSpace for further processing and analysis. Select the desired trading frequency Prepare data for the pattern identification algorithm/model Run the algorithm/model to identify the price action patterns Plot the pattern on the price chart for verification Image

FinSpace workflow

The steps below show how to run the Jupyter notebook in managed Amazon FinSpace Spark cluster to perform price action analysis on the HS pattern:

  1. Load “US Equity TAQ - AMZN 6 Months” data provided as part of the Capital Markets Sample Data Bundle installed in the Amazon FinSpace environment by default.
  2. Aggregate the price data at various lower frequencies and identify the ones for which the price action patterns are pronounced and tradable.
  3. Further aggregate the data to the desired frequency by calling FinSpace functions such as time bar collection, summarization, filling, and filtering.
  4. Smooth the resultant price series using functions provided in FinSpace analytical library (e.g., Exponential Moving Average)
  5. Find all the local minima and maxima of the smoothed price series, then identify both HS and Inverse HS (IHS) patterns.
  6. Plot all the identified HS and IHS patterns in the price series chart.

Image.

Conclusion

This notebook demonstrates how to perform Price Action Analysis using FinSpace and PySpark. You can use it as a foundation to backtest price action trading patterns of your interest.

priceaction's People

Contributors

chengxu32 avatar

Watchers

James Cloos avatar  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.