Skip to content

zvapa/candlestick-chart-with-slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating candlestick charts with range slider using bokeh

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages