| @@ -1,11 +1,11 @@ | ||
| /* | ||
| Highcharts JS v6.0.4 (2017-12-15) | ||
| Highcharts JS v6.0.5 (2018-01-31) | ||
| Money Flow Index indicator for Highstock | ||
| (c) 2010-2017 Grzegorz Blachliski | ||
| License: www.highcharts.com/license | ||
| */ | ||
| (function(e){"object"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(e){function p(b){return b.reduce(function(c,b){return c+b})}function m(b){return(b[1]+b[2]+b[3])/3}var u=e.isArray;e.seriesType("mfi","sma",{name:"Money Flow Index (14)",params:{period:14,volumeSeriesID:"volume",decimals:4}},{getValues:function(b,c){var d=c.period,n=b.xData,g=b.yData,v=g?g.length:0,w=c.decimals,h=1,a=b.chart.get(c.volumeSeriesID);b=a&&a.yData;var q=[],r=[],t=[],k=[],l=[],f; | ||
| (function(e){"object"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(e){function p(b){return b.reduce(function(c,b){return c+b})}function m(b){return(b[1]+b[2]+b[3])/3}var u=e.isArray;e.seriesType("mfi","sma",{params:{period:14,volumeSeriesID:"volume",decimals:4}},{nameBase:"Money Flow Index",getValues:function(b,c){var d=c.period,n=b.xData,g=b.yData,v=g?g.length:0,w=c.decimals,h=1,a=b.chart.get(c.volumeSeriesID);b=a&&a.yData;var q=[],r=[],t=[],k=[],l=[],f; | ||
| if(!a)return e.error("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0);if(n.length<=d||!u(g[0])||4!==g[0].length||!b)return!1;for(c=m(g[h]);h<d+1;)a=c,c=m(g[h]),a=c>=a?!0:!1,f=c*b[h],k.push(a?f:0),l.push(a?0:f),h++;for(d=h-1;d<v;d++)d>h-1&&(k.shift(),l.shift(),a=c,c=m(g[d]),a=c>a?!0:!1,f=c*b[d],k.push(a?f:0),l.push(a?0:f)),a=p(l),f=p(k),a=f/a,a=parseFloat((100-100/(1+a)).toFixed(w)),q.push([n[d],a]),r.push(n[d]),t.push(a);return{values:q,xData:r,yData:t}}})})(e)}); |
| @@ -1,11 +1,11 @@ | ||
| /* | ||
| Highcharts JS v6.0.4 (2017-12-15) | ||
| Highcharts JS v6.0.5 (2018-01-31) | ||
| Indicator series type for Highstock | ||
| (c) 2010-2017 Sebastian Bochan | ||
| License: www.highcharts.com/license | ||
| */ | ||
| (function(a){"object"===typeof module&&module.exports?module.exports=a:a(Highcharts)})(function(a){(function(a){function m(n,b,a,e,c){a=a[e-1][3]-a[e-c-1][3];b=b[e-1];n.shift();return[b,a]}var p=a.isArray;a=a.seriesType;a("momentum","sma",{name:"Momentum (14)",params:{period:14}},{getValues:function(a,b){b=b.period;var f=a.xData,e=(a=a.yData)?a.length:0,c=f[0],g=[],h=[],k=[],l,d;if(f.length<=b||!p(a[0]))return!1;l=[[c,a[0][3]]];for(c=b+1;c<e;c++)d=m(l,f,a,c,b,void 0),g.push(d),h.push(d[0]),k.push(d[1]); | ||
| (function(a){"object"===typeof module&&module.exports?module.exports=a:a(Highcharts)})(function(a){(function(a){function m(n,b,a,e,c){a=a[e-1][3]-a[e-c-1][3];b=b[e-1];n.shift();return[b,a]}var p=a.isArray;a=a.seriesType;a("momentum","sma",{params:{period:14}},{nameBase:"Momentum",getValues:function(a,b){b=b.period;var f=a.xData,e=(a=a.yData)?a.length:0,c=f[0],g=[],h=[],k=[],l,d;if(f.length<=b||!p(a[0]))return!1;l=[[c,a[0][3]]];for(c=b+1;c<e;c++)d=m(l,f,a,c,b,void 0),g.push(d),h.push(d[0]),k.push(d[1]); | ||
| d=m(l,f,a,c,b,void 0);g.push(d);h.push(d[0]);k.push(d[1]);return{values:g,xData:h,yData:k}}})})(a)}); |
| @@ -1,11 +1,11 @@ | ||
| /* | ||
| Highcharts JS v6.0.4 (2017-12-15) | ||
| Highcharts JS v6.0.5 (2018-01-31) | ||
| Indicator series type for Highstock | ||
| (c) 2010-2017 Kacper Madej | ||
| License: www.highcharts.com/license | ||
| */ | ||
| (function(b){"object"===typeof module&&module.exports?module.exports=b:b(Highcharts)})(function(b){(function(b){var f=b.seriesType,m=b.isArray;f("roc","sma",{name:"Rate of Change (9)",params:{index:3,period:9}},{getValues:function(d,c){var b=c.period,g=d.xData,f=(d=d.yData)?d.length:0,h=[],k=[],l=[],e=-1,a;if(g.length<=b)return!1;m(d[0])&&(e=c.index);for(c=b;c<f;c++)a=0>e?(a=d[c-b])?(d[c]-a)/a*100:null:(a=d[c-b][e])?(d[c][e]-a)/a*100:null,a=[g[c],a],h.push(a),k.push(a[0]),l.push(a[1]);return{values:h, | ||
| xData:k,yData:l}}})})(b)}); | ||
| (function(b){"object"===typeof module&&module.exports?module.exports=b:b(Highcharts)})(function(b){(function(b){var f=b.seriesType,m=b.isArray;f("roc","sma",{name:"Rate of Change (9)",params:{index:3,period:9}},{nameBase:"Rate of Change",getValues:function(d,c){var b=c.period,g=d.xData,f=(d=d.yData)?d.length:0,h=[],k=[],l=[],e=-1,a;if(g.length<=b)return!1;m(d[0])&&(e=c.index);for(c=b;c<f;c++)a=0>e?(a=d[c-b])?(d[c]-a)/a*100:null:(a=d[c-b][e])?(d[c][e]-a)/a*100:null,a=[g[c],a],h.push(a),k.push(a[0]), | ||
| l.push(a[1]);return{values:h,xData:k,yData:l}}})})(b)}); |
| @@ -1,11 +1,11 @@ | ||
| /* | ||
| Highcharts JS v6.0.4 (2017-12-15) | ||
| Highcharts JS v6.0.5 (2018-01-31) | ||
| Indicator series type for Highstock | ||
| (c) 2010-2017 Pawe Fus | ||
| License: www.highcharts.com/license | ||
| */ | ||
| (function(a){"object"===typeof module&&module.exports?module.exports=a:a(Highcharts)})(function(a){(function(a){var q=a.isArray;a.seriesType("rsi","sma",{name:"RSI (14)",params:{period:14,decimals:4}},{getValues:function(b,c){var e=c.period,a=b.xData,r=(b=b.yData)?b.length:0;c=c.decimals;var d=1,m=[],n=[],p=[],f=0,h=0,g,k,l;if(a.length<e||!q(b[0])||4!==b[0].length)return!1;for(;d<e;)g=parseFloat((b[d][3]-b[d-1][3]).toFixed(c)),0<g?f+=g:h+=Math.abs(g),d++;k=parseFloat((f/(e-1)).toFixed(c));for(l=parseFloat((h/ | ||
| (e-1)).toFixed(c));d<r;d++)g=parseFloat((b[d][3]-b[d-1][3]).toFixed(c)),0<g?(f=g,h=0):(f=0,h=Math.abs(g)),k=parseFloat(((k*(e-1)+f)/e).toFixed(c)),l=parseFloat(((l*(e-1)+h)/e).toFixed(c)),f=0===l?100:0===k?0:parseFloat((100-100/(1+k/l)).toFixed(c)),m.push([a[d],f]),n.push(a[d]),p.push(f);return{values:m,xData:n,yData:p}}})})(a)}); | ||
| (function(a){"object"===typeof module&&module.exports?module.exports=a:a(Highcharts)})(function(a){(function(a){var q=a.isArray;a.seriesType("rsi","sma",{params:{period:14,decimals:4}},{getValues:function(b,c){var e=c.period,a=b.xData,r=(b=b.yData)?b.length:0;c=c.decimals;var d=1,m=[],n=[],p=[],f=0,h=0,g,k,l;if(a.length<e||!q(b[0])||4!==b[0].length)return!1;for(;d<e;)g=parseFloat((b[d][3]-b[d-1][3]).toFixed(c)),0<g?f+=g:h+=Math.abs(g),d++;k=parseFloat((f/(e-1)).toFixed(c));for(l=parseFloat((h/(e- | ||
| 1)).toFixed(c));d<r;d++)g=parseFloat((b[d][3]-b[d-1][3]).toFixed(c)),0<g?(f=g,h=0):(f=0,h=Math.abs(g)),k=parseFloat(((k*(e-1)+f)/e).toFixed(c)),l=parseFloat(((l*(e-1)+h)/e).toFixed(c)),f=0===l?100:0===k?0:parseFloat((100-100/(1+k/l)).toFixed(c)),m.push([a[d],f]),n.push(a[d]),p.push(f);return{values:m,xData:n,yData:p}}})})(a)}); |