st-comp 0.0.147 → 0.0.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.d.ts +3 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +26 -22
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +112 -103
- package/es/Kline.cjs +1 -0
- package/es/Kline.js +1901 -0
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +675 -1422
- package/es/KlineNew.cjs +1 -3
- package/es/KlineNew.js +314 -2736
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +102 -96
- package/es/Table.cjs +1 -1
- package/es/Table.js +66 -60
- package/es/User.cjs +1 -1
- package/es/User.js +102 -95
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +41 -32
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +2801 -1
- package/es/{_initCloneObject-a8dcd058.js → _initCloneObject-14b53c6f.js} +26 -26
- package/es/_initCloneObject-441db749.cjs +1 -0
- package/es/{base-674a354a.js → base-437d17f3.js} +64 -63
- package/es/{base-00ce90ec.cjs → base-ec05f348.cjs} +3 -3
- package/es/castArray-4251bbe4.js +10 -0
- package/es/castArray-a45823fe.cjs +1 -0
- package/es/config-provider-55482a43.js +47 -0
- package/es/config-provider-7cdfca4d.cjs +1 -0
- package/es/debounce-ac30be50.js +83 -0
- package/es/debounce-b2ff12bd.cjs +1 -0
- package/es/{dropdown-ce30ada6.js → dropdown-634b5e27.js} +31 -30
- package/es/dropdown-d7c59a21.cjs +1 -0
- package/es/el-button-196807af.cjs +1 -0
- package/es/el-button-e1665717.js +235 -0
- package/es/el-checkbox-group-492b95cc.cjs +1 -0
- package/es/{el-checkbox-group-0554b352.js → el-checkbox-group-e8fece80.js} +10 -10
- package/es/{el-empty-87154b6d.cjs → el-empty-19ea04f4.cjs} +1 -1
- package/es/{el-empty-39b3aed7.js → el-empty-bacc6613.js} +5 -5
- package/es/el-form-item-5bdffd07.cjs +12 -0
- package/es/{el-form-item-fc6f80ab.js → el-form-item-af1855f0.js} +79 -78
- package/es/el-input-23e2bac3.cjs +1 -0
- package/es/{el-input-d249ac86.js → el-input-4961b99f.js} +84 -82
- package/es/el-input-number-40a81eb5.cjs +1 -0
- package/es/{el-input-number-2066fbb7.js → el-input-number-610fc8ba.js} +36 -35
- package/es/el-menu-item-78b858f2.cjs +1 -0
- package/es/el-menu-item-7d04c11a.js +771 -0
- package/es/{el-message-9859835d.js → el-message-c3b3ac96.js} +81 -79
- package/es/el-message-d4df8136.cjs +1 -0
- package/es/el-overlay-12dd9b35.js +519 -0
- package/es/el-overlay-bc0790a2.cjs +1 -0
- package/es/{el-popover-b7b43c1f.js → el-popover-0aa071f2.js} +18 -18
- package/es/el-popover-8a77e015.cjs +1 -0
- package/es/el-popper-50100766.js +2262 -0
- package/es/el-popper-746070ba.cjs +1 -0
- package/es/el-scrollbar-562d0595.js +201 -0
- package/es/el-scrollbar-d1c3e7f7.cjs +1 -0
- package/es/{el-select-bcbb7e55.js → el-select-9381b156.js} +333 -329
- package/es/el-select-b162dffc.cjs +1 -0
- package/es/{el-table-column-c1e1a206.js → el-table-column-55bffba5.js} +350 -346
- package/es/el-table-column-6d761fce.cjs +14 -0
- package/es/el-tag-985d9aff.js +279 -0
- package/es/el-tag-c51a6490.cjs +1 -0
- package/es/index-09e01b1d.js +81 -0
- package/es/index-0cb48e01.js +306 -0
- package/es/{index-45de4a12.js → index-39ec9741.js} +7 -7
- package/es/index-3bf8d597.cjs +1 -0
- package/es/index-657047bb.js +513 -0
- package/es/index-8a0b1c53.cjs +3 -0
- package/es/index-a387515d.cjs +1 -0
- package/es/index-a902a0d9.js +59 -0
- package/es/index-deb8de52.cjs +1 -0
- package/es/index-eea0bcb3.cjs +1 -0
- package/es/index.esm-8d9a2abe.js +2432 -0
- package/es/index.esm-94a95a2a.cjs +3 -0
- package/es/raf-8fc301fd.cjs +1 -0
- package/es/raf-b128c7b7.js +6 -0
- package/es/{scroll-cb696ed2.js → scroll-387fcfdb.js} +1 -1
- package/es/{scroll-cca17da0.cjs → scroll-41224831.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/typescript-7ae59c4c.js +4 -0
- package/es/typescript-b63f8e83.cjs +1 -0
- package/es/use-form-common-props-1b84d8f4.cjs +2 -0
- package/es/use-form-common-props-f377e500.js +587 -0
- package/es/vnode-7dfd4ed5.js +14 -0
- package/es/vnode-7fbc61e1.cjs +1 -0
- package/es/{zh-cn-37af467d.cjs → zh-cn-ab9a583d.cjs} +1 -1
- package/es/{zh-cn-ef7d7220.js → zh-cn-eb9c2820.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +206 -206
- package/lib/{index-24f8572c.js → index-d2de454d.js} +33249 -31372
- package/lib/{python-2143eee4.js → python-22975586.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/Kline/components/Contextmenu/index.vue +110 -0
- package/packages/Kline/components/Tips/index.vue +40 -0
- package/packages/Kline/componentsNew/KlineSlide/index.vue +155 -0
- package/packages/Kline/componentsNew/KlineSub/index.vue +297 -0
- package/packages/Kline/componentsNew/KlineTips/index.vue +66 -0
- package/packages/Kline/componentsNew/KlineUtils/index.vue +84 -0
- package/packages/Kline/componentsNew/Tips/index.vue +33 -0
- package/packages/Kline/formatKlineData.ts +109 -0
- package/packages/Kline/images/buy.svg +1 -0
- package/packages/Kline/images/pen.png +0 -0
- package/packages/Kline/images/sell.svg +1 -0
- package/packages/Kline/images/t.svg +1 -0
- package/packages/Kline/index.ts +16 -0
- package/packages/Kline/index.vue +891 -0
- package/packages/Kline/option.ts +539 -0
- package/packages/Kline/type.d.ts +219 -0
- package/packages/Kline/utils.ts +682 -0
- package/packages/KlineBasic/utils.js +1 -1
- package/packages/index.ts +2 -0
- package/src/pages/Kline/index.vue +12 -0
- package/src/router/routes.ts +5 -0
- package/es/_initCloneObject-7493ecd5.cjs +0 -1
- package/es/config-provider-419ffbf2.js +0 -120
- package/es/config-provider-68414290.cjs +0 -3
- package/es/dropdown-127a8c0d.cjs +0 -1
- package/es/el-button-7b9f5933.js +0 -745
- package/es/el-button-c00975e1.cjs +0 -1
- package/es/el-checkbox-group-7a313d34.cjs +0 -1
- package/es/el-form-item-7867f64d.cjs +0 -12
- package/es/el-input-2ff1628c.cjs +0 -1
- package/es/el-input-number-d6801a5c.cjs +0 -1
- package/es/el-message-ffcf690c.cjs +0 -1
- package/es/el-overlay-91784be2.cjs +0 -1
- package/es/el-overlay-f0757cc4.js +0 -525
- package/es/el-popover-4db657e2.cjs +0 -1
- package/es/el-scrollbar-35bac6b3.js +0 -2452
- package/es/el-scrollbar-ec09bbd3.cjs +0 -1
- package/es/el-select-0785c35a.cjs +0 -1
- package/es/el-table-column-2478adf8.cjs +0 -14
- package/es/el-tag-13ee17b3.cjs +0 -1
- package/es/el-tag-73372c6c.js +0 -359
- package/es/index-07b61d12.cjs +0 -1
- package/es/index-65b719a4.cjs +0 -1
- package/es/index-8b5fbc11.js +0 -66
- package/es/index-8c85d7c5.js +0 -858
- package/es/index-a49f4743.cjs +0 -2
package/es/KlineNew.cjs
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
"use strict";const A=require("vue"),ye=require("./_plugin-vue_export-helper-f246444f.cjs"),ln=require("./index-a96158ae.cjs");require("./base-00ce90ec.cjs");require("./el-tag-13ee17b3.cjs");const rn=require("./el-select-0785c35a.cjs");require("./el-scrollbar-ec09bbd3.cjs");const jo=require("echarts");require("./index-07b61d12.cjs");require("./index-a49f4743.cjs");require("./index-65b719a4.cjs");require("./scroll-cca17da0.cjs");function qo(n){const y=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const S=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(y,e,S.get?S:{enumerable:!0,get:()=>n[e]})}}return y.default=n,Object.freeze(y)}const we=qo(jo);var xe=function(){var n=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(n=n||__filename),function(y){y=y||{};var e=typeof y<"u"?y:{},S,G;e.ready=new Promise(function(t,i){S=t,G=i});var O={},C;for(C in e)e.hasOwnProperty(C)&&(O[C]=e[C]);var g=function(t,i){throw i},_=!1,D=!1,b=!1,R=!1;_=typeof window=="object",D=typeof importScripts=="function",b=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",R=!_&&!b&&!D;var u="";function l(t){return e.locateFile?e.locateFile(t,u):u+t}var p,s,T,v;b?(D?u=require("path").dirname(u)+"/":u=__dirname+"/",p=function(i,r){return T||(T=require("fs")),v||(v=require("path")),i=v.normalize(i),T.readFileSync(i,r?null:"utf8")},s=function(i){var r=p(i,!0);return r.buffer||(r=new Uint8Array(r)),h(r.buffer),r},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",function(t){if(!(t instanceof Se))throw t}),process.on("unhandledRejection",pe),g=function(t){process.exit(t)},e.inspect=function(){return"[Emscripten Module object]"}):R?(typeof read<"u"&&(p=function(i){return read(i)}),s=function(i){var r;return typeof readbuffer=="function"?new Uint8Array(readbuffer(i)):(r=read(i,"binary"),h(typeof r=="object"),r)},typeof scriptArgs<"u"&&scriptArgs,typeof quit=="function"&&(g=function(t){quit(t)}),typeof print<"u"&&(typeof console>"u"&&(console={}),console.log=print,console.warn=console.error=typeof printErr<"u"?printErr:print)):(_||D)&&(D?u=self.location.href:document.currentScript&&(u=document.currentScript.src),n&&(u=n),u.indexOf("blob:")!==0?u=u.substr(0,u.lastIndexOf("/")+1):u="",p=function(i){var r=new XMLHttpRequest;return r.open("GET",i,!1),r.send(null),r.responseText},D&&(s=function(i){var r=new XMLHttpRequest;return r.open("GET",i,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)})),e.print||console.log.bind(console);var x=e.printErr||console.warn.bind(console);for(C in O)O.hasOwnProperty(C)&&(e[C]=O[C]);O=null,e.arguments&&e.arguments,e.thisProgram&&e.thisProgram,e.quit&&(g=e.quit);var M=16;function U(t,i){return i||(i=M),Math.ceil(t/i)*i}function j(t,i){if(typeof WebAssembly.Function=="function"){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},m={parameters:[],results:i[0]=="v"?[]:[r[i[0]]]},E=1;E<i.length;++E)m.parameters.push(r[i[E]]);return new WebAssembly.Function(m,t)}var d=[1,0,1,96],c=i.slice(0,1),I=i.slice(1),V={i:127,j:126,f:125,d:124};d.push(I.length);for(var E=0;E<I.length;++E)d.push(V[I[E]]);c=="v"?d.push(0):d=d.concat([1,V[c]]),d[1]=d.length-2;var P=new Uint8Array([0,97,115,109,1,0,0,0].concat(d,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),w=new WebAssembly.Module(P),$=new WebAssembly.Instance(w,{e:{f:t}}),re=$.exports.f;return re}var B=[],N;function H(t,i){var r=oe;if(!N){N=new WeakMap;for(var m=0;m<r.length;m++){var E=r.get(m);E&&N.set(E,m)}}if(N.has(t))return N.get(t);var d;if(B.length)d=B.pop();else{d=r.length;try{r.grow(1)}catch(I){throw I instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":I}}try{r.set(d,t)}catch(I){if(!(I instanceof TypeError))throw I;var c=j(t,i);r.set(d,c)}return N.set(t,d),d}function K(t,i){return H(t,i)}var q;e.wasmBinary&&(q=e.wasmBinary);var Y;e.noExitRuntime&&(Y=e.noExitRuntime),typeof WebAssembly!="object"&&pe("no native wasm support detected");var L,oe,f=!1;function h(t,i){t||pe("Assertion failed: "+i)}function Z(t){var i=e["_"+t];return h(i,"Cannot call unknown function "+t+", make sure it is exported"),i}function po(t,i,r,m,E){var d={string:function(k){var Q=0;if(k!=null&&k!==0){var X=(k.length<<2)+1;Q=de(X),Ao(k,Q,X)}return Q},array:function(k){var Q=de(k.length);return Do(k,Q),Q}};function c(k){return i==="string"?co(k):i==="boolean"?!!k:k}var I=Z(t),V=[],P=0;if(m)for(var w=0;w<m.length;w++){var $=d[r[w]];$?(P===0&&(P=Ee()),V[w]=$(m[w])):V[w]=m[w]}var re=I.apply(null,V);return re=c(re),P!==0&&be(P),re}var so=1;function mo(t,i){var r;return i==so?r=de(t.length):r=Re(t.length),t.subarray||t.slice?le.set(t,r):le.set(new Uint8Array(t),r),r}var Ue=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Be(t,i,r){for(var m=i+r,E=i;t[E]&&!(E>=m);)++E;if(E-i>16&&t.subarray&&Ue)return Ue.decode(t.subarray(i,E));for(var d="";i<E;){var c=t[i++];if(!(c&128)){d+=String.fromCharCode(c);continue}var I=t[i++]&63;if((c&224)==192){d+=String.fromCharCode((c&31)<<6|I);continue}var V=t[i++]&63;if((c&240)==224?c=(c&15)<<12|I<<6|V:c=(c&7)<<18|I<<12|V<<6|t[i++]&63,c<65536)d+=String.fromCharCode(c);else{var P=c-65536;d+=String.fromCharCode(55296|P>>10,56320|P&1023)}}return d}function co(t,i){return t?Be(le,t,i):""}function _o(t,i,r,m){if(!(m>0))return 0;for(var E=r,d=r+m-1,c=0;c<t.length;++c){var I=t.charCodeAt(c);if(I>=55296&&I<=57343){var V=t.charCodeAt(++c);I=65536+((I&1023)<<10)|V&1023}if(I<=127){if(r>=d)break;i[r++]=I}else if(I<=2047){if(r+1>=d)break;i[r++]=192|I>>6,i[r++]=128|I&63}else if(I<=65535){if(r+2>=d)break;i[r++]=224|I>>12,i[r++]=128|I>>6&63,i[r++]=128|I&63}else{if(r+3>=d)break;i[r++]=240|I>>18,i[r++]=128|I>>12&63,i[r++]=128|I>>6&63,i[r++]=128|I&63}}return i[r]=0,r-E}function Ao(t,i,r){return _o(t,le,i,r)}function Do(t,i){fe.set(t,i)}var Ke=65536,_e,fe,le;function Io(t){_e=t,e.HEAP8=fe=new Int8Array(t),e.HEAP16=new Int16Array(t),e.HEAP32=new Int32Array(t),e.HEAPU8=le=new Uint8Array(t),e.HEAPU16=new Uint16Array(t),e.HEAPU32=new Uint32Array(t),e.HEAPF32=new Float32Array(t),e.HEAPF64=new Float64Array(t)}var To=5247776;e.___heap_base=5247776;var Ce=e.INITIAL_MEMORY||16777216;e.wasmMemory?L=e.wasmMemory:L=new WebAssembly.Memory({initial:Ce/Ke,maximum:Ce/Ke}),L&&(_e=L.buffer),Ce=_e.byteLength,Io(_e);var oe=new WebAssembly.Table({initial:1,element:"anyfunc"}),Fe=[],ge=[],yo=[],We=[],Ne=!1;function fo(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)ke(e.preRun.shift());Ae(Fe)}function Co(){Ne=!0,Ae(ge)}function go(){Ae(yo)}function No(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)Lo(e.postRun.shift());Ae(We)}function ke(t){Fe.unshift(t)}function Lo(t){We.unshift(t)}var ie=0,me=null;function Xe(t){ie++,e.monitorRunDependencies&&e.monitorRunDependencies(ie)}function Je(t){if(ie--,e.monitorRunDependencies&&e.monitorRunDependencies(ie),ie==0&&me){var i=me;me=null,i()}}e.preloadedImages={},e.preloadedAudios={},e.preloadedWasm={},ke(wo);function pe(t){e.onAbort&&e.onAbort(t),t+="",x(t),f=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.";var i=new WebAssembly.RuntimeError(t);throw G(i),i}function Ye(t,i){return String.prototype.startsWith?t.startsWith(i):t.indexOf(i)===0}var Ro="data:application/octet-stream;base64,";function je(t){return Ye(t,Ro)}var Eo="file://";function qe(t){return Ye(t,Eo)}var z="talib.wasm";je(z)||(z=l(z));function ze(){try{if(q)return new Uint8Array(q);if(s)return s(z);throw"both async and sync fetching of the wasm failed"}catch(t){pe(t)}}function bo(){return!q&&(_||D)&&typeof fetch=="function"&&!qe(z)?fetch(z,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+z+"'";return t.arrayBuffer()}).catch(function(){return ze()}):Promise.resolve().then(ze)}function So(){var t={env:Le,wasi_snapshot_preview1:Le};function i(c,I){var V=c.exports;V=$e(V,1024),e.asm=V,Je()}Xe();function r(c){i(c.instance)}function m(c){return bo().then(function(I){return WebAssembly.instantiate(I,t)}).then(c,function(I){x("failed to asynchronously prepare wasm: "+I),pe(I)})}function E(){if(!q&&typeof WebAssembly.instantiateStreaming=="function"&&!je(z)&&!qe(z)&&typeof fetch=="function")fetch(z,{credentials:"same-origin"}).then(function(c){var I=WebAssembly.instantiateStreaming(c,t);return I.then(r,function(V){return x("wasm streaming compile failed: "+V),x("falling back to ArrayBuffer instantiation"),m(r)})});else return m(r)}if(e.instantiateWasm)try{var d=e.instantiateWasm(t,i);return d}catch(c){return x("Module.instantiateWasm callback failed with error: "+c),!1}return E(),{}}function Ae(t){for(;t.length>0;){var i=t.shift();if(typeof i=="function"){i(e);continue}var r=i.func;typeof r=="number"?i.arg===void 0?oe.get(r)():oe.get(r)(i.arg):r(i.arg===void 0?null:i.arg)}}function Po(t,i,r){return r&&r.length?e["dynCall_"+t].apply(null,[i].concat(r)):e["dynCall_"+t].call(null,i)}function ho(t,i,r){return t.indexOf("j")!=-1?Po(t,i,r):oe.get(i).apply(null,r)}var ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};function Oo(t){return function(){var i=Ee();try{return ho(t,arguments[0],Array.prototype.slice.call(arguments,1))}catch(r){if(be(i),r!==r+0&&r!=="longjmp")throw r;_setThrew(1,0)}}}function Mo(t){if(Ne)return Re(t);var i=e.___heap_base,r=i+t+15&-16;return e.___heap_base=r,i}function $e(t,i,r){var m={};for(var E in t){var d=t[E];typeof d=="object"&&(d=d.value),typeof d=="number"&&(d+=i),m[E]=d,r&&(r["_"+E]=d)}return m}function Ze(t){var i=["setTempRet0","getTempRet0","stackAlloc","stackSave","stackRestore"];return t.indexOf("dynCall_")==0||i.indexOf(t)!=-1?t:"_"+t}function Ho(t,i){var r=new Uint32Array(new Uint8Array(t.subarray(0,24)).buffer);h(r[0]==1836278016,"need to see wasm magic number"),h(t[8]===0,"need the dylink section to be first");var m=9;function E(){for(var X=0,se=1;;){var ne=t[m++];if(X+=(ne&127)*se,se*=128,!(ne&128))break}return X}E(),h(t[m]===6),m++,h(t[m]==="d".charCodeAt(0)),m++,h(t[m]==="y".charCodeAt(0)),m++,h(t[m]==="l".charCodeAt(0)),m++,h(t[m]==="i".charCodeAt(0)),m++,h(t[m]==="n".charCodeAt(0)),m++,h(t[m]==="k".charCodeAt(0)),m++;var d=E(),c=E(),I=E();E();for(var V=E(),P=[],w=0;w<V;++w){var $=E(),re=t.subarray(m,m+$);m+=$;var k=Be(re,0);P.push(k)}function Q(){c=Math.pow(2,c),c=Math.max(c,M);var X=U(Mo(d+c),c),se=Le,ne=oe,he=ne.length,Wo=ne;ne.grow(I),h(ne===Wo);for(var ue=X;ue<X+d;ue++)fe[ue]=0;for(var ue=he;ue<he+I;ue++)ne.set(ue,null);var Oe={},Me=function(F,J,te){te&&(F="orig$"+F);var W=e.asm[F];if(!W){var ce=Ze(F);W=e[ce],W||(W=Oe[ce]),!W&&F.startsWith("invoke_")&&(W=Oo(F.split("_")[1]))}return W};for(var He in e)He in se||(se[He]=e[He]);var ko={get:function(F,J){switch(J){case"__memory_base":return X;case"__table_base":return he}if(J in F)return F[J];if(J.startsWith("g$")){var te=J.substr(2);return F[J]=function(){return Me(te)}}if(J.startsWith("fp$")){var W=J.split("$");h(W.length==3);var te=W[1],ce=W[2],Jo=ce.indexOf("j")>=0,ve=0;return F[J]=function(){if(!ve){var Yo=Me(te,"function",Jo);ve=K(Yo,ce)}return ve}}return F[J]=function(){return Me(J).apply(null,arguments)}}},tn=new Proxy(se,ko),an={global:{NaN:NaN,Infinity:1/0},"global.Math":Math,env:tn,wasi_snapshot_preview1:tn};function on(F,J){var te=$e(F.exports,X,J),W=te.__post_instantiate;return W&&(Ne?W():ge.push(W)),te}if(i.loadAsync)return WebAssembly.instantiate(t,an).then(function(F){return on(F.instance,Oe)});var Xo=new WebAssembly.Instance(new WebAssembly.Module(t),an);return on(Xo,Oe)}return i.loadAsync?Promise.all(P.map(function(X){return De(X,i)})).then(function(){return Q()}):(P.forEach(function(X){De(X,i)}),Q())}function vo(t){return fetch(t,{credentials:"same-origin"}).then(function(i){if(!i.ok)throw"failed to load binary file at '"+t+"'";return i.arrayBuffer()}).then(function(i){return new Uint8Array(i)})}function De(t,i){t=="__self__"&&!ee.loadedLibNames[t]&&(ee.loadedLibs[-1]={refcount:1/0,name:"__self__",module:e.asm,global:!0},ee.loadedLibNames.__self__=-1),i=i||{global:!0,nodelete:!0};var r=ee.loadedLibNames[t],m;if(r)return m=ee.loadedLibs[r],i.global&&!m.global&&(m.global=!0,m.module!=="loading"&&I(m.module)),i.nodelete&&m.refcount!==1/0&&(m.refcount=1/0),m.refcount++,i.loadAsync?Promise.resolve(r):r;r=ee.nextHandle++,m={refcount:i.nodelete?1/0:1,name:t,module:"loading",global:i.global},ee.loadedLibNames[t]=r,ee.loadedLibs[r]=m;function E(P){if(i.fs){var w=i.fs.readFile(P,{encoding:"binary"});return w instanceof Uint8Array||(w=new Uint8Array(lib_data)),i.loadAsync?Promise.resolve(w):w}return i.loadAsync?vo(P):s(P)}function d(P){return Ho(P,i)}function c(){if(e.preloadedWasm!==void 0&&e.preloadedWasm[t]!==void 0){var P=e.preloadedWasm[t];return i.loadAsync?Promise.resolve(P):P}return i.loadAsync?E(t).then(function(w){return d(w)}):d(E(t))}function I(P){for(var w in P)if(P.hasOwnProperty(w)){var $=Ze(w);e.hasOwnProperty($)||(e[$]=P[w])}}function V(P){m.global&&I(P),m.module=P}return i.loadAsync?c().then(function(P){return V(P),r}):(V(c()),r)}function wo(){var t=[];if(e.dynamicLibraries&&(t=t.concat(e.dynamicLibraries)),!!t.length){if(!s){Xe(),Promise.all(t.map(function(i){return De(i,{loadAsync:!0,global:!0,nodelete:!0})})).then(function(){Je()});return}t.forEach(function(i){De(i,{global:!0,nodelete:!0})})}}function Go(t,i,r){le.copyWithin(t,i,i+r)}function Vo(t){pe("OOM")}function xo(t){Vo()}function Uo(){return e.___heap_base}ge.push({func:function(){en()}},{func:function(){Qe()}});var Le={__indirect_function_table:oe,__memory_base:1024,__stack_pointer:To,__table_base:1,emscripten_memcpy_big:Go,emscripten_resize_heap:xo,g$__heap_base:Uo,memory:L};So();var Qe=e.___wasm_call_ctors=function(){return(Qe=e.___wasm_call_ctors=e.asm.__wasm_call_ctors).apply(null,arguments)};e._TA_ACCBANDS=function(){return(e._TA_ACCBANDS=e.asm.TA_ACCBANDS).apply(null,arguments)};var Re=e._malloc=function(){return(Re=e._malloc=e.asm.malloc).apply(null,arguments)};e._free=function(){return(e._free=e.asm.free).apply(null,arguments)},e._TA_SMA=function(){return(e._TA_SMA=e.asm.TA_SMA).apply(null,arguments)},e._TA_ACOS=function(){return(e._TA_ACOS=e.asm.TA_ACOS).apply(null,arguments)},e._TA_AD=function(){return(e._TA_AD=e.asm.TA_AD).apply(null,arguments)},e._TA_ADD=function(){return(e._TA_ADD=e.asm.TA_ADD).apply(null,arguments)},e._TA_ADOSC=function(){return(e._TA_ADOSC=e.asm.TA_ADOSC).apply(null,arguments)},e._TA_ADX=function(){return(e._TA_ADX=e.asm.TA_ADX).apply(null,arguments)},e._TA_ADXR=function(){return(e._TA_ADXR=e.asm.TA_ADXR).apply(null,arguments)},e._TA_APO=function(){return(e._TA_APO=e.asm.TA_APO).apply(null,arguments)},e._TA_MA=function(){return(e._TA_MA=e.asm.TA_MA).apply(null,arguments)},e._TA_AROON=function(){return(e._TA_AROON=e.asm.TA_AROON).apply(null,arguments)},e._TA_AROONOSC=function(){return(e._TA_AROONOSC=e.asm.TA_AROONOSC).apply(null,arguments)},e._TA_ASIN=function(){return(e._TA_ASIN=e.asm.TA_ASIN).apply(null,arguments)},e._TA_ATAN=function(){return(e._TA_ATAN=e.asm.TA_ATAN).apply(null,arguments)},e._TA_ATR=function(){return(e._TA_ATR=e.asm.TA_ATR).apply(null,arguments)},e._TA_TRANGE=function(){return(e._TA_TRANGE=e.asm.TA_TRANGE).apply(null,arguments)},e._TA_AVGDEV=function(){return(e._TA_AVGDEV=e.asm.TA_AVGDEV).apply(null,arguments)},e._TA_AVGPRICE=function(){return(e._TA_AVGPRICE=e.asm.TA_AVGPRICE).apply(null,arguments)},e._TA_BBANDS=function(){return(e._TA_BBANDS=e.asm.TA_BBANDS).apply(null,arguments)},e._TA_STDDEV=function(){return(e._TA_STDDEV=e.asm.TA_STDDEV).apply(null,arguments)},e._TA_BETA=function(){return(e._TA_BETA=e.asm.TA_BETA).apply(null,arguments)},e._TA_BOP=function(){return(e._TA_BOP=e.asm.TA_BOP).apply(null,arguments)},e._TA_CCI=function(){return(e._TA_CCI=e.asm.TA_CCI).apply(null,arguments)},e._TA_CDL2CROWS=function(){return(e._TA_CDL2CROWS=e.asm.TA_CDL2CROWS).apply(null,arguments)},e._TA_CDL3BLACKCROWS=function(){return(e._TA_CDL3BLACKCROWS=e.asm.TA_CDL3BLACKCROWS).apply(null,arguments)},e._TA_CDL3INSIDE=function(){return(e._TA_CDL3INSIDE=e.asm.TA_CDL3INSIDE).apply(null,arguments)},e._TA_CDL3LINESTRIKE=function(){return(e._TA_CDL3LINESTRIKE=e.asm.TA_CDL3LINESTRIKE).apply(null,arguments)},e._TA_CDL3OUTSIDE=function(){return(e._TA_CDL3OUTSIDE=e.asm.TA_CDL3OUTSIDE).apply(null,arguments)},e._TA_CDL3STARSINSOUTH=function(){return(e._TA_CDL3STARSINSOUTH=e.asm.TA_CDL3STARSINSOUTH).apply(null,arguments)},e._TA_CDL3WHITESOLDIERS=function(){return(e._TA_CDL3WHITESOLDIERS=e.asm.TA_CDL3WHITESOLDIERS).apply(null,arguments)},e._TA_CDLABANDONEDBABY=function(){return(e._TA_CDLABANDONEDBABY=e.asm.TA_CDLABANDONEDBABY).apply(null,arguments)},e._TA_CDLADVANCEBLOCK=function(){return(e._TA_CDLADVANCEBLOCK=e.asm.TA_CDLADVANCEBLOCK).apply(null,arguments)},e._TA_CDLBELTHOLD=function(){return(e._TA_CDLBELTHOLD=e.asm.TA_CDLBELTHOLD).apply(null,arguments)},e._TA_CDLBREAKAWAY=function(){return(e._TA_CDLBREAKAWAY=e.asm.TA_CDLBREAKAWAY).apply(null,arguments)},e._TA_CDLCLOSINGMARUBOZU=function(){return(e._TA_CDLCLOSINGMARUBOZU=e.asm.TA_CDLCLOSINGMARUBOZU).apply(null,arguments)},e._TA_CDLCONCEALBABYSWALL=function(){return(e._TA_CDLCONCEALBABYSWALL=e.asm.TA_CDLCONCEALBABYSWALL).apply(null,arguments)},e._TA_CDLCOUNTERATTACK=function(){return(e._TA_CDLCOUNTERATTACK=e.asm.TA_CDLCOUNTERATTACK).apply(null,arguments)},e._TA_CDLDARKCLOUDCOVER=function(){return(e._TA_CDLDARKCLOUDCOVER=e.asm.TA_CDLDARKCLOUDCOVER).apply(null,arguments)},e._TA_CDLDOJI=function(){return(e._TA_CDLDOJI=e.asm.TA_CDLDOJI).apply(null,arguments)},e._TA_CDLDOJISTAR=function(){return(e._TA_CDLDOJISTAR=e.asm.TA_CDLDOJISTAR).apply(null,arguments)},e._TA_CDLDRAGONFLYDOJI=function(){return(e._TA_CDLDRAGONFLYDOJI=e.asm.TA_CDLDRAGONFLYDOJI).apply(null,arguments)},e._TA_CDLENGULFING=function(){return(e._TA_CDLENGULFING=e.asm.TA_CDLENGULFING).apply(null,arguments)},e._TA_CDLEVENINGDOJISTAR=function(){return(e._TA_CDLEVENINGDOJISTAR=e.asm.TA_CDLEVENINGDOJISTAR).apply(null,arguments)},e._TA_CDLEVENINGSTAR=function(){return(e._TA_CDLEVENINGSTAR=e.asm.TA_CDLEVENINGSTAR).apply(null,arguments)},e._TA_CDLGAPSIDESIDEWHITE=function(){return(e._TA_CDLGAPSIDESIDEWHITE=e.asm.TA_CDLGAPSIDESIDEWHITE).apply(null,arguments)},e._TA_CDLGRAVESTONEDOJI=function(){return(e._TA_CDLGRAVESTONEDOJI=e.asm.TA_CDLGRAVESTONEDOJI).apply(null,arguments)},e._TA_CDLHAMMER=function(){return(e._TA_CDLHAMMER=e.asm.TA_CDLHAMMER).apply(null,arguments)},e._TA_CDLHANGINGMAN=function(){return(e._TA_CDLHANGINGMAN=e.asm.TA_CDLHANGINGMAN).apply(null,arguments)},e._TA_CDLHARAMI=function(){return(e._TA_CDLHARAMI=e.asm.TA_CDLHARAMI).apply(null,arguments)},e._TA_CDLHARAMICROSS=function(){return(e._TA_CDLHARAMICROSS=e.asm.TA_CDLHARAMICROSS).apply(null,arguments)},e._TA_CDLHIGHWAVE=function(){return(e._TA_CDLHIGHWAVE=e.asm.TA_CDLHIGHWAVE).apply(null,arguments)},e._TA_CDLHIKKAKE=function(){return(e._TA_CDLHIKKAKE=e.asm.TA_CDLHIKKAKE).apply(null,arguments)},e._TA_CDLHIKKAKEMOD=function(){return(e._TA_CDLHIKKAKEMOD=e.asm.TA_CDLHIKKAKEMOD).apply(null,arguments)},e._TA_CDLHOMINGPIGEON=function(){return(e._TA_CDLHOMINGPIGEON=e.asm.TA_CDLHOMINGPIGEON).apply(null,arguments)},e._TA_CDLIDENTICAL3CROWS=function(){return(e._TA_CDLIDENTICAL3CROWS=e.asm.TA_CDLIDENTICAL3CROWS).apply(null,arguments)},e._TA_CDLINNECK=function(){return(e._TA_CDLINNECK=e.asm.TA_CDLINNECK).apply(null,arguments)},e._TA_CDLINVERTEDHAMMER=function(){return(e._TA_CDLINVERTEDHAMMER=e.asm.TA_CDLINVERTEDHAMMER).apply(null,arguments)},e._TA_CDLKICKING=function(){return(e._TA_CDLKICKING=e.asm.TA_CDLKICKING).apply(null,arguments)},e._TA_CDLKICKINGBYLENGTH=function(){return(e._TA_CDLKICKINGBYLENGTH=e.asm.TA_CDLKICKINGBYLENGTH).apply(null,arguments)},e._TA_CDLLADDERBOTTOM=function(){return(e._TA_CDLLADDERBOTTOM=e.asm.TA_CDLLADDERBOTTOM).apply(null,arguments)},e._TA_CDLLONGLEGGEDDOJI=function(){return(e._TA_CDLLONGLEGGEDDOJI=e.asm.TA_CDLLONGLEGGEDDOJI).apply(null,arguments)},e._TA_CDLLONGLINE=function(){return(e._TA_CDLLONGLINE=e.asm.TA_CDLLONGLINE).apply(null,arguments)},e._TA_CDLMARUBOZU=function(){return(e._TA_CDLMARUBOZU=e.asm.TA_CDLMARUBOZU).apply(null,arguments)},e._TA_CDLMATCHINGLOW=function(){return(e._TA_CDLMATCHINGLOW=e.asm.TA_CDLMATCHINGLOW).apply(null,arguments)},e._TA_CDLMATHOLD=function(){return(e._TA_CDLMATHOLD=e.asm.TA_CDLMATHOLD).apply(null,arguments)},e._TA_CDLMORNINGDOJISTAR=function(){return(e._TA_CDLMORNINGDOJISTAR=e.asm.TA_CDLMORNINGDOJISTAR).apply(null,arguments)},e._TA_CDLMORNINGSTAR=function(){return(e._TA_CDLMORNINGSTAR=e.asm.TA_CDLMORNINGSTAR).apply(null,arguments)},e._TA_CDLONNECK=function(){return(e._TA_CDLONNECK=e.asm.TA_CDLONNECK).apply(null,arguments)},e._TA_CDLPIERCING=function(){return(e._TA_CDLPIERCING=e.asm.TA_CDLPIERCING).apply(null,arguments)},e._TA_CDLRICKSHAWMAN=function(){return(e._TA_CDLRICKSHAWMAN=e.asm.TA_CDLRICKSHAWMAN).apply(null,arguments)},e._TA_CDLRISEFALL3METHODS=function(){return(e._TA_CDLRISEFALL3METHODS=e.asm.TA_CDLRISEFALL3METHODS).apply(null,arguments)},e._TA_CDLSEPARATINGLINES=function(){return(e._TA_CDLSEPARATINGLINES=e.asm.TA_CDLSEPARATINGLINES).apply(null,arguments)},e._TA_CDLSHOOTINGSTAR=function(){return(e._TA_CDLSHOOTINGSTAR=e.asm.TA_CDLSHOOTINGSTAR).apply(null,arguments)},e._TA_CDLSHORTLINE=function(){return(e._TA_CDLSHORTLINE=e.asm.TA_CDLSHORTLINE).apply(null,arguments)},e._TA_CDLSPINNINGTOP=function(){return(e._TA_CDLSPINNINGTOP=e.asm.TA_CDLSPINNINGTOP).apply(null,arguments)},e._TA_CDLSTALLEDPATTERN=function(){return(e._TA_CDLSTALLEDPATTERN=e.asm.TA_CDLSTALLEDPATTERN).apply(null,arguments)},e._TA_CDLSTICKSANDWICH=function(){return(e._TA_CDLSTICKSANDWICH=e.asm.TA_CDLSTICKSANDWICH).apply(null,arguments)},e._TA_CDLTAKURI=function(){return(e._TA_CDLTAKURI=e.asm.TA_CDLTAKURI).apply(null,arguments)},e._TA_CDLTASUKIGAP=function(){return(e._TA_CDLTASUKIGAP=e.asm.TA_CDLTASUKIGAP).apply(null,arguments)},e._TA_CDLTHRUSTING=function(){return(e._TA_CDLTHRUSTING=e.asm.TA_CDLTHRUSTING).apply(null,arguments)},e._TA_CDLTRISTAR=function(){return(e._TA_CDLTRISTAR=e.asm.TA_CDLTRISTAR).apply(null,arguments)},e._TA_CDLUNIQUE3RIVER=function(){return(e._TA_CDLUNIQUE3RIVER=e.asm.TA_CDLUNIQUE3RIVER).apply(null,arguments)},e._TA_CDLUPSIDEGAP2CROWS=function(){return(e._TA_CDLUPSIDEGAP2CROWS=e.asm.TA_CDLUPSIDEGAP2CROWS).apply(null,arguments)},e._TA_CDLXSIDEGAP3METHODS=function(){return(e._TA_CDLXSIDEGAP3METHODS=e.asm.TA_CDLXSIDEGAP3METHODS).apply(null,arguments)},e._TA_CEIL=function(){return(e._TA_CEIL=e.asm.TA_CEIL).apply(null,arguments)},e._TA_CMO=function(){return(e._TA_CMO=e.asm.TA_CMO).apply(null,arguments)},e._TA_CORREL=function(){return(e._TA_CORREL=e.asm.TA_CORREL).apply(null,arguments)},e._TA_COS=function(){return(e._TA_COS=e.asm.TA_COS).apply(null,arguments)},e._TA_COSH=function(){return(e._TA_COSH=e.asm.TA_COSH).apply(null,arguments)},e._TA_DEMA=function(){return(e._TA_DEMA=e.asm.TA_DEMA).apply(null,arguments)},e._TA_DIV=function(){return(e._TA_DIV=e.asm.TA_DIV).apply(null,arguments)},e._TA_DX=function(){return(e._TA_DX=e.asm.TA_DX).apply(null,arguments)},e._TA_EMA=function(){return(e._TA_EMA=e.asm.TA_EMA).apply(null,arguments)},e._TA_EXP=function(){return(e._TA_EXP=e.asm.TA_EXP).apply(null,arguments)},e._TA_FLOOR=function(){return(e._TA_FLOOR=e.asm.TA_FLOOR).apply(null,arguments)},e._TA_HT_DCPERIOD=function(){return(e._TA_HT_DCPERIOD=e.asm.TA_HT_DCPERIOD).apply(null,arguments)},e._TA_HT_DCPHASE=function(){return(e._TA_HT_DCPHASE=e.asm.TA_HT_DCPHASE).apply(null,arguments)},e._TA_HT_PHASOR=function(){return(e._TA_HT_PHASOR=e.asm.TA_HT_PHASOR).apply(null,arguments)},e._TA_HT_SINE=function(){return(e._TA_HT_SINE=e.asm.TA_HT_SINE).apply(null,arguments)},e._TA_HT_TRENDLINE=function(){return(e._TA_HT_TRENDLINE=e.asm.TA_HT_TRENDLINE).apply(null,arguments)},e._TA_HT_TRENDMODE=function(){return(e._TA_HT_TRENDMODE=e.asm.TA_HT_TRENDMODE).apply(null,arguments)},e._TA_IMI=function(){return(e._TA_IMI=e.asm.TA_IMI).apply(null,arguments)},e._TA_KAMA=function(){return(e._TA_KAMA=e.asm.TA_KAMA).apply(null,arguments)},e._TA_LINEARREG=function(){return(e._TA_LINEARREG=e.asm.TA_LINEARREG).apply(null,arguments)},e._TA_LINEARREG_ANGLE=function(){return(e._TA_LINEARREG_ANGLE=e.asm.TA_LINEARREG_ANGLE).apply(null,arguments)},e._TA_LINEARREG_INTERCEPT=function(){return(e._TA_LINEARREG_INTERCEPT=e.asm.TA_LINEARREG_INTERCEPT).apply(null,arguments)},e._TA_LINEARREG_SLOPE=function(){return(e._TA_LINEARREG_SLOPE=e.asm.TA_LINEARREG_SLOPE).apply(null,arguments)},e._TA_LN=function(){return(e._TA_LN=e.asm.TA_LN).apply(null,arguments)},e._TA_LOG10=function(){return(e._TA_LOG10=e.asm.TA_LOG10).apply(null,arguments)},e._TA_WMA=function(){return(e._TA_WMA=e.asm.TA_WMA).apply(null,arguments)},e._TA_TEMA=function(){return(e._TA_TEMA=e.asm.TA_TEMA).apply(null,arguments)},e._TA_TRIMA=function(){return(e._TA_TRIMA=e.asm.TA_TRIMA).apply(null,arguments)},e._TA_MAMA=function(){return(e._TA_MAMA=e.asm.TA_MAMA).apply(null,arguments)},e._TA_T3=function(){return(e._TA_T3=e.asm.TA_T3).apply(null,arguments)},e._TA_MACD=function(){return(e._TA_MACD=e.asm.TA_MACD).apply(null,arguments)},e._TA_MACDEXT=function(){return(e._TA_MACDEXT=e.asm.TA_MACDEXT).apply(null,arguments)},e._TA_MACDFIX=function(){return(e._TA_MACDFIX=e.asm.TA_MACDFIX).apply(null,arguments)},e._TA_MAVP=function(){return(e._TA_MAVP=e.asm.TA_MAVP).apply(null,arguments)},e._TA_MAX=function(){return(e._TA_MAX=e.asm.TA_MAX).apply(null,arguments)},e._TA_MAXINDEX=function(){return(e._TA_MAXINDEX=e.asm.TA_MAXINDEX).apply(null,arguments)},e._TA_MEDPRICE=function(){return(e._TA_MEDPRICE=e.asm.TA_MEDPRICE).apply(null,arguments)},e._TA_MFI=function(){return(e._TA_MFI=e.asm.TA_MFI).apply(null,arguments)},e._TA_MIDPOINT=function(){return(e._TA_MIDPOINT=e.asm.TA_MIDPOINT).apply(null,arguments)},e._TA_MIDPRICE=function(){return(e._TA_MIDPRICE=e.asm.TA_MIDPRICE).apply(null,arguments)},e._TA_MIN=function(){return(e._TA_MIN=e.asm.TA_MIN).apply(null,arguments)},e._TA_MININDEX=function(){return(e._TA_MININDEX=e.asm.TA_MININDEX).apply(null,arguments)},e._TA_MINMAX=function(){return(e._TA_MINMAX=e.asm.TA_MINMAX).apply(null,arguments)},e._TA_MINMAXINDEX=function(){return(e._TA_MINMAXINDEX=e.asm.TA_MINMAXINDEX).apply(null,arguments)},e._TA_MINUS_DI=function(){return(e._TA_MINUS_DI=e.asm.TA_MINUS_DI).apply(null,arguments)},e._TA_MINUS_DM=function(){return(e._TA_MINUS_DM=e.asm.TA_MINUS_DM).apply(null,arguments)},e._TA_MOM=function(){return(e._TA_MOM=e.asm.TA_MOM).apply(null,arguments)},e._TA_MULT=function(){return(e._TA_MULT=e.asm.TA_MULT).apply(null,arguments)},e._TA_NATR=function(){return(e._TA_NATR=e.asm.TA_NATR).apply(null,arguments)},e._TA_OBV=function(){return(e._TA_OBV=e.asm.TA_OBV).apply(null,arguments)},e._TA_PLUS_DI=function(){return(e._TA_PLUS_DI=e.asm.TA_PLUS_DI).apply(null,arguments)},e._TA_PLUS_DM=function(){return(e._TA_PLUS_DM=e.asm.TA_PLUS_DM).apply(null,arguments)},e._TA_PPO=function(){return(e._TA_PPO=e.asm.TA_PPO).apply(null,arguments)},e._TA_ROC=function(){return(e._TA_ROC=e.asm.TA_ROC).apply(null,arguments)},e._TA_ROCP=function(){return(e._TA_ROCP=e.asm.TA_ROCP).apply(null,arguments)},e._TA_ROCR=function(){return(e._TA_ROCR=e.asm.TA_ROCR).apply(null,arguments)},e._TA_ROCR100=function(){return(e._TA_ROCR100=e.asm.TA_ROCR100).apply(null,arguments)},e._TA_RSI=function(){return(e._TA_RSI=e.asm.TA_RSI).apply(null,arguments)},e._TA_SAR=function(){return(e._TA_SAR=e.asm.TA_SAR).apply(null,arguments)},e._TA_SAREXT=function(){return(e._TA_SAREXT=e.asm.TA_SAREXT).apply(null,arguments)},e._TA_SIN=function(){return(e._TA_SIN=e.asm.TA_SIN).apply(null,arguments)},e._TA_SINH=function(){return(e._TA_SINH=e.asm.TA_SINH).apply(null,arguments)},e._TA_SQRT=function(){return(e._TA_SQRT=e.asm.TA_SQRT).apply(null,arguments)},e._TA_STOCH=function(){return(e._TA_STOCH=e.asm.TA_STOCH).apply(null,arguments)},e._TA_STOCHF=function(){return(e._TA_STOCHF=e.asm.TA_STOCHF).apply(null,arguments)},e._TA_STOCHRSI=function(){return(e._TA_STOCHRSI=e.asm.TA_STOCHRSI).apply(null,arguments)},e._TA_SUB=function(){return(e._TA_SUB=e.asm.TA_SUB).apply(null,arguments)},e._TA_SUM=function(){return(e._TA_SUM=e.asm.TA_SUM).apply(null,arguments)},e._TA_TAN=function(){return(e._TA_TAN=e.asm.TA_TAN).apply(null,arguments)},e._TA_TANH=function(){return(e._TA_TANH=e.asm.TA_TANH).apply(null,arguments)},e._TA_TRIX=function(){return(e._TA_TRIX=e.asm.TA_TRIX).apply(null,arguments)},e._TA_TSF=function(){return(e._TA_TSF=e.asm.TA_TSF).apply(null,arguments)},e._TA_TYPPRICE=function(){return(e._TA_TYPPRICE=e.asm.TA_TYPPRICE).apply(null,arguments)},e._TA_ULTOSC=function(){return(e._TA_ULTOSC=e.asm.TA_ULTOSC).apply(null,arguments)},e._TA_VAR=function(){return(e._TA_VAR=e.asm.TA_VAR).apply(null,arguments)},e._TA_WCLPRICE=function(){return(e._TA_WCLPRICE=e.asm.TA_WCLPRICE).apply(null,arguments)},e._TA_WILLR=function(){return(e._TA_WILLR=e.asm.TA_WILLR).apply(null,arguments)};var Ee=e.stackSave=function(){return(Ee=e.stackSave=e.asm.stackSave).apply(null,arguments)},be=e.stackRestore=function(){return(be=e.stackRestore=e.asm.stackRestore).apply(null,arguments)},de=e.stackAlloc=function(){return(de=e.stackAlloc=e.asm.stackAlloc).apply(null,arguments)},en=e.___assign_got_enties=function(){return(en=e.___assign_got_enties=e.asm.__assign_got_enties).apply(null,arguments)};e._TA_Globals=1448,e.___data_end=4888;for(var Bo in["TA_Globals","__data_end"])(function(t){e["g$"+t]=function(){return e[t]}})(Bo);e.ccall=po,e.allocate=mo;var Ie;function Se(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}me=function t(){Ie||Pe(),Ie||(me=t)};function Ko(t){var i=e._main;if(i){var r=0,m=0;try{var E=i(r,m);Fo(E,!0)}catch(c){if(c instanceof Se)return;if(c=="unwind"){Y=!0;return}else{var d=c;c&&typeof c=="object"&&c.stack&&(d=[c,c.stack]),x("exception thrown: "+d),g(1,c)}}finally{}}}function Pe(t){if(ie>0||(fo(),ie>0))return;function i(){Ie||(Ie=!0,e.calledRun=!0,!f&&(Co(),go(),S(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),nn&&Ko(),No()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),i()},1)):i()}e.run=Pe;function Fo(t,i){i&&Y&&t===0||(Y||(e.onExit&&e.onExit(t),f=!0),g(t,new Se(t)))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var nn=!0;return e.noInitialRun&&(nn=!1),Y=!0,Pe(),y.ready}}();const a={ACCBANDS:{name:"ACCBANDS",camelCaseName:"accBands",group:"Overlap Studies",description:"Acceleration Bands",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:20,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"upperBand",type:"Double[]",plotHint:"limit_upper"},{name:"middleBand",type:"Double[]",plotHint:"line"},{name:"lowerBand",type:"Double[]",plotHint:"limit_lower"}]},ACOS:{name:"ACOS",camelCaseName:"acos",group:"Math Transform",description:"Vector Trigonometric ACos",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},AD:{name:"AD",camelCaseName:"ad",group:"Volume Indicators",description:"Chaikin A/D Line",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"},{name:"volume",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},ADD:{name:"ADD",camelCaseName:"add",group:"Math Operators",description:"Vector Arithmetic Add",inputs:[{name:"inReal0",type:"Double[]"},{name:"inReal1",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},ADOSC:{name:"ADOSC",camelCaseName:"adOsc",group:"Volume Indicators",description:"Chaikin A/D Oscillator",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"},{name:"volume",type:"Double[]"}],options:[{name:"fastPeriod",displayName:"Fast Period",defaultValue:3,hint:"Number of period for the fast MA",type:"Integer",range:{min:2,max:1e5}},{name:"slowPeriod",displayName:"Slow Period",defaultValue:10,hint:"Number of period for the slow MA",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},ADX:{name:"ADX",camelCaseName:"adx",group:"Momentum Indicators",description:"Average Directional Movement Index",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},ADXR:{name:"ADXR",camelCaseName:"adxr",group:"Momentum Indicators",description:"Average Directional Movement Index Rating",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},APO:{name:"APO",camelCaseName:"apo",group:"Momentum Indicators",description:"Absolute Price Oscillator",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"fastPeriod",displayName:"Fast Period",defaultValue:12,hint:"Number of period for the fast MA",type:"Integer",range:{min:2,max:1e5}},{name:"slowPeriod",displayName:"Slow Period",defaultValue:26,hint:"Number of period for the slow MA",type:"Integer",range:{min:2,max:1e5}},{name:"MAType",displayName:"MA Type",defaultValue:0,hint:"Type of Moving Average",type:"MAType"}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},AROON:{name:"AROON",camelCaseName:"aroon",group:"Momentum Indicators",description:"Aroon",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"aroonDown",type:"Double[]",plotHint:"line_dash"},{name:"aroonUp",type:"Double[]",plotHint:"line"}]},AROONOSC:{name:"AROONOSC",camelCaseName:"aroonOsc",group:"Momentum Indicators",description:"Aroon Oscillator",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},ASIN:{name:"ASIN",camelCaseName:"asin",group:"Math Transform",description:"Vector Trigonometric ASin",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},ATAN:{name:"ATAN",camelCaseName:"atan",group:"Math Transform",description:"Vector Trigonometric ATan",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},ATR:{name:"ATR",camelCaseName:"atr",group:"Volatility Indicators",description:"Average True Range",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},AVGDEV:{name:"AVGDEV",camelCaseName:"avgDev",group:"Price Transform",description:"Average Deviation",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},AVGPRICE:{name:"AVGPRICE",camelCaseName:"avgPrice",group:"Price Transform",description:"Average Price",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},BBANDS:{name:"BBANDS",camelCaseName:"bbands",group:"Overlap Studies",description:"Bollinger Bands",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:5,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}},{name:"nbDevUp",displayName:"Deviations up",defaultValue:2,hint:"Deviation multiplier for upper band",type:"Double",range:{min:-3e37,max:3e37}},{name:"nbDevDn",displayName:"Deviations down",defaultValue:2,hint:"Deviation multiplier for lower band",type:"Double",range:{min:-3e37,max:3e37}},{name:"MAType",displayName:"MA Type",defaultValue:0,hint:"Type of Moving Average",type:"MAType"}],outputs:[{name:"upperBand",type:"Double[]",plotHint:"limit_upper"},{name:"middleBand",type:"Double[]",plotHint:"line"},{name:"lowerBand",type:"Double[]",plotHint:"limit_lower"}]},BETA:{name:"BETA",camelCaseName:"beta",group:"Statistic Functions",description:"Beta",inputs:[{name:"inReal0",type:"Double[]"},{name:"inReal1",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:5,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},BOP:{name:"BOP",camelCaseName:"bop",group:"Momentum Indicators",description:"Balance Of Power",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},CCI:{name:"CCI",camelCaseName:"cci",group:"Momentum Indicators",description:"Commodity Channel Index",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},CDL2CROWS:{name:"CDL2CROWS",camelCaseName:"cdl2Crows",group:"Pattern Recognition",description:"Two Crows",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDL3BLACKCROWS:{name:"CDL3BLACKCROWS",camelCaseName:"cdl3BlackCrows",group:"Pattern Recognition",description:"Three Black Crows",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDL3INSIDE:{name:"CDL3INSIDE",camelCaseName:"cdl3Inside",group:"Pattern Recognition",description:"Three Inside Up/Down",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDL3LINESTRIKE:{name:"CDL3LINESTRIKE",camelCaseName:"cdl3LineStrike",group:"Pattern Recognition",description:"Three-Line Strike ",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDL3OUTSIDE:{name:"CDL3OUTSIDE",camelCaseName:"cdl3Outside",group:"Pattern Recognition",description:"Three Outside Up/Down",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDL3STARSINSOUTH:{name:"CDL3STARSINSOUTH",camelCaseName:"cdl3StarsInSouth",group:"Pattern Recognition",description:"Three Stars In The South",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDL3WHITESOLDIERS:{name:"CDL3WHITESOLDIERS",camelCaseName:"cdl3WhiteSoldiers",group:"Pattern Recognition",description:"Three Advancing White Soldiers",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLABANDONEDBABY:{name:"CDLABANDONEDBABY",camelCaseName:"cdlAbandonedBaby",group:"Pattern Recognition",description:"Abandoned Baby",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"penetration",displayName:"Penetration",defaultValue:.3,hint:"Percentage of penetration of a candle within another candle",type:"Double",range:{min:0,max:3e37}}],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLADVANCEBLOCK:{name:"CDLADVANCEBLOCK",camelCaseName:"cdlAdvanceBlock",group:"Pattern Recognition",description:"Advance Block",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLBELTHOLD:{name:"CDLBELTHOLD",camelCaseName:"cdlBeltHold",group:"Pattern Recognition",description:"Belt-hold",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLBREAKAWAY:{name:"CDLBREAKAWAY",camelCaseName:"cdlBreakaway",group:"Pattern Recognition",description:"Breakaway",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLCLOSINGMARUBOZU:{name:"CDLCLOSINGMARUBOZU",camelCaseName:"cdlClosingMarubozu",group:"Pattern Recognition",description:"Closing Marubozu",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLCONCEALBABYSWALL:{name:"CDLCONCEALBABYSWALL",camelCaseName:"cdlConcealBabysWall",group:"Pattern Recognition",description:"Concealing Baby Swallow",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLCOUNTERATTACK:{name:"CDLCOUNTERATTACK",camelCaseName:"cdlCounterAttack",group:"Pattern Recognition",description:"Counterattack",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLDARKCLOUDCOVER:{name:"CDLDARKCLOUDCOVER",camelCaseName:"cdlDarkCloudCover",group:"Pattern Recognition",description:"Dark Cloud Cover",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"penetration",displayName:"Penetration",defaultValue:.5,hint:"Percentage of penetration of a candle within another candle",type:"Double",range:{min:0,max:3e37}}],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLDOJI:{name:"CDLDOJI",camelCaseName:"cdlDoji",group:"Pattern Recognition",description:"Doji",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLDOJISTAR:{name:"CDLDOJISTAR",camelCaseName:"cdlDojiStar",group:"Pattern Recognition",description:"Doji Star",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLDRAGONFLYDOJI:{name:"CDLDRAGONFLYDOJI",camelCaseName:"cdlDragonflyDoji",group:"Pattern Recognition",description:"Dragonfly Doji",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLENGULFING:{name:"CDLENGULFING",camelCaseName:"cdlEngulfing",group:"Pattern Recognition",description:"Engulfing Pattern",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLEVENINGDOJISTAR:{name:"CDLEVENINGDOJISTAR",camelCaseName:"cdlEveningDojiStar",group:"Pattern Recognition",description:"Evening Doji Star",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"penetration",displayName:"Penetration",defaultValue:.3,hint:"Percentage of penetration of a candle within another candle",type:"Double",range:{min:0,max:3e37}}],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLEVENINGSTAR:{name:"CDLEVENINGSTAR",camelCaseName:"cdlEveningStar",group:"Pattern Recognition",description:"Evening Star",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"penetration",displayName:"Penetration",defaultValue:.3,hint:"Percentage of penetration of a candle within another candle",type:"Double",range:{min:0,max:3e37}}],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLGAPSIDESIDEWHITE:{name:"CDLGAPSIDESIDEWHITE",camelCaseName:"cdlGapSideSideWhite",group:"Pattern Recognition",description:"Up/Down-gap side-by-side white lines",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLGRAVESTONEDOJI:{name:"CDLGRAVESTONEDOJI",camelCaseName:"cdlGravestoneDoji",group:"Pattern Recognition",description:"Gravestone Doji",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLHAMMER:{name:"CDLHAMMER",camelCaseName:"cdlHammer",group:"Pattern Recognition",description:"Hammer",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLHANGINGMAN:{name:"CDLHANGINGMAN",camelCaseName:"cdlHangingMan",group:"Pattern Recognition",description:"Hanging Man",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLHARAMI:{name:"CDLHARAMI",camelCaseName:"cdlHarami",group:"Pattern Recognition",description:"Harami Pattern",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLHARAMICROSS:{name:"CDLHARAMICROSS",camelCaseName:"cdlHaramiCross",group:"Pattern Recognition",description:"Harami Cross Pattern",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLHIGHWAVE:{name:"CDLHIGHWAVE",camelCaseName:"cdlHignWave",group:"Pattern Recognition",description:"High-Wave Candle",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLHIKKAKE:{name:"CDLHIKKAKE",camelCaseName:"cdlHikkake",group:"Pattern Recognition",description:"Hikkake Pattern",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLHIKKAKEMOD:{name:"CDLHIKKAKEMOD",camelCaseName:"cdlHikkakeMod",group:"Pattern Recognition",description:"Modified Hikkake Pattern",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLHOMINGPIGEON:{name:"CDLHOMINGPIGEON",camelCaseName:"cdlHomingPigeon",group:"Pattern Recognition",description:"Homing Pigeon",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLIDENTICAL3CROWS:{name:"CDLIDENTICAL3CROWS",camelCaseName:"cdlIdentical3Crows",group:"Pattern Recognition",description:"Identical Three Crows",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLINNECK:{name:"CDLINNECK",camelCaseName:"cdlInNeck",group:"Pattern Recognition",description:"In-Neck Pattern",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLINVERTEDHAMMER:{name:"CDLINVERTEDHAMMER",camelCaseName:"cdlInvertedHammer",group:"Pattern Recognition",description:"Inverted Hammer",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLKICKING:{name:"CDLKICKING",camelCaseName:"cdlKicking",group:"Pattern Recognition",description:"Kicking",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLKICKINGBYLENGTH:{name:"CDLKICKINGBYLENGTH",camelCaseName:"cdlKickingByLength",group:"Pattern Recognition",description:"Kicking - bull/bear determined by the longer marubozu",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLLADDERBOTTOM:{name:"CDLLADDERBOTTOM",camelCaseName:"cdlLadderBottom",group:"Pattern Recognition",description:"Ladder Bottom",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLLONGLEGGEDDOJI:{name:"CDLLONGLEGGEDDOJI",camelCaseName:"cdlLongLeggedDoji",group:"Pattern Recognition",description:"Long Legged Doji",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLLONGLINE:{name:"CDLLONGLINE",camelCaseName:"cdlLongLine",group:"Pattern Recognition",description:"Long Line Candle",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLMARUBOZU:{name:"CDLMARUBOZU",camelCaseName:"cdlMarubozu",group:"Pattern Recognition",description:"Marubozu",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLMATCHINGLOW:{name:"CDLMATCHINGLOW",camelCaseName:"cdlMatchingLow",group:"Pattern Recognition",description:"Matching Low",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLMATHOLD:{name:"CDLMATHOLD",camelCaseName:"cdlMatHold",group:"Pattern Recognition",description:"Mat Hold",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"penetration",displayName:"Penetration",defaultValue:.5,hint:"Percentage of penetration of a candle within another candle",type:"Double",range:{min:0,max:3e37}}],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLMORNINGDOJISTAR:{name:"CDLMORNINGDOJISTAR",camelCaseName:"cdlMorningDojiStar",group:"Pattern Recognition",description:"Morning Doji Star",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"penetration",displayName:"Penetration",defaultValue:.3,hint:"Percentage of penetration of a candle within another candle",type:"Double",range:{min:0,max:3e37}}],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLMORNINGSTAR:{name:"CDLMORNINGSTAR",camelCaseName:"cdlMorningStar",group:"Pattern Recognition",description:"Morning Star",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"penetration",displayName:"Penetration",defaultValue:.3,hint:"Percentage of penetration of a candle within another candle",type:"Double",range:{min:0,max:3e37}}],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLONNECK:{name:"CDLONNECK",camelCaseName:"cdlOnNeck",group:"Pattern Recognition",description:"On-Neck Pattern",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLPIERCING:{name:"CDLPIERCING",camelCaseName:"cdlPiercing",group:"Pattern Recognition",description:"Piercing Pattern",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLRICKSHAWMAN:{name:"CDLRICKSHAWMAN",camelCaseName:"cdlRickshawMan",group:"Pattern Recognition",description:"Rickshaw Man",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLRISEFALL3METHODS:{name:"CDLRISEFALL3METHODS",camelCaseName:"cdlRiseFall3Methods",group:"Pattern Recognition",description:"Rising/Falling Three Methods",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLSEPARATINGLINES:{name:"CDLSEPARATINGLINES",camelCaseName:"cdlSeperatingLines",group:"Pattern Recognition",description:"Separating Lines",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLSHOOTINGSTAR:{name:"CDLSHOOTINGSTAR",camelCaseName:"cdlShootingStar",group:"Pattern Recognition",description:"Shooting Star",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLSHORTLINE:{name:"CDLSHORTLINE",camelCaseName:"cdlShortLine",group:"Pattern Recognition",description:"Short Line Candle",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLSPINNINGTOP:{name:"CDLSPINNINGTOP",camelCaseName:"cdlSpinningTop",group:"Pattern Recognition",description:"Spinning Top",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLSTALLEDPATTERN:{name:"CDLSTALLEDPATTERN",camelCaseName:"cdlStalledPattern",group:"Pattern Recognition",description:"Stalled Pattern",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLSTICKSANDWICH:{name:"CDLSTICKSANDWICH",camelCaseName:"cdlStickSandwhich",group:"Pattern Recognition",description:"Stick Sandwich",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLTAKURI:{name:"CDLTAKURI",camelCaseName:"cdlTakuri",group:"Pattern Recognition",description:"Takuri (Dragonfly Doji with very long lower shadow)",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLTASUKIGAP:{name:"CDLTASUKIGAP",camelCaseName:"cdlTasukiGap",group:"Pattern Recognition",description:"Tasuki Gap",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLTHRUSTING:{name:"CDLTHRUSTING",camelCaseName:"cdlThrusting",group:"Pattern Recognition",description:"Thrusting Pattern",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLTRISTAR:{name:"CDLTRISTAR",camelCaseName:"cdlTristar",group:"Pattern Recognition",description:"Tristar Pattern",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLUNIQUE3RIVER:{name:"CDLUNIQUE3RIVER",camelCaseName:"cdlUnique3River",group:"Pattern Recognition",description:"Unique 3 River",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLUPSIDEGAP2CROWS:{name:"CDLUPSIDEGAP2CROWS",camelCaseName:"cdlUpsideGap2Crows",group:"Pattern Recognition",description:"Upside Gap Two Crows",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CDLXSIDEGAP3METHODS:{name:"CDLXSIDEGAP3METHODS",camelCaseName:"cdlXSideGap3Methods",group:"Pattern Recognition",description:"Upside/Downside Gap Three Methods",inputs:[{name:"open",type:"Double[]"},{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},CEIL:{name:"CEIL",camelCaseName:"ceil",group:"Math Transform",description:"Vector Ceil",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},CMO:{name:"CMO",camelCaseName:"cmo",group:"Momentum Indicators",description:"Chande Momentum Oscillator",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},CORREL:{name:"CORREL",camelCaseName:"correl",group:"Statistic Functions",description:"Pearson's Correlation Coefficient (r)",inputs:[{name:"inReal0",type:"Double[]"},{name:"inReal1",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},COS:{name:"COS",camelCaseName:"cos",group:"Math Transform",description:"Vector Trigonometric Cos",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},COSH:{name:"COSH",camelCaseName:"cosh",group:"Math Transform",description:"Vector Trigonometric Cosh",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},DEMA:{name:"DEMA",camelCaseName:"dema",group:"Overlap Studies",description:"Double Exponential Moving Average",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},DIV:{name:"DIV",camelCaseName:"div",group:"Math Operators",description:"Vector Arithmetic Div",inputs:[{name:"inReal0",type:"Double[]"},{name:"inReal1",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},DX:{name:"DX",camelCaseName:"dx",group:"Momentum Indicators",description:"Directional Movement Index",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},EMA:{name:"EMA",camelCaseName:"ema",group:"Overlap Studies",description:"Exponential Moving Average",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},EXP:{name:"EXP",camelCaseName:"exp",group:"Math Transform",description:"Vector Arithmetic Exp",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},FLOOR:{name:"FLOOR",camelCaseName:"floor",group:"Math Transform",description:"Vector Floor",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},HT_DCPERIOD:{name:"HT_DCPERIOD",camelCaseName:"htDcPeriod",group:"Cycle Indicators",description:"Hilbert Transform - Dominant Cycle Period",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},HT_DCPHASE:{name:"HT_DCPHASE",camelCaseName:"htDcPhase",group:"Cycle Indicators",description:"Hilbert Transform - Dominant Cycle Phase",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},HT_PHASOR:{name:"HT_PHASOR",camelCaseName:"htPhasor",group:"Cycle Indicators",description:"Hilbert Transform - Phasor Components",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"inPhase",type:"Double[]",plotHint:"line"},{name:"quadrature",type:"Double[]",plotHint:"line_dash"}]},HT_SINE:{name:"HT_SINE",camelCaseName:"htSine",group:"Cycle Indicators",description:"Hilbert Transform - SineWave",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"sine",type:"Double[]",plotHint:"line"},{name:"leadSine",type:"Double[]",plotHint:"line_dash"}]},HT_TRENDLINE:{name:"HT_TRENDLINE",camelCaseName:"htTrendline",group:"Overlap Studies",description:"Hilbert Transform - Instantaneous Trendline",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},HT_TRENDMODE:{name:"HT_TRENDMODE",camelCaseName:"htTrendMode",group:"Cycle Indicators",description:"Hilbert Transform - Trend vs Cycle Mode",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},IMI:{name:"IMI",camelCaseName:"imi",group:"Momentum Indicators",description:"Intraday Momentum Index",inputs:[{name:"open",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},KAMA:{name:"KAMA",camelCaseName:"kama",group:"Overlap Studies",description:"Kaufman Adaptive Moving Average",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},LINEARREG:{name:"LINEARREG",camelCaseName:"linearReg",group:"Statistic Functions",description:"Linear Regression",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},LINEARREG_ANGLE:{name:"LINEARREG_ANGLE",camelCaseName:"linearRegAngle",group:"Statistic Functions",description:"Linear Regression Angle",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},LINEARREG_INTERCEPT:{name:"LINEARREG_INTERCEPT",camelCaseName:"linearRegIntercept",group:"Statistic Functions",description:"Linear Regression Intercept",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},LINEARREG_SLOPE:{name:"LINEARREG_SLOPE",camelCaseName:"linearRegSlope",group:"Statistic Functions",description:"Linear Regression Slope",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},LN:{name:"LN",camelCaseName:"ln",group:"Math Transform",description:"Vector Log Natural",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},LOG10:{name:"LOG10",camelCaseName:"log10",group:"Math Transform",description:"Vector Log10",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},MA:{name:"MA",camelCaseName:"movingAverage",group:"Overlap Studies",description:"Moving average",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}},{name:"MAType",displayName:"MA Type",defaultValue:0,hint:"Type of Moving Average",type:"MAType"}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},MACD:{name:"MACD",camelCaseName:"macd",group:"Momentum Indicators",description:"Moving Average Convergence/Divergence",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"fastPeriod",displayName:"Fast Period",defaultValue:12,hint:"Number of period for the fast MA",type:"Integer",range:{min:2,max:1e5}},{name:"slowPeriod",displayName:"Slow Period",defaultValue:26,hint:"Number of period for the slow MA",type:"Integer",range:{min:2,max:1e5}},{name:"signalPeriod",displayName:"Signal Period",defaultValue:9,hint:"Smoothing for the signal line (nb of period)",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"MACD",type:"Double[]",plotHint:"line"},{name:"MACDSignal",type:"Double[]",plotHint:"line_dash"},{name:"MACDHist",type:"Double[]",plotHint:"histogram"}]},MACDEXT:{name:"MACDEXT",camelCaseName:"macdExt",group:"Momentum Indicators",description:"MACD with controllable MA type",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"fastPeriod",displayName:"Fast Period",defaultValue:12,hint:"Number of period for the fast MA",type:"Integer",range:{min:2,max:1e5}},{name:"fastMAType",displayName:"Fast MA",defaultValue:0,hint:"Type of Moving Average for fast MA",type:"MAType"},{name:"slowPeriod",displayName:"Slow Period",defaultValue:26,hint:"Number of period for the slow MA",type:"Integer",range:{min:2,max:1e5}},{name:"slowMAType",displayName:"Slow MA",defaultValue:0,hint:"Type of Moving Average for slow MA",type:"MAType"},{name:"signalPeriod",displayName:"Signal Period",defaultValue:9,hint:"Smoothing for the signal line (nb of period)",type:"Integer",range:{min:1,max:1e5}},{name:"signalMAType",displayName:"Signal MA",defaultValue:0,hint:"Type of Moving Average for signal line",type:"MAType"}],outputs:[{name:"MACD",type:"Double[]",plotHint:"line"},{name:"MACDSignal",type:"Double[]",plotHint:"line_dash"},{name:"MACDHist",type:"Double[]",plotHint:"histogram"}]},MACDFIX:{name:"MACDFIX",camelCaseName:"macdFix",group:"Momentum Indicators",description:"Moving Average Convergence/Divergence Fix 12/26",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"signalPeriod",displayName:"Signal Period",defaultValue:9,hint:"Smoothing for the signal line (nb of period)",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"MACD",type:"Double[]",plotHint:"line"},{name:"MACDSignal",type:"Double[]",plotHint:"line_dash"},{name:"MACDHist",type:"Double[]",plotHint:"histogram"}]},MAMA:{name:"MAMA",camelCaseName:"mama",group:"Overlap Studies",description:"MESA Adaptive Moving Average",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"fastLimit",displayName:"Fast Limit",defaultValue:.5,hint:"Upper limit use in the adaptive algorithm",type:"Double",range:{min:.01,max:.99}},{name:"slowLimit",displayName:"Slow Limit",defaultValue:.05,hint:"Lower limit use in the adaptive algorithm",type:"Double",range:{min:.01,max:.99}}],outputs:[{name:"MAMA",type:"Double[]",plotHint:"line"},{name:"FAMA",type:"Double[]",plotHint:"line_dash"}]},MAVP:{name:"MAVP",camelCaseName:"movingAverageVariablePeriod",group:"Overlap Studies",description:"Moving average with variable period",inputs:[{name:"inReal",type:"Double[]"},{name:"inPeriods",type:"Double[]"}],options:[{name:"minPeriod",displayName:"Minimum Period",defaultValue:2,hint:"Value less than minimum will be changed to Minimum period",type:"Integer",range:{min:2,max:1e5}},{name:"maxPeriod",displayName:"Maximum Period",defaultValue:30,hint:"Value higher than maximum will be changed to Maximum period",type:"Integer",range:{min:2,max:1e5}},{name:"MAType",displayName:"MA Type",defaultValue:0,hint:"Type of Moving Average",type:"MAType"}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},MAX:{name:"MAX",camelCaseName:"max",group:"Math Operators",description:"Highest value over a specified period",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},MAXINDEX:{name:"MAXINDEX",camelCaseName:"maxIndex",group:"Math Operators",description:"Index of highest value over a specified period",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},MEDPRICE:{name:"MEDPRICE",camelCaseName:"medPrice",group:"Price Transform",description:"Median Price",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},MFI:{name:"MFI",camelCaseName:"mfi",group:"Momentum Indicators",description:"Money Flow Index",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"},{name:"volume",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},MIDPOINT:{name:"MIDPOINT",camelCaseName:"midPoint",group:"Overlap Studies",description:"MidPoint over period",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},MIDPRICE:{name:"MIDPRICE",camelCaseName:"midPrice",group:"Overlap Studies",description:"Midpoint Price over period",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},MIN:{name:"MIN",camelCaseName:"min",group:"Math Operators",description:"Lowest value over a specified period",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},MININDEX:{name:"MININDEX",camelCaseName:"minIndex",group:"Math Operators",description:"Index of lowest value over a specified period",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Integer[]",plotHint:"line"}]},MINMAX:{name:"MINMAX",camelCaseName:"minMax",group:"Math Operators",description:"Lowest and highest values over a specified period",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"min",type:"Double[]",plotHint:"line"},{name:"max",type:"Double[]",plotHint:"line"}]},MINMAXINDEX:{name:"MINMAXINDEX",camelCaseName:"minMaxIndex",group:"Math Operators",description:"Indexes of lowest and highest values over a specified period",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"minIdx",type:"Integer[]",plotHint:"line"},{name:"maxIdx",type:"Integer[]",plotHint:"line"}]},MINUS_DI:{name:"MINUS_DI",camelCaseName:"minusDI",group:"Momentum Indicators",description:"Minus Directional Indicator",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},MINUS_DM:{name:"MINUS_DM",camelCaseName:"minusDM",group:"Momentum Indicators",description:"Minus Directional Movement",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},MOM:{name:"MOM",camelCaseName:"mom",group:"Momentum Indicators",description:"Momentum",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:10,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},MULT:{name:"MULT",camelCaseName:"mult",group:"Math Operators",description:"Vector Arithmetic Mult",inputs:[{name:"inReal0",type:"Double[]"},{name:"inReal1",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},NATR:{name:"NATR",camelCaseName:"natr",group:"Volatility Indicators",description:"Normalized Average True Range",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},OBV:{name:"OBV",camelCaseName:"obv",group:"Volume Indicators",description:"On Balance Volume",inputs:[{name:"inReal",type:"Double[]"},{name:"volume",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},PLUS_DI:{name:"PLUS_DI",camelCaseName:"plusDI",group:"Momentum Indicators",description:"Plus Directional Indicator",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},PLUS_DM:{name:"PLUS_DM",camelCaseName:"plusDM",group:"Momentum Indicators",description:"Plus Directional Movement",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},PPO:{name:"PPO",camelCaseName:"ppo",group:"Momentum Indicators",description:"Percentage Price Oscillator",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"fastPeriod",displayName:"Fast Period",defaultValue:12,hint:"Number of period for the fast MA",type:"Integer",range:{min:2,max:1e5}},{name:"slowPeriod",displayName:"Slow Period",defaultValue:26,hint:"Number of period for the slow MA",type:"Integer",range:{min:2,max:1e5}},{name:"MAType",displayName:"MA Type",defaultValue:0,hint:"Type of Moving Average",type:"MAType"}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},ROC:{name:"ROC",camelCaseName:"roc",group:"Momentum Indicators",description:"Rate of change : ((price/prevPrice)-1)*100",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:10,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},ROCP:{name:"ROCP",camelCaseName:"rocP",group:"Momentum Indicators",description:"Rate of change Percentage: (price-prevPrice)/prevPrice",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:10,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},ROCR:{name:"ROCR",camelCaseName:"rocR",group:"Momentum Indicators",description:"Rate of change ratio: (price/prevPrice)",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:10,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},ROCR100:{name:"ROCR100",camelCaseName:"rocR100",group:"Momentum Indicators",description:"Rate of change ratio 100 scale: (price/prevPrice)*100",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:10,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},RSI:{name:"RSI",camelCaseName:"rsi",group:"Momentum Indicators",description:"Relative Strength Index",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},SAR:{name:"SAR",camelCaseName:"sar",group:"Overlap Studies",description:"Parabolic SAR",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"}],options:[{name:"acceleration",displayName:"Acceleration Factor",defaultValue:.02,hint:"Acceleration Factor used up to the Maximum value",type:"Double",range:{min:0,max:3e37}},{name:"maximum",displayName:"AF Maximum",defaultValue:.2,hint:"Acceleration Factor Maximum value",type:"Double",range:{min:0,max:3e37}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},SAREXT:{name:"SAREXT",camelCaseName:"sarExt",group:"Overlap Studies",description:"Parabolic SAR - Extended",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"}],options:[{name:"startValue",displayName:"Start Value",defaultValue:0,hint:"Start value and direction. 0 for Auto, >0 for Long, <0 for Short",type:"Double",range:{min:-3e37,max:3e37}},{name:"offsetOnReverse",displayName:"Offset on Reverse",defaultValue:0,hint:"Percent offset added/removed to initial stop on short/long reversal",type:"Double",range:{min:0,max:3e37}},{name:"accelerationInitLong",displayName:"AF Init Long",defaultValue:.02,hint:"Acceleration Factor initial value for the Long direction",type:"Double",range:{min:0,max:3e37}},{name:"accelerationLong",displayName:"AF Long",defaultValue:.02,hint:"Acceleration Factor for the Long direction",type:"Double",range:{min:0,max:3e37}},{name:"accelerationMaxLong",displayName:"AF Max Long",defaultValue:.2,hint:"Acceleration Factor maximum value for the Long direction",type:"Double",range:{min:0,max:3e37}},{name:"accelerationInitShort",displayName:"AF Init Short",defaultValue:.02,hint:"Acceleration Factor initial value for the Short direction",type:"Double",range:{min:0,max:3e37}},{name:"accelerationShort",displayName:"AF Short",defaultValue:.02,hint:"Acceleration Factor for the Short direction",type:"Double",range:{min:0,max:3e37}},{name:"accelerationMaxShort",displayName:"AF Max Short",defaultValue:.2,hint:"Acceleration Factor maximum value for the Short direction",type:"Double",range:{min:0,max:3e37}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},SIN:{name:"SIN",camelCaseName:"sin",group:"Math Transform",description:"Vector Trigonometric Sin",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},SINH:{name:"SINH",camelCaseName:"sinh",group:"Math Transform",description:"Vector Trigonometric Sinh",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},SMA:{name:"SMA",camelCaseName:"sma",group:"Overlap Studies",description:"Simple Moving Average",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},SQRT:{name:"SQRT",camelCaseName:"sqrt",group:"Math Transform",description:"Vector Square Root",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},STDDEV:{name:"STDDEV",camelCaseName:"stdDev",group:"Statistic Functions",description:"Standard Deviation",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:5,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}},{name:"nbDev",displayName:"Deviations",defaultValue:1,hint:"Nb of deviations",type:"Double",range:{min:-3e37,max:3e37}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},STOCH:{name:"STOCH",camelCaseName:"stoch",group:"Momentum Indicators",description:"Stochastic",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"fastK_Period",displayName:"Fast-K Period",defaultValue:5,hint:"Time period for building the Fast-K line",type:"Integer",range:{min:1,max:1e5}},{name:"slowK_Period",displayName:"Slow-K Period",defaultValue:3,hint:"Smoothing for making the Slow-K line. Usually set to 3",type:"Integer",range:{min:1,max:1e5}},{name:"slowK_MAType",displayName:"Slow-K MA",defaultValue:0,hint:"Type of Moving Average for Slow-K",type:"MAType"},{name:"slowD_Period",displayName:"Slow-D Period",defaultValue:3,hint:"Smoothing for making the Slow-D line",type:"Integer",range:{min:1,max:1e5}},{name:"slowD_MAType",displayName:"Slow-D MA",defaultValue:0,hint:"Type of Moving Average for Slow-D",type:"MAType"}],outputs:[{name:"slowK",type:"Double[]",plotHint:"line_dash"},{name:"slowD",type:"Double[]",plotHint:"line_dash"}]},STOCHF:{name:"STOCHF",camelCaseName:"stochF",group:"Momentum Indicators",description:"Stochastic Fast",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"fastK_Period",displayName:"Fast-K Period",defaultValue:5,hint:"Time period for building the Fast-K line",type:"Integer",range:{min:1,max:1e5}},{name:"fastD_Period",displayName:"Fast-D Period",defaultValue:3,hint:"Smoothing for making the Fast-D line. Usually set to 3",type:"Integer",range:{min:1,max:1e5}},{name:"fastD_MAType",displayName:"Fast-D MA",defaultValue:0,hint:"Type of Moving Average for Fast-D",type:"MAType"}],outputs:[{name:"fastK",type:"Double[]",plotHint:"line"},{name:"fastD",type:"Double[]",plotHint:"line"}]},STOCHRSI:{name:"STOCHRSI",camelCaseName:"stochRsi",group:"Momentum Indicators",description:"Stochastic Relative Strength Index",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}},{name:"fastK_Period",displayName:"Fast-K Period",defaultValue:5,hint:"Time period for building the Fast-K line",type:"Integer",range:{min:1,max:1e5}},{name:"fastD_Period",displayName:"Fast-D Period",defaultValue:3,hint:"Smoothing for making the Fast-D line. Usually set to 3",type:"Integer",range:{min:1,max:1e5}},{name:"fastD_MAType",displayName:"Fast-D MA",defaultValue:0,hint:"Type of Moving Average for Fast-D",type:"MAType"}],outputs:[{name:"fastK",type:"Double[]",plotHint:"line"},{name:"fastD",type:"Double[]",plotHint:"line"}]},SUB:{name:"SUB",camelCaseName:"sub",group:"Math Operators",description:"Vector Arithmetic Substraction",inputs:[{name:"inReal0",type:"Double[]"},{name:"inReal1",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},SUM:{name:"SUM",camelCaseName:"sum",group:"Math Operators",description:"Summation",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},T3:{name:"T3",camelCaseName:"t3",group:"Overlap Studies",description:"Triple Exponential Moving Average (T3)",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:5,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}},{name:"VFactor",displayName:"Volume Factor",defaultValue:.7,hint:"Volume Factor",type:"Double",range:{min:0,max:1}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},TAN:{name:"TAN",camelCaseName:"tan",group:"Math Transform",description:"Vector Trigonometric Tan",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},TANH:{name:"TANH",camelCaseName:"tanh",group:"Math Transform",description:"Vector Trigonometric Tanh",inputs:[{name:"inReal",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},TEMA:{name:"TEMA",camelCaseName:"tema",group:"Overlap Studies",description:"Triple Exponential Moving Average",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},TRANGE:{name:"TRANGE",camelCaseName:"trueRange",group:"Volatility Indicators",description:"True Range",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},TRIMA:{name:"TRIMA",camelCaseName:"trima",group:"Overlap Studies",description:"Triangular Moving Average",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},TRIX:{name:"TRIX",camelCaseName:"trix",group:"Momentum Indicators",description:"1-day Rate-Of-Change (ROC) of a Triple Smooth EMA",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},TSF:{name:"TSF",camelCaseName:"tsf",group:"Statistic Functions",description:"Time Series Forecast",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},TYPPRICE:{name:"TYPPRICE",camelCaseName:"typPrice",group:"Price Transform",description:"Typical Price",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},ULTOSC:{name:"ULTOSC",camelCaseName:"ultOsc",group:"Momentum Indicators",description:"Ultimate Oscillator",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"timePeriod1",displayName:"First Period",defaultValue:7,hint:"Number of bars for 1st period.",type:"Integer",range:{min:1,max:1e5}},{name:"timePeriod2",displayName:"Second Period",defaultValue:14,hint:"Number of bars fro 2nd period",type:"Integer",range:{min:1,max:1e5}},{name:"timePeriod3",displayName:"Third Period",defaultValue:28,hint:"Number of bars for 3rd period",type:"Integer",range:{min:1,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},VAR:{name:"VAR",camelCaseName:"variance",group:"Statistic Functions",description:"Variance",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:5,hint:"Number of period",type:"Integer",range:{min:1,max:1e5}},{name:"nbDev",displayName:"Deviations",defaultValue:1,hint:"Nb of deviations",type:"Double",range:{min:-3e37,max:3e37}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},WCLPRICE:{name:"WCLPRICE",camelCaseName:"wclPrice",group:"Price Transform",description:"Weighted Close Price",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},WILLR:{name:"WILLR",camelCaseName:"willR",group:"Momentum Indicators",description:"Williams' %R",inputs:[{name:"high",type:"Double[]"},{name:"low",type:"Double[]"},{name:"close",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:14,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]},WMA:{name:"WMA",camelCaseName:"wma",group:"Overlap Studies",description:"Weighted Moving Average",inputs:[{name:"inReal",type:"Double[]"}],options:[{name:"timePeriod",displayName:"Time Period",defaultValue:30,hint:"Number of period",type:"Integer",range:{min:2,max:1e5}}],outputs:[{name:"output",type:"Double[]",plotHint:"line"}]}};var xe=xe;let ae;function un(n,y){const e=n._malloc(y*8);return n.HEAPF64.set(new Float64Array(y),e/8),{data:n.HEAPF64.subarray(e/8,e/8+y),offset:e}}const zo={0:"TA_SUCCESS",1:"TA_LIB_NOT_INITIALIZE",2:"TA_BAD_PARAM",3:"TA_ALLOC_ERR",4:"TA_GROUP_NOT_FOUND",5:"TA_FUNC_NOT_FOUND",6:"TA_INVALID_HANDLE",7:"TA_INVALID_PARAM_HOLDER",8:"TA_INVALID_PARAM_HOLDER_TYPE",9:"TA_INVALID_PARAM_FUNCTION",10:"TA_INPUT_NOT_ALL_INITIALIZE",11:"TA_OUTPUT_NOT_ALL_INITIALIZE",12:"TA_OUT_OF_RANGE_START_INDEX",13:"TA_OUT_OF_RANGE_END_INDEX",14:"TA_INVALID_LIST_TYPE",15:"TA_BAD_OBJECT",16:"TA_NOT_SUPPORTED",5e3:"TA_INTERNAL_ERROR",65535:"TA_UNKNOWN_ERR"};function o(n,y){const e=`TA_${n.name}`;if(!ae)throw Error(`${n.name}() called before initialization.`);const S=2+n.inputs.length+n.options.length+2+n.outputs.length,G=new Array(S).fill("number");for(const{name:l}of n.inputs)if(!Array.isArray(y[l]))throw y[l]===void 0?Error(`Bad Param: "${l}" is required`):Error(`Bad Param: "${l}" should be array of number`);for(const{name:l,defaultValue:p,range:s}of n.options)if(y[l]===void 0)y[l]=p;else if(s&&(y[l]<s.min||y[l]>s.max))throw Error(`Bad Param: "${l}" out of range (min: ${s.min}, max: ${s.max})`);let{startIdx:O,endIdx:C}=y;O===void 0&&(O=0);const g=n.inputs.map(({name:l})=>y[l].length);C===void 0&&(C=Math.min(...g));const _=[O,C],D=[];n.inputs.forEach(({name:l})=>{const p=un(ae,C-O),s=y[l];for(const T in s)p.data[T]=s[T];D.push(p),_.push(p.offset)}),n.options.forEach(({name:l})=>_.push(y[l])),_.push(0),_.push(0);const b=n.outputs.map(({name:l})=>{const p=un(ae,C-O);return D.push(p),_.push(p.offset),{name:l,array:p}}),R=ae.ccall(e,"number",G,_);D.forEach(l=>ae._free(l.offset));const u=b.reduce((l,p)=>(l[p.name]=Array.from(p.array.data),l),{});if(R===0)return u;throw Error("[C_ERROR] "+zo[R])}var Ge;(function(n){n[n.SMA=0]="SMA",n[n.EMA=1]="EMA",n[n.WMA=2]="WMA",n[n.DEMA=3]="DEMA",n[n.TEMA=4]="TEMA",n[n.TRIMA=5]="TRIMA",n[n.KAMA=6]="KAMA",n[n.MAMA=7]="MAMA",n[n.T3=8]="T3"})(Ge||(Ge={}));function pn(n){return ae?Promise.resolve(ae):n&&typeof n!="string"?Promise.reject(new Error('Invalid argument, "init(wasmBinaryFilePath)" expects a string that specifies the location of wasm binary file')):xe({locateFile:n?()=>n:void 0}).then(e=>ae=e).catch(e=>{let S="TA-Lib WASM runtime init fail.";throw e&&e.message?S+=`
|
|
2
|
-
Error:
|
|
3
|
-
`+e.message:S+="Unknown reason. Perhaps you specify the wrong file path to wasm binary?",new Error(S)})}let $o=a.ACCBANDS;function sn(n){return o($o,n)}const Zo=sn;let Qo=a.ACOS;function mn(n){return o(Qo,n)}const ei=mn;let ni=a.AD;function cn(n){return o(ni,n)}const ti=cn;let ai=a.ADD;function _n(n){return o(ai,n)}const oi=_n;let ii=a.ADOSC;function An(n){return o(ii,n)}const ri=An;let ui=a.ADX;function Dn(n){return o(ui,n)}const li=Dn;let pi=a.ADXR;function dn(n){return o(pi,n)}const si=dn;let mi=a.APO;function In(n){return o(mi,n)}const ci=In;let _i=a.AROON;function Tn(n){return o(_i,n)}const Ai=Tn;let Di=a.AROONOSC;function yn(n){return o(Di,n)}const di=yn;let Ii=a.ASIN;function fn(n){return o(Ii,n)}const Ti=fn;let yi=a.ATAN;function Cn(n){return o(yi,n)}const fi=Cn;let Ci=a.ATR;function gn(n){return o(Ci,n)}const gi=gn;let Ni=a.AVGDEV;function Nn(n){return o(Ni,n)}const Li=Nn;let Ri=a.AVGPRICE;function Ln(n){return o(Ri,n)}const Ei=Ln;let bi=a.BBANDS;function Rn(n){return o(bi,n)}const Si=Rn;let Pi=a.BETA;function En(n){return o(Pi,n)}const hi=En;let Oi=a.BOP;function bn(n){return o(Oi,n)}const Mi=bn;let Hi=a.CCI;function Sn(n){return o(Hi,n)}const vi=Sn;let wi=a.CDL2CROWS;function Pn(n){return o(wi,n)}const Gi=Pn;let Vi=a.CDL3BLACKCROWS;function hn(n){return o(Vi,n)}const xi=hn;let Ui=a.CDL3INSIDE;function On(n){return o(Ui,n)}const Bi=On;let Ki=a.CDL3LINESTRIKE;function Mn(n){return o(Ki,n)}const Fi=Mn;let Wi=a.CDL3OUTSIDE;function Hn(n){return o(Wi,n)}const ki=Hn;let Xi=a.CDL3STARSINSOUTH;function vn(n){return o(Xi,n)}const Ji=vn;let Yi=a.CDL3WHITESOLDIERS;function wn(n){return o(Yi,n)}const ji=wn;let qi=a.CDLABANDONEDBABY;function Gn(n){return o(qi,n)}const zi=Gn;let $i=a.CDLADVANCEBLOCK;function Vn(n){return o($i,n)}const Zi=Vn;let Qi=a.CDLBELTHOLD;function xn(n){return o(Qi,n)}const er=xn;let nr=a.CDLBREAKAWAY;function Un(n){return o(nr,n)}const tr=Un;let ar=a.CDLCLOSINGMARUBOZU;function Bn(n){return o(ar,n)}const or=Bn;let ir=a.CDLCONCEALBABYSWALL;function Kn(n){return o(ir,n)}const rr=Kn;let ur=a.CDLCOUNTERATTACK;function Fn(n){return o(ur,n)}const lr=Fn;let pr=a.CDLDARKCLOUDCOVER;function Wn(n){return o(pr,n)}const sr=Wn;let mr=a.CDLDOJI;function kn(n){return o(mr,n)}const cr=kn;let _r=a.CDLDOJISTAR;function Xn(n){return o(_r,n)}const Ar=Xn;let Dr=a.CDLDRAGONFLYDOJI;function Jn(n){return o(Dr,n)}const dr=Jn;let Ir=a.CDLENGULFING;function Yn(n){return o(Ir,n)}const Tr=Yn;let yr=a.CDLEVENINGDOJISTAR;function jn(n){return o(yr,n)}const fr=jn;let Cr=a.CDLEVENINGSTAR;function qn(n){return o(Cr,n)}const gr=qn;let Nr=a.CDLGAPSIDESIDEWHITE;function zn(n){return o(Nr,n)}const Lr=zn;let Rr=a.CDLGRAVESTONEDOJI;function $n(n){return o(Rr,n)}const Er=$n;let br=a.CDLHAMMER;function Zn(n){return o(br,n)}const Sr=Zn;let Pr=a.CDLHANGINGMAN;function Qn(n){return o(Pr,n)}const hr=Qn;let Or=a.CDLHARAMI;function et(n){return o(Or,n)}const Mr=et;let Hr=a.CDLHARAMICROSS;function nt(n){return o(Hr,n)}const vr=nt;let wr=a.CDLHIGHWAVE;function tt(n){return o(wr,n)}const Gr=tt;let Vr=a.CDLHIKKAKE;function at(n){return o(Vr,n)}const xr=at;let Ur=a.CDLHIKKAKEMOD;function ot(n){return o(Ur,n)}const Br=ot;let Kr=a.CDLHOMINGPIGEON;function it(n){return o(Kr,n)}const Fr=it;let Wr=a.CDLIDENTICAL3CROWS;function rt(n){return o(Wr,n)}const kr=rt;let Xr=a.CDLINNECK;function ut(n){return o(Xr,n)}const Jr=ut;let Yr=a.CDLINVERTEDHAMMER;function lt(n){return o(Yr,n)}const jr=lt;let qr=a.CDLKICKING;function pt(n){return o(qr,n)}const zr=pt;let $r=a.CDLKICKINGBYLENGTH;function st(n){return o($r,n)}const Zr=st;let Qr=a.CDLLADDERBOTTOM;function mt(n){return o(Qr,n)}const eu=mt;let nu=a.CDLLONGLEGGEDDOJI;function ct(n){return o(nu,n)}const tu=ct;let au=a.CDLLONGLINE;function _t(n){return o(au,n)}const ou=_t;let iu=a.CDLMARUBOZU;function At(n){return o(iu,n)}const ru=At;let uu=a.CDLMATCHINGLOW;function Dt(n){return o(uu,n)}const lu=Dt;let pu=a.CDLMATHOLD;function dt(n){return o(pu,n)}const su=dt;let mu=a.CDLMORNINGDOJISTAR;function It(n){return o(mu,n)}const cu=It;let _u=a.CDLMORNINGSTAR;function Tt(n){return o(_u,n)}const Au=Tt;let Du=a.CDLONNECK;function yt(n){return o(Du,n)}const du=yt;let Iu=a.CDLPIERCING;function ft(n){return o(Iu,n)}const Tu=ft;let yu=a.CDLRICKSHAWMAN;function Ct(n){return o(yu,n)}const fu=Ct;let Cu=a.CDLRISEFALL3METHODS;function gt(n){return o(Cu,n)}const gu=gt;let Nu=a.CDLSEPARATINGLINES;function Nt(n){return o(Nu,n)}const Lu=Nt;let Ru=a.CDLSHOOTINGSTAR;function Lt(n){return o(Ru,n)}const Eu=Lt;let bu=a.CDLSHORTLINE;function Rt(n){return o(bu,n)}const Su=Rt;let Pu=a.CDLSPINNINGTOP;function Et(n){return o(Pu,n)}const hu=Et;let Ou=a.CDLSTALLEDPATTERN;function bt(n){return o(Ou,n)}const Mu=bt;let Hu=a.CDLSTICKSANDWICH;function St(n){return o(Hu,n)}const vu=St;let wu=a.CDLTAKURI;function Pt(n){return o(wu,n)}const Gu=Pt;let Vu=a.CDLTASUKIGAP;function ht(n){return o(Vu,n)}const xu=ht;let Uu=a.CDLTHRUSTING;function Ot(n){return o(Uu,n)}const Bu=Ot;let Ku=a.CDLTRISTAR;function Mt(n){return o(Ku,n)}const Fu=Mt;let Wu=a.CDLUNIQUE3RIVER;function Ht(n){return o(Wu,n)}const ku=Ht;let Xu=a.CDLUPSIDEGAP2CROWS;function vt(n){return o(Xu,n)}const Ju=vt;let Yu=a.CDLXSIDEGAP3METHODS;function wt(n){return o(Yu,n)}const ju=wt;let qu=a.CEIL;function Gt(n){return o(qu,n)}const zu=Gt;let $u=a.CMO;function Vt(n){return o($u,n)}const Zu=Vt;let Qu=a.CORREL;function xt(n){return o(Qu,n)}const el=xt;let nl=a.COS;function Ut(n){return o(nl,n)}const tl=Ut;let al=a.COSH;function Bt(n){return o(al,n)}const ol=Bt;let il=a.DEMA;function Kt(n){return o(il,n)}const rl=Kt;let ul=a.DIV;function Ft(n){return o(ul,n)}const ll=Ft;let pl=a.DX;function Wt(n){return o(pl,n)}const sl=Wt;let ml=a.EMA;function kt(n){return o(ml,n)}const cl=kt;let _l=a.EXP;function Xt(n){return o(_l,n)}const Al=Xt;let Dl=a.FLOOR;function Jt(n){return o(Dl,n)}const dl=Jt;let Il=a.HT_DCPERIOD;function Yt(n){return o(Il,n)}const Tl=Yt;let yl=a.HT_DCPHASE;function jt(n){return o(yl,n)}const fl=jt;let Cl=a.HT_PHASOR;function qt(n){return o(Cl,n)}const gl=qt;let Nl=a.HT_SINE;function zt(n){return o(Nl,n)}const Ll=zt;let Rl=a.HT_TRENDLINE;function $t(n){return o(Rl,n)}const El=$t;let bl=a.HT_TRENDMODE;function Zt(n){return o(bl,n)}const Sl=Zt;let Pl=a.IMI;function Qt(n){return o(Pl,n)}const hl=Qt;let Ol=a.KAMA;function ea(n){return o(Ol,n)}const Ml=ea;let Hl=a.LINEARREG;function na(n){return o(Hl,n)}const vl=na;let wl=a.LINEARREG_ANGLE;function ta(n){return o(wl,n)}const Gl=ta;let Vl=a.LINEARREG_INTERCEPT;function aa(n){return o(Vl,n)}const xl=aa;let Ul=a.LINEARREG_SLOPE;function oa(n){return o(Ul,n)}const Bl=oa;let Kl=a.LN;function ia(n){return o(Kl,n)}const Fl=ia;let Wl=a.LOG10;function ra(n){return o(Wl,n)}const kl=ra;let Xl=a.MA;function ua(n){return o(Xl,n)}const Jl=ua;let Yl=a.MACD;function la(n){return o(Yl,n)}const jl=la;let ql=a.MACDEXT;function pa(n){return o(ql,n)}const zl=pa;let $l=a.MACDFIX;function sa(n){return o($l,n)}const Zl=sa;let Ql=a.MAMA;function ma(n){return o(Ql,n)}const ep=ma;let np=a.MAVP;function ca(n){return o(np,n)}const tp=ca;let ap=a.MAX;function _a(n){return o(ap,n)}const op=_a;let ip=a.MAXINDEX;function Aa(n){return o(ip,n)}const rp=Aa;let up=a.MEDPRICE;function Da(n){return o(up,n)}const lp=Da;let pp=a.MFI;function da(n){return o(pp,n)}const sp=da;let mp=a.MIDPOINT;function Ia(n){return o(mp,n)}const cp=Ia;let _p=a.MIDPRICE;function Ta(n){return o(_p,n)}const Ap=Ta;let Dp=a.MIN;function ya(n){return o(Dp,n)}const dp=ya;let Ip=a.MININDEX;function fa(n){return o(Ip,n)}const Tp=fa;let yp=a.MINMAX;function Ca(n){return o(yp,n)}const fp=Ca;let Cp=a.MINMAXINDEX;function ga(n){return o(Cp,n)}const gp=ga;let Np=a.MINUS_DI;function Na(n){return o(Np,n)}const Lp=Na;let Rp=a.MINUS_DM;function La(n){return o(Rp,n)}const Ep=La;let bp=a.MOM;function Ra(n){return o(bp,n)}const Sp=Ra;let Pp=a.MULT;function Ea(n){return o(Pp,n)}const hp=Ea;let Op=a.NATR;function ba(n){return o(Op,n)}const Mp=ba;let Hp=a.OBV;function Sa(n){return o(Hp,n)}const vp=Sa;let wp=a.PLUS_DI;function Pa(n){return o(wp,n)}const Gp=Pa;let Vp=a.PLUS_DM;function ha(n){return o(Vp,n)}const xp=ha;let Up=a.PPO;function Oa(n){return o(Up,n)}const Bp=Oa;let Kp=a.ROC;function Ma(n){return o(Kp,n)}const Fp=Ma;let Wp=a.ROCP;function Ha(n){return o(Wp,n)}const kp=Ha;let Xp=a.ROCR;function va(n){return o(Xp,n)}const Jp=va;let Yp=a.ROCR100;function wa(n){return o(Yp,n)}const jp=wa;let qp=a.RSI;function Ga(n){return o(qp,n)}const zp=Ga;let $p=a.SAR;function Va(n){return o($p,n)}const Zp=Va;let Qp=a.SAREXT;function xa(n){return o(Qp,n)}const es=xa;let ns=a.SIN;function Ua(n){return o(ns,n)}const ts=Ua;let as=a.SINH;function Ba(n){return o(as,n)}const os=Ba;let is=a.SMA;function Ka(n){return o(is,n)}const rs=Ka;let us=a.SQRT;function Fa(n){return o(us,n)}const ls=Fa;let ps=a.STDDEV;function Wa(n){return o(ps,n)}const ss=Wa;let ms=a.STOCH;function ka(n){return o(ms,n)}const cs=ka;let _s=a.STOCHF;function Xa(n){return o(_s,n)}const As=Xa;let Ds=a.STOCHRSI;function Ja(n){return o(Ds,n)}const ds=Ja;let Is=a.SUB;function Ya(n){return o(Is,n)}const Ts=Ya;let ys=a.SUM;function ja(n){return o(ys,n)}const fs=ja;let Cs=a.T3;function qa(n){return o(Cs,n)}const gs=qa;let Ns=a.TAN;function za(n){return o(Ns,n)}const Ls=za;let Rs=a.TANH;function $a(n){return o(Rs,n)}const Es=$a;let bs=a.TEMA;function Za(n){return o(bs,n)}const Ss=Za;let Ps=a.TRANGE;function Qa(n){return o(Ps,n)}const hs=Qa;let Os=a.TRIMA;function eo(n){return o(Os,n)}const Ms=eo;let Hs=a.TRIX;function no(n){return o(Hs,n)}const vs=no;let ws=a.TSF;function to(n){return o(ws,n)}const Gs=to;let Vs=a.TYPPRICE;function ao(n){return o(Vs,n)}const xs=ao;let Us=a.ULTOSC;function oo(n){return o(Us,n)}const Bs=oo;let Ks=a.VAR;function io(n){return o(Ks,n)}const Fs=io;let Ws=a.WCLPRICE;function ro(n){return o(Ws,n)}const ks=ro;let Xs=a.WILLR;function uo(n){return o(Xs,n)}const Js=uo;let Ys=a.WMA;function lo(n){return o(Ys,n)}const js=lo,Te=Object.freeze(Object.defineProperty({__proto__:null,ACCBANDS:sn,ACOS:mn,AD:cn,ADD:_n,ADOSC:An,ADX:Dn,ADXR:dn,APO:In,AROON:Tn,AROONOSC:yn,ASIN:fn,ATAN:Cn,ATR:gn,AVGDEV:Nn,AVGPRICE:Ln,BBANDS:Rn,BETA:En,BOP:bn,CCI:Sn,CDL2CROWS:Pn,CDL3BLACKCROWS:hn,CDL3INSIDE:On,CDL3LINESTRIKE:Mn,CDL3OUTSIDE:Hn,CDL3STARSINSOUTH:vn,CDL3WHITESOLDIERS:wn,CDLABANDONEDBABY:Gn,CDLADVANCEBLOCK:Vn,CDLBELTHOLD:xn,CDLBREAKAWAY:Un,CDLCLOSINGMARUBOZU:Bn,CDLCONCEALBABYSWALL:Kn,CDLCOUNTERATTACK:Fn,CDLDARKCLOUDCOVER:Wn,CDLDOJI:kn,CDLDOJISTAR:Xn,CDLDRAGONFLYDOJI:Jn,CDLENGULFING:Yn,CDLEVENINGDOJISTAR:jn,CDLEVENINGSTAR:qn,CDLGAPSIDESIDEWHITE:zn,CDLGRAVESTONEDOJI:$n,CDLHAMMER:Zn,CDLHANGINGMAN:Qn,CDLHARAMI:et,CDLHARAMICROSS:nt,CDLHIGHWAVE:tt,CDLHIKKAKE:at,CDLHIKKAKEMOD:ot,CDLHOMINGPIGEON:it,CDLIDENTICAL3CROWS:rt,CDLINNECK:ut,CDLINVERTEDHAMMER:lt,CDLKICKING:pt,CDLKICKINGBYLENGTH:st,CDLLADDERBOTTOM:mt,CDLLONGLEGGEDDOJI:ct,CDLLONGLINE:_t,CDLMARUBOZU:At,CDLMATCHINGLOW:Dt,CDLMATHOLD:dt,CDLMORNINGDOJISTAR:It,CDLMORNINGSTAR:Tt,CDLONNECK:yt,CDLPIERCING:ft,CDLRICKSHAWMAN:Ct,CDLRISEFALL3METHODS:gt,CDLSEPARATINGLINES:Nt,CDLSHOOTINGSTAR:Lt,CDLSHORTLINE:Rt,CDLSPINNINGTOP:Et,CDLSTALLEDPATTERN:bt,CDLSTICKSANDWICH:St,CDLTAKURI:Pt,CDLTASUKIGAP:ht,CDLTHRUSTING:Ot,CDLTRISTAR:Mt,CDLUNIQUE3RIVER:Ht,CDLUPSIDEGAP2CROWS:vt,CDLXSIDEGAP3METHODS:wt,CEIL:Gt,CMO:Vt,CORREL:xt,COS:Ut,COSH:Bt,DEMA:Kt,DIV:Ft,DX:Wt,EMA:kt,EXP:Xt,FLOOR:Jt,HT_DCPERIOD:Yt,HT_DCPHASE:jt,HT_PHASOR:qt,HT_SINE:zt,HT_TRENDLINE:$t,HT_TRENDMODE:Zt,IMI:Qt,KAMA:ea,LINEARREG:na,LINEARREG_ANGLE:ta,LINEARREG_INTERCEPT:aa,LINEARREG_SLOPE:oa,LN:ia,LOG10:ra,MA:ua,MACD:la,MACDEXT:pa,MACDFIX:sa,MAMA:ma,get MAType(){return Ge},MAVP:ca,MAX:_a,MAXINDEX:Aa,MEDPRICE:Da,MFI:da,MIDPOINT:Ia,MIDPRICE:Ta,MIN:ya,MININDEX:fa,MINMAX:Ca,MINMAXINDEX:ga,MINUS_DI:Na,MINUS_DM:La,MOM:Ra,MULT:Ea,NATR:ba,OBV:Sa,PLUS_DI:Pa,PLUS_DM:ha,PPO:Oa,ROC:Ma,ROCP:Ha,ROCR:va,ROCR100:wa,RSI:Ga,SAR:Va,SAREXT:xa,SIN:Ua,SINH:Ba,SMA:Ka,SQRT:Fa,STDDEV:Wa,STOCH:ka,STOCHF:Xa,STOCHRSI:Ja,SUB:Ya,SUM:ja,T3:qa,TAN:za,TANH:$a,TEMA:Za,TRANGE:Qa,TRIMA:eo,TRIX:no,TSF:to,TYPPRICE:ao,ULTOSC:oo,VAR:io,WCLPRICE:ro,WILLR:uo,WMA:lo,accBands:Zo,acos:ei,ad:ti,adOsc:ri,add:oi,adx:li,adxr:si,apo:ci,aroon:Ai,aroonOsc:di,asin:Ti,atan:fi,atr:gi,avgDev:Li,avgPrice:Ei,bbands:Si,beta:hi,bop:Mi,cci:vi,cdl2Crows:Gi,cdl3BlackCrows:xi,cdl3Inside:Bi,cdl3LineStrike:Fi,cdl3Outside:ki,cdl3StarsInSouth:Ji,cdl3WhiteSoldiers:ji,cdlAbandonedBaby:zi,cdlAdvanceBlock:Zi,cdlBeltHold:er,cdlBreakaway:tr,cdlClosingMarubozu:or,cdlConcealBabysWall:rr,cdlCounterAttack:lr,cdlDarkCloudCover:sr,cdlDoji:cr,cdlDojiStar:Ar,cdlDragonflyDoji:dr,cdlEngulfing:Tr,cdlEveningDojiStar:fr,cdlEveningStar:gr,cdlGapSideSideWhite:Lr,cdlGravestoneDoji:Er,cdlHammer:Sr,cdlHangingMan:hr,cdlHarami:Mr,cdlHaramiCross:vr,cdlHignWave:Gr,cdlHikkake:xr,cdlHikkakeMod:Br,cdlHomingPigeon:Fr,cdlIdentical3Crows:kr,cdlInNeck:Jr,cdlInvertedHammer:jr,cdlKicking:zr,cdlKickingByLength:Zr,cdlLadderBottom:eu,cdlLongLeggedDoji:tu,cdlLongLine:ou,cdlMarubozu:ru,cdlMatHold:su,cdlMatchingLow:lu,cdlMorningDojiStar:cu,cdlMorningStar:Au,cdlOnNeck:du,cdlPiercing:Tu,cdlRickshawMan:fu,cdlRiseFall3Methods:gu,cdlSeperatingLines:Lu,cdlShootingStar:Eu,cdlShortLine:Su,cdlSpinningTop:hu,cdlStalledPattern:Mu,cdlStickSandwhich:vu,cdlTakuri:Gu,cdlTasukiGap:xu,cdlThrusting:Bu,cdlTristar:Fu,cdlUnique3River:ku,cdlUpsideGap2Crows:Ju,cdlXSideGap3Methods:ju,ceil:zu,cmo:Zu,correl:el,cos:tl,cosh:ol,dema:rl,div:ll,dx:sl,ema:cl,exp:Al,floor:dl,htDcPeriod:Tl,htDcPhase:fl,htPhasor:gl,htSine:Ll,htTrendMode:Sl,htTrendline:El,imi:hl,init:pn,kama:Ml,linearReg:vl,linearRegAngle:Gl,linearRegIntercept:xl,linearRegSlope:Bl,ln:Fl,log10:kl,macd:jl,macdExt:zl,macdFix:Zl,mama:ep,max:op,maxIndex:rp,medPrice:lp,mfi:sp,midPoint:cp,midPrice:Ap,min:dp,minIndex:Tp,minMax:fp,minMaxIndex:gp,minusDI:Lp,minusDM:Ep,mom:Sp,movingAverage:Jl,movingAverageVariablePeriod:tp,mult:hp,natr:Mp,obv:vp,plusDI:Gp,plusDM:xp,ppo:Bp,roc:Fp,rocP:kp,rocR:Jp,rocR100:jp,rsi:zp,sar:Zp,sarExt:es,sin:ts,sinh:os,sma:rs,sqrt:ls,stdDev:ss,stoch:cs,stochF:As,stochRsi:ds,sub:Ts,sum:fs,t3:gs,tan:Ls,tanh:Es,tema:Ss,trima:Ms,trix:vs,trueRange:hs,tsf:Gs,typPrice:xs,ultOsc:Bs,variance:Fs,wclPrice:ks,willR:Js,wma:js},Symbol.toStringTag,{value:"Module"})),qs=A.defineComponent({__name:"index",setup(n,{expose:y}){let e=!1,S=!0,G=[];const O=(C,g)=>C.length>g?C.slice(C.length-g):C;return y({initTalib:async()=>{if(!e)e=!0,await pn("./talib.wasm"),S=!1,G.forEach(C=>{C()});else if(S)return new Promise(C=>{G.push(C)})},handleKeyDown:(C,g)=>{let{startValue:_,endValue:D,maxIndex:b}=g;if(C.code==="ArrowLeft"){if(_===0)return;_=_-1,D=D-1}else if(C.code==="ArrowRight"){if(D===b)return;_=_+1,D=D+1}else if(C.code==="ArrowUp"){if(D-_<5)return;const R=Math.floor((D-_)/2)+1;_=_+R,D-_<5&&(_=D-4)}else if(C.code==="ArrowDown"){const R=Math.min(500,D-_);_=_-R-1}return{startValue:_,endValue:D}},getDataZoomInfoByTime:C=>{const{showStartTime:g,showEndTime:_,xAxisData:D,maxShowDays:b}=C;let R=-1,u=-1,l={};return D.forEach((p,s)=>{const T=p.split(" ")[0];l[T]=l[T]||0,l[T]+=1,new Date(p)>=new Date(g)&&R===-1&&(R=s),new Date(p)<=new Date(_)&&(u=s)}),{startValue:R,endValue:u,maxValueSpan:Math.max(...Object.values(l))*b}},formatDataBySlide:C=>{const{originDrawData:g,addData:_,startTime:D,endTime:b}=C,{mainIndicator:R,mainIndicatorList:u,subIndicator:l,subIndicatorList:p,config:s,timeRange:T}=C,{loadAddCount:v,preLoadCount:x}=s;let M=[],U=[],j=[],B=[];D&&b?(M=_.filter(L=>new Date(L[0])>=new Date(D)&&new Date(L[0])<=new Date(b)),B=[..._]):b?(M=[..._.filter((L,f)=>f>=_.length-v&&new Date(T[0])<=new Date(L[0])&&new Date(L[0])<=new Date(T[1])),...g.originData],B=[..._,...g.originData]):D&&(M=[...g.originData,..._.filter((L,f)=>f>=x&&new Date(T[0])<=new Date(L[0])&&new Date(L[0])<=new Date(T[1]))],B=M),M.forEach((L,f)=>{U.push([L[1],L[4],L[3],L[2],f===0?0:M[f-1][4],L[6]]),j.push(L[0])});let N=[],H=[];const K={time:[],open:[],close:[],high:[],low:[],originData:B};let q=null,Y=null;return B.forEach((L,f)=>{K.time.push(L[0]),K.open.push(L[1]),K.close.push(L[4]),K.high.push(L[2]),K.low.push(L[3]),L[0]===M[0][0]&&(q=f),L[0]===M[M.length-1][0]&&(Y=f+1)}),N=u.find(({value:L})=>L===R).config.map(L=>{const{calculationFn:f}=L;return{...L,data:f?f(Te,K,{time:[],open:[],close:[],high:[],low:[],originData:[]}).slice(q,Y):[]}}),H=p.find(({value:L})=>L===l).config.reduce((L,f)=>{const{source:h,calculationFn:Z}=f;return h==="calculation"?[...L,{...f,data:Z?Z(Te,K).slice(q,Y):[]}]:L},[]),{originData:M,candlestickData:U,mainIndicatorData:N,subIndicatorData:H,xAxisData:j,startTime:M[0][0],endTime:M[M.length-1][0],length:M.length}},formatDataByCount:C=>{const{originDrawData:g,addData:_,mainIndicator:D,mainIndicatorList:b,subIndicator:R,subIndicatorList:u,config:l}=C;let p={};const{addCount:s,preLoadCount:T}=l,v=[],x=[],M=[],U=[],j=[];let B=[],N=[];const H=_.filter((f,h)=>(v.push(f[0]),x.push(f[1]),M.push(f[4]),U.push(f[2]),j.push(f[3]),B.push(f[0]),N.push([f[1],f[4],f[3],f[2],h===0?0:_[h-1][4],f[6]]),_.length>=s+T-1?h>=T:!0));B=O(B,H.length),N=O(N,H.length);const K={time:v,open:x,close:M,high:U,low:j,originData:_},Y=b.find(f=>f.value===D).config.map(f=>({...f,data:O(f.calculationFn?f.calculationFn(Te,K,{time:[],open:[],close:[],high:[],low:[],originData:[]}):[],B.length)}));let L=[];return R&&u&&(L=u.find(h=>h.value===R).config.reduce((h,Z)=>Z.source==="calculation"?[...h,{...Z,data:O(Z.calculationFn?Z.calculationFn(Te,K):[],B.length)}]:h,[])),g.length?p={originData:[...H,...g.originData],xAxisData:[...B,...g.xAxisData],candlestickData:[...N,...g.candlestickData],mainIndicatorData:g.mainIndicatorData.map((f,h)=>({...f,data:[...Y[h].data,...f.data]})),subIndicatorData:g.subIndicatorData.map((f,h)=>({...f,data:[...L[h].data,...f.data]}))}:p={originData:H,xAxisData:B,candlestickData:N,mainIndicatorData:Y,subIndicatorData:L},p.length=p.xAxisData.length,p.startTime=p.xAxisData[0],p.endTime=p.xAxisData[p.length-1],p},fn:()=>{}}),(C,g)=>null}}),zs={class:"kline-tips"},$s=A.defineComponent({__name:"index",props:{data:{type:Array,require:!0}},setup(n){return(y,e)=>(A.openBlock(),A.createElementBlock("div",zs,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(n.data,(S,G)=>(A.openBlock(),A.createElementBlock("div",{key:G,class:"kline-tips-item",style:A.normalizeStyle({color:S.color})},A.toDisplayString(S.label)+" "+A.toDisplayString(S.value),5))),128))]))}});const Ve=ye._export_sfc($s,[["__scopeId","data-v-2a02e841"]]),Zs={class:"kline-tips"},Qs=A.defineComponent({__name:"index",props:{drawData:{type:Object,require:!0},candlestickData:{type:Array,default:()=>null},mainIndicatorData:{type:Array,default:()=>null},activeIndex:{type:Number,require:!0}},setup(n){const{round:y,multiply:e,divide:S,subtract:G,formatValue:O}=ln.x,C=n,g=A.computed(()=>{const{drawData:D,activeIndex:b,candlestickData:R}=C;if(R!=null&&R.length&&R[b]){let u;return R[b][6]>0?u="red":R[b][6]<0&&(u="green"),[{label:"开",value:y(R[b][0])},{label:"高",value:y(R[b][3])},{label:"低",value:y(R[b][2])},{label:"收",value:y(R[b][1])},{label:"额",value:O(R[b][4])},{label:"涨跌",value:`${y(R[b][6])}%`,color:u}]}else if(D.candlestickData&&D.candlestickData[b]){const u=D.candlestickData[b],l=[{label:"开",value:y(u[0])},{label:"高",value:y(u[3])},{label:"低",value:y(u[2])},{label:"收",value:y(u[1])}];u[5]!==void 0&&l.push({label:"额",value:O(u[5])});const p=y(e(S(G(u[1],u[4]),Math.abs(u[4])),100));let s;return p>0?s="red":p<0&&(s="green"),l.push({label:"涨跌",value:`${p}%`,color:s}),l}return[]}),_=A.computed(()=>{var R;const{drawData:D,activeIndex:b}=C;return((R=D==null?void 0:D.mainIndicatorData)==null?void 0:R.map(u=>({label:u.key,value:y(u.data[b]),color:u.color})))||[]});return(D,b)=>(A.openBlock(),A.createElementBlock("div",Zs,[A.createVNode(Ve,{data:g.value},null,8,["data"]),A.createVNode(Ve,{data:_.value},null,8,["data"])]))}});const em=ye._export_sfc(Qs,[["__scopeId","data-v-234f3f41"]]),nm={class:"klineSub"},tm={class:"klineSub-tips"},am={key:0,class:"klineSub-tips-select"},om=A.defineComponent({__name:"index",props:{drawData:{type:Object,require:!0},activeIndex:{type:Number,require:!0},modelValue:{type:String,required:!0},subIndicatorList:{type:Array,required:!0},config:{type:Object,require:!0}},emits:["update:modelValue"],setup(n,{expose:y,emit:e}){const{round:S}=ln.x;let G,O;const C=e,g=n,_=A.ref(),D=A.computed({get(){return g.modelValue},set(u){C("update:modelValue",u)}}),b=A.computed(()=>{const{drawData:u,activeIndex:l}=g,p=g.subIndicatorList.find(s=>s.value===D.value);return u.originData&&u.originData[l]?p.config.map(s=>{var v,x;let T="-";return s.source==="origin"?T=u.originData[l][s.dataIndex]||"-":s.source==="calculation"&&(T=(((x=(v=u.subIndicatorData)==null?void 0:v.find(U=>U.key===s.key))==null?void 0:x.data)||[])[l]),{label:s.key,color:s.color,value:T==="-"?T:S(T)}}):[]});A.onMounted(()=>{G=we.init(_.value);let u=!0;O=new ResizeObserver(()=>{if(u){u=null;return}G.resize()}),O.observe(_.value)}),A.onUnmounted(()=>{G.dispose(),O.disconnect(),O=null});const R=(u,l)=>{const p=u[l],s=l===0?u[l]:u[l-1];return p[0]===p[1]?p[0]>=s[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:p[1]>p[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}};return y({connect:u=>{we.connect([u,G])},draw:u=>{A.nextTick(()=>{var B;const{startValue:l,endValue:p,maxValueSpan:s}=u,{xAxisData:T,subIndicatorData:v,candlestickData:x,originData:M}=g.drawData,U=g.subIndicatorList.find(N=>N.value===D.value),j=[];if(U.series==="bar"){let N=[];U.source==="origin"?N=M.map(H=>H[U.dataIndex]):N=((B=v==null?void 0:v.find(H=>H.key===U.dataIndex))==null?void 0:B.data)||[],j.push({name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:N.map((H,K)=>U.color==="kline"?{value:H,itemStyle:R(x,K)}:U.color==="value"?{value:H,itemStyle:{color:H>=0?"#FF0000":"#00FFFF"}}:{value:H,itemStyle:{color:U.color}})})}v.forEach(N=>{if(N.series==="line"){let H=[];N.source==="origin"?H=M.map(K=>K[N.dataIndex]):N.source==="calculation"&&(H=N.data),j.push({xAxisIndex:0,yAxisIndex:N.yAxis==="right"?2:1,name:N.key,type:"line",silent:!0,symbol:"none",data:H,lineStyle:{width:1},itemStyle:{color:N.color}})}}),G.setOption({animation:!1,grid:{left:`${g.config.gridLeft}px`,top:"10px",right:`${g.config.gridRight}px`,bottom:"20px"},dataZoom:[{type:"inside",startValue:l,endValue:p,maxValueSpan:s}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:N=>{const{axisDimension:H,value:K}=N;if(H==="x")return K;if(N.axisIndex===1)return String(S(K))}}},formatter:()=>""},xAxis:{type:"category",data:T,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{show:!0,formatter:N=>N}},yAxis:[{position:"right"},{position:"left",min:U.leftYAxisRange==="cover"?N=>N.min:null,max:U.leftYAxisRange==="cover"?N=>N.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:U.rightYAxisRange==="cover"?N=>N.min:null,max:U.rightYAxisRange==="cover"?N=>N.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:j},!0)})}}),(u,l)=>{const p=rn.ElOption,s=rn.ElSelect;return A.openBlock(),A.createElementBlock("div",nm,[A.createElementVNode("div",tm,[b.value.length?(A.openBlock(),A.createElementBlock("div",am,[A.createVNode(s,{modelValue:D.value,"onUpdate:modelValue":l[0]||(l[0]=T=>D.value=T),size:"small","popper-class":"element-dark",class:"element-dark subIndicator"},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(n.subIndicatorList,T=>(A.openBlock(),A.createBlock(p,{key:T.value,label:T.label,value:T.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):A.createCommentVNode("",!0),A.createVNode(Ve,{data:b.value},null,8,["data"])]),A.createElementVNode("div",{class:"klineSub-chart",ref_key:"subChartRef",ref:_},null,512)])}}});const im=ye._export_sfc(om,[["__scopeId","data-v-0a2f256e"]]),rm=A.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]}},emits:["change"],setup(n,{expose:y,emit:e}){let S,G,O=null;const C=e,g=n,_=A.ref();A.watch(()=>g.data,()=>{R()},{deep:!0}),A.onMounted(()=>{S=we.init(_.value),D(),R();let u=!0;G=new ResizeObserver(()=>{if(u){u=null;return}S.resize()}),G.observe(_.value)}),A.onUnmounted(()=>{S.off("datazoom"),S.dispose(),G.disconnect(),G=null});const D=()=>{S.on("datazoom",u=>{u.dataZoomId&&(clearTimeout(O),O=setTimeout(()=>{const{data:l}=g,{start:p,end:s}=u,T=Math.floor(p*l.length/100),v=s===100?l.length-1:Math.floor(s*l.length/100);b(T,v),clearTimeout(O)},100))})},b=(u,l)=>{const p=g.data;if(p.length===0)return;const s=p[u][0].split(" ")[0],T=p[l][0].split(" ")[0];C("change",{startTime:`${s} 00:00:00`,endTime:`${T} 24:00:00`})},R=()=>{const{data:u}=g;if(u.length===0)return;const l=u.map(s=>s[0].split(" ")[0]),p=u.map(s=>s[1]);S.setOption({grid:{height:0,left:"80px",right:"80px"},xAxis:{type:"category",data:l,show:!1},yAxis:{type:"value"},series:[{data:p,type:"line"}]},!0)};return y({resetSlide:(u,l,p)=>{let s=-1,T=-1;g.data.forEach((v,x)=>{s===-1&&v[0]===u?s=x:s===-1&&new Date(v[0])>new Date(u)&&(s=x-1),(T===-1&&v[0]===l||T===-1&&new Date(v[0])>new Date(l))&&(T=x)}),T=T===-1?g.data.length-1:T,S.setOption({dataZoom:[{show:!0,startValue:s,endValue:T,maxValueSpan:p,textStyle:{color:"#ccc"}},{type:"inside",startValue:s,endValue:T,maxValueSpan:p}]})},resize:()=>{S==null||S.resize()}}),(u,l)=>(A.openBlock(),A.createElementBlock("div",{class:"klineSlide",ref_key:"slideChartRef",ref:_},null,512))}});const um=ye._export_sfc(rm,[["__scopeId","data-v-5008746a"]]),lm={install(n){n.component("st-klineUtils",qs),n.component("st-klineSub",im),n.component("st-klineTips",em),n.component("st-klineSlide",um)}};module.exports=lm;
|
|
1
|
+
"use strict";const t=require("vue"),C=require("./index.esm-94a95a2a.cjs"),L=require("./_plugin-vue_export-helper-f246444f.cjs"),z=require("./index-a96158ae.cjs");require("./base-ec05f348.cjs");require("./el-tag-c51a6490.cjs");const R=require("./el-select-b162dffc.cjs");require("./el-scrollbar-d1c3e7f7.cjs");require("./el-popper-746070ba.cjs");const $=require("echarts");require("./index-a387515d.cjs");require("./use-form-common-props-1b84d8f4.cjs");require("./castArray-a45823fe.cjs");require("./index-deb8de52.cjs");require("./index-3bf8d597.cjs");require("./scroll-41224831.cjs");require("./debounce-b2ff12bd.cjs");function N(D){const x=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(D){for(const S in D)if(S!=="default"){const g=Object.getOwnPropertyDescriptor(D,S);Object.defineProperty(x,S,g.get?g:{enumerable:!0,get:()=>D[S]})}}return x.default=D,Object.freeze(x)}const E=N($),M=t.defineComponent({__name:"index",setup(D,{expose:x}){let S=!1,g=!0,y=[];const w=(h,u)=>h.length>u?h.slice(h.length-u):h;return x({initTalib:async()=>{if(!S)S=!0,await C.init("./talib.wasm"),g=!1,y.forEach(h=>{h()});else if(g)return new Promise(h=>{y.push(h)})},handleKeyDown:(h,u)=>{let{startValue:r,endValue:d,maxIndex:f}=u;if(h.code==="ArrowLeft"){if(r===0)return;r=r-1,d=d-1}else if(h.code==="ArrowRight"){if(d===f)return;r=r+1,d=d+1}else if(h.code==="ArrowUp"){if(d-r<5)return;const p=Math.floor((d-r)/2)+1;r=r+p,d-r<5&&(r=d-4)}else if(h.code==="ArrowDown"){const p=Math.min(500,d-r);r=r-p-1}return{startValue:r,endValue:d}},getDataZoomInfoByTime:h=>{const{showStartTime:u,showEndTime:r,xAxisData:d,maxShowDays:f}=h;let p=-1,e=-1,i={};return d.forEach((a,n)=>{const l=a.split(" ")[0];i[l]=i[l]||0,i[l]+=1,new Date(a)>=new Date(u)&&p===-1&&(p=n),new Date(a)<=new Date(r)&&(e=n)}),{startValue:p,endValue:e,maxValueSpan:Math.max(...Object.values(i))*f}},formatDataBySlide:h=>{const{originDrawData:u,addData:r,startTime:d,endTime:f}=h,{mainIndicator:p,mainIndicatorList:e,subIndicator:i,subIndicatorList:a,config:n,timeRange:l}=h,{loadAddCount:b,preLoadCount:F}=n;let m=[],v=[],V=[],k=[];d&&f?(m=r.filter(s=>new Date(s[0])>=new Date(d)&&new Date(s[0])<=new Date(f)),k=[...r]):f?(m=[...r.filter((s,o)=>o>=r.length-b&&new Date(l[0])<=new Date(s[0])&&new Date(s[0])<=new Date(l[1])),...u.originData],k=[...r,...u.originData]):d&&(m=[...u.originData,...r.filter((s,o)=>o>=F&&new Date(l[0])<=new Date(s[0])&&new Date(s[0])<=new Date(l[1]))],k=m),m.forEach((s,o)=>{v.push([s[1],s[4],s[3],s[2],o===0?0:m[o-1][4],s[6]]),V.push(s[0])});let c=[],_=[];const I={time:[],open:[],close:[],high:[],low:[],originData:k};let B=null,T=null;return k.forEach((s,o)=>{I.time.push(s[0]),I.open.push(s[1]),I.close.push(s[4]),I.high.push(s[2]),I.low.push(s[3]),s[0]===m[0][0]&&(B=o),s[0]===m[m.length-1][0]&&(T=o+1)}),c=e.find(({value:s})=>s===p).config.map(s=>{const{calculationFn:o}=s,A={time:[],open:[],close:[],high:[],low:[],originData:[]};return{...s,data:o?o(C.talib,I,A).slice(B,T):[]}}),_=a.find(({value:s})=>s===i).config.reduce((s,o)=>{const{source:A,calculationFn:q}=o;return A==="calculation"?[...s,{...o,data:q?q(C.talib,I).slice(B,T):[]}]:s},[]),{originData:m,candlestickData:v,mainIndicatorData:c,subIndicatorData:_,xAxisData:V,startTime:m[0][0],endTime:m[m.length-1][0],length:m.length}},formatDataByCount:h=>{const{originDrawData:u,addData:r,mainIndicator:d,mainIndicatorList:f,subIndicator:p,subIndicatorList:e,config:i}=h;let a={};const{addCount:n,preLoadCount:l}=i,b=[],F=[],m=[],v=[],V=[];let k=[],c=[];const _=r.filter((o,A)=>(b.push(o[0]),F.push(o[1]),m.push(o[4]),v.push(o[2]),V.push(o[3]),k.push(o[0]),c.push([o[1],o[4],o[3],o[2],A===0?0:r[A-1][4],o[6]]),r.length>=n+l-1?A>=l:!0));k=w(k,_.length),c=w(c,_.length);const I={time:b,open:F,close:m,high:v,low:V,originData:r},T=f.find(o=>o.value===d).config.map(o=>({...o,data:w(o.calculationFn?o.calculationFn(C.talib,I,{time:[],open:[],close:[],high:[],low:[],originData:[]}):[],k.length)}));let s=[];return p&&e&&(s=e.find(A=>A.value===p).config.reduce((A,q)=>q.source==="calculation"?[...A,{...q,data:w(q.calculationFn?q.calculationFn(C.talib,I):[],k.length)}]:A,[])),u.length?a={originData:[..._,...u.originData],xAxisData:[...k,...u.xAxisData],candlestickData:[...c,...u.candlestickData],mainIndicatorData:u.mainIndicatorData.map((o,A)=>({...o,data:[...T[A].data,...o.data]})),subIndicatorData:u.subIndicatorData.map((o,A)=>({...o,data:[...s[A].data,...o.data]}))}:a={originData:_,xAxisData:k,candlestickData:c,mainIndicatorData:T,subIndicatorData:s},a.length=a.xAxisData.length,a.startTime=a.xAxisData[0],a.endTime=a.xAxisData[a.length-1],a},fn:()=>{}}),(h,u)=>null}}),j={class:"kline-tips"},P=t.defineComponent({__name:"index",props:{data:{type:Array,require:!0}},setup(D){return(x,S)=>(t.openBlock(),t.createElementBlock("div",j,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.data,(g,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"kline-tips-item",style:t.normalizeStyle({color:g.color})},t.toDisplayString(g.label)+" "+t.toDisplayString(g.value),5))),128))]))}});const O=L._export_sfc(P,[["__scopeId","data-v-2a02e841"]]),K={class:"kline-tips"},U=t.defineComponent({__name:"index",props:{drawData:{type:Object,require:!0},candlestickData:{type:Array,default:()=>null},mainIndicatorData:{type:Array,default:()=>null},activeIndex:{type:Number,require:!0}},setup(D){const{round:x,multiply:S,divide:g,subtract:y,formatValue:w}=z.x,h=D,u=t.computed(()=>{const{drawData:d,activeIndex:f,candlestickData:p}=h;if(p!=null&&p.length&&p[f]){let e;return p[f][6]>0?e="red":p[f][6]<0&&(e="green"),[{label:"开",value:x(p[f][0])},{label:"高",value:x(p[f][3])},{label:"低",value:x(p[f][2])},{label:"收",value:x(p[f][1])},{label:"额",value:w(p[f][4])},{label:"涨跌",value:`${x(p[f][6])}%`,color:e}]}else if(d.candlestickData&&d.candlestickData[f]){const e=d.candlestickData[f],i=[{label:"开",value:x(e[0])},{label:"高",value:x(e[3])},{label:"低",value:x(e[2])},{label:"收",value:x(e[1])}];e[5]!==void 0&&i.push({label:"额",value:w(e[5])});const a=x(S(g(y(e[1],e[4]),Math.abs(e[4])),100));let n;return a>0?n="red":a<0&&(n="green"),i.push({label:"涨跌",value:`${a}%`,color:n}),i}return[]}),r=t.computed(()=>{var p;const{drawData:d,activeIndex:f}=h;return((p=d==null?void 0:d.mainIndicatorData)==null?void 0:p.map(e=>({label:e.key,value:x(e.data[f]),color:e.color})))||[]});return(d,f)=>(t.openBlock(),t.createElementBlock("div",K,[t.createVNode(O,{data:u.value},null,8,["data"]),t.createVNode(O,{data:r.value},null,8,["data"])]))}});const Z=L._export_sfc(U,[["__scopeId","data-v-234f3f41"]]),Y={class:"klineSub"},H={class:"klineSub-tips"},G={key:0,class:"klineSub-tips-select"},J=t.defineComponent({__name:"index",props:{drawData:{type:Object,require:!0},activeIndex:{type:Number,require:!0},modelValue:{type:String,required:!0},subIndicatorList:{type:Array,required:!0},config:{type:Object,require:!0}},emits:["update:modelValue"],setup(D,{expose:x,emit:S}){const{round:g}=z.x;let y,w;const h=S,u=D,r=t.ref(),d=t.computed({get(){return u.modelValue},set(e){h("update:modelValue",e)}}),f=t.computed(()=>{const{drawData:e,activeIndex:i}=u,a=u.subIndicatorList.find(n=>n.value===d.value);return e.originData&&e.originData[i]?a.config.map(n=>{var b,F;let l="-";return n.source==="origin"?l=e.originData[i][n.dataIndex]||"-":n.source==="calculation"&&(l=(((F=(b=e.subIndicatorData)==null?void 0:b.find(v=>v.key===n.key))==null?void 0:F.data)||[])[i]),{label:n.key,color:n.color,value:l==="-"?l:g(l)}}):[]});t.onMounted(()=>{y=E.init(r.value);let e=!0;w=new ResizeObserver(()=>{if(e){e=null;return}y.resize()}),w.observe(r.value)}),t.onUnmounted(()=>{y.dispose(),w.disconnect(),w=null});const p=(e,i)=>{const a=e[i],n=i===0?e[i]:e[i-1];return a[0]===a[1]?a[0]>=n[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:a[1]>a[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}};return x({connect:e=>{E.connect([e,y])},draw:e=>{t.nextTick(()=>{var k;const{startValue:i,endValue:a,maxValueSpan:n}=e,{xAxisData:l,subIndicatorData:b,candlestickData:F,originData:m}=u.drawData,v=u.subIndicatorList.find(c=>c.value===d.value),V=[];if(v.series==="bar"){let c=[];v.source==="origin"?c=m.map(_=>_[v.dataIndex]):c=((k=b==null?void 0:b.find(_=>_.key===v.dataIndex))==null?void 0:k.data)||[],V.push({name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:c.map((_,I)=>v.color==="kline"?{value:_,itemStyle:p(F,I)}:v.color==="value"?{value:_,itemStyle:{color:_>=0?"#FF0000":"#00FFFF"}}:{value:_,itemStyle:{color:v.color}})})}b.forEach(c=>{if(c.series==="line"){let _=[];c.source==="origin"?_=m.map(I=>I[c.dataIndex]):c.source==="calculation"&&(_=c.data),V.push({xAxisIndex:0,yAxisIndex:c.yAxis==="right"?2:1,name:c.key,type:"line",silent:!0,symbol:"none",data:_,lineStyle:{width:1},itemStyle:{color:c.color}})}}),y.setOption({animation:!1,grid:{left:`${u.config.gridLeft}px`,top:"10px",right:`${u.config.gridRight}px`,bottom:"20px"},dataZoom:[{type:"inside",startValue:i,endValue:a,maxValueSpan:n}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:c=>{const{axisDimension:_,value:I}=c;if(_==="x")return I;if(c.axisIndex===1)return String(g(I))}}},formatter:()=>""},xAxis:{type:"category",data:l,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{show:!0,formatter:c=>c}},yAxis:[{position:"right"},{position:"left",min:v.leftYAxisRange==="cover"?c=>c.min:null,max:v.leftYAxisRange==="cover"?c=>c.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:v.rightYAxisRange==="cover"?c=>c.min:null,max:v.rightYAxisRange==="cover"?c=>c.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:V},!0)})}}),(e,i)=>{const a=R.ElOption,n=R.ElSelect;return t.openBlock(),t.createElementBlock("div",Y,[t.createElementVNode("div",H,[f.value.length?(t.openBlock(),t.createElementBlock("div",G,[t.createVNode(n,{modelValue:d.value,"onUpdate:modelValue":i[0]||(i[0]=l=>d.value=l),size:"small","popper-class":"element-dark",class:"element-dark subIndicator"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.subIndicatorList,l=>(t.openBlock(),t.createBlock(a,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.createVNode(O,{data:f.value},null,8,["data"])]),t.createElementVNode("div",{class:"klineSub-chart",ref_key:"subChartRef",ref:r},null,512)])}}});const Q=L._export_sfc(J,[["__scopeId","data-v-0a2f256e"]]),W=t.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]}},emits:["change"],setup(D,{expose:x,emit:S}){let g,y,w=null;const h=S,u=D,r=t.ref();t.watch(()=>u.data,()=>{p()},{deep:!0}),t.onMounted(()=>{g=E.init(r.value),d(),p();let e=!0;y=new ResizeObserver(()=>{if(e){e=null;return}g.resize()}),y.observe(r.value)}),t.onUnmounted(()=>{g.off("datazoom"),g.dispose(),y.disconnect(),y=null});const d=()=>{g.on("datazoom",e=>{e.dataZoomId&&(clearTimeout(w),w=setTimeout(()=>{const{data:i}=u,{start:a,end:n}=e,l=Math.floor(a*i.length/100),b=n===100?i.length-1:Math.floor(n*i.length/100);f(l,b),clearTimeout(w)},100))})},f=(e,i)=>{const a=u.data;if(a.length===0)return;const n=a[e][0].split(" ")[0],l=a[i][0].split(" ")[0];h("change",{startTime:`${n} 00:00:00`,endTime:`${l} 24:00:00`})},p=()=>{const{data:e}=u;if(e.length===0)return;const i=e.map(n=>n[0].split(" ")[0]),a=e.map(n=>n[1]);g.setOption({grid:{height:0,left:"80px",right:"80px"},xAxis:{type:"category",data:i,show:!1},yAxis:{type:"value"},series:[{data:a,type:"line"}]},!0)};return x({resetSlide:(e,i,a)=>{let n=-1,l=-1;u.data.forEach((b,F)=>{n===-1&&b[0]===e?n=F:n===-1&&new Date(b[0])>new Date(e)&&(n=F-1),(l===-1&&b[0]===i||l===-1&&new Date(b[0])>new Date(i))&&(l=F)}),l=l===-1?u.data.length-1:l,g.setOption({dataZoom:[{show:!0,startValue:n,endValue:l,maxValueSpan:a,textStyle:{color:"#ccc"}},{type:"inside",startValue:n,endValue:l,maxValueSpan:a}]})},resize:()=>{g==null||g.resize()}}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"klineSlide",ref_key:"slideChartRef",ref:r},null,512))}});const X=L._export_sfc(W,[["__scopeId","data-v-5008746a"]]),ee={install(D){D.component("st-klineUtils",M),D.component("st-klineSub",Q),D.component("st-klineTips",Z),D.component("st-klineSlide",X)}};module.exports=ee;
|