Skip to content

lightweight-charts integration with jupyterlab, using jesse framework to import candles and and use indicators but you can do it with other libraries and sources

License

Notifications You must be signed in to change notification settings

Gabri/jupyterlab-lightweight-charts-jesse

Repository files navigation

jupyterlab-lightweight-charts-jesse

lightweight-charts integration with jupyterlab, using jesse framework to import candles and and use indicators but you can do it with other libraries and sources

This repository is basing on the source of lightweight-charts-jupyter-bridge. Big thanks to him.

For additional information about Jupyter notebooks on Jesse take a look here

To use this library just add lightweight.py in the jesse root folder and start coding your Jupyter notebook or just copy the example in this repo jupyter-with-lightweight-charts.ipynb. Don't forget to adjust this piece of code basing on your needs:

date_start = date(2021, 6, 1)
date_end = date(2021, 7, 15)

exchange = 'FTX Futures'
pair = 'BTC-USD'

and, of course, you have to import the candles needed from the exchange indicated.

I added some new features to the original library lightweight.py:

  • Candlestick chart
  • Volume histogram
  • Line indicators with same timeframe of candles (optional)
  • Line indicators with an higher timeframe (optional)
  • Dark Theme parameter (optional)
  • Width and Height parameter (optional)

In the jupyterlab file I set:

  • wide view of cells (why using them so small? :) )
  • first cell just import, installation and a simple function definition
  • the second cell is the main example with a 5' chart with canldes, volume and indicators, two of them are relative to an higher timeframe (1H)
  • In the third cell of the jupyter lab file you can see an example of a simpler chart with just one timeframe (1H) with two indicators data (it's the highter timeframe of the previous example)

Animated example

About

lightweight-charts integration with jupyterlab, using jesse framework to import candles and and use indicators but you can do it with other libraries and sources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published