All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.indicators.atr.js Maven / Gradle / Ivy

The newest version!
!/**
 * Highstock JS v11.4.8 (2024-08-29)
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2024 Sebastian Bochan
 *
 * License: www.highcharts.com/license
 */function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/indicators/atr",["highcharts","highcharts/modules/stock"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function s(e,s,i,a){e.hasOwnProperty(s)||(e[s]=a.apply(null,i),"function"==typeof CustomEvent&&t.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:e[s]}})))}s(e,"Stock/Indicators/ATR/ATRIndicator.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){let{sma:s}=t.seriesTypes,{isArray:i,merge:a}=e;function n(t,e){return Math.max(t[1]-t[2],void 0===e?0:Math.abs(t[1]-e[3]),void 0===e?0:Math.abs(t[2]-e[3]))}class o extends s{getValues(t,e){let s=e.period,a=t.xData,o=t.yData,r=o?o.length:0,u=[[a[0],o[0]]],h=[],d=[],c=[],l,p,f=0,g=1,m=0;if(!(a.length<=s)&&i(o[0])&&4===o[0].length){for(p=1;p<=r;p++){var y,v;(function(t,e,s,i){let a=e[i],n=s[i];t.push([a,n])})(u,a,o,p),s




© 2015 - 2024 Weber Informatics LLC | Privacy Policy