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.07k stars 628 forks source link

Issue with update_tick in dc_core.js #299

Open matthew-nguyen-20032023 opened 1 year ago

matthew-nguyen-20032023 commented 1 year ago

(!important) When a new tick is added to ohlcv and has the next interval, it's the open price should be the close price of the previous tick

in src/helpers/dc_core.js line 204

let nc = [t, tick, tick, tick, tick, volume] should be let nc = [t, last[4], tick, tick, tick, volume]