- Added `trend_line` and `ray_line` to the Common Methods.
- Added the `toolbox` parameter to chart declaration. This allows horizontal lines, trend lines and rays to be drawn on the chart using hotkeys and buttons.
- cmd-Z will delete the last drawing.
- Drawings can be moved by clicking and dragging.
- Added the `render_drawings` parameter to `set`, which will keep and re-render the drawings displayed on the chart (useful for multiple timeframes!)
Horizontal Lines
- The `horizontal_line` method now returns a HorizontalLine object, containing the methods `update` and `delete`.
- Added the `interactive` parameter to `horizontal_line`, allowing for callbacks to be emitted to the `on_horizontal_line_move` callback method when the line is dragged to a new price (stop losses, limit orders, etc.).
Enhancements:
- added the `precision` method to the Common Methods, allowing for the number of decimal places shown on the price scale to be declared.
- Lines displayed on legends now have toggle switches, allowing for their visibility to be controlled directly within the chart window.
- when using `set`, the column names can now be capitalised, and the `date` column can be the index.
Changes:
- Merged the `title` method into the `price_line` method.
25 lines
679 B
Python
25 lines
679 B
Python
from setuptools import setup, find_packages
|
|
|
|
with open('README.md', 'r', encoding='utf-8') as f:
|
|
long_description = f.read()
|
|
|
|
setup(
|
|
name='lightweight_charts',
|
|
version='1.0.14',
|
|
packages=find_packages(),
|
|
python_requires='>=3.8',
|
|
install_requires=[
|
|
'pandas',
|
|
'pywebview',
|
|
],
|
|
package_data={
|
|
'lightweight_charts': ['js/*.js'],
|
|
},
|
|
author='louisnw',
|
|
license='MIT',
|
|
description="Python framework for TradingView's Lightweight Charts JavaScript library.",
|
|
long_description=long_description,
|
|
long_description_content_type='text/markdown',
|
|
url='https://github.com/louisnw01/lightweight-charts-python',
|
|
)
|