Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hover info is duplicated in the live mode, any clue? #53

Open
raptoravis opened this issue Jul 11, 2023 · 2 comments
Open

hover info is duplicated in the live mode, any clue? #53

raptoravis opened this issue Jul 11, 2023 · 2 comments

Comments

@raptoravis
Copy link
Contributor

image

@raptoravis
Copy link
Contributor Author

raptoravis commented Jul 11, 2023

and, what's the status of the live mode? though by the last quick fix and some other small fixes, the live mode seems working, but It seems some problems.

  1. sometimes it may crash when doc.add_next_tick_callback or other cases
  2. the hover tip seems added multiple times for the newly added data
  3. the last part of the newly added bars as the picture above are some glitches

I am still looking at it but I am not sure if it is caused by the fix or if it has already worked properly?

thanks.

@zgpnuaa
Copy link

zgpnuaa commented Aug 3, 2023

It does not draw the first candlestick whether it is in live trading or backtesting. Instead, it starts drawing from the second candlestick. The overall time remains unchanged, meaning that the chart starts from the second candlestick but with time starting from the first candlestick's time. This results in all candlesticks having incorrect timestamps, as there is a shift of one period in time. For example, when plotting 30-minute candlesticks, the OHLC data displayed at 10:00 actually corresponds to 10:30 OHLC data and so on.

2023/06/19 10:00:00, 1_prenext: open:271.758-high:271.758-low:271.168-close:271.258
2023/06/19 10:30:00, 2_prenext: open:271.228-high:271.768-low:268.408-close:268.878
2023/06/19 11:00:00, 3_prenext: open:268.898-high:270.458-low:268.898-close:269.238
2023/06/19 11:30:00, 4_prenext: open:269.238-high:269.238-low:266.868-close:268.158
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants