Skip to content

Instantly share code, notes, and snippets.

@wilburforce83
Created October 23, 2018 09:52
Show Gist options
  • Save wilburforce83/fb8142e2f26829487e8d601ee40f3e3f to your computer and use it in GitHub Desktop.
Save wilburforce83/fb8142e2f26829487e8d601ee40f3e3f to your computer and use it in GitHub Desktop.
<xml xmlns="http://www.w3.org/1999/xhtml" collection="true">
<variables>
<variable type="" id="iPQa0Mb4JXu@mLNtg5GD">_period</variable>
<variable type="" id="oV8/AW@VV{g*(fE^m=8v">_candles</variable>
<variable type="" id="^MhVzlC}y%3HQ~O5Hf}X">ATRarray</variable>
<variable type="" id="jUVmnZ^6ES1s}JS[^fZ=">i</variable>
</variables>
<block type="procedures_defreturn" id="3br_,cIHhC__LSO.z!UP" x="0" y="0">
<mutation>
<arg name="_period" varid="iPQa0Mb4JXu@mLNtg5GD"></arg>
<arg name="_candles" varid="oV8/AW@VV{g*(fE^m=8v"></arg>
</mutation>
<field name="NAME">getCHOP-Live</field>
<comment pinned="false" h="80" w="160">Describe this function...</comment>
<statement name="STACK">
<block type="variables_set" id="eui3Ffcz9+6Om2i]!AcN">
<field name="VAR" id="^MhVzlC}y%3HQ~O5Hf}X" variabletype="">ATRarray</field>
<value name="VALUE">
<block type="lists_create_with" id="j7wT=-n:Nq.Rn/:B,LL.">
<mutation items="0"></mutation>
</block>
</value>
<next>
<block type="controls_for" id="-H=E3LX),ZL^a~K1*Giz">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
<value name="FROM">
<block type="math_number" id="RghAC.GFl#AU`BxCRs9z">
<field name="NUM">1</field>
</block>
</value>
<value name="TO">
<block type="variables_get" id="oSwUn7~;I:N21NY*%m!^">
<field name="VAR" id="iPQa0Mb4JXu@mLNtg5GD" variabletype="">_period</field>
</block>
</value>
<value name="BY">
<block type="math_number" id=",K;pztvIYl?:@3HdVY0}">
<field name="NUM">1</field>
</block>
</value>
<statement name="DO">
<block type="lists_setIndex" id="xQVo:cI.w-!729YFlL_5">
<mutation at="false"></mutation>
<field name="MODE">INSERT</field>
<field name="WHERE">FIRST</field>
<value name="LIST">
<block type="variables_get" id="vSoFCwCFliuTu][J!]E-">
<field name="VAR" id="^MhVzlC}y%3HQ~O5Hf}X" variabletype="">ATRarray</field>
</block>
</value>
<value name="TO">
<block type="math_on_list" id="ud=;e3iG[rv+:qcu8#P_">
<mutation op="MAX"></mutation>
<field name="OP">MAX</field>
<value name="LIST">
<block type="lists_create_with" id="f~4S504vX-6qKIC=?ah5">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="math_arithmetic" id="-u40H;0B;ro)||+h_n[l" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="lh|sLq6o0QmJr#``xiC)">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="q3v^6cW+}+o@)G)n*Td*">
<field name="OHLCFIELD_LIST">high</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="ZQAMtXM@w+*zjvCMPE_u">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="_rW=DZH[b./)4+.A+[#/">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="Fb24GA=)8~wZq7/B3Y[|">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Z9HZ=0l%4Dkz%^4bL3Lf">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="lhRN[VlTeK2Cj?7vakaz">
<field name="OHLCFIELD_LIST">low</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="uh.;R|.F2OKZ.),lEX1c">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="nb-!6HT$7#]1Ox?{S^h;">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="x0gp{$X`6YD:m0k0]UB6">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="ADD1">
<block type="math_single" id="p#;g?vFr)HmwdtIkICCo">
<field name="OP">ABS</field>
<value name="NUM">
<shadow type="math_number" id="n[NGG3z4EF(_9L-Q/qLh">
<field name="NUM">9</field>
</shadow>
<block type="math_arithmetic" id="zyZiN2vY2ETS|}4|6EV~" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="lh|sLq6o0QmJr#``xiC)">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="Q,`B5A:wucM*=B4ItdX-">
<field name="OHLCFIELD_LIST">high</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="/);EzsDe=!Vo:wO4PNeK">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="YNfWZRbR?~92,=G)1tq}">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="g4Mc#;WrS[lz+R9on/sI">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Z9HZ=0l%4Dkz%^4bL3Lf">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="HQn1n}0SFrx7c^`6vp-y">
<field name="OHLCFIELD_LIST">close</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="nB/h+d1}Jr9@yy-,THBL">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="Is2tJ,rd:/oxGPpXW_gE">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="math_arithmetic" id="gbN`Fwm;,8=pAOWc]EJr">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="fD_`6UdhZ}*TKgVDkVA-">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="rWnNNkt$hhKRVpk?D;2y">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="oF@;R{E##?6VgMM:kMXG">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="ADD2">
<block type="math_single" id="c}~xRjkC+0{XOr^*80i2">
<field name="OP">ABS</field>
<value name="NUM">
<shadow type="math_number" id="n[NGG3z4EF(_9L-Q/qLh">
<field name="NUM">9</field>
</shadow>
<block type="math_arithmetic" id="xrCb~$v1.7O1Ncn8:!xL" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="lh|sLq6o0QmJr#``xiC)">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="GN}umsG`Ul6m%Lhc8Qy7">
<field name="OHLCFIELD_LIST">low</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="P;J`bej_X{kiY]RWn3ES">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="*bbDP(so%g/c44+9:FqK">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="5e1h8/he]+J?}kbK3{mh">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Z9HZ=0l%4Dkz%^4bL3Lf">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="kTrAw1)XmTGB3TRC+Nw3">
<field name="OHLCFIELD_LIST">close</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="}D1f;QkPbJur7g[frC/b">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id=")O5Uu#Q`kY)x!Qx1h:Lk">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="math_arithmetic" id="H_cqQ9hSS^I.?,UvwUYn">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="fD_`6UdhZ}*TKgVDkVA-">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="K^u(Vqbc/dy,#*);eP^8">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="2MVp8!BOWBIzljsQjDbw">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
<value name="RETURN">
<block type="math_arithmetic" id="?n@X+4mj45~Qi,M,ryO[">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="JhFi;=yE=gBM6WF=+/#1">
<field name="NUM">100</field>
</shadow>
</value>
<value name="B">
<shadow type="math_number" id="L]YD@:Z$=S:3}fkcO3yP">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id=")G#fLRu}A)M=YhFiHVm^" inline="false">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="Z0O?*p0=N?A,(F39Y@,:">
<field name="NUM">1</field>
</shadow>
<block type="math_single" id=";6X/Z(cVwqR2.`2|^Upx">
<field name="OP">LOG10</field>
<value name="NUM">
<shadow type="math_number" id="^!m@R~G#DN;W]l-+U5q-">
<field name="NUM">9</field>
</shadow>
<block type="math_arithmetic" id="N0uom6jl)1LyJMw.+x.d" inline="false">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="Ur-Y7YK?~Vq=%zb#tAe[">
<field name="NUM">1</field>
</shadow>
<block type="math_on_list" id="NR}l$3~9LLvgV6GY#_f9">
<mutation op="SUM"></mutation>
<field name="OP">SUM</field>
<value name="LIST">
<block type="variables_get" id="5R`(O)uz0bXR7GsC05P(">
<field name="VAR" id="^MhVzlC}y%3HQ~O5Hf}X" variabletype="">ATRarray</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="_~8sJgd$Muz0RceZZih;">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="WWOZ45pXG|C,!]{6b])i" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="tkv_3EA)v[4zssM!gq.g">
<field name="NUM">1</field>
</shadow>
<block type="math_on_list" id="4P[}G*%F^WMbVH$qD$P+">
<mutation op="MAX"></mutation>
<field name="OP">MAX</field>
<value name="LIST">
<block type="lists_getSublist" id="Do-$[tHPCXBYCr^3Ux__" inline="false">
<mutation at1="true" at2="true"></mutation>
<field name="WHERE1">FROM_END</field>
<field name="WHERE2">FROM_END</field>
<value name="LIST">
<block type="ohlc_values_in_list" id="0NJ:j:|e1e-O~kkcnQY2">
<field name="OHLCFIELD_LIST">high</field>
<value name="OHLCLIST">
<block type="variables_get" id="!Sh865{|-G#OpgS|Z5f%">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
</block>
</value>
<value name="AT1">
<block type="variables_get" id="~?Hw)rQB-[rlO4|/vwiZ">
<field name="VAR" id="iPQa0Mb4JXu@mLNtg5GD" variabletype="">_period</field>
</block>
</value>
<value name="AT2">
<block type="math_number" id="Kcci~=U%p*yK{TGxRMp_">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="fIgN;tjED([[(n)!q-D/">
<field name="NUM">1</field>
</shadow>
<block type="math_on_list" id="mai@jiI2q_kxmA_cUAX6">
<mutation op="MIN"></mutation>
<field name="OP">MIN</field>
<value name="LIST">
<block type="lists_getSublist" id="EcfO;N163UyWfb`iv=|," inline="false">
<mutation at1="true" at2="true"></mutation>
<field name="WHERE1">FROM_END</field>
<field name="WHERE2">FROM_END</field>
<value name="LIST">
<block type="ohlc_values_in_list" id="RZU=9,y0rJ,4qDo3U|!-">
<field name="OHLCFIELD_LIST">low</field>
<value name="OHLCLIST">
<block type="variables_get" id="(@xV=WB%:jJ;.^Ms}}g{">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
</block>
</value>
<value name="AT1">
<block type="variables_get" id="?8`+A4W$Mu|ORFz$0]Fu">
<field name="VAR" id="iPQa0Mb4JXu@mLNtg5GD" variabletype="">_period</field>
</block>
</value>
<value name="AT2">
<block type="math_number" id="yCv*Skl)si:J/uK[V//Z">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="?1RXmV;?^%VRou*Yiw.Q">
<field name="NUM">1</field>
</shadow>
<block type="math_single" id="^HRVs!DOtxA@.QYWKOca">
<field name="OP">LOG10</field>
<value name="NUM">
<shadow type="math_number" id="W}PMn!?xlv1@Lb!KvY7L">
<field name="NUM">14</field>
</shadow>
<block type="variables_get" id="k8%o_2.bBC+iwO3NB*cW">
<field name="VAR" id="iPQa0Mb4JXu@mLNtg5GD" variabletype="">_period</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
<block type="procedures_defreturn" id="|bf_nb9i)jOBRwdF~)^j" x="0" y="782">
<mutation>
<arg name="_period" varid="iPQa0Mb4JXu@mLNtg5GD"></arg>
<arg name="_candles" varid="oV8/AW@VV{g*(fE^m=8v"></arg>
</mutation>
<field name="NAME">getCHOP-3-Hours-Ago</field>
<comment pinned="false" h="80" w="160">Describe this function...</comment>
<statement name="STACK">
<block type="variables_set" id="l]3fR$K+a:q[TGsIZm~2">
<field name="VAR" id="^MhVzlC}y%3HQ~O5Hf}X" variabletype="">ATRarray</field>
<value name="VALUE">
<block type="lists_create_with" id="AXp4W,)YJuP?r,kfglWM">
<mutation items="0"></mutation>
</block>
</value>
<next>
<block type="controls_for" id="M*=5`%=c5Or}qQX{XE)G">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
<value name="FROM">
<block type="math_number" id="a9V{+}iaiXX2(@#X9AAI">
<field name="NUM">1</field>
</block>
</value>
<value name="TO">
<block type="variables_get" id="_.mOb`B[JiqIjUSRPX7;">
<field name="VAR" id="iPQa0Mb4JXu@mLNtg5GD" variabletype="">_period</field>
</block>
</value>
<value name="BY">
<block type="math_number" id="kKr5_bDn[(^lLz:DA5:T">
<field name="NUM">1</field>
</block>
</value>
<statement name="DO">
<block type="lists_setIndex" id="coZM=z7~LY3qdrY:cZ6b">
<mutation at="false"></mutation>
<field name="MODE">INSERT</field>
<field name="WHERE">FIRST</field>
<value name="LIST">
<block type="variables_get" id="R$v~6o`D8hB3E`-K9f#+">
<field name="VAR" id="^MhVzlC}y%3HQ~O5Hf}X" variabletype="">ATRarray</field>
</block>
</value>
<value name="TO">
<block type="math_on_list" id="^/V9CaZ]s2DEELtrYi;`">
<mutation op="MAX"></mutation>
<field name="OP">MAX</field>
<value name="LIST">
<block type="lists_create_with" id="Q]Xo,bnI0^30=Sdm|HNn">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="math_arithmetic" id=":{9[5XCk8![xWZE.JNSh" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="lh|sLq6o0QmJr#``xiC)">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="0TDtVv@``Q4`|M_AB,zZ">
<field name="OHLCFIELD_LIST">high</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="^nkCe*jyU-WH(-~x+y2#">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="-Y8.z?g|`Qw$`@r!a^^1">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="NK=_=?f~E7J)H=u^@Don">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Z9HZ=0l%4Dkz%^4bL3Lf">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="8YIU75?4frDgb%.$o]SU">
<field name="OHLCFIELD_LIST">low</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="W,1Zgis5EVuu;pK/51Nc">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="B=MB.dkjU!8a@G}p^o1=">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="G[bC3;(zE7C]n`ZOi7,c">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="ADD1">
<block type="math_single" id="#=^HYkrXh:HZkmY?r_u^">
<field name="OP">ABS</field>
<value name="NUM">
<shadow type="math_number" id="n[NGG3z4EF(_9L-Q/qLh">
<field name="NUM">9</field>
</shadow>
<block type="math_arithmetic" id="vqjejUaCC[yfv%:L4,6K" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="lh|sLq6o0QmJr#``xiC)">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="F:=L1yJ{0tel0OYR,bH9">
<field name="OHLCFIELD_LIST">high</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="=G^w-jhBc~`M6QIlxa$P">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="h.6Ozhdj7YgruR](Uycw">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="ZFEBQD@B;SqGmtoYqj0C">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Z9HZ=0l%4Dkz%^4bL3Lf">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="!rC?oR[Xt/Zs6l@yOnyH">
<field name="OHLCFIELD_LIST">close</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="Hg1/gL*G/W1f1sVjxwZJ">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="lQ6A8jQ)su/|,~xjSo%=">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="math_arithmetic" id="b1w6K+y~05u8,a.8iBSP">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="fD_`6UdhZ}*TKgVDkVA-">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="Qa)C@@0GSL3+(W|+pgv)">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="}6M=Ed,C*Tx}FrTzNc3W">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="ADD2">
<block type="math_single" id="Ag|*gN}pY)`~;)Ya2a?M">
<field name="OP">ABS</field>
<value name="NUM">
<shadow type="math_number" id="n[NGG3z4EF(_9L-Q/qLh">
<field name="NUM">9</field>
</shadow>
<block type="math_arithmetic" id="G]sjpI}]f]-$GYnFUaQs" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="lh|sLq6o0QmJr#``xiC)">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="T+GlpXtZ.K2Ch9SqW?Fw">
<field name="OHLCFIELD_LIST">low</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="U[0s7V(/QdFY6PdLdFdK">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="2olq[-j,Wt-DHEAz1_#Q">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="fjH;3)qEQG|e*.j#D0+g">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Z9HZ=0l%4Dkz%^4bL3Lf">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="gR6JLRg$^a!p;xGpx17)">
<field name="OHLCFIELD_LIST">close</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="^7l0_APW1Q*znUoDR?/o">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="i,p;M,AYc#$qec?,.RbG">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="math_arithmetic" id="k-tWIZR.O9Sz4hG]--1e">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="fD_`6UdhZ}*TKgVDkVA-">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="6$P.*`aOkaxX-.7K*+k)">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Ci0tZip5~|XzmbGM`mq0">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
<value name="RETURN">
<block type="math_arithmetic" id="~I:CM/}JX*g1mVv+G~87">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="!WC;#HgzJEXch5P,0~vx">
<field name="NUM">100</field>
</shadow>
</value>
<value name="B">
<shadow type="math_number" id="L]YD@:Z$=S:3}fkcO3yP">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="`eMR)~agg)Vefm^qo%Q$" inline="false">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="Z0O?*p0=N?A,(F39Y@,:">
<field name="NUM">1</field>
</shadow>
<block type="math_single" id="g)]0QfZSQ5mp{G{2^K;Q">
<field name="OP">LOG10</field>
<value name="NUM">
<shadow type="math_number" id="^!m@R~G#DN;W]l-+U5q-">
<field name="NUM">9</field>
</shadow>
<block type="math_arithmetic" id="%px1vCl1a-J,ysXn#jcu" inline="false">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="Ur-Y7YK?~Vq=%zb#tAe[">
<field name="NUM">1</field>
</shadow>
<block type="math_on_list" id="D=7UTFP_XD1PsW)a/PP)">
<mutation op="SUM"></mutation>
<field name="OP">SUM</field>
<value name="LIST">
<block type="variables_get" id="3.N^F2rBRZB;+AON)sMd">
<field name="VAR" id="^MhVzlC}y%3HQ~O5Hf}X" variabletype="">ATRarray</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="_~8sJgd$Muz0RceZZih;">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="::^L?[O7^na:QU5v!^{M" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="tkv_3EA)v[4zssM!gq.g">
<field name="NUM">1</field>
</shadow>
<block type="math_on_list" id="%*34fcv56RO+Gc`u6bUm">
<mutation op="MAX"></mutation>
<field name="OP">MAX</field>
<value name="LIST">
<block type="lists_getSublist" id="Be=iv,myB4P)Ut{KRa)v" inline="false">
<mutation at1="true" at2="true"></mutation>
<field name="WHERE1">FROM_END</field>
<field name="WHERE2">FROM_END</field>
<value name="LIST">
<block type="ohlc_values_in_list" id="-q?d!.u:sk50tqCMbf0n">
<field name="OHLCFIELD_LIST">high</field>
<value name="OHLCLIST">
<block type="variables_get" id="V+Y*p5{%g~saHj;Prxy*">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
</block>
</value>
<value name="AT1">
<block type="variables_get" id="cfysUSEea:odnbq7ST@t">
<field name="VAR" id="iPQa0Mb4JXu@mLNtg5GD" variabletype="">_period</field>
</block>
</value>
<value name="AT2">
<block type="math_number" id=".Bi*P`#guQvvuGkrE%1R">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="fIgN;tjED([[(n)!q-D/">
<field name="NUM">1</field>
</shadow>
<block type="math_on_list" id="[T#WUDLsbdQ]GA}xi:_+">
<mutation op="MIN"></mutation>
<field name="OP">MIN</field>
<value name="LIST">
<block type="lists_getSublist" id="g=,9|^,IF:azSEsJyRxZ" inline="false">
<mutation at1="true" at2="true"></mutation>
<field name="WHERE1">FROM_END</field>
<field name="WHERE2">FROM_END</field>
<value name="LIST">
<block type="ohlc_values_in_list" id="L]jhHp2a^)g,AvGlVgZ0">
<field name="OHLCFIELD_LIST">low</field>
<value name="OHLCLIST">
<block type="variables_get" id="gCjUYpn(Ro#_@raXc.Tc">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
</block>
</value>
<value name="AT1">
<block type="variables_get" id="/oIv#Jwz`R-Z=A|G^}Ue">
<field name="VAR" id="iPQa0Mb4JXu@mLNtg5GD" variabletype="">_period</field>
</block>
</value>
<value name="AT2">
<block type="math_number" id="H]eb96PA@,k*Q~20p@/_">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="?1RXmV;?^%VRou*Yiw.Q">
<field name="NUM">1</field>
</shadow>
<block type="math_single" id="{5|$9+x`I/S*mTq9f[xI">
<field name="OP">LOG10</field>
<value name="NUM">
<shadow type="math_number" id="W}PMn!?xlv1@Lb!KvY7L">
<field name="NUM">14</field>
</shadow>
<block type="variables_get" id="jc*v7{^+85xr|%=o3Ciw">
<field name="VAR" id="iPQa0Mb4JXu@mLNtg5GD" variabletype="">_period</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
<block type="procedures_defreturn" id="+F^GnHzC/Vs|C|Z6H+Tu" x="0" y="1564">
<mutation>
<arg name="_period" varid="iPQa0Mb4JXu@mLNtg5GD"></arg>
<arg name="_candles" varid="oV8/AW@VV{g*(fE^m=8v"></arg>
</mutation>
<field name="NAME">getCHOP-6Hours-Ago</field>
<comment pinned="false" h="80" w="160">Describe this function...</comment>
<statement name="STACK">
<block type="variables_set" id="nLU(B~^APutEx1q.5a!.">
<field name="VAR" id="^MhVzlC}y%3HQ~O5Hf}X" variabletype="">ATRarray</field>
<value name="VALUE">
<block type="lists_create_with" id="QeR~j?w.(SW3_!ws`s{%">
<mutation items="0"></mutation>
</block>
</value>
<next>
<block type="controls_for" id="Pkvw*lx7vh~^{ORw-(7d">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
<value name="FROM">
<block type="math_number" id="^oLD!h/,`7Tj$s^%.)`K">
<field name="NUM">1</field>
</block>
</value>
<value name="TO">
<block type="variables_get" id="u|%VOsM_[g18PWmC4F[Q">
<field name="VAR" id="iPQa0Mb4JXu@mLNtg5GD" variabletype="">_period</field>
</block>
</value>
<value name="BY">
<block type="math_number" id="43-KWe$gT$KN*R}W*%lt">
<field name="NUM">1</field>
</block>
</value>
<statement name="DO">
<block type="lists_setIndex" id="=SPHkJJzdRbdEom#Hgem">
<mutation at="false"></mutation>
<field name="MODE">INSERT</field>
<field name="WHERE">FIRST</field>
<value name="LIST">
<block type="variables_get" id="(M+UA[E6M8XQ?,86$1fJ">
<field name="VAR" id="^MhVzlC}y%3HQ~O5Hf}X" variabletype="">ATRarray</field>
</block>
</value>
<value name="TO">
<block type="math_on_list" id="V!%Wlwn3S3/[9|8%Qurk">
<mutation op="MAX"></mutation>
<field name="OP">MAX</field>
<value name="LIST">
<block type="lists_create_with" id="e`0s_zc-^#@En^clFM,t">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="math_arithmetic" id="qP.WVgyuCPy=8;fS3G:`" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="lh|sLq6o0QmJr#``xiC)">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="m!xYgv71=]77MYa|jHc%">
<field name="OHLCFIELD_LIST">high</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="*#mLAK70|[H:p^B,l3AJ">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="7,W~:-vsM)?TTN]d+zw+">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="k+Iq:lA(72i8L8It~Uws">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Z9HZ=0l%4Dkz%^4bL3Lf">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="}C}S_sY)hHgRo1AlT{,8">
<field name="OHLCFIELD_LIST">low</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="EH1m{#K+REQRWS^}[z~_">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="lz/}H60SH7QKsTIH#Zu{">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="s%L,4iW~oJ3m%BR#/]/s">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="ADD1">
<block type="math_single" id="295Q|1P+;OVBR+`W!4^U">
<field name="OP">ABS</field>
<value name="NUM">
<shadow type="math_number" id="n[NGG3z4EF(_9L-Q/qLh">
<field name="NUM">9</field>
</shadow>
<block type="math_arithmetic" id="]!I~S@%h(V*O@ms-L1XD" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="lh|sLq6o0QmJr#``xiC)">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="1AM;gNa=KAbk+Ceaz#7Q">
<field name="OHLCFIELD_LIST">high</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="CH^X!+#S^[U1#rjWg%.m">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="j4OwF#TQkKzN_*!x!81,">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id=",d1|5AE5!$)s@*fVwv()">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Z9HZ=0l%4Dkz%^4bL3Lf">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="7rFIhw?x_m1ZkDBGDVL#">
<field name="OHLCFIELD_LIST">close</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="zxi$$/S#6TB{Eo0=Y0mh">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="nH-K-amwa~oz;@|Ynkf-">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="math_arithmetic" id="0)fS_V.k_*3~E:;={]}f">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="fD_`6UdhZ}*TKgVDkVA-">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="ql[_?lk^cI4Evt/^EYCj">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id=";@YOsE*M+bL7~$7abcu3">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="ADD2">
<block type="math_single" id="3%/Sf-DQcZO4uRSRoi+C">
<field name="OP">ABS</field>
<value name="NUM">
<shadow type="math_number" id="n[NGG3z4EF(_9L-Q/qLh">
<field name="NUM">9</field>
</shadow>
<block type="math_arithmetic" id="/=,:+6i:OU(RR1e7F,ET" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="lh|sLq6o0QmJr#``xiC)">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="C#BW1|jcf`SL;h!0)-a4">
<field name="OHLCFIELD_LIST">low</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="/b75(s79Jx*Y)|}!Dm(x">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="},-s,)z|k^BgXMy-xf@;">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="5psJX7F[Sx0!`e%u4Z3^">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Z9HZ=0l%4Dkz%^4bL3Lf">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="8)/{]9g[p%L:gPXP#[N:">
<field name="OHLCFIELD_LIST">close</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="g`HU-X^m{m,J;lf$F$^s">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="variables_get" id="K.Vb4iDb6_q2IeSivJvH">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
<value name="AT">
<block type="math_arithmetic" id="=[HE2^Zmv+4|ZnVx~3jk">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="fD_`6UdhZ}*TKgVDkVA-">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="0Zqa+=I(Z,wy1U?pmwlW">
<field name="VAR" id="jUVmnZ^6ES1s}JS[^fZ=" variabletype="">i</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="-tc:rU7;ipF!kwjI919=">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
<value name="RETURN">
<block type="math_arithmetic" id="we!Q{I3hS!][?f+oRpim">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="Y2!IyA=2(Z~4o^$Z#);-">
<field name="NUM">100</field>
</shadow>
</value>
<value name="B">
<shadow type="math_number" id="L]YD@:Z$=S:3}fkcO3yP">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="!t7|qj:5o0RNmF+e.^D(" inline="false">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="Z0O?*p0=N?A,(F39Y@,:">
<field name="NUM">1</field>
</shadow>
<block type="math_single" id="m(UBou0zemeBvNNx5v@x">
<field name="OP">LOG10</field>
<value name="NUM">
<shadow type="math_number" id="^!m@R~G#DN;W]l-+U5q-">
<field name="NUM">9</field>
</shadow>
<block type="math_arithmetic" id="]CfTDWN]gW!-gH2VxWxE" inline="false">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="Ur-Y7YK?~Vq=%zb#tAe[">
<field name="NUM">1</field>
</shadow>
<block type="math_on_list" id="e`zb%WReig]~cpijr_,S">
<mutation op="SUM"></mutation>
<field name="OP">SUM</field>
<value name="LIST">
<block type="variables_get" id="spagvV8Hnd!JddHz^5@i">
<field name="VAR" id="^MhVzlC}y%3HQ~O5Hf}X" variabletype="">ATRarray</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="_~8sJgd$Muz0RceZZih;">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id=")/8zi:jQLCP;Sqq;JKdJ" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="tkv_3EA)v[4zssM!gq.g">
<field name="NUM">1</field>
</shadow>
<block type="math_on_list" id="Km#uMx;A-2CO^$TF8#R(">
<mutation op="MAX"></mutation>
<field name="OP">MAX</field>
<value name="LIST">
<block type="lists_getSublist" id="W:7|e8x:zDfbUDbkv8)6" inline="false">
<mutation at1="true" at2="true"></mutation>
<field name="WHERE1">FROM_END</field>
<field name="WHERE2">FROM_END</field>
<value name="LIST">
<block type="ohlc_values_in_list" id="!]P/#k_Q4iV2c1OO3,vp">
<field name="OHLCFIELD_LIST">high</field>
<value name="OHLCLIST">
<block type="variables_get" id="iQiq7_Hn[DZQ%yQ{o2MK">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
</block>
</value>
<value name="AT1">
<block type="variables_get" id="e~hV[5tCj;P0]+*whl=R">
<field name="VAR" id="iPQa0Mb4JXu@mLNtg5GD" variabletype="">_period</field>
</block>
</value>
<value name="AT2">
<block type="math_number" id="_Cgqnz-W]WQf@ml[5.!y">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="fIgN;tjED([[(n)!q-D/">
<field name="NUM">1</field>
</shadow>
<block type="math_on_list" id="pHxA{f{8s(]%eykGfv|U">
<mutation op="MIN"></mutation>
<field name="OP">MIN</field>
<value name="LIST">
<block type="lists_getSublist" id="Rn5+j)IKnw8v[E[8.UYO" inline="false">
<mutation at1="true" at2="true"></mutation>
<field name="WHERE1">FROM_END</field>
<field name="WHERE2">FROM_END</field>
<value name="LIST">
<block type="ohlc_values_in_list" id="X~GrsH`{M=fNti?O(*Xk">
<field name="OHLCFIELD_LIST">low</field>
<value name="OHLCLIST">
<block type="variables_get" id="IyC}#k_0yZ(a!s0JhA$[">
<field name="VAR" id="oV8/AW@VV{g*(fE^m=8v" variabletype="">_candles</field>
</block>
</value>
</block>
</value>
<value name="AT1">
<block type="variables_get" id="~vMVzssPW.y$A07v({hg">
<field name="VAR" id="iPQa0Mb4JXu@mLNtg5GD" variabletype="">_period</field>
</block>
</value>
<value name="AT2">
<block type="math_number" id="+-QH^?MZDHjEB?Y5#]dr">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="?1RXmV;?^%VRou*Yiw.Q">
<field name="NUM">1</field>
</shadow>
<block type="math_single" id=")nqiQv`3KxXCQ=j=QXC+">
<field name="OP">LOG10</field>
<value name="NUM">
<shadow type="math_number" id="W}PMn!?xlv1@Lb!KvY7L">
<field name="NUM">14</field>
</shadow>
<block type="variables_get" id="*uk=}![ToN9Q(,eZqqph">
<field name="VAR" id="iPQa0Mb4JXu@mLNtg5GD" variabletype="">_period</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</xml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment