bindingInfo.getStockBindingField(measure)

bindingInfo.setStockBindingField(arr) to set the binding information.

Return the field used as the specified measure on a Stock Chart (OHLC) chart, together with associated binding information.

Parameter

measure

The measure to return:

Chart.HIGH:  // measure defining the high values
Chart.LOW:   // measure defining the low values
Chart.OPEN:  // measure defining the opening values
Chart.CLOSE: // measure defining the closing values

Example

Chart1.bindingInfo.getStockBindingField(Chart.LOW);
// returns (for example): lowPrice[lowPrice, null, Average, 0]
Dashboard script that modifies bindingInfo should generally be placed in the onRefresh handler. See Add Dashboard Script.