Hacked By AnonymousFox
!/**
* Highstock JS v12.1.2 (2025-01-09)
* @module highcharts/indicators/bollinger-bands
* @requires highcharts
* @requires highcharts/modules/stock
*
* Indicator series type for Highcharts Stock
*
* (c) 2010-2024 Paweł Fus
*
* License: www.highcharts.com/license
*/function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("highcharts"),require("highcharts").SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/indicators/bollinger-bands",[["highcharts/highcharts"],["highcharts/highcharts","SeriesRegistry"]],e):"object"==typeof exports?exports["highcharts/indicators/bollinger-bands"]=e(require("highcharts"),require("highcharts").SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}(this,function(t,e){return function(){"use strict";var o,r,i={512:function(t){t.exports=e},944:function(e){e.exports=t}},n={};function a(t){var e=n[t];if(void 0!==e)return e.exports;var o=n[t]={exports:{}};return i[t](o,o.exports,a),o.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var s={};a.d(s,{default:function(){return D}});var p=a(944),l=a.n(p),h=a(512),c=a.n(h),u=c().seriesTypes.sma.prototype,f=l().defined,d=l().error,y=l().merge;!function(t){var e=["bottomLine"],o=["top","bottom"],r=["top"];function i(t){return"plot"+t.charAt(0).toUpperCase()+t.slice(1)}function n(t,e){var o=[];return(t.pointArrayMap||[]).forEach(function(t){t!==e&&o.push(i(t))}),o}function a(){var t,e=this,o=e.pointValKey,r=e.linesApiNames,a=e.areaLinesNames,s=e.points,p=e.options,l=e.graph,h={options:{gapSize:p.gapSize}},c=[],g=n(e,o),m=s.length;if(g.forEach(function(e,o){for(c[o]=[];m--;)t=s[m],c[o].push({x:t.x,plotX:t.plotX,plotY:t[e],isNull:!f(t[e])});m=s.length}),e.userOptions.fillColor&&a.length){var v=c[g.indexOf(i(a[0]))],b=1===a.length?s:c[g.indexOf(i(a[1]))],x=e.color;e.points=b,e.nextPoints=v,e.color=e.userOptions.fillColor,e.options=y(s,h),e.graph=e.area,e.fillGraph=!0,u.drawGraph.call(e),e.area=e.graph,delete e.nextPoints,delete e.fillGraph,e.color=x}r.forEach(function(t,o){c[o]?(e.points=c[o],p[t]?e.options=y(p[t].styles,h):d('Error: "There is no '+t+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),e.graph=e["graph"+t],u.drawGraph.call(e),e["graph"+t]=e.graph):d('Error: "'+t+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),e.points=s,e.options=p,e.graph=l,u.drawGraph.call(e)}function s(t){var e,o=[],r=[];if(t=t||this.points,this.fillGraph&&this.nextPoints){if((e=u.getGraphPath.call(this,this.nextPoints))&&e.length){e[0][0]="L",o=u.getGraphPath.call(this,t),r=e.slice(0,o.length);for(var i=r.length-1;i>=0;i--)o.push(r[i])}}else o=u.getGraphPath.apply(this,arguments);return o}function p(t){var e=[];return(this.pointArrayMap||[]).forEach(function(o){e.push(t[o])}),e}function l(){var t,e=this,o=this.pointArrayMap,r=[];r=n(this),u.translate.apply(this,arguments),this.points.forEach(function(i){o.forEach(function(o,n){t=i[o],e.dataModify&&(t=e.dataModify.modifyValue(t)),null!==t&&(i[r[n]]=e.yAxis.toPixels(t,!0))})})}t.compose=function(t){var i=t.prototype;return i.linesApiNames=i.linesApiNames||e.slice(),i.pointArrayMap=i.pointArrayMap||o.slice(),i.pointValKey=i.pointValKey||"top",i.areaLinesNames=i.areaLinesNames||r.slice(),i.drawGraph=a,i.getGraphPath=s,i.toYData=p,i.translate=l,t}}(r||(r={}));var g=r,m=(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),v=c().seriesTypes.sma,b=l().extend,x=l().isArray,A=l().merge,O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(){c().seriesTypes.sma.prototype.init.apply(this,arguments),this.options=A({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)},e.prototype.getValues=function(t,e){var o,r,i,n,a,s,p,l,h,u=e.period,f=e.standardDeviation,d=[],y=[],g=t.xData,m=t.yData,v=m?m.length:0,b=[];if(!(g.length<u)){var A=x(m[0]);for(h=u;h<=v;h++)a=g.slice(h-u,h),s=m.slice(h-u,h),n=(l=c().seriesTypes.sma.prototype.getValues.call(this,{xData:a,yData:s},e)).xData[0],o=l.yData[0],p=function(t,e,o,r){for(var i,n=t.length,a=0,s=0;a<n;a++)s+=(i=(o?t[a][e]:t[a])-r)*i;return Math.sqrt(s/=n-1)}(s,e.index,A,o),r=o+f*p,i=o-f*p,b.push([n,r,o,i]),d.push(n),y.push([r,o,i]);return{values:b,xData:d,yData:y}}},e.defaultOptions=A(v.defaultOptions,{params:{period:20,standardDeviation:2,index:3},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1,lineColor:void 0}},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},marker:{enabled:!1},dataGrouping:{approximation:"averages"}}),e}(v);b(O.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameComponents:["period","standardDeviation"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"}),g.compose(O),c().registerSeriesType("bb",O);var D=l();return s.default}()});
Hacked By AnonymousFox1.0, Coded By AnonymousFox