Coder Social home page Coder Social logo

pstock2's Introduction

pstock2's People

Contributors

codelol avatar

Watchers

 avatar

Forkers

sooperk

pstock2's Issues

parallelize data fetching

when fetching data for 1k+ symbols, it would take up to 30 minutes when it's done one by one. Should do it in parallel.

Recognize gaps

Gap ups and downs can be easily recognized by using current low/high and previous day's low/high.

Recognize volume breakout

Recognize 2 types of volume breakout
Type 1: current volume versus previous days' average volume. This is the most important;
Type 2: if market is still open, 'predict' the full day volume and alert if volume breaks out.

There should be a configurable threshold for how much can be a breakout, such as >20% of previous days' average volume.

Need a config file

The first config to start with should be refresh frequency, which is currently hard coded to be 60 seconds. Program should read the config file periodically and apply new config on the fly.

load csv file while getting its name

Currently csv files are touched in 2 steps:

  1. get the names of all interested csv files about a symbol to figure out the last history we have. This is used to figure out the starting date to ask for new history info
  2. load all files in memory to constructed an in-memory map, keyed by date
    Between these 2 separate steps, a request is made to download latest history file.

The 2 steps should be combined into one giant step:

  1. list files that are interesting, and for each file, immediately add its content to in-memory map.
  2. get the entry with the biggest key (or, the largest date value). This is the latest history we have
    The second step will solve a bug that file name doesn't faithfully reflect the latest history we have.

time zone

History date is based on host's local time, but should be based on the local time of the exchange, such as US/Eastern.

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.