/* Highstock JS v10.0.0 (2022-03-07) All technical indicators for Highcharts Stock (c) 2010-2021 Pawel Fus License: www.highcharts.com/license */ (function(f){"object"===typeof module&&module.exports?(f["default"]=f,module.exports=f):"function"===typeof define&&define.amd?define("highcharts/indicators/indicators-all",["highcharts","highcharts/modules/stock"],function(v){f(v);f.Highcharts=v;return f}):f("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(f){function v(f,e,g,m){f.hasOwnProperty(e)||(f[e]=m.apply(null,g),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:f[e]}})))} f=f?f._modules:{};v(f,"Stock/Indicators/SMA/SMAComposition.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){});v(f,"Stock/Indicators/SMA/SMAIndicator.js",[f["Core/Chart/Chart.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=b}||function(c,b){for(var a in b)b.hasOwnProperty(a)&&(c[a]=b[a])};return c(b, a)};return function(b,a){function l(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):(l.prototype=a.prototype,new l)}}(),k=e.seriesTypes.line,p=g.addEvent,t=g.error,h=g.extend,d=g.isArray,a=g.merge,b=g.pick,c=g.splat;g=function(l){function w(){var c=null!==l&&l.apply(this,arguments)||this;c.data=void 0;c.dataEventsToUnbind=void 0;c.linkedParent=void 0;c.options=void 0;c.points=void 0;return c}m(w,l);w.prototype.destroy=function(){this.dataEventsToUnbind.forEach(function(c){c()}); l.prototype.destroy.apply(this,arguments)};w.prototype.getName=function(){var c=this.name,a=[];c||((this.nameComponents||[]).forEach(function(c,l){a.push(this.options.params[c]+b(this.nameSuffixes[l],""))},this),c=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+a.join(", ")+")":""));return c};w.prototype.getValues=function(c,b){var a=b.period,l=c.xData;c=c.yData;var w=c.length,A=0,z=0,h=[],e=[],g=[],f=-1;if(!(l.lengthf?c[A]:c[A][f], A++;for(b=A;bf?c[b]:c[b][f];var t=[l[b],z/a];h.push(t);e.push(t[0]);g.push(t[1]);z-=0>f?c[b-A]:c[b-A][f]}return{values:h,xData:e,yData:g}}};w.prototype.init=function(c,b){var a=this;l.prototype.init.call(a,c,b);b=p(f,"afterLinkSeries",function(){var b=!!a.dataEventsToUnbind.length;if(a.linkedParent)if(b||(a.dataEventsToUnbind.push(p(a.linkedParent,"updatedData",function(){a.recalculateValues()})),a.calculateOn.xAxis&&a.dataEventsToUnbind.push(p(a.linkedParent.xAxis,a.calculateOn.xAxis, function(){a.recalculateValues()}))),"init"===a.calculateOn.chart)a.processedYData||a.recalculateValues();else{if(!b)var l=p(a.chart,a.calculateOn.chart,function(){a.recalculateValues();l()})}else return t("Series "+a.options.linkedTo+" not found! Check `linkedTo`.",!1,c)},{order:0});a.dataEventsToUnbind=[];a.eventsToUnbind.push(b)};w.prototype.recalculateValues=function(){var a=this.points||[],b=(this.xData||[]).length,l={values:[],xData:[],yData:[]},d=[],w=!0;l=this.linkedParent.options?this.getValues(this.linkedParent, this.options.params)||l:l;if(b&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){if(this.xAxis){var n=this.xAxis.min;var h=this.xAxis.max}b=this.cropData(l.xData,l.yData,n,h);for(n=0;nb?c[d]:c[d][b], l+=A,d++;return l};d.prototype.calculateEma=function(a,b,c,l,d,A,h){a=a[c-1];b=0>A?b[c-1]:b[c-1][A];l="undefined"===typeof d?h:k(b*l+d*(1-l));return[a,l]};d.prototype.getValues=function(a,b){var c=b.period,l=a.xData,d=(a=a.yData)?a.length:0,A=2/(c+1),h=[],e=[],g=[],r=-1;if(!(da[d-1].y?b:a[d].y=b.length)&&a(c[0])&&4===c[0].length){for(B=0;33>B;B++){var q=(c[B][1]+c[B][2])/2;29<=B&&(r=d(r+q));n=d(n+q)}for(B=33;B=c||"min"===b&&a[d]<=c)c=a[d],l=d;return l}var k=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(b,c)};return function(b,c){function l(){this.constructor= b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),p=e.seriesTypes.sma,t=g.extend,h=g.merge,d=g.pick;g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}k(b,a);b.prototype.getValues=function(a,b){b=b.period;var c=a.xData,l=(a=a.yData)?a.length:0,h=[],e=[],g=[],r;for(r=b-1;r\u25cf {series.name}
Aroon Up: {point.y}
Aroon Down: {point.aroonDown}
'},aroonDown:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}});return b}(p);t(g.prototype,{areaLinesNames:[], linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"});f.compose(g);e.registerSeriesType("aroon",g);"";return g});v(f,"Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a, b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=e.seriesTypes.aroon,p=g.extend,t=g.merge,h=e.seriesTypes.aroon;g=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}m(a,d);a.prototype.getValues=function(a,c){var b=[],d=[],e=[];a=h.prototype.getValues.call(this,a,c);for(c= 0;c\u25cf {series.name}: {point.y}'}});return a}(k);p(g.prototype,{nameBase:"Aroon Oscillator",linesApiNames:[],pointArrayMap:["y"],pointValKey:"y"});f.compose(k);e.registerSeriesType("aroonoscillator",g);"";return g});v(f,"Stock/Indicators/ATR/ATRIndicator.js", [f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function g(h,d){return Math.max(h[1]-h[2],"undefined"===typeof d?0:Math.abs(h[1]-d[3]),"undefined"===typeof d?0:Math.abs(h[2]-d[3]))}var m=this&&this.__extends||function(){var h=function(d,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return h(d,a)};return function(d,a){function b(){this.constructor=d}h(d,a);d.prototype= null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),k=f.seriesTypes.sma,p=e.isArray,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}m(d,h);d.prototype.getValues=function(a,b){b=b.period;var c=a.xData,l=(a=a.yData)?a.length:0,d=1,h=0,e=0,y=[],f=[],r=[],n;var B=[[c[0],a[0]]];if(!(c.length<=b)&&p(a[0])&&4===a[0].length){for(n=1;n<=l;n++)if(B.push([c[n],a[n]]),b\u25cf {series.name}
Top: {point.top}
Middle: {point.middle}
Bottom: {point.bottom}
'}, marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return a}(k);p(g.prototype,{areaLinesNames:["top","bottom"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle",nameComponents:["period","standardDeviation"],linesApiNames:["topLine","bottomLine"]});f.compose(g);e.registerSeriesType("bb",g);"";return g});v(f,"Stock/Indicators/CCI/CCIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function g(h){return h.reduce(function(d,a){return d+a},0)} var m=this&&this.__extends||function(){var h=function(d,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return h(d,a)};return function(d,a){function b(){this.constructor=d}h(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),k=f.seriesTypes.sma,p=e.isArray,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0; a.options=void 0;return a}m(d,h);d.prototype.getValues=function(a,b){b=b.period;var c=a.xData,l=(a=a.yData)?a.length:0,d=[],h=1,e=[],y=[],f=[];if(!(c.length<=b)&&p(a[0])&&4===a[0].length){for(;h=d.params.period&&h.xData&&h.xData.length>=d.params.period&&b)};f.prototype.getValues=function(h,d){if(this.isValid())return this.getMoneyFlow(h.xData,h.yData,this.volumeSeries.yData,d.period)};f.prototype.getMoneyFlow=function(h,d,a,b){function c(a,c){var b=a[1],l=a[2];a=a[3];return null!==c&&null!==b&&null!==l&&null!==a&&b!==l?(a-l-(b-a))/(b-l)*c:(B=n,null)}var l=d.length,w=[],e=0,z=0,y=[],f=[],r=[],n,B=-1;if(0=b&&0!==e?z/e:null);for(r.push([y[0],f[0]]);n=b?z/e:null];y.push(q[0]);f.push(q[1]);r.push([q[0],q[1]])}}return{values:r,xData:y,yData:f}};f.defaultOptions=k(m.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return f}(m);f.registerSeriesType("cmf",e);"";return e});v(f,"Stock/Indicators/DMI/DMIIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"], f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(b,c)};return function(b,c){function l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),k=e.seriesTypes.sma,p=g.correctFloat,t=g.extend,h=g.isArray,d=g.merge; g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.options=void 0;return c}m(b,a);b.prototype.calculateDM=function(a,b,d){var c=a[b][1],l=a[b][2],w=a[b-1][1];a=a[b-1][2];return p(c-w>a-l?d?Math.max(c-w,0):0:d?0:Math.max(a-l,0))};b.prototype.calculateDI=function(a,b){return a/b*100};b.prototype.calculateDX=function(a,b){return p(Math.abs(a-b)/Math.abs(a+b)*100)};b.prototype.smoothValues=function(a,b,d){return p(a-a/d+b)};b.prototype.getTR=function(a,b){return p(Math.max(a[1]- a[2],b?Math.abs(a[1]-b[3]):0,b?Math.abs(a[2]-b[3]):0))};b.prototype.getValues=function(a,b){b=b.period;var c=a.xData,l=(a=a.yData)?a.length:0,d=[],e=[],f=[];if(!(c.length<=b)&&h(a[0])&&4===a[0].length){var r=0,n=0,B=0,q;for(q=1;q\u25cf {series.name}
DX: {point.y}
+DI: {point.plusDI}
-DI: {point.minusDI}
'}, plusDILine:{styles:{lineWidth:1,lineColor:"#06b535"}},minusDILine:{styles:{lineWidth:1,lineColor:"#f21313"}},dataGrouping:{approximation:"averages"}});return b}(k);t(g.prototype,{areaLinesNames:[],nameBase:"DMI",linesApiNames:["plusDILine","minusDILine"],pointArrayMap:["y","plusDI","minusDI"],parallelArrays:["x","y","plusDI","minusDI"],pointValKey:"y"});f.compose(g);e.registerSeriesType("dmi",g);"";return g});v(f,"Stock/Indicators/DPO/DPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]], function(f,e){function g(a,b,c,l,w){b=d(b[c][l],b[c]);return w?h(a-b):h(a+b)}var m=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),k=f.seriesTypes.sma,p=e.extend,t=e.merge,h=e.correctFloat,d=e.pick; e=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.options=void 0;b.data=void 0;b.points=void 0;return b}m(b,a);b.prototype.getValues=function(a,b){var c=b.period;b=b.index;var l=c+Math.floor(c/2+1),h=a.xData||[];a=a.yData||[];var e=a.length,f=[],r=[],n=[],B=0,q,u;if(!(h.length<=l)){for(q=0;qa[y-1]?l+=a[y]-a[y-1]:a[y]a[y-1]?l+=a[y]-a[y-1]:a[y]a[y-b-1]?l-=r:n-=r,r=0a)return[d[c-3],0!==b.prevLevel3?k(b.level3-b.prevLevel3)/b.prevLevel3*100:null]};h.defaultOptions=p(m.defaultOptions); return h}(m);f.registerSeriesType("trix",e);"";return e});v(f,"Stock/Indicators/APO/APOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var h=function(d,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return h(d,a)};return function(d,a){function b(){this.constructor=d}h(d,a);d.prototype=null===a?Object.create(a):(b.prototype= a.prototype,new b)}}(),m=f.seriesTypes.ema,k=e.extend,p=e.merge,t=e.error;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,h);d.prototype.getValues=function(a,b){var c=b.periods,l=b.index;b=[];var d=[],h=[],e;if(2!==c.length||c[1]<=c[0])t('Error: "APO requires two periods. Notice, first period should be lower than the second one."');else{var f=m.prototype.getValues.call(this,a,{index:l,period:c[0]});a=m.prototype.getValues.call(this, a,{index:l,period:c[1]});if(f&&a){c=c[1]-c[0];for(e=0;e=c&&0<=e&&1>=e)return{plotX:a.plotX+e*d,plotY:a.plotY+e*b}}return!1}function a(a){var b=a.indicator;b.points=a.points;b.nextPoints=a.nextPoints;b.color=a.color;b.options=y(a.options.senkouSpan.styles,a.gap);b.graph=a.graph;b.fillGraph=!0;g.seriesTypes.sma.prototype.drawGraph.call(b)}var b=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),c=f.parse,l=g.seriesTypes.sma,w=m.defined;f=m.extend;var A=m.isArray,z=m.isNumber,y=m.merge,L=m.objectEach;e.approximations["ichimoku-averages"]=function(){var a=[],b;[].forEach.call(arguments,function(c,l){a.push(e.approximations.average(c));b=!b&&"undefined"=== typeof a[l]});return b?void 0:a};m=function(e){function f(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.graphCollection=void 0;a.graphsenkouSpan=void 0;a.ikhMap=void 0;a.nextPoints=void 0;return a}b(f,e);f.prototype.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=y({tenkanLine:{styles:{lineColor:this.color}},kijunLine:{styles:{lineColor:this.color}},chikouLine:{styles:{lineColor:this.color}},senkouSpanA:{styles:{lineColor:this.color, fill:c(this.color).setOpacity(.5).get()}},senkouSpanB:{styles:{lineColor:this.color,fill:c(this.color).setOpacity(.5).get()}},senkouSpan:{styles:{fill:c(this.color).setOpacity(.2).get()}}},this.options)};f.prototype.toYData=function(a){return[a.tenkanSen,a.kijunSen,a.chikouSpan,a.senkouSpanA,a.senkouSpanB]};f.prototype.translate=function(){var a=this;g.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){var l=b[c];z(l)&&(b["plot"+c]=a.yAxis.toPixels(l, !0),b.plotY=b["plot"+c],b.tooltipPos=[b.plotX,b["plot"+c]],b.isNull=!1)})})};f.prototype.drawGraph=function(){var b=this,c=b.points,l=c.length,e=b.options,h=b.graph,f=b.color,A={options:{gapSize:e.gapSize}},n=b.pointArrayMap.length,r=[[],[],[],[],[],[]],z={tenkanLine:r[0],kijunLine:r[1],chikouLine:r[2],senkouSpanA:r[3],senkouSpanB:r[4],senkouSpan:r[5]},m=[],k=b.options.senkouSpan,t=k.color||k.styles.fill,p=k.negativeColor,x=[[],[]],v=[[],[]],R=0,K,S,O;for(b.ikhMap=z;l--;){var D=c[l];for(K=0;KK?0:1}else D=l[D].plotY>k[D].plotY?0:1; else D=l[0].plotY>k[0].plotY?0:1;x[D]=x[D].concat(l);v[D]=v[D].concat(k)}["graphsenkouSpanColor","graphsenkouSpanNegativeColor"].forEach(function(c,l){x[l].length&&v[l].length&&(S=0===l?t:p,a({indicator:b,points:x[l],nextPoints:v[l],color:S,options:e,gap:A,graph:b[c]}),b[c]=b.graph,b.graphCollection.push(c))})}else a({indicator:b,points:z.senkouSpanB,nextPoints:z.senkouSpanA,color:t,options:e,gap:A,graph:b.graphsenkouSpan}),b.graphsenkouSpan=b.graph;delete b.nextPoints;delete b.fillGraph;b.points= c;b.options=e;b.graph=h;b.color=f};f.prototype.getGraphPath=function(a){var b=[],c;a=a||this.points;if(this.fillGraph&&this.nextPoints){if((c=g.seriesTypes.sma.prototype.getGraphPath.call(this,this.nextPoints))&&c.length){c[0][0]="L";b=g.seriesTypes.sma.prototype.getGraphPath.call(this,a);c=c.slice(0,b.length);for(var l=c.length-1;0<=l;l--)b.push(c[l])}}else b=g.seriesTypes.sma.prototype.getGraphPath.apply(this,arguments);return b};f.prototype.getValues=function(a,b){var c=b.period,l=b.periodTenkan; b=b.periodSenkouSpanB;var d=a.xData,e=a.yData,w=e&&e.length||0;a=h(a.xAxis);var f=[],z=[],n;if(!(d.length<=c)&&A(e[0])&&4===e[0].length){var r=d[0]-c*a;for(n=0;n=l){var g=e.slice(n-l,n);g=t(g);g=(g.high+g.low)/2}if(n>=c){var y=e.slice(n-c,n);y=t(y);y=(y.high+y.low)/2;var q=(g+y)/2}if(n>=b){var k=e.slice(n-b,n);k=t(k);k=(k.high+k.low)/2}r=e[n][3];var m=d[n];"undefined"===typeof f[n]&&(f[n]=[]);"undefined"===typeof f[n+c]&&(f[n+c]=[]);f[n+c][0]=g;f[n+c][1]= y;f[n+c][2]=void 0;f[n][2]=r;n<=c&&(f[n+c][3]=void 0,f[n+c][4]=void 0);"undefined"===typeof f[n+2*c]&&(f[n+2*c]=[]);f[n+2*c][3]=q;f[n+2*c][4]=k;z.push(m)}for(n=1;n<=c;n++)z.push(m+n*a);return{values:f,xData:z,yData:f}}};f.defaultOptions=y(l.defaultOptions,{params:{index:void 0,period:26,periodTenkan:9,periodSenkouSpanB:52},marker:{enabled:!1},tooltip:{pointFormat:'\u25cf {series.name}
TENKAN SEN: {point.tenkanSen:.3f}
KIJUN SEN: {point.kijunSen:.3f}
CHIKOU SPAN: {point.chikouSpan:.3f}
SENKOU SPAN A: {point.senkouSpanA:.3f}
SENKOU SPAN B: {point.senkouSpanB:.3f}
'}, tenkanLine:{styles:{lineWidth:1,lineColor:void 0}},kijunLine:{styles:{lineWidth:1,lineColor:void 0}},chikouLine:{styles:{lineWidth:1,lineColor:void 0}},senkouSpanA:{styles:{lineWidth:1,lineColor:void 0}},senkouSpanB:{styles:{lineWidth:1,lineColor:void 0}},senkouSpan:{styles:{fill:"rgba(255, 0, 0, 0.5)"}},dataGrouping:{approximation:"ichimoku-averages"}});return f}(l);f(m.prototype,{pointArrayMap:["tenkanSen","kijunSen","chikouSpan","senkouSpanA","senkouSpanB"],pointValKey:"tenkanSen",nameComponents:["periodSenkouSpanB", "period","periodTenkan"]});g.registerSeriesType("ikh",m);"";return m});v(f,"Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};return function(a, b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=e.seriesTypes.sma,p=g.correctFloat,t=g.extend,h=g.merge;g=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}m(a,d);a.prototype.init=function(){e.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=h({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)}; a.prototype.getValues=function(a,c){var b=c.period,d=c.periodATR,h=c.multiplierATR,f=a.yData;f=f?f.length:0;var g=[];c=e.seriesTypes.ema.prototype.getValues(a,{period:b,index:c.index});var k=e.seriesTypes.atr.prototype.getValues(a,{period:d}),r=[],n=[],m;if(!(f\u25cf {series.name}
Upper Channel: {point.top}
EMA({series.options.params.period}): {point.middle}
Lower Channel: {point.bottom}
'},marker:{enabled:!1},dataGrouping:{approximation:"averages"},lineWidth:1});return a}(k);t(g.prototype,{nameBase:"Keltner Channels",areaLinesNames:["top", "bottom"],nameComponents:["period","periodATR","multiplierATR"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(g);e.registerSeriesType("keltnerchannels",g);"";return g});v(f,"Stock/Indicators/Klinger/KlingerIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),k=e.seriesTypes,p=k.sma,t=k.ema,h=g.correctFloat,d=g.error;k=g.extend;var a=g.isArray,b=g.merge;g=function(c){function l(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;a.volumeSeries=void 0;return a}m(l,c); l.prototype.calculateTrend=function(a,b){return a[b][1]+a[b][2]+a[b][3]>a[b-1][1]+a[b-1][2]+a[b-1][3]?1:-1};l.prototype.isValidData=function(b){var c=this.chart,l=this.options,e=this.linkedParent;b=a(b)&&4===b.length;(c=this.volumeSeries||(this.volumeSeries=c.get(l.params.volumeSeriesID)))||d("Series "+l.params.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,e.chart);return!(![e,c].every(function(a){return a&&a.xData&&a.xData.length>=l.params.slowAvgPeriod})||!b)};l.prototype.getCM=function(a, b,c,l,d){return h(b+(c===l?a:d))};l.prototype.getDM=function(a,b){return h(a-b)};l.prototype.getVolumeForce=function(a){var b=[],c=1;var l=0;var d=a[0][1]-a[0][2];var e=0;for(c;c=b.fastAvgPeriod&&(k=A=this.getEMA(p,k,x,N,0,g,l)[1]),g>=b.slowAvgPeriod&&(m=w=this.getEMA(p, m,C,v,0,g,l)[1],w=h(A-w),f.push(w),f.length>=b.signalPeriod&&(t=f.slice(-b.signalPeriod).reduce(function(a,b){return a+b})/b.signalPeriod),c.push([l[g],w,t]),d.push(l[g]),e.push([w,t]));return{values:c,xData:d,yData:e}}};l.defaultOptions=b(p.defaultOptions,{params:{fastAvgPeriod:34,slowAvgPeriod:55,signalPeriod:13,volumeSeriesID:"volume"},signalLine:{styles:{lineWidth:1,lineColor:"#ff0000"}},dataGrouping:{approximation:"averages"},tooltip:{pointFormat:'\u25cf {series.name}
Klinger: {point.y}
Signal: {point.signal}
'}}); return l}(p);k(g.prototype,{areaLinesNames:[],linesApiNames:["signalLine"],nameBase:"Klinger",nameComponents:["fastAvgPeriod","slowAvgPeriod"],pointArrayMap:["y","signal"],parallelArrays:["x","y","signal"],pointValKey:"y"});f.compose(g);e.registerSeriesType("klinger",g);"";return g});v(f,"Stock/Indicators/MACD/MACDIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var a=function(b,l){a=Object.setPrototypeOf|| {__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,l)};return function(b,l){function c(){this.constructor=b}a(b,l);b.prototype=null===l?Object.create(l):(c.prototype=l.prototype,new c)}}(),k=f.noop,p=e.seriesTypes.sma,t=g.extend,h=g.correctFloat,d=g.defined,a=g.merge;g=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.currentLineZone=void 0;a.graphmacd= void 0;a.graphsignal=void 0;a.macdZones=void 0;a.signalZones=void 0;return a}m(c,b);c.prototype.init=function(){e.seriesTypes.sma.prototype.init.apply(this,arguments);this.options&&(this.options=a({signalLine:{styles:{lineColor:this.color}},macdLine:{styles:{color:this.color}}},this.options),this.macdZones={zones:this.options.macdLine.zones,startIndex:0},this.signalZones={zones:this.macdZones.zones.concat(this.options.signalLine.zones),startIndex:this.macdZones.zones.length},this.resetZones=!0)}; c.prototype.toYData=function(a){return[a.y,a.signal,a.MACD]};c.prototype.translate=function(){var a=this,b=["plotSignal","plotMACD"];f.seriesTypes.column.prototype.translate.apply(a);a.points.forEach(function(c){[c.signal,c.MACD].forEach(function(l,d){null!==l&&(c[b[d]]=a.yAxis.toPixels(l,!0))})})};c.prototype.destroy=function(){this.graph=null;this.graphmacd=this.graphmacd&&this.graphmacd.destroy();this.graphsignal=this.graphsignal&&this.graphsignal.destroy();e.seriesTypes.sma.prototype.destroy.apply(this, arguments)};c.prototype.drawGraph=function(){for(var b=this,c=b.points,h=c.length,f=b.options,g=b.zones,k={options:{gapSize:f.gapSize}},r=[[],[]],n;h--;)n=c[h],d(n.plotMACD)&&r[0].push({plotX:n.plotX,plotY:n.plotMACD,isNull:!d(n.plotMACD)}),d(n.plotSignal)&&r[1].push({plotX:n.plotX,plotY:n.plotSignal,isNull:!d(n.plotMACD)});["macd","signal"].forEach(function(c,l){b.points=r[l];b.options=a(f[c+"Line"].styles,k);b.graph=b["graph"+c];b.currentLineZone=c+"Zones";b.zones=b[b.currentLineZone].zones;e.seriesTypes.sma.prototype.drawGraph.call(b); b["graph"+c]=b.graph});b.points=c;b.options=f;b.zones=g;b.currentLineZone=null};c.prototype.getZonesGraphs=function(a){var c=b.prototype.getZonesGraphs.call(this,a),l=c;this.currentLineZone&&(l=c.splice(this[this.currentLineZone].startIndex+1),l.length?l.splice(0,0,a[0]):l=[a[0]]);return l};c.prototype.applyZones=function(){var a=this.zones;this.zones=this.signalZones.zones;e.seriesTypes.sma.prototype.applyZones.call(this);this.graphmacd&&this.options.macdLine.zones.length&&this.graphmacd.hide(); this.zones=a};c.prototype.getValues=function(a,b){var c=b.longPeriod-b.shortPeriod,l=0,f=[],g=[],r=[];if(!(a.xData.length=b[0][0]&&(f[a][2]=b[l][1],r[a]=[0,b[l][1],f[a][3]],null===f[a][3]?(f[a][1]=0,r[a][0]=0):(f[a][1]=h(f[a][3]-b[l][1]),r[a][0]=h(f[a][3]-b[l][1])),l++);return{values:f,xData:g,yData:r}}};c.defaultOptions=a(p.defaultOptions,{params:{shortPeriod:12,longPeriod:26,signalPeriod:9,period:26},signalLine:{zones:[],styles:{lineWidth:1,lineColor:void 0}},macdLine:{zones:[], styles:{lineWidth:1,lineColor:void 0}},threshold:0,groupPadding:.1,pointPadding:.1,crisp:!1,states:{hover:{halo:{size:0}}},tooltip:{pointFormat:'\u25cf {series.name}
Value: {point.MACD}
Signal: {point.signal}
Histogram: {point.y}
'},dataGrouping:{approximation:"averages"},minPointLength:0});return c}(p);t(g.prototype,{nameComponents:["longPeriod","shortPeriod","signalPeriod"],pointArrayMap:["y","signal","MACD"],parallelArrays:["x","y", "signal","MACD"],pointValKey:"y",markerAttribs:k,getColumnMetrics:f.seriesTypes.column.prototype.getColumnMetrics,crispCol:f.seriesTypes.column.prototype.crispCol,drawPoints:f.seriesTypes.column.prototype.drawPoints});e.registerSeriesType("macd",g);"";return g});v(f,"Stock/Indicators/MFI/MFIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function g(a){return a.reduce(function(a,b){return a+b})}function m(a){return(a[1]+a[2]+a[3])/3}var k=this&&this.__extends|| function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),p=f.seriesTypes.sma,t=e.extend,h=e.merge,d=e.error,a=e.isArray;e=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points= void 0;return a}k(c,b);c.prototype.getValues=function(b,c){var l=c.period,e=b.xData,h=b.yData,f=h?h.length:0,r=c.decimals,n=1,w=b.chart.get(c.volumeSeriesID),q=w&&w.yData,k=[],t=[],p=[],x=[],F=[];if(!w)d("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,b.chart);else if(!(e.length<=l)&&a(h[0])&&4===h[0].length&&q){for(b=m(h[n]);n=c,w=b*q[n],x.push(c?w:0),F.push(c?0:w),n++;for(l=n-1;ln-1&&(x.shift(),F.shift(),c=b,b=m(h[l]),c=b>c,w=b*q[l],x.push(c? w:0),F.push(c?0:w)),c=g(F),w=g(x),c=w/c,c=parseFloat((100-100/(1+c)).toFixed(r)),k.push([e[l],c]),t.push(e[l]),p.push(c);return{values:k,xData:t,yData:p}}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",decimals:4}});return c}(p);t(e.prototype,{nameBase:"Money Flow Index"});f.registerSeriesType("mfi",e);"";return e});v(f,"Stock/Indicators/Momentum/MomentumIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends|| function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,k=e.extend,p=e.isArray,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0; return a}g(d,e);d.prototype.getValues=function(a,b){var c=b.period;b=b.index;var d=a.xData,e=(a=a.yData)?a.length:0,h=[],f=[],g=[],k;if(!(d.length<=c)&&p(a[0])){for(k=c+1;kq?m+b[n]:c===q?m:m-b[n],a=[d[n],m],q=c,h.push(a),f.push(d[n]),g.push(a[1]);return{values:h, xData:f,yData:g}}p("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,a.chart)};a.defaultOptions=h(m.defaultOptions,{marker:{enabled:!1},params:{index:void 0,period:void 0,volumeSeriesID:"volume"},tooltip:{valueDecimals:0}});return a}(m);t(e.prototype,{nameComponents:void 0});f.registerSeriesType("obv",e);"";return e});v(f,"Stock/Indicators/PivotPoints/PivotPointsPoint.js",[f["Core/Series/SeriesRegistry.js"]],function(f){function e(e,g){var k=e.series.pointArrayMap,m=k.length;for(f.seriesTypes.sma.prototype.pointClass.prototype[g].call(e);m--;)g= "dataLabel"+k[m],e[g]&&e[g].element&&e[g].destroy(),e[g]=null}var g=this&&this.__extends||function(){var e=function(f,g){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,h){for(var d in h)h.hasOwnProperty(d)&&(e[d]=h[d])};return e(f,g)};return function(f,g){function k(){this.constructor=f}e(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(f){function k(){var e=null!==f&&f.apply(this,arguments)||this;e.P= void 0;e.pivotLine=void 0;e.series=void 0;return e}g(k,f);k.prototype.destroyElements=function(){e(this,"destroyElements")};k.prototype.destroy=function(){e(this,"destroyElements")};return k}(f.seriesTypes.sma.prototype.pointClass)});v(f,"Stock/Indicators/PivotPoints/PivotPointsIndicator.js",[f["Stock/Indicators/PivotPoints/PivotPointsPoint.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf|| {__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),k=e.seriesTypes.sma,p=g.merge,t=g.extend,h=g.defined,d=g.isArray;g=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;b.endPoint=void 0;b.plotEndPoint=void 0;return b} m(b,a);b.prototype.toYData=function(a){return[a.P]};b.prototype.translate=function(){var a=this;e.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){h(b[c])&&(b["plot"+c]=a.yAxis.toPixels(b[c],!0))})});a.plotEndPoint=a.xAxis.toPixels(a.endPoint,!0)};b.prototype.getGraphPath=function(a){for(var b=this,c=a.length,d=[[],[],[],[],[],[],[],[],[]],f=[],g=b.plotEndPoint,k=b.pointArrayMap.length,r,n,m;c--;){n=a[c];for(m=0;m\u25cf {series.name}
Top: {point.top}
Middle: {point.middle}
Bottom: {point.bottom}
'}, params:{period:20,topBand:.1,bottomBand:.1},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return d}(m);k(e.prototype,{nameComponents:["period","topBand","bottomBand"],nameBase:"Price envelopes",pointArrayMap:["top","middle","bottom"],parallelArrays:["x","y","top","bottom"],pointValKey:"middle"});f.registerSeriesType("priceenvelopes",e);"";return e});v(f,"Stock/Indicators/PSAR/PSARIndicator.js",[f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.sma,k=e.merge;e=e.extend;var p=function(e){function f(){var d=null!==e&&e.apply(this,arguments)|| this;d.data=void 0;d.points=void 0;d.options=void 0;return d}g(f,e);f.prototype.getValues=function(d,a){var b=d.xData;d=d.yData;var c=d[0][1],e=a.maxAccelerationFactor,f=a.increment,h=a.initialAccelerationFactor,g=d[0][2],k=a.decimals,m=a.index,r=[],n=[],t=[],q=1,u;if(!(m>=d.length)){for(u=0;ug?1:-1;a=a.initialAccelerationFactor;var J=a*(c-g);r.push([b[m],g]);n.push(b[m]);t.push(parseFloat(g.toFixed(k)));for(u= m+1;uMath.max(v,F)?g+J:Math.max(v,F):c,m=1===p?C>c?C:c:Ng||-1===q&&C>g?1:-1,q=C,J=m,N=f,x=e,F=h,a=q===p?1===q&&J>c?a===x?x:parseFloat((a+N).toFixed(2)):-1===q&&Jm?(r=a[b-c])?(a[b]-r)/r*100:null:(r=a[b-c][m])?(a[b][m]-r)/r*100:null;r=[d[b],r];f.push(r);h.push(r[0]);g.push(r[1])}return{values:f,xData:h,yData:g}}};d.defaultOptions=p(m.defaultOptions,{params:{index:3,period:9}});return d}(m);e(t.prototype,{nameBase:"Rate of Change"});f.registerSeriesType("roc", t);"";return t});v(f,"Stock/Indicators/RSI/RSIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.sma, k=e.isNumber,p=e.merge;e=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.points=void 0;d.options=void 0;return d}g(f,e);f.prototype.getValues=function(d,a){var b=a.period,c=d.xData,e=d.yData;d=e?e.length:0;var f=a.decimals,h=1,g=[],m=[],t=[],r=a.index,n=a=0,p;if(!(c.length=c-1+(b-1)&&(n=g.seriesTypes.sma.prototype.getValues.call(this,{xData:k.slice(-b),yData:m.slice(-b)},{period:b}),n=n.yData[0]);l.push([d[t],q,n]);m[m.length-1][1]=n}return{values:l,xData:k,yData:m}}};b.defaultOptions=d(p.defaultOptions,{params:{index:void 0,period:void 0,periods:[14,3]},marker:{enabled:!1},tooltip:{pointFormat:'\u25cf {series.name}
%K: {point.y}
%D: {point.smoothed}
'}, smoothedLine:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}});return b}(p);t(m.prototype,{areaLinesNames:[],nameComponents:["periods"],nameBase:"Stochastic",pointArrayMap:["y","smoothed"],parallelArrays:["x","y","smoothed"],pointValKey:"y",linesApiNames:["smoothedLine"]});e.compose(m);g.registerSeriesType("stochastic",m);"";return m});v(f,"Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f, e){var g=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.stochastic,k=f.seriesTypes,p=e.extend,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data= void 0;a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.getValues=function(a,b){var c=b.periods,d=k.stochastic.prototype.getValues.call(this,a,b);a={values:[],xData:[],yData:[]};b=0;if(d){a.xData=d.xData.slice(c[1]-1);d=d.yData.slice(c[1]-1);var e=k.sma.prototype.getValues.call(this,{xData:a.xData,yData:d},{index:1,period:c[2]});if(e){for(var f=a.xData.length;b=C.close&&x.y>=v.close?(A.color=H||b.fallingTrendColor||b.color,p.top.push(I)):A.y=C.close&&x.y=v.close&&(A.color=H||b.risingTrendColor||b.color,x.color=H||b.fallingTrendColor||b.color,p.bottom.push(I),p.bottom.push(c(E,{isNull:!0}))))):C&&(A.y>=C.close?(A.color=H||b.fallingTrendColor||b.color,p.top.push(I)):(A.color=H||b.risingTrendColor||b.color,p.bottom.push(I)));l(p,function(b,d){a.points=b;a.options=c(w[d].styles,t);a.graph=a["graph"+d+"Line"];h.prototype.drawGraph.call(a);a["graph"+ d+"Line"]=a.graph});a.points=f;a.options=b;a.graph=g};f.prototype.getValues=function(c,d){var e=d.period;d=d.multiplier;var f=c.xData,l=c.yData,h=[],g=[],k=[],m=0===e?0:e-1,p=[],w=[],z;if(!(f.length<=e||!b(l[0])||4!==l[0].length||0>e)){c=t.prototype.getValues.call(this,c,{period:e}).yData;for(z=0;zx?e:x;w[z]=H>v||A[3]p[z]||G===v&&y[3]>w[z])I=w[z];h.push([f[m+z],I]);g.push(f[m+z]);k.push(I)}return{values:h,xData:g,yData:k}}};f.defaultOptions=c(h.defaultOptions,{params:{index:void 0,multiplier:3,period:10},risingTrendColor:"#06b535",fallingTrendColor:"#f21313",changeTrendLine:{styles:{lineWidth:1,lineColor:"#333333",dashStyle:"LongDash"}}});return f}(h);p(e.prototype,{nameBase:"Supertrend",nameComponents:["multiplier","period"]});f.registerSeriesType("supertrend", e);"";return e});v(f,"Stock/Indicators/VBP/VBPPoint.js",[f["Core/Series/Point.js"],f["Core/Series/SeriesRegistry.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,g){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var d in f)f.hasOwnProperty(d)&&(e[d]=f[d])};return e(f,g)};return function(f,g){function k(){this.constructor=f}e(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(e){function k(){return null!== e&&e.apply(this,arguments)||this}g(k,e);k.prototype.destroy=function(){this.negativeGraphic&&(this.negativeGraphic=this.negativeGraphic.destroy());return f.prototype.destroy.apply(this,arguments)};return k}(e.seriesTypes.sma.prototype.pointClass)});v(f,"Stock/Indicators/VBP/VBPIndicator.js",[f["Stock/Indicators/VBP/VBPPoint.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"],f["Core/Chart/StockChart.js"]],function(f,e,g,m,k, p){var t=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),h=e.animObject;e=g.noop;var d=m.seriesTypes.sma,a=k.addEvent,b=k.arrayMax,c=k.arrayMin,l=k.correctFloat,w=k.defined,A=k.error,z=k.extend,y=k.isArray, v=k.merge,r=Math.abs,n=m.seriesTypes.column.prototype;k=function(e){function f(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.negWidths=void 0;a.options=void 0;a.points=void 0;a.posWidths=void 0;a.priceZones=void 0;a.rangeStep=void 0;a.volumeDataArray=void 0;a.zoneStarts=void 0;a.zoneLinesSVG=void 0;return a}t(f,e);f.prototype.init=function(b){var c=this,d,e,f;g.seriesTypes.sma.prototype.init.apply(c,arguments);var l=a(p,"afterLinkSeries",function(){c.options&&(d=c.options.params, e=c.linkedParent,f=b.get(d.volumeSeriesID),c.addCustomEvents(e,f));l()},{order:1});return c};f.prototype.addCustomEvents=function(b,c){function d(){e.chart.redraw();e.setData([]);e.zoneStarts=[];e.zoneLinesSVG&&(e.zoneLinesSVG=e.zoneLinesSVG.destroy())}var e=this;e.dataEventsToUnbind.push(a(b,"remove",function(){d()}));c&&e.dataEventsToUnbind.push(a(c,"remove",function(){d()}));return e};f.prototype.animate=function(a){var b=this,c=b.chart.inverted,d=b.group,e={};!a&&d&&(a=c?b.yAxis.top:b.xAxis.left, c?(d["forceAnimate:translateY"]=!0,e.translateY=a):(d["forceAnimate:translateX"]=!0,e.translateX=a),d.animate(e,z(h(b.options.animation),{step:function(a,c){b.group.attr({scaleX:Math.max(.001,c.pos)})}})))};f.prototype.drawPoints=function(){this.options.volumeDivision.enabled&&(this.posNegVolume(!0,!0),n.drawPoints.apply(this,arguments),this.posNegVolume(!1,!1));n.drawPoints.apply(this,arguments)};f.prototype.posNegVolume=function(a,b){var c=b?["positive","negative"]:["negative","positive"],d=this.options.volumeDivision, e=this.points.length,f=[],l=[],h=0,g;a?(this.posWidths=f,this.negWidths=l):(f=this.posWidths,l=this.negWidths);for(;hc.pointPadding?c.pointPadding:.1;c=a.volumeDataArray;var z=b(c);var y=d.plotWidth/2;var A=d.plotTop;var B=r(e.toPixels(f)-e.toPixels(f+a.rangeStep));var v=r(e.toPixels(f)-e.toPixels(f+a.rangeStep));w&&(f=r(B*(1-2*w)),k=r((B-f)/2),B=r(f));p.forEach(function(b,c){q=b.barX=b.plotX=0;t=b.plotY=e.toPixels(g[c].start)- A-(e.reversed?B-v:B)-k;m=l(y*g[c].wholeVolumeData/z);b.pointWidth=m;b.shapeArgs=a.crispCol.apply(a,[q,t,m,B]);b.volumeNeg=g[c].negativeVolumeData;b.volumePos=g[c].positiveVolumeData;b.volumeAll=g[c].wholeVolumeData});h.enabled&&a.drawZones(d,e,a.zoneStarts,h.styles)}};f.prototype.getValues=function(a,b){var c=a.processedXData,d=a.processedYData,e=this.chart,f=b.ranges,l=[],h=[],g=[],n;if(a.chart)if(n=e.get(b.volumeSeriesID))if((b=y(d[0]))&&4!==d[0].length)A("Type of "+a.name+" series is different than line, OHLC or candlestick.", !0,e);else return(this.priceZones=this.specifyZones(b,c,d,f,n)).forEach(function(a,b){l.push([a.x,a.end]);h.push(l[b][0]);g.push(l[b][1])}),{values:l,xData:h,yData:g};else A("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,e);else A("Base series not found! In case it has been removed, add a new one.",!0,e)};f.prototype.specifyZones=function(a,d,e,f,h){if(a){var g=e.length;for(var n=e[0][3],k=n,m=1,r;mk&&(k=r);g={min:n,max:k}}else g=!1;g=(n=g)?n.min: c(e);r=n?n.max:b(e);n=this.zoneStarts=[];k=[];var q=0;m=1;var t=this.linkedParent;!this.options.compareToMain&&t.dataModify&&(g=t.dataModify.modifyValue(g),r=t.dataModify.modifyValue(r));if(!w(g)||!w(r))return this.points.length&&(this.setData([]),this.zoneStarts=[],this.zoneLinesSVG&&(this.zoneLinesSVG=this.zoneLinesSVG.destroy())),[];t=this.rangeStep=l(r-g)/f;for(n.push(g);q=b.end&&b.index===g&&(q=!0);(t>b.start||m)&&(tt?b.negativeVolumeData+=h[p]:b.positiveVolumeData+=h[p])}f.volumeDataArray.push(b.wholeVolumeData)});return b};f.prototype.drawZones=function(a,b,c,d){var e=a.renderer,f=this.zoneLinesSVG,l=[],h=a.plotWidth,g=a.plotTop,n;c.forEach(function(c){n=b.toPixels(c)-g;l=l.concat(a.renderer.crispLine([["M",0,n],["L",h,n]],d.lineWidth))});f?f.animate({d:l}):f=this.zoneLinesSVG=e.path(l).attr({"stroke-width":d.lineWidth, stroke:d.color,dashstyle:d.dashStyle,zIndex:this.group.zIndex+.1}).add(this.group)};f.defaultOptions=v(d.defaultOptions,{params:{index:void 0,period:void 0,ranges:12,volumeSeriesID:"volume"},zoneLines:{enabled:!0,styles:{color:"#0A9AC9",dashStyle:"LongDash",lineWidth:1}},volumeDivision:{enabled:!0,styles:{positiveColor:"rgba(144, 237, 125, 0.8)",negativeColor:"rgba(244, 91, 91, 0.8)"}},animationLimit:1E3,enableMouseTracking:!1,pointPadding:0,zIndex:-1,crisp:!0,dataGrouping:{enabled:!1},dataLabels:{allowOverlap:!0, enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"7px"},verticalAlign:"top"}});return f}(d);z(k.prototype,{nameBase:"Volume by Price",nameComponents:["ranges"],calculateOn:{chart:"render",xAxis:"afterSetExtremes"},pointClass:f,markerAttribs:e,drawGraph:e,getColumnMetrics:n.getColumnMetrics,crispCol:n.crispCol});m.registerSeriesType("vbp",k);"";return k});v(f,"Stock/Indicators/VWAP/VWAPIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]], function(f,e){var g=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,k=e.error,p=e.isArray,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data= void 0;a.points=void 0;a.options=void 0;return a}g(d,e);d.prototype.getValues=function(a,b){var c=a.chart,d=a.xData;a=a.yData;var e=b.period,f=!0,h;if(h=c.get(b.volumeSeriesID))return p(a[0])||(f=!1),this.calculateVWAPValues(f,d,a,h,e);k("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,c)};d.prototype.calculateVWAPValues=function(a,b,c,d,e){var f=d.yData,l=d.xData.length,h=b.length;d=[];var g=[],k=[],n=[],m=[],q;l=h<=l?h:l;for(q=h=0;hq?a[f]:a[f][q]]),f++;for(b=f;bq?a[b]:a[b][q]]);f=m(c,d,a,b);k.push(f);n.push(f[0]);p.push(f[1]);return{values:k,xData:n,yData:p}}};a.defaultOptions=h(p.defaultOptions,{params:{index:3,period:9}});return a}(p);f.registerSeriesType("wma",e);"";return e});v(f,"Stock/Indicators/Zigzag/ZigzagIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&& this.__extends||function(){var e=function(f,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.sma,k=e.merge;e=e.extend;var p=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.points=void 0;d.options= void 0;return d}g(f,e);f.prototype.getValues=function(d,a){var b=a.lowIndex,c=a.highIndex,e=a.deviation/100;a=1+e;var f=1-e;e=d.xData;var h=d.yData;d=h?h.length:0;var g=[],k=[],m=[],r,n,t=!1,q=!1;if(!(!e||1>=e.length||d&&("undefined"===typeof h[0][b]||"undefined"===typeof h[0][c]))){var p=h[0][b];var v=h[0][c];for(r=1;r=p*a&&(g.push([e[0],p]),x=[e[r],h[r][c]],n=!1,t=!0);if(t){k.push(g[0][0]);m.push(g[0][1]);var M=r++; r=d}}for(r=M;r=x[1]*a&&(q=c)):(h[r][c]>=x[1]&&(x=[e[r],h[r][c]]),h[r][b]<=x[1]*f&&(q=b)),!1!==q&&(g.push(x),k.push(x[0]),m.push(x[1]),x=[e[r],h[r][q]],n=!n,q=!1);b=g.length;0!==b&&g[b-1][0]\u25cf{series.name}: {point.y}\u00b0
'}});return f}(m);k(e.prototype,{nameBase:"Linear Regression Angle Indicator"});f.registerSeriesType("linearRegressionAngle",e);"";return e});v(f,"Stock/Indicators/ABands/ABandsIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"], f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=e.seriesTypes.sma,p=g.correctFloat,t=g.extend,h=g.merge;g=function(d){function a(){var a= null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}m(a,d);a.prototype.getValues=function(a,c){var b=c.period,e=c.factor;c=c.index;var f=a.xData,h=(a=a.yData)?a.length:0,g=[],k=[],m=[],n=[],t=[],q;if(!(h=b){u=f.slice(q-b,q);var M=a.slice(q-b,q);x=d.prototype.getValues.call(this,{xData:u,yData:g.slice(q-b,q)}, {period:b});v=d.prototype.getValues.call(this,{xData:u,yData:k.slice(q-b,q)},{period:b});M=d.prototype.getValues.call(this,{xData:u,yData:M},{period:b,index:c});u=M.xData[0];x=x.yData[0];v=v.yData[0];M=M.yData[0];m.push([u,x,M,v]);n.push(u);t.push([x,M,v])}}return{values:m,xData:n,yData:t}}};a.defaultOptions=h(k.defaultOptions,{params:{period:20,factor:.001,index:3},lineWidth:1,topLine:{styles:{lineWidth:1}},bottomLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return a}(k); t(g.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameBase:"Acceleration Bands",nameComponents:["period","factor"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(g);e.registerSeriesType("abands",g);"";return g});v(f,"Stock/Indicators/TrendLine/TrendLineIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,k=e.extend,p=e.merge,t=e.isArray;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.getValues=function(a,b){var c=a.xData,d=a.yData;a=[]; var e=[],f=[],g=0,h=0,k=0,m=0,n=c.length,p=b.index;for(b=0;b