Skip to content

yorkjong/vistock

Repository files navigation

Read Me

Visualizing Stocks

vistock is an open source package that provides a lot of plot() functions for visualizing stocks. For those who just want to use it directly without knowing too many details, I also provide a Colab notebook file, which can be used to plot stock charts you want after simply filling out parameters on the Colab Forms.

Getting Started on Colab

  1. Click vistock_demo.ipynb to open it in Colab.
  2. Sign in your Google account if required.
  3. Follow the steps in the demonstration video below.
    1. Install vistock from GitHub
      • Click the ► button to start install
      • We can see [ ] symbol at the begin of a cell. It will be changed to ► button while the mouse cursor over it.
    2. Fill parameters of a form.
    3. Manually click ► button (means "start run") to plot a chart.
      • The vistock will be installed automatically if it is not done yet.
      • After running a cell manually, it will auto-run if you change the selected parameter value.
vistock_demo.mov

Dive into it on your computer.

  1. Install vistock from GitHub

    pip install git+https://github.com/yorkjong/vistock.git
  2. Run a test code.

    There are two test code in vistock/tests folder.

    Run a test code:

    cd vistock/tests
    python test_plotly.py

    This test code will show stock charts and save them into interactie html files. You can double-clicked a output file to open it on your browser.

TSLA_1d_20230227_0000_pbv2s

  1. Enjoy the demo code. The demo code called vstock_demo.ipynb. You can open it on your Jupyter Notebook environment.