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

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

The newest version!
!/**
 * Highstock JS v11.4.8 (2024-08-29)
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2024 Wojciech Chmiel
 *
 * License: www.highcharts.com/license
 */function(e){"object"==typeof module&&module.exports?(e.default=e,module.exports=e):"function"==typeof define&&define.amd?define("highcharts/indicators/apo",["highcharts","highcharts/modules/stock"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){"use strict";var t=e?e._modules:{};function s(t,s,o,r){t.hasOwnProperty(s)||(t[s]=r.apply(null,o),"function"==typeof CustomEvent&&e.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:t[s]}})))}s(t,"Stock/Indicators/APO/APOIndicator.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,t){let{ema:s}=e.seriesTypes,{extend:o,merge:r,error:i}=t;class a extends s{getValues(e,t){let s,o;let r=t.periods,a=t.index,n=[],d=[],u=[];if(2!==r.length||r[1]<=r[0]){i('Error: "APO requires two periods. Notice, first period should be lower than the second one."');return}let l=super.getValues.call(this,e,{index:a,period:r[0]}),p=super.getValues.call(this,e,{index:a,period:r[1]});if(!l||!p)return;let c=r[1]-r[0];for(o=0;o




© 2015 - 2024 Weber Informatics LLC | Privacy Policy