0% found this document useful (0 votes)
255 views

CCI Binary Bot

This function calculates the commodity channel index (CCI) indicator for a given input dataset. It initializes two empty lists to store the CCI values and deviations, then loops through each data point, calculating the CCI and deviation and adding them to the respective lists.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
255 views

CCI Binary Bot

This function calculates the commodity channel index (CCI) indicator for a given input dataset. It initializes two empty lists to store the CCI values and deviations, then loops through each data point, calculating the CCI and deviation and adding them to the respective lists.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 12

<xml xmlns="http://www.w3.

org/1999/xhtml" collection="false">
<variables>
<variable type="" id="mj8hVe,a/iR_la|;2~Tt">_input</variable>
<variable type="" id="cQso*fRB^J3?,h!-rK+o">length</variable>
<variable type="" id="GuQbYu$UE_T_ulWx|?k}">_presicion</variable>
<variable type="" id="iM*n:5%lQICF;vA9PAr=">TP:list</variable>
<variable type="" id="KE)g2i5^MX99Y*_STh%U">Dev.</variable>
<variable type="" id="ok4qv`0tx$*hfJq1P[/q">i</variable>
<variable type="" id="mIN[7Q.nBP*95)]wC|Z1">j</variable>
<variable type="" id="fSB#7(RUjI5_*x*Qr1=4">Mean_Dev.</variable>
</variables>
<block type="trade" id="|v@QXXEC8?Y{z(o[@ez0" x="0" y="0">
<field name="MARKET_LIST">volidx</field>
<field name="SUBMARKET_LIST">random_index</field>
<field name="SYMBOL_LIST">R_25</field>
<field name="TRADETYPECAT_LIST">callput</field>
<field name="TRADETYPE_LIST">risefall</field>
<field name="TYPE_LIST">both</field>
<field name="CANDLEINTERVAL_LIST">60</field>
<field name="TIME_MACHINE_ENABLED">FALSE</field>
<field name="RESTARTONERROR">TRUE</field>
<statement name="SUBMARKET">
<block type="tradeOptions" id="J3}ArEj?-ylc?o`O_HX9">
<field name="DURATIONTYPE_LIST">t</field>
<field name="CURRENCY_LIST">USD</field>
<value name="DURATION">
<shadow type="math_number" id=".VroKZXL$v81,5M|l6Mu">
<field name="NUM">5</field>
</shadow>
</value>
<value name="AMOUNT">
<shadow type="math_number" id=".UT|#_dG6Y@LxondXEvr">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</statement>
</block>
<block type="procedures_defreturn" id="9Rvr)kj[mLTI(h~SaROG" collapsed="true"
x="0" y="403">
<mutation>
<arg name="_input" varid="mj8hVe,a/iR_la|;2~Tt"></arg>
<arg name="length" varid="cQso*fRB^J3?,h!-rK+o"></arg>
<arg name="_presicion" varid="GuQbYu$UE_T_ulWx|?k}"></arg>
</mutation>
<field name="NAME">Commodity Channel Index</field>
<comment pinned="false" h="80" w="160">Jelaskan fungsi ini...</comment>
<statement name="STACK">
<block type="variables_set" id="c@jqrs,|/$+t}h.7ePh6">
<field name="VAR" id="iM*n:5%lQICF;vA9PAr=" variabletype="">TP:list</field>
<value name="VALUE">
<block type="lists_create_with" id="2*${uY6Mm_e#%C.yi?G#">
<mutation items="0"></mutation>
</block>
</value>
<next>
<block type="variables_set" id="?x@]Sk(75~]_)G?YHwBj">
<field name="VAR" id="KE)g2i5^MX99Y*_STh%U"
variabletype="">Dev.</field>
<value name="VALUE">
<block type="lists_create_with" id="B,={pHWVEh+T~*6Qpv~=">
<mutation items="0"></mutation>
</block>
</value>
<next>
<block type="controls_for" id="{/Pz4|c]|$gQ:OX*HQYO">
<field name="VAR" id="ok4qv`0tx$*hfJq1P[/q"
variabletype="">i</field>
<value name="FROM">
<block type="math_number" id="bY,S?BEF,,3TF~e]cI,X">
<field name="NUM">1</field>
</block>
</value>
<value name="TO">
<block type="variables_get" id="gZ`pJg{H|oX$8y=Q4@oe">
<field name="VAR" id="cQso*fRB^J3?,h!-rK+o"
variabletype="">length</field>
</block>
</value>
<value name="BY">
<block type="math_number" id="5cTJR`)uWl~s8GH1~RTE">
<field name="NUM">1</field>
</block>
</value>
<statement name="DO">
<block type="lists_setIndex" id="4Y#5j[-]`5crw34AM@c*">
<mutation at="false"></mutation>
<field name="MODE">INSERT</field>
<field name="WHERE">FIRST</field>
<value name="LIST">
<block type="variables_get" id="//9}EuyjJEs(Rbif7}0L">
<field name="VAR" id="iM*n:5%lQICF;vA9PAr="
variabletype="">TP:list</field>
</block>
</value>
<value name="TO">
<block type="math_arithmetic" id="5AKiEZEp^s.TkOhdgQWC"
collapsed="true">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="W${AM=uu*[gMQzud#J@,">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="-7762q*~Nk9Gc!.L5a3j">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="1PJYlw;iPX;D`Z)zG,a$">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="7Tz%9cH^Flt^rJ-
P+,pp">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="dwh%.,oOs8x9?
^RUap+x">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj"
id="jm}nJB8oMSt6@C8)w|t@">
<field name="OHLCFIELD_LIST">high</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="7VL$Otyb|
f/!-#47@|CV">
<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=":y.o+2^=.)SE9.A5Cto9">
<field name="VAR"
id="mj8hVe,a/iR_la|;2~Tt" variabletype="">_input</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="QMa}
[%84~?k.DX1)YC$7">
<field name="VAR"
id="ok4qv`0tx$*hfJq1P[/q" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="gg#z~{b;p^o2#!
S]rG;T">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj"
id="9=nnM$9]PP1zxRrp0]A`">
<field name="OHLCFIELD_LIST">low</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="P^!
XwV9}KIWFls.CI#gx">
<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="U}b_F,?
~ukRE:x[]#!@;">
<field name="VAR"
id="mj8hVe,a/iR_la|;2~Tt" variabletype="">_input</field>
</block>
</value>
<value name="AT">
<block type="variables_get"
id="Yi1aED$3]6hoWCx/MR/N">
<field name="VAR"
id="ok4qv`0tx$*hfJq1P[/q" variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id=",D_=yhEM_|}-/zX*jM-%">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj"
id="fw7r256POO{./.Pp8cBB">
<field name="OHLCFIELD_LIST">close</field>
<value name="OHLCOBJ">
<block type="lists_getIndex" id="Ua;jnOfv}WzyO!
fAirG?">
<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="IG}y-
3Ei[FhA7,c3_|NX">
<field name="VAR" id="mj8hVe,a/iR_la|;2~Tt"
variabletype="">_input</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="$QbaoWa
%RjcstcA(Je,+">
<field name="VAR" id="ok4qv`0tx$*hfJq1P[/q"
variabletype="">i</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="XiYEN:KL59[lsRIIji$:">
<field name="NUM">3</field>
</shadow>
</value>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_for" id="X@`u{zFIMocu;R15hzf8">
<field name="VAR" id="mIN[7Q.nBP*95)]wC|Z1"
variabletype="">j</field>
<value name="FROM">
<block type="math_number" id="phvH=_GV(bgB})NOu#GX">
<field name="NUM">1</field>
</block>
</value>
<value name="TO">
<block type="variables_get" id="X$cpBh%L$LmKgj=n0R4j">
<field name="VAR" id="cQso*fRB^J3?,h!-rK+o"
variabletype="">length</field>
</block>
</value>
<value name="BY">
<block type="math_number" id="NV1JXi!c`g-GqRMjQ=U^">
<field name="NUM">1</field>
</block>
</value>
<statement name="DO">
<block type="lists_setIndex" id="`GI*1pH!YCfR[7B/)T;}">
<mutation at="false"></mutation>
<field name="MODE">INSERT</field>
<field name="WHERE">FIRST</field>
<value name="LIST">
<block type="variables_get" id="~aPQ#L7N6CEKT*O+d0Bu">
<field name="VAR" id="KE)g2i5^MX99Y*_STh%U"
variabletype="">Dev.</field>
</block>
</value>
<value name="TO">
<block type="math_single" id="B_[BMPSE}U=;f^SB}7VB">
<field name="OP">ABS</field>
<value name="NUM">
<shadow type="math_number" id="D-wB`*Zub7EU83Oqv:`G">
<field name="NUM">9</field>
</shadow>
<block type="math_arithmetic" id="0pJl%|
9b=;m=_2*EiY+.">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="i0tl.jXgvH]VtEhR-
T;U">
<field name="NUM">1</field>
</shadow>
<block type="sma" id="t[|=,ye6qO2-eWF6`Y:z">
<value name="INPUT">
<block type="variables_get" id="9?
dmKozET4[oGgzq_J%(">
<field name="VAR" id="iM*n:5%lQICF;vA9PAr="
variabletype="">TP:list</field>
</block>
</value>
<value name="PERIOD">
<shadow type="math_number" id="0`
%55I@Y=N_OY9FX5BM(">
<field name="NUM">10</field>
</shadow>
<block type="variables_get" id="GjoOzP5u%.
+RJEr.E:w[">
<field name="VAR" id="cQso*fRB^J3?,h!-rK+o"
variabletype="">length</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="wGh8;acWui}B@qT3G|
@}">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic"
id="[6}/pJD*NU=gNJLcWkz(">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="W$
{AM=uu*[gMQzud#J@,">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic"
id="W6V2q8X}c^r)yV?*sBgy">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number"
id="1PJYlw;iPX;D`Z)zG,a$">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic"
id="U6ce:a{(i#R}*5i=z,[T">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="dwh
%.,oOs8x9?^RUap+x">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj"
id="6L+XHcs)6:^R0`o`q^d#">
<field
name="OHLCFIELD_LIST">high</field>
<value name="OHLCOBJ">
<block type="lists_getIndex"
id="-y|iLYfQb+u;k=t6Eo}1">
<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="D?NcvvVamHeIbFKT_[+N">
<field name="VAR"
id="mj8hVe,a/iR_la|;2~Tt" variabletype="">_input</field>
</block>
</value>
<value name="AT">
<block type="variables_get"
id="%?|SJ#-bK*rPXWu%!FN1">
<field name="VAR"
id="mIN[7Q.nBP*95)]wC|Z1" variabletype="">j</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number"
id="gg#z~{b;p^o2#!S]rG;T">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj"
id="n7cFBi)5:/SUEi)@8v%y">
<field
name="OHLCFIELD_LIST">low</field>
<value name="OHLCOBJ">
<block type="lists_getIndex"
id="hR[w2W)ccClc6iS$4[/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="m*kzLHIR-m?}oQ|Uh:W_">
<field name="VAR"
id="mj8hVe,a/iR_la|;2~Tt" variabletype="">_input</field>
</block>
</value>
<value name="AT">
<block type="variables_get"
id="9e7R4/N;u?}C|OqIFjb,">
<field name="VAR"
id="mIN[7Q.nBP*95)]wC|Z1" variabletype="">j</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number"
id=",D_=yhEM_|}-/zX*jM-%">
<field name="NUM">1</field>
</shadow>
<block type="read_ohlc_obj" id="@G2Ez-
FwD[5Yd:m}=w7b">
<field
name="OHLCFIELD_LIST">close</field>
<value name="OHLCOBJ">
<block type="lists_getIndex"
id="lhi{pZEU1%fIT;+}2E/0">
<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
%7E.adpFSGzm#GKFnYP">
<field name="VAR"
id="mj8hVe,a/iR_la|;2~Tt" variabletype="">_input</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="-
pV~.$fXPvsm!NNgVY*)">
<field name="VAR"
id="mIN[7Q.nBP*95)]wC|Z1" variabletype="">j</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number"
id="3,*TG=B{1S_g:QL@%u2m">
<field name="NUM">3</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</statement>
<next>
<block type="variables_set" id="q8iKq/Z[Lv2mRY)~s/sr">
<field name="VAR" id="fSB#7(RUjI5_*x*Qr1=4"
variabletype="">Mean_Dev.</field>
<value name="VALUE">
<block type="math_arithmetic" id="mowoG0],3|=WwM1bCGoZ">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="wGH;bf#%f|0.ZdKbJj0K">
<field name="NUM">1</field>
</shadow>
<block type="math_on_list" id="Z#WI9t5Cd%Aok@v@k|p^">
<mutation op="SUM"></mutation>
<field name="OP">SUM</field>
<value name="LIST">
<block type="variables_get"
id="*To65_~qbrt/lc~`qc1c">
<field name="VAR" id="KE)g2i5^MX99Y*_STh%U"
variabletype="">Dev.</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Zse62Mob;qDO|u8V357p">
<field name="NUM">1</field>
</shadow>
<block type="lists_length" id="/6U.41Ek?1wRvW,rVCQa">
<value name="VALUE">
<block type="variables_get" id="E-
4CFdhP0q.KnnZP}@[D">
<field name="VAR" id="KE)g2i5^MX99Y*_STh%U"
variabletype="">Dev.</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="RETURN">
<block type="math_arithmetic" id="Z$Q}`:]sdPpMT_wDVTtG">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="P}s.l|~*xBc5S_2j;LN0">
<field name="NUM">1</field>
</shadow>
<block type="math_round" id="hmgv}o=x25JSB=-~|i4=">
<field name="OP">ROUND</field>
<value name="NUM">
<shadow type="math_number" id="V:}u1dY6wyzAjsvU!X=G">
<field name="NUM">3.1</field>
</shadow>
<block type="math_arithmetic" id="}e:js`Mkoj,LJ|0H+`5j">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="f6=@u`#784n^_Az]0)Go">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="$+@UZy#PYMo):Ys5LnKG">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="lBn9+.or3YO`l2DHv#[T">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="DI8(,6H1bE+dSNED1?3]">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="i0tl.jXgvH]VtEhR-T;U">
<field name="NUM">1</field>
</shadow>
<block type="lists_getIndex" id="wmLN`6qKxH;3g[E88D?*">
<mutation statement="false" at="false"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">LAST</field>
<value name="VALUE">
<block type="variables_get" id="]j:$),rKcTMh|
f}Y4L$;">
<field name="VAR" id="iM*n:5%lQICF;vA9PAr="
variabletype="">TP:list</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="wGh8;acWui}B@qT3G|@}">
<field name="NUM">1</field>
</shadow>
<block type="sma" id=";6WvYuJ69m{L-u%QmIR=">
<value name="INPUT">
<block type="variables_get" id="K{t:bd(oU`k~mcfjo|
6]">
<field name="VAR" id="iM*n:5%lQICF;vA9PAr="
variabletype="">TP:list</field>
</block>
</value>
<value name="PERIOD">
<shadow type="math_number" id="0`%55I@Y=N_OY9FX5BM(">
<field name="NUM">10</field>
</shadow>
<block type="variables_get"
id="8z}A=?4Aelp/33qdG*,b">
<field name="VAR" id="cQso*fRB^J3?,h!-rK+o"
variabletype="">length</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="x0!!*B^4I;nZ3FXr;CF!">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="h#](%!]T);2c5+$+}5v@">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="q]Kmc1Ha`ex^fa%Ia29J">
<field name="NUM">0.015</field>
</shadow>
</value>
<value name="B">
<shadow type="math_number" id="SdAr48i^~5f-rQJb9Ks-">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="Pm0MwSocR%U1tzC69u-D">
<field name="VAR" id="fSB#7(RUjI5_*x*Qr1=4"
variabletype="">Mean_Dev.</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="+M%v$hj9/gP(bzL*OfS1">
<field name="NUM">0</field>
</shadow>
<block type="math_single" id="mPH,zO{`{to;E%4RwhiJ">
<field name="OP">POW10</field>
<value name="NUM">
<shadow type="math_number" id="w1lN~Hcqj;)CFLns.P28">
<field name="NUM">9</field>
</shadow>
<block type="variables_get" id="s7Wt@w{6R=n8k/u3I*oZ">
<field name="VAR" id="GuQbYu$UE_T_ulWx|?k}"
variabletype="">_presicion</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="J4DYSW?6pUPqG`NA7^I4">
<field name="NUM">0</field>
</shadow>
<block type="math_single" id="MUi|{A?@r[||QMaiscp0">
<field name="OP">POW10</field>
<value name="NUM">
<shadow type="math_number" id="w1lN~Hcqj;)CFLns.P28">
<field name="NUM">9</field>
</shadow>
<block type="variables_get" id="^U9`04{.v7gx|CLNyQ~U">
<field name="VAR" id="GuQbYu$UE_T_ulWx|?k}"
variabletype="">_presicion</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
<block type="before_purchase" id=";`Q?=i|ZC,6VK;[lH)=+" x="0" y="456">
<statement name="BEFOREPURCHASE_STACK">
<block type="notify" id="Iq*7tF{VEL5kW5{dvJKE">
<field name="NOTIFICATION_TYPE">success</field>
<field name="NOTIFICATION_SOUND">silent</field>
<value name="MESSAGE">
<shadow type="text" id="vZ||2u78?0aI9%tRRr:=">
<field name="TEXT">abc</field>
</shadow>
<block type="procedures_callreturn" id="sxbO~Gn+I-8d?h|GLOH)">
<mutation name="Commodity Channel Index">
<arg name="_input"></arg>
<arg name="length"></arg>
<arg name="_presicion"></arg>
</mutation>
<value name="ARG0">
<block type="ohlc" id="_M;wR`CNpfCtHw$yQ,z^">
<field name="CANDLEINTERVAL_LIST">default</field>
</block>
</value>
<value name="ARG1">
<block type="math_number" id="hQFODFt9o+XvcNrEd`/*">
<field name="NUM">20</field>
</block>
</value>
<value name="ARG2">
<block type="math_number" id="o+FcSUlNO,I}NLQ|vc?_">
<field name="NUM">4</field>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
</xml>

You might also like