jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

volume by price indicator update throws error

https://jsfiddle.net/9m871opx/

in the above example.. add indicator volume by price.. which will work perfectly.
now click on indicator --> dialog --> Edit and try to update default setting from 12 to 15.. you will see indicator is not displayed and below error on console

Code: Select all

ghstock.js:21 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at arrayMax (highstock.js:21:59)
    at k.translate (indicators-all.js:144:276)
    at k.redraw (highstock.js:432:190)
    at highstock.js:348:114
    at Array.forEach (<anonymous>)
    at w.redraw (highstock.js:348:65)
    at F.manageIndicators (stock-tools.js:44:478)
    at onSubmit (stock-tools.js:75:379)
    at HTMLButtonElement.<anonymous> (annotations-advanced.js:111:127)
a
jakub.j
Posts: 1091
Joined: Tue Jan 24, 2023 11:14 am

Re: volume by price indicator update throws error

We appreciate you reaching out to us!

It seems that it is a bug, so I have created a GitHub issue for it.

You can watch this issue in the link below and track any information and workarounds for this one.
https://github.com/highcharts/highcharts/issues/18984

Do not hesitate to contact us in the future
Best regards
Jakub

Return to “Highcharts Stock”