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

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

The newest version!
!/**
 * Highstock JS v11.4.8 (2024-08-29)
 *
 * Parabolic SAR Indicator for Highcharts Stock
 *
 * (c) 2010-2024 Grzegorz Blachliński
 *
 * 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/psar",["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 i(e,i,a,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,a),"function"==typeof CustomEvent&&t.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}i(e,"Stock/Indicators/PSAR/PSARIndicator.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){let{sma:i}=t.seriesTypes,{merge:a}=e;function n(t,e){return parseFloat(t.toFixed(e))}class r extends i{constructor(){super(...arguments),this.nameComponents=void 0}getValues(t,e){let i=t.xData,a=t.yData,r=e.maxAccelerationFactor,s=e.increment,o=e.initialAccelerationFactor,l=e.decimals,c=e.index,u=[],h=[],d=[],p=e.initialAccelerationFactor,m,f=a[0][1],x,g,y,v=1,A,F,M,j,C=a[0][2],S,D,H,P;if(!(c>=a.length)){for(P=0;PC?1:-1,x=f-C,g=(p=e.initialAccelerationFactor)*x,u.push([i[c],C]),h.push(i[c]),d.push(n(C,l)),P=c+1;PMath.max(j,M)?I+T:Math.max(j,M):W,b=m,k=f,S=1===b?D>k?D:k:HE||-1===w&&D>E?1:-1,L=m,U=f,V=p,g=(p=G===L?1===G&&S>U||-1===G&&S




© 2015 - 2024 Weber Informatics LLC | Privacy Policy