close
The Wayback Machine - https://web.archive.org/web/20210118044743/https://github.com/zvapa/candlestick-chart-with-slider
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

Creating candlestick charts with range slider using bokeh

Image

This code snippet simulates parts of the workflow used in technical analysis:

  • connecting to a sql database to extract price data for a specific trading instrument, and
  • plotting a candlestick chart with a range slider and a tooltip for detailed price info

For illustration, I'm using daily OHLC price data for two instruments (EURUSD currency pair, and Apple stock) stored in a sqlite database, where each instrument represents a table. The script can easily be adopted to plot from csv files, assuming they contain the columns date, open, high, low & close.

Usage:

Required dependencies:

  • bokeh
  • pandas

To use with pipenv, run:

  • pip install pipenv to install pipenv
  • pipenv install to install dependencies
  • bokeh serve --show plotting.py to open in browser

Disclaimer:

This project is for education purpose and does not represent financial advice, nor should it be used in trading applications.

About

Python code for creating candlestick charts with slider using Bokeh

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.