Code Monkey home page Code Monkey logo

ibkr-toy's Introduction

About seamlik

I am a software engineer who loves Japan.

My names

I have many names in different languages:

  • Chinese name: 殷啟聰 (Qicong Yin)
  • Japanese name: 梓川啓聡 (Hirasato Azusagawa)
  • Nickname: KC, Kai-Chung Yan.

My internet profiles

ibkr-toy's People

Contributors

seamlik avatar

Watchers

 avatar

ibkr-toy's Issues

Find more stock measurements to replace the short-term and long-term price change in ranking factors

Rationale of replacement

At the moment, when we give a score to a stock, we these 2 ranking factors: short-term and long-term price change. However, they pose some serious problems.

First of all, to obtain these measurements, we need to download the historical market price of a stock on the day 1 month ago and 5 years ago. Unfortunately, IBKR does not provide an API to download the data on a particular day. Instead, we need to download all data from a particular day to the current day. This adds complexity in API usage and calculation. What's worse, in order to get a precise calculation, we must use a short interval (like 1 day) when downloading data for 5 total years, which results in a huge increase in download time (and might hit usage limit one day).

Secondly, I accidentally found that the calculation of long-term price change is incorrect when compared to Yahoo Finance (#5).

It is better to get rid of these 2 measurements and opt for ones that are already provided by IBKR.

Candidates of replacement

All these measurements are provided by IBKR:

  • Exponential Moving Average

Long term change period set to 5 years

It is only fair because getting data from some stocks (e.g. Swiss ones) always fails, and I must manually get their data from Yahoo Stocks mobile app, which limits the long-term price change to 5 years.

Also, setting the scope to too long will give some stocks an excessively high score while other stocks will never see the light of day.

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.