tvjsx / trading-vue-js

💹 Hackable charting lib for traders. You can draw literally ANYTHING on top of candlestick charts. [Not Maintained]
https://tvjsx.github.io/trading-vue-demo/
MIT License
2.09k stars 638 forks source link

goto not working properly when using indexBased #185

Closed black-hawk85 closed 3 years ago

black-hawk85 commented 3 years ago

Description

goto-function jumps to any timestamp but not where I want to have it when I enable indexBased option. As soon as I set indexBased to false it works correctly but the chart doesn't look nice because of market close timings.

It happens on any chart which has opening hours. Let me know if you need more information.

(tvjs version: 1.0.0, OS windows/macOS/Linux, browser Chrome, npm version 6.14.8)

C451 commented 3 years ago

Yes, I need the full program (with the data sample).

black-hawk85 commented 3 years ago

Playground goto.zip

Have prepared App.vue and data.json for the playground, I hope I have set up everything correctly. If you change indexBased to false in data.json the goto button (upper left) will jump to the desired timestamp

black-hawk85 commented 3 years ago

hey, any news on this problem? Do you need more data or infos?

C451 commented 3 years ago

Problems with Index Based mode are usually complicated, you can use goto(<index>) for now.

Luckily, this one is easy.