aroon-oscillator.js 3.3 KB

1234567891011121314151617
  1. /*
  2. Highstock JS v8.2.0 (2020-08-20)
  3. Indicator series type for Highstock
  4. (c) 2010-2019 Wojciech Chmiel
  5. License: www.highcharts.com/license
  6. */
  7. (function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/indicators/aroon-oscillator",["highcharts","highcharts/modules/stock"],function(e){a(e);a.Highcharts=e;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function e(a,d,g,f){a.hasOwnProperty(d)||(a[d]=f.apply(null,g))}a=a?a._modules:{};e(a,"Mixins/MultipleLines.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,d){var g=
  8. d.defined,f=d.error,e=d.merge,h=a.seriesTypes.sma;return{pointArrayMap:["top","bottom"],pointValKey:"top",linesApiNames:["bottomLine"],getTranslatedLinesNames:function(b){var a=[];(this.pointArrayMap||[]).forEach(function(c){c!==b&&a.push("plot"+c.charAt(0).toUpperCase()+c.slice(1))});return a},toYData:function(b){var a=[];(this.pointArrayMap||[]).forEach(function(c){a.push(b[c])});return a},translate:function(){var b=this,a=b.pointArrayMap,f=[],g;f=b.getTranslatedLinesNames();h.prototype.translate.apply(b,
  9. arguments);b.points.forEach(function(c){a.forEach(function(a,d){g=c[a];null!==g&&(c[f[d]]=b.yAxis.toPixels(g,!0))})})},drawGraph:function(){var b=this,a=b.linesApiNames,d=b.points,n=d.length,l=b.options,q=b.graph,p={options:{gapSize:l.gapSize}},m=[],k;b.getTranslatedLinesNames(b.pointValKey).forEach(function(a,b){for(m[b]=[];n--;)k=d[n],m[b].push({x:k.x,plotX:k.plotX,plotY:k[a],isNull:!g(k[a])});n=d.length});a.forEach(function(a,c){m[c]?(b.points=m[c],l[a]?b.options=e(l[a].styles,p):f('Error: "There is no '+
  10. a+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names." at mixin/multiple-line.js:34'),b.graph=b["graph"+a],h.prototype.drawGraph.call(b),b["graph"+a]=b.graph):f('Error: "'+a+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")});b.points=d;b.options=l;b.graph=q;h.prototype.drawGraph.call(b)}}});e(a,"Mixins/IndicatorRequired.js",[a["Core/Utilities.js"]],function(a){var d=a.error;return{isParentLoaded:function(a,
  11. f,e,h,b){if(a)return h?h(a):!0;d(b||this.generateMessage(e,f));return!1},generateMessage:function(a,d){return'Error: "'+a+'" indicator type requires "'+d+'" indicator loaded before. Please read docs: https://api.highcharts.com/highstock/plotOptions.'+a}}});e(a,"Stock/Indicators/AroonOscillatorIndicator.js",[a["Core/Globals.js"],a["Mixins/MultipleLines.js"],a["Mixins/IndicatorRequired.js"],a["Core/Utilities.js"]],function(a,d,e,f){var g=f.merge;f=f.seriesType;var h=a.seriesTypes.aroon;f("aroonoscillator",
  12. "aroon",{params:{period:25},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b>: {point.y}'}},g(d,{nameBase:"Aroon Oscillator",pointArrayMap:["y"],pointValKey:"y",linesApiNames:[],init:function(){var a=arguments,c=this;e.isParentLoaded(h,"aroon",c.type,function(b){b.prototype.init.apply(c,a)})},getValues:function(a,c){var b=[],d=[],f=[];a=h.prototype.getValues.call(this,a,c);for(c=0;c<a.yData.length;c++){var e=a.yData[c][0];var g=a.yData[c][1];e-=g;b.push([a.xData[c],
  13. e]);d.push(a.xData[c]);f.push(e)}return{values:b,xData:d,yData:f}}}));""});e(a,"masters/indicators/aroon-oscillator.src.js",[],function(){})});
  14. //# sourceMappingURL=aroon-oscillator.js.map