text: "use strict";!function(t){"object"==typeof module&&module.exports?module.exports=t.default=t:"function"==typeof define&&define.amd?define("highcharts/indicators/ppo",["highcharts","highcharts/modules/stock"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){var t=e?e._modules:{};function r(e,t,r,i){e.hasOwnProperty(t)||(e[t]=i.apply(null,r))}r(t,"mixins/indicator-required.js",[t["parts/Globals.js"]],function(e){var a=e.error;return{isParentLoaded:function(e,t,r,i,o){return e?!i||i(e):(a(o||this.generateMessage(r,t)),!1)},generateMessage:function(e,t){return'Error: "'+e+'" indicator type requires "'+t+'" indicator loaded before. Please read docs: https://api.highcharts.com/highstock/plotOptions.'+e}}}),r(t,"indicators/ppo.src.js",[t["parts/Globals.js"],t["mixins/indicator-required.js"]],function(e,t){var h=e.seriesTypes.ema,l=e.error,f=e.correctFloat,i=t;e.seriesType("ppo","ema",{params:{periods:[12,26]}},{nameBase:"PPO",nameComponents:["periods"],init:function(){var t=arguments,r=this;i.isParentLoaded(h,"ema",r.type,function(e){e.prototype.init.apply(r,t)})},getValues:function(e,t){var r,i,o,a,s,n=t.periods,p=t.index,d=[],c=[],u=[];if(2!==n.length||n[1]<=n[0])return l('Error: "PPO requires two periods. Notice, first period should be lower than the second one."'),!1;if(i=h.prototype.getValues.call(this,e,{index:p,period:n[0]}),o=h.prototype.getValues.call(this,e,{index:p,period:n[1]}),!i||!o)return!1;for(r=n[1]-n[0],s=0;s<o.yData.length;s++)a=f((i.yData[s+r]-o.yData[s])/o.yData[s]*100),d.push([o.xData[s],a]),c.push(o.xData[s]),u.push(a);return{values:d,xData:c,yData:u}}})}),r(t,"masters/indicators/ppo.src.js",[],function(){})});