Sha256: fceb82b93ec0c02da8fece770dfe3a305f40f045d4c962fa6d8703a684fc96b9
Contents?: true
Size: 945 Bytes
Versions: 1
Compression:
Stored size: 945 Bytes
Contents
/* Highcharts JS v7.0.3 (2019-02-06) Indicator series type for Highstock (c) 2010-2019 Wojciech Chmiel License: www.highcharts.com/license */ (function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define(function(){return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){(function(a){function n(m,b,a,h,k){b=p(b[a][h],b[a]);return k?l(m-b):l(m+b)}var l=a.correctFloat,p=a.pick;a.seriesType("dpo","sma",{params:{period:21}},{nameBase:"DPO",getValues:function(a,b){var g=b.period;b=b.index;var h=g+Math.floor(g/2+1),k=a.xData||[];a=a.yData||[];var m=a.length, l=[],q=[],r=[],d=0,e,c,f;if(k.length<=h)return!1;for(c=0;c<g-1;c++)d=n(d,a,c,b);for(f=0;f<=m-h;f++)e=f+g-1,c=f+h-1,d=n(d,a,e,b),e=p(a[c][b],a[c]),e-=d/g,d=n(d,a,f,b,!0),l.push([k[c],e]),q.push(k[c]),r.push(e);return{values:l,xData:q,yData:r}}})})(a)}); //# sourceMappingURL=dpo.js.map
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aw-highstock_rails-7.0.3 | vendor/assets/javascripts/highstock/indicators/dpo.js |