Commit Graph

72 Commits

Author SHA1 Message Date
7b0acec3e6 added shorter syntax for one pane 2024-10-13 14:21:05 +02:00
a9cb8da66e readme udpate 2024-10-09 16:11:46 +02:00
9fca26db4b auto scale support 2024-10-09 16:06:19 +02:00
dfe1eafba9 multindex indicator support 2024-10-04 21:58:03 +02:00
8b9f3ad61f update main session marker 2024-10-04 13:52:32 +02:00
c4356bef3a df and sr accessor enhancements 2024-10-04 11:54:24 +02:00
7986aa9195 update session marker 2024-10-03 16:54:52 +02:00
35f029714b bugifx 2024-10-02 13:41:14 +02:00
2b9f238a42 new version to setup 2024-09-27 14:22:26 +02:00
3a859c97fc support for markers list 2024-06-27 13:47:12 +02:00
b01df74707 fix init 2024-06-14 10:56:22 +02:00
17c19d24e1 pandas accessor support to quickly draw a line 2024-06-14 10:54:04 +02:00
41e54ab9c5 precision parameter added on chart and panel level on helpers 2024-06-14 09:20:11 +02:00
f7c80bf3a9 horizontal session divider in helpers 2024-06-13 13:57:42 +02:00
10fd42f785 xloc support for chart helper 2024-06-12 21:28:51 +02:00
8a0fac3c9d opacity support for create_histogram and helpers 2024-06-12 18:31:12 +02:00
3845cd1091 version update 2024-06-12 15:14:12 +02:00
c29b1c5535 all datetime columns changed to timestamp, change from json to faster orjson 2024-06-12 13:33:50 +02:00
ed7ff29771 doc update 2024-06-12 12:21:33 +02:00
0282ca9fe7 doc update 2024-06-12 12:01:09 +02:00
8cc4258168 doc update 2024-06-12 11:46:56 +02:00
d1c78719eb dynamic sizing (size=s,m,l) and height ratio 2024-06-12 11:00:41 +02:00
e9cf847a9a helper functions to quick chart in jupyter (chart, Panel) 2024-06-12 06:18:40 +02:00
4b54588f61 minBarSpacing defaults 2024-06-11 09:30:56 +02:00
f9277c7106 new build 2024-06-11 09:08:07 +02:00
23fbf3a23d markers pd series support 2024-06-10 22:34:21 +02:00
d6a7fa1e3c leftScale to subchart 2024-06-10 21:17:03 +02:00
10aca2b794 leftScale parameter in JupyterChart and other charts 2024-06-10 21:08:56 +02:00
2b2e9c1cb3 leftScale as new Chart parameter 2024-06-10 20:57:38 +02:00
070896e016 css update 2024-06-10 16:52:51 +02:00
c0338229e9 colored legend, self picking colors, left scale, pd.series support in set 2024-06-10 16:41:43 +02:00
a3e022c0a9 update version number 2024-06-05 14:25:35 +01:00
c518cb335b fix save drawings bug, ensure html files are copied into package 2024-05-29 11:41:41 +01:00
3fdd19e3ce implement drawing methods, fix horizontal line bug, continue refactor 2024-04-14 16:29:15 +01:00
a91ea493d7 Update docs, setup.py, conf.py 2024-02-24 13:37:49 +00:00
5861da2123 Added the render_drawings parameter to update
Added the `round` parameter to `vertical_span`
2024-01-21 14:42:54 +00:00
da2a5103fa Enhancements & Bug Fixes
- Added the `color_based_on_candle` parameter to the legend, which will color the percentage change based on the candle color underneath the crosshair.
(#210)
- Fixed a bug which prevented the legend from turning off. (#216)
2023-12-10 19:48:27 +00:00
631afd450f Enhancements:
- Added the `title` parameter to `Chart`.

Bug Fixes:
- When passing a timestamp format to `set`, `update`, or `update_from_tick`, the unit is now by default milliseconds rather than nanoseconds.
- When using `update`, if a time is passed that occurs before the current last datapoint, an error will be raised.
2023-11-22 17:31:35 +00:00
c3645ef245 pandas ambigious hotfix 2023-11-02 11:41:03 +00:00
fecfb6531c Enhancements & Bug Fixes
- Updated to Lightweight Charts 4.1
- Topbar menu widgets will now scroll when a large number of items are added to them
- Vertical Spans can now be placed on Line objects

Bugs
- Histograms will now be deleted from the legend
- autoScale is reset to true upon using `set`.
2023-10-31 14:19:40 +00:00
5bb3739a40 Enhancements & Bug Fixes
- Line, and histogram data can now be accessed from their `data` methods.
- Fixed a bug causing `maximize` to fail if a screen is not specified
- Global events can now be coroutines or functions.
2023-10-21 14:13:11 +01:00
6df0e4fd45 update docs
update setup/conf
2023-10-09 17:42:52 +01:00
2bd4c7c037 Bug Fixes:
- Screen now defaults to the active screen rather than the `0` screen.
- `null` values given in chart data are now removed and replaced with whitespace.
- Closing the chart window now cleanly exits.
- Fixed a bug causing the `offset` parameter to be greater than `0` when there is no offset.
2023-09-29 12:03:49 +01:00
d43e7c24e7 Enhancements:
- Hotkeys can now use any character, and modifier keys are not required.
- Refactored the colors of the topbar, searchbox, toolbox, and widgets for consistency.
- Toolbox/interval refactoring and simplification.
- Histograms now show up in the legend, and will use shorthand notation by default (e.g 34k rather than 34000).
2023-09-24 15:09:45 +01:00
b1f007f6d0 Enhancements:
- added the `align` parameter to all topbar widgets, allowing for individual widgets to be placed either on the left or right hand side of the topbar.
- Disabled QtChart’s context menu by default.

Bug Fixes:
- The `screenshot` method now works for subcharts.
- Tables will still render if a `NoneType` is passed to them as a value.
- Qt and Wx charts no longer throw an error when using the toolbox.
2023-09-14 10:51:10 +01:00
555573b54b Enhancements:
- added the `create_histogram` method and the `Histogram` object.
- added the `round` parameter to `trend_line` and `ray_line`
- chart.set can now be given line data.

Bug Fixes:
- `NaN` values can now be given when setting data, and will leave a blank space in the data.
- `resize` will now change the chart wrapper’s size as well as the chart itself.
2023-09-04 20:29:15 +01:00
8532d48e5d update version number 2023-09-03 17:12:17 +01:00
a7c1dc8a30 Enhancements:
- Added the `screen` parameter to `Chart`, allowing for monitor selection. This should be an index from 0 (0 = primary monitor, 1=  second monitor, etc.)
- `vertical_span` method, allowing for vertical lines/spans to be drawn across the chart.
- `set_visible_range` method, which will set the visible range of the chart based on two given dates.
- `resize` method, which resizes the chart to the given size.
- `sync` will now sync both charts, regardless of which one is scrolled/zoomed.
2023-08-31 21:25:00 +01:00
f72baf95ba Polygon:
- Added async methods to polygon.
- The `requests` library is no longer required, with `urllib` being used instead.
- Added the `get_bar_data` function, which returns a dataframe of aggregate data from polygon.
- Opened up the `subscribe` and `unsubscribe` functions

Enhancements:
- Tables will now scroll when the rows exceed table height.

Bugs:
- Fixed a bug preventing async functions being used with horizontal line event.
- Fixed a bug causing the legend to show duplicate lines if the line was created after the legend.
- Fixed a bug causing the line hide icon to persist within the legend after deletion (#75)
- Fixed a bug causing the search box to be unfocused when the chart is loaded.
2023-08-27 00:20:05 +01:00
34ce3f7199 Refactoring/Enhancements/Fixes
Breaking Changes:
- Removed the `api` parameter; callbacks no longer need to be in a specific class.
- Topbar callbacks now take a chart as an argument (see updated callback examples)
- Removed the `topbar` parameter from chart declaration. The Topbar will be automatically created upon declaration of a topbar widget.
- Removed the `searchbox` parameter from charts. It will be created upon subscribing to it in `chart.events`.
- Removed `dynamic_loading`.
- Removed ‘volume_enabled’ parameter. Volume will be enabled if the volumn column is present in the dataframe.
- Widgets’ `func` parameter is now declared last.
- Switchers take a tuple of options rather than a variable number of arguments.
- `add_hotkey` renamed to `hotkey`
- Horizontal lines now take a `func` argument rather than `interactive`. This event will emit the Line object that was moved.
- Removed the `name` parameter from `line.set`. Line object names are now declared upon creation.

Enhancements:
- Added the `button` widget to the Topbar.
- Added the color picker to the drawing context menu.
- Charts now have a `candle_data` method, which returns the current data displayed on the chart as a DataFrame.
- Fixed callbacks are now located in the `chart.events` object:
    - search (e.g `chart.events.search += on_search`)
    - new_bar
    - range_change
- Added volume to the legend
- Drawings can now be accessed through `chart.toolbox.drawings`
- added the `style` and `name` parameters to `create_line`

Bug Fixes:
- Fixed a bug causing new charts not to load after `exit` was called.
- Refactored rayline placement to ensure they do not move the visible range.
- Fixed a bug causing the visible range to shift when trendlines are moved past the final candlestick.
- Fixed a bug preventing trendlines and raylines on irregular timeframes.
- Fixed a bug causing the legend to prevent mouse input into the chart.
2023-08-14 16:06:16 +01:00