﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="J)/X1+0S;OaD8RGyHkM3">IU:values</variable>
    <variable type="" id="-Ai1Ws,x@)h$(aOp`6Kb">IU:period</variable>
    <variable type="" id="ART{oIW8ZT5@kQsfPxsM">ID:values</variable>
    <variable type="" id="!Ax1oN:$G3XO[[:xvi%^">ID:period</variable>
    <variable type="" id=";3fx2ROHML-E`PZw{@r/">::candles</variable>
    <variable type="" id="~G3U9$=)G;h_^LS0Q?p(">::period</variable>
    <variable type="" id="ZA/7JoX65ukxp)iyuc-t">IU:sma</variable>
    <variable type="" id="-[,j5)WtUp)Q?)7!Lluu">IU:isUp</variable>
    <variable type="" id="W-xvt^Xv)sP7B$YuU9$X">ID:sma</variable>
    <variable type="" id="r[,-EqX$Ic@!!fK3}3Z1">ID:isDown</variable>
    <variable type="" id=".Ju1FKtAMhSk%T79MgAz">TP:List</variable>
    <variable type="" id="TI,H(+i7[c/(G4Eb?R=#">Initial Amount</variable>
    <variable type="" id="Q@+3t]5^6wg;QKR:9MKb">МА</variable>
    <variable type="" id="U//Rb)hTrLa=,!4A0WzP">IU:prev</variable>
    <variable type="" id="KBl#(Fl+@e*:lz]LL2u5">ID:prev</variable>
    <variable type="" id="WA~r[01]=bLKG9N$d/a^">j</variable>
    <variable type="" id="e}SvfkW53S$6g7xA3z,C">Win Amount</variable>
    <variable type="" id="KQf-*h^O6}C/lz#alGw_">CCI</variable>
    <variable type="" id="TSb[v.0ODLDk(JV{Qq1r">tp</variable>
    <variable type="" id="3!04wBS#F}FXXXQ1JaP`">Expected Profit</variable>
    <variable type="" id="+zFk#l1k=-igF53=0MC.">RSI</variable>
    <variable type="" id="omX.?{g`(nN`+l)ThbNL">IU:i</variable>
    <variable type="" id="wb%_sBV!L4`t8O)5y}oF">ID:i</variable>
    <variable type="" id="#LS1%xZN;r$VA$Dx[Rh3">sum</variable>
    <variable type="" id="OS?qcNi=SM-2)Kh+|HMA">Maximum Loss</variable>
    <variable type="" id="%+z/zydNNz;?-(fvWHXE">BB_upper</variable>
    <variable type="" id="sopP9]I+2oa)nZOy~(,u">i</variable>
    <variable type="" id="#1nvvzeHDuOZUBj|Esbr">martingale::multiplier</variable>
    <variable type="" id="UJ+_j5$Ip?,sI@}=?^a#">BB_lower</variable>
    <variable type="" id="LvpzAPP6y{h[3b0967dj">UPtrend</variable>
    <variable type="" id="himwqBlrRy(D=UJR|T})">Max Loss Amount</variable>
    <variable type="" id="rhE!kh=7j%ua0vApL^3*">DWtrend</variable>
  </variables>
  <block type="procedures_defreturn" id="^BtPrVqmTJNfy~9H7!h8" collapsed="true" x="169" y="-13">
    <mutation>
      <arg name="IU:values" varid="J)/X1+0S;OaD8RGyHkM3"></arg>
      <arg name="IU:period" varid="-Ai1Ws,x@)h$(aOp`6Kb"></arg>
    </mutation>
    <field name="NAME">is uptrend</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="oFBB7QmQNLjoR)t6W!2C">
        <field name="VAR" id="ZA/7JoX65ukxp)iyuc-t" variabletype="">IU:sma</field>
        <value name="VALUE">
          <block type="emaa" id="Fj0!*RD(G,%]}o!L3G*w">
            <value name="INPUT">
              <block type="lists_getSublist" id="*ybSjprIC7@E3{u=cTOM">
                <mutation at1="true" at2="false"></mutation>
                <field name="WHERE1">FROM_END</field>
                <field name="WHERE2">LAST</field>
                <value name="LIST">
                  <block type="variables_get" id="D3nDL-N084LOYR;6x;g7">
                    <field name="VAR" id="J)/X1+0S;OaD8RGyHkM3" variabletype="">IU:values</field>
                  </block>
                </value>
                <value name="AT1">
                  <block type="math_arithmetic" id="g%){+@+drna~~WjDHuwK">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="V4cmRIpD@S]K~#|unBtt">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="zMK#Kv5n@MTwif[[]ry,">
                        <field name="VAR" id="-Ai1Ws,x@)h$(aOp`6Kb" variabletype="">IU:period</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="]BO9pYlPiisZCsLWQ}N?">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_number" id="(OrjD.Jy1-5Wp{[1wdYK">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <value name="PERIOD">
              <block type="variables_get" id="f(Vd)7V_x0(UQ_mGnXV@">
                <field name="VAR" id="-Ai1Ws,x@)h$(aOp`6Kb" variabletype="">IU:period</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="DeEXlP=J_n#0vuW1G%pG">
            <field name="VAR" id="U//Rb)hTrLa=,!4A0WzP" variabletype="">IU:prev</field>
            <value name="VALUE">
              <block type="lists_getIndex" id="{CwG=-yF@mFq5,;W!9yb">
                <mutation statement="false" at="false"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FIRST</field>
                <value name="VALUE">
                  <block type="variables_get" id="A}i@63~xLE5[z80%TPBC">
                    <field name="VAR" id="ZA/7JoX65ukxp)iyuc-t" variabletype="">IU:sma</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="ya{SB(jt)[nQylUz?g,i">
                <field name="VAR" id="-[,j5)WtUp)Q?)7!Lluu" variabletype="">IU:isUp</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="oz,Osq,;N?pU*jC6nlC.">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
                <next>
                  <block type="controls_forEach" id="@[yEmYG!/[|^]+D^YerX">
                    <field name="VAR" id="omX.?{g`(nN`+l)ThbNL" variabletype="">IU:i</field>
                    <value name="LIST">
                      <block type="lists_getSublist" id="-gOGm1XUH7iPu0j*s-r0">
                        <mutation at1="true" at2="false"></mutation>
                        <field name="WHERE1">FROM_END</field>
                        <field name="WHERE2">LAST</field>
                        <value name="LIST">
                          <block type="variables_get" id="*gJ4sZLz]x7oTTb+j`G+">
                            <field name="VAR" id="ZA/7JoX65ukxp)iyuc-t" variabletype="">IU:sma</field>
                          </block>
                        </value>
                        <value name="AT1">
                          <block type="math_number" id="~m.#FFdue~hkd4unG!}z">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO">
                      <block type="variables_set" id="AI-=DajG}?M7U8qiYnP!">
                        <field name="VAR" id="-[,j5)WtUp)Q?)7!Lluu" variabletype="">IU:isUp</field>
                        <value name="VALUE">
                          <block type="logic_operation" id="^hGB_rincn}d19e-5OZs">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="variables_get" id="MFY`^,IRwXwv)`_9nzQz">
                                <field name="VAR" id="-[,j5)WtUp)Q?)7!Lluu" variabletype="">IU:isUp</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="k!SE1wW=)7,O;,Ru8|]|">
                                <field name="OP">LTE</field>
                                <value name="A">
                                  <block type="variables_get" id="pEjpLJ()6]26Z!`XjgnR">
                                    <field name="VAR" id="U//Rb)hTrLa=,!4A0WzP" variabletype="">IU:prev</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="3D`e3yhPS~]V;QG-Oq)5">
                                    <field name="VAR" id="omX.?{g`(nN`+l)ThbNL" variabletype="">IU:i</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="6FXu5;#,W=ZX:p0UqF2k">
        <field name="VAR" id="-[,j5)WtUp)Q?)7!Lluu" variabletype="">IU:isUp</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="^9gz]OJO6YQN]wJ:R24L" collapsed="true" x="431" y="-9">
    <mutation>
      <arg name="ID:values" varid="ART{oIW8ZT5@kQsfPxsM"></arg>
      <arg name="ID:period" varid="!Ax1oN:$G3XO[[:xvi%^"></arg>
    </mutation>
    <field name="NAME">is downtrend</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="v8Baj9tHzg+Tb_Z?^7?C">
        <field name="VAR" id="W-xvt^Xv)sP7B$YuU9$X" variabletype="">ID:sma</field>
        <value name="VALUE">
          <block type="emaa" id="E]_;?ZQ2DV_|-[L3,n|?">
            <value name="INPUT">
              <block type="lists_getSublist" id="#udT2deGdIEq*NSVeO`F">
                <mutation at1="true" at2="false"></mutation>
                <field name="WHERE1">FROM_END</field>
                <field name="WHERE2">LAST</field>
                <value name="LIST">
                  <block type="variables_get" id="Lcizxzsec:W]eVqy/hQ2">
                    <field name="VAR" id="ART{oIW8ZT5@kQsfPxsM" variabletype="">ID:values</field>
                  </block>
                </value>
                <value name="AT1">
                  <block type="math_arithmetic" id="Kp1FeSOx?KX#Sh#0}D[e">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="V4cmRIpD@S]K~#|unBtt">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="rDPTttP{~WWSz?jGZ3EC">
                        <field name="VAR" id="!Ax1oN:$G3XO[[:xvi%^" variabletype="">ID:period</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="]BO9pYlPiisZCsLWQ}N?">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_number" id="+KA7_s=|Jc_Du,,{Bd{,">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <value name="PERIOD">
              <block type="variables_get" id="y+./,Bz,*KDXLUr~0lQ%">
                <field name="VAR" id="!Ax1oN:$G3XO[[:xvi%^" variabletype="">ID:period</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="]Vg@IBXf7|%m_JkvLy`z">
            <field name="VAR" id="KBl#(Fl+@e*:lz]LL2u5" variabletype="">ID:prev</field>
            <value name="VALUE">
              <block type="lists_getIndex" id="r0~;Q+a_;/(E`YqQ0@P0">
                <mutation statement="false" at="false"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FIRST</field>
                <value name="VALUE">
                  <block type="variables_get" id="oeD~G5fO~k-e=PN~sTV0">
                    <field name="VAR" id="W-xvt^Xv)sP7B$YuU9$X" variabletype="">ID:sma</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="3P3`~]Wu,b^6i,XGzA+x">
                <field name="VAR" id="r[,-EqX$Ic@!!fK3}3Z1" variabletype="">ID:isDown</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="L!`mJxK+x4sW,z}G_YI8">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
                <next>
                  <block type="controls_forEach" id="g:UjunDCqB0QU^*b5Hc}">
                    <field name="VAR" id="wb%_sBV!L4`t8O)5y}oF" variabletype="">ID:i</field>
                    <value name="LIST">
                      <block type="lists_getSublist" id="7]57*%,lsi+~r7p}])0M">
                        <mutation at1="true" at2="false"></mutation>
                        <field name="WHERE1">FROM_END</field>
                        <field name="WHERE2">LAST</field>
                        <value name="LIST">
                          <block type="variables_get" id="nCg?=*t]%nqCW{V0OS{r">
                            <field name="VAR" id="W-xvt^Xv)sP7B$YuU9$X" variabletype="">ID:sma</field>
                          </block>
                        </value>
                        <value name="AT1">
                          <block type="math_number" id="Oy1sUEd|ix!{eEGtm#QK">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO">
                      <block type="variables_set" id="YpGuhl2]JN{Iji[9ZE,F">
                        <field name="VAR" id="r[,-EqX$Ic@!!fK3}3Z1" variabletype="">ID:isDown</field>
                        <value name="VALUE">
                          <block type="logic_operation" id="AS?Ubav=)1B3/-+@qxk}">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="variables_get" id="FZjZc^cKbJ@:S~#.`m;(">
                                <field name="VAR" id="r[,-EqX$Ic@!!fK3}3Z1" variabletype="">ID:isDown</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="-Z/7GT5Z|uqc9qh505il">
                                <field name="OP">GTE</field>
                                <value name="A">
                                  <block type="variables_get" id="7ca@D:WrfX]5+R60t9^0">
                                    <field name="VAR" id="KBl#(Fl+@e*:lz]LL2u5" variabletype="">ID:prev</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="jeeZiOJO,9+v4Ww?@v=.">
                                    <field name="VAR" id="wb%_sBV!L4`t8O)5y}oF" variabletype="">ID:i</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="6hc68W:Zs9Dl`6AwTWly">
        <field name="VAR" id="r[,-EqX$Ic@!!fK3}3Z1" variabletype="">ID:isDown</field>
      </block>
    </value>
  </block>
  <block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" collapsed="true" x="1024" y="-38">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="lXx[u)])DplI5tNJCX#E">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="f`.9rMI;|4i^FZ9y12zT">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="notify" id="4YfK{W[2OoWl^*}:`-~%">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">earned-money</field>
            <value name="MESSAGE">
              <block type="text_join" id="NI6_z2cNjwq/t2B^h`{=">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="5%$!H}8?@4$/?s+Piv_+">
                    <field name="TEXT">Win: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="read_details" id="rm)(g3DL.ASYfcDYc913">
                    <field name="DETAIL_INDEX">4</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="RHjB4R=uQ`(l+$;WvdmJ">
                <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
                <value name="VALUE">
                  <block type="variables_get" id="@f`s#/,Qh+L1siQ%@LZu">
                    <field name="VAR" id="e}SvfkW53S$6g7xA3z,C" variabletype="">Win Amount</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="notify" id="=%CD;.rm0YSeX3^NARv{">
            <field name="NOTIFICATION_TYPE">error</field>
            <field name="NOTIFICATION_SOUND">job-done</field>
            <value name="MESSAGE">
              <block type="text_join" id="`~I~AJSjE5P*6+$e,}D8">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="CrG9@.tREViPIC`9}[=i">
                    <field name="TEXT">Loss: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="math_single" id="nlr^LH9]K.,!~{!S_Q*6">
                    <field name="OP">ABS</field>
                    <value name="NUM">
                      <shadow type="math_number" id="pe:l,[yfpPuE-)d3*.,%">
                        <field name="NUM">9</field>
                      </shadow>
                      <block type="read_details" id="[:48l.owbE2cBTmqoyO1">
                        <field name="DETAIL_INDEX">4</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="math_change" id="fZr!9v0GJno]2?#^f:],">
                <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
                <value name="DELTA">
                  <shadow type="math_number" id="(]GS)V@8Ctdg3v2E@jlY">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="z/WaQqeZuv/Zm?rK6V,8">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="Z@8CJ%w{vP|HSGrX6_|R">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_single" id="_jH,FeYPHFM7tmj.CVso">
                        <field name="OP">ABS</field>
                        <value name="NUM">
                          <shadow type="math_number" id="]whX,`:RR{}94Il[LH_E">
                            <field name="NUM">9</field>
                          </shadow>
                          <block type="read_details" id="bKxhF?]DA_i*QVe-yb_X">
                            <field name="DETAIL_INDEX">4</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="aJV]c6a38`GC_S]Yryu^">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="sk4Ntk[-cj^OW~=BUtV]">
                        <field name="VAR" id="#1nvvzeHDuOZUBj|Esbr" variabletype="">martingale::multiplier</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="X)8ln$MDH0FqTVSB{OuF">
                    <value name="IF0">
                      <block type="logic_compare" id="4Oc$~[[wtRu=wws9Lmt(">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="math_single" id="`Gjie|Z~7{OVFZ1cRy*=">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id=",N`k%BQ|bfznfjP*JUe+">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="read_details" id="!eXzvhZHl#ED^IYC%f64">
                                <field name="DETAIL_INDEX">4</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="}C8o9bUH`nB$Cx0l0Zo$">
                            <field name="VAR" id="himwqBlrRy(D=UJR|T})" variabletype="">Max Loss Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id=".|dn+LQd#)hRw5m1Q4:@">
                        <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
                        <value name="VALUE">
                          <block type="variables_get" id="5C|=Rc8Zg}mhG?7.}I=5">
                            <field name="VAR" id="e}SvfkW53S$6g7xA3z,C" variabletype="">Win Amount</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="notify" id="+22zCiPYK`7t/0,(j^hu">
            <field name="NOTIFICATION_TYPE">info</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="13ZNjx,;FBn{xq;;T~L4">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="I(n.3v{gwNKj!b4UK-TV">
                    <field name="TEXT">Total Profit: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="total_profit" id="?=%:cTu{h@KWwZoev4|t"></block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="(#7D~2Va0l51${Pu!yW;">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="Qtsk$6Qd[X~o1wD~hfOt">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="total_profit" id="5]xuiqe3-INE?#f@Y=fu"></block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="_9Hf(nmF~1H_+_d`Hazz">
                        <field name="VAR" id="3!04wBS#F}FXXXQ1JaP`" variabletype="">Expected Profit</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="[^X~=j0--A~:d7R9rZ}w">
                    <value name="IF0">
                      <block type="contract_check_result" id="b=[:uhX3@/~}a$2[Xwxs">
                        <field name="CHECK_RESULT">loss</field>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="controls_if" id="~AF%1bVa3b;nkX-V3Q#_">
                        <value name="IF0">
                          <block type="logic_compare" id=":p*F7Z/7,hw4:V$%UKj4">
                            <field name="OP">LTE</field>
                            <value name="A">
                              <block type="variables_get" id="zxXT;a-C*?r(v.R@:u[!">
                                <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="F=jpj6Sa4lXj=_*U6UD-">
                                <field name="VAR" id="OS?qcNi=SM-2)Kh+|HMA" variabletype="">Maximum Loss</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="trade_again" id=")o8,}Q?0FkGk)-%mn3C;"></block>
                        </statement>
                      </block>
                    </statement>
                    <next>
                      <block type="trade_again" id="1P(yqTf0n(m!F{Ri4gxk"></block>
                    </next>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="text_print" id="-)Qjpn/c$W_)gB%MdIir">
                    <value name="TEXT">
                      <shadow type="text" id="]XR@@VL{)*ZI)WlTipd_">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text_join" id="t;s[5Z2J?n5$VabcYdow">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="H$7i.%r.PFeQh_Soc[||">
                            <field name="TEXT">I Earned !!! </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="total_profit" id="cgi0g($gg7bzWm^};+`4"></block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="1}K(;3qX~IrmdaSHXuhS" collapsed="true" x="692" y="-10">
    <mutation>
      <arg name="::candles" varid=";3fx2ROHML-E`PZw{@r/"></arg>
      <arg name="::period" varid="~G3U9$=)G;h_^LS0Q?p("></arg>
    </mutation>
    <field name="NAME">ExMachina::getCCI</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="wU1~H=Lck0U)hMLgS;T0">
        <field name="VAR" id=".Ju1FKtAMhSk%T79MgAz" variabletype="">TP:List</field>
        <value name="VALUE">
          <block type="lists_create_with" id="F#@c`7g/?51MLo3e}]#n">
            <mutation items="0"></mutation>
          </block>
        </value>
        <next>
          <block type="controls_for" id="]2+xYNMQ5(ZM^/1)=|RZ">
            <field name="VAR" id="WA~r[01]=bLKG9N$d/a^" variabletype="">j</field>
            <value name="FROM">
              <block type="math_number" id="A1eFTa{|Yu.=ov@8:Cc$">
                <field name="NUM">1</field>
              </block>
            </value>
            <value name="TO">
              <block type="variables_get" id="R-yKuN/?#2XiQ-dW9Nfi">
                <field name="VAR" id="~G3U9$=)G;h_^LS0Q?p(" variabletype="">::period</field>
              </block>
            </value>
            <value name="BY">
              <block type="math_number" id="=oW8;.pd9Ve#QHcQpYq:">
                <field name="NUM">1</field>
              </block>
            </value>
            <statement name="DO">
              <block type="lists_setIndex" id="7|ycmItYZ3dr:zGg*xBd">
                <mutation at="false"></mutation>
                <field name="MODE">INSERT</field>
                <field name="WHERE">FIRST</field>
                <value name="LIST">
                  <block type="variables_get" id="iwp``6:9${V{@FWLjKr.">
                    <field name="VAR" id=".Ju1FKtAMhSk%T79MgAz" variabletype="">TP:List</field>
                  </block>
                </value>
                <value name="TO">
                  <block type="math_arithmetic" id="v~l0}QCb!W+/2SEd;Hl:" inline="false">
                    <field name="OP">DIVIDE</field>
                    <value name="A">
                      <shadow type="math_number" id="6RtLksZyR:${,d/%s.zH">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_arithmetic" id="b*@+{Sb7f:?W%fq:kcrM" inline="false">
                        <field name="OP">ADD</field>
                        <value name="A">
                          <shadow type="math_number" id="rF^)k9x3EzH47+N2(s3/">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_arithmetic" id="MOY*e5|5gcPJ%?q{Z4%y" inline="false">
                            <field name="OP">ADD</field>
                            <value name="A">
                              <shadow type="math_number" id="~#w05-I)+zw|2`UzU(c3">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="read_ohlc_obj" id="sGw7]pvCYR,uczye:rV8">
                                <field name="OHLCFIELD_LIST">high</field>
                                <value name="OHLCOBJ">
                                  <block type="lists_getIndex" id="^4eK)mP4;(_pR=G^yrP3">
                                    <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="*c?[*gK0@~Q`?@gokrPQ">
                                        <field name="VAR" id=";3fx2ROHML-E`PZw{@r/" variabletype="">::candles</field>
                                      </block>
                                    </value>
                                    <value name="AT">
                                      <block type="variables_get" id="ljC`;3R6`JYywF}*`)@*">
                                        <field name="VAR" id="WA~r[01]=bLKG9N$d/a^" variabletype="">j</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="|9yROBovT46,iGy~56B|">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="read_ohlc_obj" id="Zh0=:B4U[,s.x(0d;vIn">
                                <field name="OHLCFIELD_LIST">low</field>
                                <value name="OHLCOBJ">
                                  <block type="lists_getIndex" id="8W`$}CGk3;?zt#9EMV6(">
                                    <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="}#%;[naO2=TKwiI#V]-c">
                                        <field name="VAR" id=";3fx2ROHML-E`PZw{@r/" variabletype="">::candles</field>
                                      </block>
                                    </value>
                                    <value name="AT">
                                      <block type="variables_get" id="7kdqq#sS,~qcD1LQIO}x">
                                        <field name="VAR" id="WA~r[01]=bLKG9N$d/a^" variabletype="">j</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="El?X6|BOklyTAS09(v%B">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="read_ohlc_obj" id="^M:{]WAvNNF7z`n1QF++">
                            <field name="OHLCFIELD_LIST">close</field>
                            <value name="OHLCOBJ">
                              <block type="lists_getIndex" id="{]unnM$TEb3;+FxLCg|8">
                                <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="`,wTWtkI17cw!y_?,+KH">
                                    <field name="VAR" id=";3fx2ROHML-E`PZw{@r/" variabletype="">::candles</field>
                                  </block>
                                </value>
                                <value name="AT">
                                  <block type="variables_get" id="(26ujMAsnqERKpu*vH,Y">
                                    <field name="VAR" id="WA~r[01]=bLKG9N$d/a^" variabletype="">j</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="T-hL(=90$h:wOMeK3W8N">
                        <field name="NUM">3</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="variables_set" id="WMeM0n?/Ev-@!(9B2}j%">
                <field name="VAR" id="TSb[v.0ODLDk(JV{Qq1r" variabletype="">tp</field>
                <value name="VALUE">
                  <block type="variables_get" id="gEI9J)3SK($RdKe.p]O!">
                    <field name="VAR" id=".Ju1FKtAMhSk%T79MgAz" variabletype="">TP:List</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="ESwO#nLT.Urh6mc.1q@,">
                    <field name="VAR" id="#LS1%xZN;r$VA$Dx[Rh3" variabletype="">sum</field>
                    <value name="VALUE">
                      <block type="math_number" id="@Xj.ZN.Z1*NE23J2yJ,i">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_for" id="yuDAs@y^wPq|5MQ(Htoa">
                        <field name="VAR" id="sopP9]I+2oa)nZOy~(,u" variabletype="">i</field>
                        <value name="FROM">
                          <block type="math_number" id="Vot{i*oO3!]S;IDw[S)8">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                        <value name="TO">
                          <block type="variables_get" id="}45ce8V/v7}Yh3]tvh1*">
                            <field name="VAR" id="~G3U9$=)G;h_^LS0Q?p(" variabletype="">::period</field>
                          </block>
                        </value>
                        <value name="BY">
                          <block type="math_number" id="k**CLP-P29aY{laZ1,HA">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                        <statement name="DO">
                          <block type="variables_set" id="YYGeQ,cg%)$|NwU8F#_C">
                            <field name="VAR" id="#LS1%xZN;r$VA$Dx[Rh3" variabletype="">sum</field>
                            <value name="VALUE">
                              <block type="math_arithmetic" id=";[I]e)[n]g#G9gfvMw)Y">
                                <field name="OP">ADD</field>
                                <value name="A">
                                  <shadow type="math_number" id="]Q!u9uo`3*{qex{GYNN/">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="variables_get" id="A}%3Ku@^4JncrZvaTV,8">
                                    <field name="VAR" id="#LS1%xZN;r$VA$Dx[Rh3" variabletype="">sum</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow type="math_number" id="Gb8vq%P3E38BIa18]{Re">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="math_single" id="d$8=uon[_aur!b(p,|Lo">
                                    <field name="OP">ABS</field>
                                    <value name="NUM">
                                      <shadow type="math_number" id="(ek5`FHj#?/Bo_p[X5~$">
                                        <field name="NUM">9</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="[mX{~.Flc~Lh)6A?H-Wa" inline="false">
                                        <field name="OP">MINUS</field>
                                        <value name="A">
                                          <shadow type="math_number" id="ICreQPI0p-@]`IVJfa1f">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="lists_getIndex" id="IpIX9U;n8Yp[aK|5fs]k">
                                            <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#!~U0^HGCg2Q?G(rQ,r">
                                                <field name="VAR" id="TSb[v.0ODLDk(JV{Qq1r" variabletype="">tp</field>
                                              </block>
                                            </value>
                                            <value name="AT">
                                              <block type="variables_get" id="x2pxp3ip#g1ti9Y8:p#}">
                                                <field name="VAR" id="sopP9]I+2oa)nZOy~(,u" variabletype="">i</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="+]PDxLa^/D4Dm~ie=?M?">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="sma" id="KYMR[LySmnb]=^i!|MgG">
                                            <value name="INPUT">
                                              <block type="ohlc_values_in_list" id="#mSH{}QIbaS)JSYUuGbT">
                                                <field name="OHLCFIELD_LIST">close</field>
                                                <value name="OHLCLIST">
                                                  <block type="variables_get" id="vynEp.nC_u#H6lqKZk,v">
                                                    <field name="VAR" id=";3fx2ROHML-E`PZw{@r/" variabletype="">::candles</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="PERIOD">
                                              <shadow type="math_number" id=":km%iqM$+CB,vr%2-uat">
                                                <field name="NUM">10</field>
                                              </shadow>
                                              <block type="variables_get" id="+(.5*RTLQ9EDu}V|Qx0J">
                                                <field name="VAR" id="~G3U9$=)G;h_^LS0Q?p(" variabletype="">::period</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="O-srK0`js|[n%JfT6!F{" inline="false" collapsed="true">
        <field name="OP">DIVIDE</field>
        <value name="A">
          <shadow type="math_number" id="@:kVapH$QWb?WT+QI1#J">
            <field name="NUM">1</field>
          </shadow>
          <block type="math_arithmetic" id="(]0{*/Lp#@+Y2R_7CVB5">
            <field name="OP">MINUS</field>
            <value name="A">
              <shadow type="math_number" id="gU8(qqdef~9^]BZOZ~,_">
                <field name="NUM">1</field>
              </shadow>
              <block type="lists_getIndex" id="}PPTTUy#ja46,d9tR-$y">
                <mutation statement="false" at="false"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">LAST</field>
                <value name="VALUE">
                  <block type="variables_get" id="g~AwaPUJb;[w).8KqyXr">
                    <field name="VAR" id="TSb[v.0ODLDk(JV{Qq1r" variabletype="">tp</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <shadow type="math_number" id="x-k`:Oo]X?A[Y7s2XL~g">
                <field name="NUM">1</field>
              </shadow>
              <block type="sma" id="PL$2uqR6?ga-1+IAU/2B">
                <value name="INPUT">
                  <block type="variables_get" id="8xygL0XG?0P5*F/gwJpD">
                    <field name="VAR" id="TSb[v.0ODLDk(JV{Qq1r" variabletype="">tp</field>
                  </block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="mk-o`{!S:Vy8*~mOP3Fp">
                    <field name="NUM">10</field>
                  </shadow>
                  <block type="variables_get" id="WIjWY%Q]uP(~z7X7I7kU">
                    <field name="VAR" id="~G3U9$=)G;h_^LS0Q?p(" variabletype="">::period</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="WTai)fK`?tuf5o^2[y7t">
            <field name="NUM">1</field>
          </shadow>
          <block type="math_arithmetic" id="L[n?qDbVGU|LgJ;!rD;L">
            <field name="OP">MULTIPLY</field>
            <value name="A">
              <shadow type="math_number" id="{yS#MXGAxO`1qDe,f3_D">
                <field name="NUM">0.015</field>
              </shadow>
            </value>
            <value name="B">
              <shadow type="math_number" id="bue#E.U4Rgj|uSlRxFZU">
                <field name="NUM">1</field>
              </shadow>
              <block type="math_arithmetic" id="aP}J`qy1{~mJ3Xl`r%zD">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number" id="fTkV8{jE[en_4Yq02x[h">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="g9omhv-nL`-[0DYWA|gb">
                    <field name="VAR" id="#LS1%xZN;r$VA$Dx[Rh3" variabletype="">sum</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="rf:j@yaR?p.7T9(q5Fzn">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="M+#4x]4fGk*tGl3rg8(l">
                    <field name="VAR" id="~G3U9$=)G;h_^LS0Q?p(" variabletype="">::period</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="trade" id="JcU=p;i9Es59a3_YJH(c" x="157" y="44">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_100</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="INITIALIZATION">
      <block type="variables_set" id="l)Xm9}gYGJz/BEyq#~dP">
        <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
        <value name="VALUE">
          <block type="math_number" id="|/5SuS{*4|s0iS@gfS(*">
            <field name="NUM">0.5</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="|HA7ngz,pjQqCW:fm7P1">
            <field name="VAR" id="e}SvfkW53S$6g7xA3z,C" variabletype="">Win Amount</field>
            <value name="VALUE">
              <block type="math_number" id="H.PSq3NeSDdU=n%!wSIO">
                <field name="NUM">0.5</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="+9a1y[f,?IdOnIy-8tG]">
                <field name="VAR" id="3!04wBS#F}FXXXQ1JaP`" variabletype="">Expected Profit</field>
                <value name="VALUE">
                  <block type="math_number" id="{#9HYVVc1)=,dn$z`d[q">
                    <field name="NUM">5</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="kCr7]Zir#qsqLc,_B1bS">
                    <field name="VAR" id="OS?qcNi=SM-2)Kh+|HMA" variabletype="">Maximum Loss</field>
                    <value name="VALUE">
                      <block type="math_number" id=")[cZs5d$E-g^(ST=M*Cd">
                        <field name="NUM">10</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="nT`PjLOoS.!Z4`cz?$kJ">
                        <field name="VAR" id="#1nvvzeHDuOZUBj|Esbr" variabletype="">martingale::multiplier</field>
                        <value name="VALUE">
                          <block type="math_number" id="9ULKNSTjQ^59.T{8?`4~">
                            <field name="NUM">0.8</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id=")`}*{`hG;Nygv}x1hBGp">
        <field name="DURATIONTYPE_LIST">m</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <shadow type="math_number" id="|)gdHa[2^jKf*t|%O%d3">
            <field name="NUM">12</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number" id="]AS@_|}BL7ACweDpPc57">
            <field name="NUM">0.5</field>
          </shadow>
          <block type="variables_get" id="nED8.U{${aw:HbZ*o.b]">
            <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="aatnEspN2)xPtlUz#zQ)" collapsed="true" x="158" y="581">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="variables_set" id="mYyET5%){VV_h98-!jfG">
        <field name="VAR" id="Q@+3t]5^6wg;QKR:9MKb" variabletype="">МА</field>
        <value name="VALUE">
          <block type="sma" id="g~WPAr4URsjm(VvG/?`P" collapsed="true">
            <value name="INPUT">
              <block type="ohlc_values" id="C`~81J6FLvfo*)%Wq^~]">
                <field name="OHLCFIELD_LIST">close</field>
                <field name="CANDLEINTERVAL_LIST">default</field>
              </block>
            </value>
            <value name="PERIOD">
              <shadow type="math_number" id="eML)LVg3@SLYdd|[tb6r">
                <field name="NUM">34</field>
              </shadow>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="s.*PI7P@5|1u[*#V6YG*">
            <field name="VAR" id="KQf-*h^O6}C/lz#alGw_" variabletype="">CCI</field>
            <value name="VALUE">
              <block type="procedures_callreturn" id="Pf9xxw(BQ+r(J]yxx:*F" collapsed="true">
                <mutation name="ExMachina::getCCI">
                  <arg name="::candles"></arg>
                  <arg name="::period"></arg>
                </mutation>
                <value name="ARG0">
                  <block type="lists_getSublist" id="/Ls(huwx=E9tAbW2:q;n">
                    <mutation at1="false" at2="false"></mutation>
                    <field name="WHERE1">FIRST</field>
                    <field name="WHERE2">LAST</field>
                    <value name="LIST">
                      <block type="ohlc" id="(nc_*i:4VN#3AR/XU4Nn">
                        <field name="CANDLEINTERVAL_LIST">default</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="ARG1">
                  <block type="math_number" id=".a}7:CWocVS40bcMUX;?">
                    <field name="NUM">20</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id=")BVyN97^z(lt;mnCIFz$">
                <field name="VAR" id="+zFk#l1k=-igF53=0MC." variabletype="">RSI</field>
                <value name="VALUE">
                  <block type="rsi" id="B#gRSS[Vo,gtJYq*%Vsr" collapsed="true">
                    <value name="INPUT">
                      <block type="ohlc_values" id="H![pjaK;8wJ6F{@W/Gu,">
                        <field name="OHLCFIELD_LIST">close</field>
                        <field name="CANDLEINTERVAL_LIST">default</field>
                      </block>
                    </value>
                    <value name="PERIOD">
                      <shadow type="math_number" id="G77$O(Z?)jxYeWnA`|Wv">
                        <field name="NUM">7</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="]{6p#VBl!q?;H~BoP)nN">
                    <field name="VAR" id="%+z/zydNNz;?-(fvWHXE" variabletype="">BB_upper</field>
                    <value name="VALUE">
                      <block type="bb" id="uU07YZMeKfGqX.m(1DhJ" collapsed="true">
                        <field name="BBRESULT_LIST">1</field>
                        <value name="INPUT">
                          <block type="ohlc_values" id="jISL1O:x*HrKFu:uWFQh">
                            <field name="OHLCFIELD_LIST">close</field>
                            <field name="CANDLEINTERVAL_LIST">default</field>
                          </block>
                        </value>
                        <value name="PERIOD">
                          <shadow type="math_number" id="g2YM[T=hq$cMbmavkSBJ">
                            <field name="NUM">20</field>
                          </shadow>
                        </value>
                        <value name="UPMULTIPLIER">
                          <shadow type="math_number" id="^Fs4ouP4p,eFU{zG_xX6">
                            <field name="NUM">2</field>
                          </shadow>
                        </value>
                        <value name="DOWNMULTIPLIER">
                          <shadow type="math_number" id="376Jca/ef+6!*.:?mOas">
                            <field name="NUM">2</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="Do7(|kPrYn^,0f(`dx4[">
                        <field name="VAR" id="UJ+_j5$Ip?,sI@}=?^a#" variabletype="">BB_lower</field>
                        <value name="VALUE">
                          <block type="bb" id="]zv/j%9:^wKMIVZ#p}D:" collapsed="true">
                            <field name="BBRESULT_LIST">2</field>
                            <value name="INPUT">
                              <block type="ohlc_values" id="?;Mj@As):-,;fU0dZTd8">
                                <field name="OHLCFIELD_LIST">close</field>
                                <field name="CANDLEINTERVAL_LIST">default</field>
                              </block>
                            </value>
                            <value name="PERIOD">
                              <shadow type="math_number" id="vi+KTQbqytLHsHH3He:L">
                                <field name="NUM">20</field>
                              </shadow>
                            </value>
                            <value name="UPMULTIPLIER">
                              <shadow type="math_number" id="8r}zx+:!_x2~a(?EOs??">
                                <field name="NUM">2</field>
                              </shadow>
                            </value>
                            <value name="DOWNMULTIPLIER">
                              <shadow type="math_number" id="PxaWSwCjR3!4,g[x1ph~">
                                <field name="NUM">2</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="?%hDSW8VM:s%!M..k%ED">
                            <field name="VAR" id="LvpzAPP6y{h[3b0967dj" variabletype="">UPtrend</field>
                            <value name="VALUE">
                              <block type="procedures_callreturn" id="Ug_[~uh^YV^_/E*we9*v" collapsed="true">
                                <mutation name="is uptrend">
                                  <arg name="IU:values"></arg>
                                  <arg name="IU:period"></arg>
                                </mutation>
                                <value name="ARG0">
                                  <block type="lists_getSublist" id="n;211c%qF1]1iY^cKa-l">
                                    <mutation at1="true" at2="false"></mutation>
                                    <field name="WHERE1">FROM_START</field>
                                    <field name="WHERE2">LAST</field>
                                    <value name="LIST">
                                      <block type="ohlc_values" id="p=$E=Ul80U~rgEc*Q4UI">
                                        <field name="OHLCFIELD_LIST">close</field>
                                        <field name="CANDLEINTERVAL_LIST">default</field>
                                      </block>
                                    </value>
                                    <value name="AT1">
                                      <block type="math_number" id="K`f:dN6CRR8r=Pr[pZwZ">
                                        <field name="NUM">2</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="ARG1">
                                  <block type="math_number" id="9t9r~f]bCdcfz7a=JZL=">
                                    <field name="NUM">10</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="Fd4%yZy:]OE{$q/;zI:Q">
                                <field name="VAR" id="rhE!kh=7j%ua0vApL^3*" variabletype="">DWtrend</field>
                                <value name="VALUE">
                                  <block type="procedures_callreturn" id="g/7xv!2I0Kve/7`y]Z1*" collapsed="true">
                                    <mutation name="is downtrend">
                                      <arg name="ID:values"></arg>
                                      <arg name="ID:period"></arg>
                                    </mutation>
                                    <value name="ARG0">
                                      <block type="lists_getSublist" id="WPlq+;JM4Nro7!FE|vXN">
                                        <mutation at1="true" at2="false"></mutation>
                                        <field name="WHERE1">FROM_START</field>
                                        <field name="WHERE2">LAST</field>
                                        <value name="LIST">
                                          <block type="ohlc_values" id="*q|c1o;bpa}]3xJ-8]rn">
                                            <field name="OHLCFIELD_LIST">close</field>
                                            <field name="CANDLEINTERVAL_LIST">default</field>
                                          </block>
                                        </value>
                                        <value name="AT1">
                                          <block type="math_number" id="{t2{r^_z#!K7P2=3~J:K">
                                            <field name="NUM">2</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="ARG1">
                                      <block type="math_number" id="JdNmc3g5pfmeNM-rd=62">
                                        <field name="NUM">10</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="controls_if" id="oXd1f2;f33r/F1/2lPdN">
                                    <value name="IF0">
                                      <block type="logic_operation" id="gGv:g5pD`L%]b8y0e+3x">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="variables_get" id="!r3*?2*pv|AQA8Ec9J9`">
                                            <field name="VAR" id="LvpzAPP6y{h[3b0967dj" variabletype="">UPtrend</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_operation" id="~GnV_*,SY#BLJMf(3Y*$">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="/Yd]6!yU4vNxcH+*2xiP">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block type="variables_get" id="z_6zAn?F7tEww4IRS^%!">
                                                    <field name="VAR" id="+zFk#l1k=-igF53=0MC." variabletype="">RSI</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="jvKa.!OxV_SX-BxXrYRa">
                                                    <field name="NUM">70</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="%*,PmN7P4rU)-sseO.8c">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block type="variables_get" id="5Kx6to)/Bd.3r35-W.8o">
                                                    <field name="VAR" id="KQf-*h^O6}C/lz#alGw_" variabletype="">CCI</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="S,H{Jb~GbBQH}(K.j[mi">
                                                    <field name="NUM">100</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="controls_if" id="N$qdLtEO[?}#TDT,ZPR!">
                                        <value name="IF0">
                                          <block type="logic_operation" id="h^,][3r}c%=ra.UDaY1e" collapsed="true">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="ar;M6CKZ0S]|zjK210Bo">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block type="read_ohlc" id="NzR-X3g^HsTDB4UL-`_R">
                                                    <field name="OHLCFIELD_LIST">close</field>
                                                    <field name="CANDLEINTERVAL_LIST">default</field>
                                                    <value name="CANDLEINDEX">
                                                      <shadow type="math_number" id="X3kUhUioJl#9kH,v+}Dy">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="variables_get" id="M_az[0DAY~(R}`Jqg[5+">
                                                    <field name="VAR" id="%+z/zydNNz;?-(fvWHXE" variabletype="">BB_upper</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="mh[b:R^C/*tt56Mty(`a">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block type="read_ohlc" id="KcSmLlQeaH^TyZnn]e$5">
                                                    <field name="OHLCFIELD_LIST">close</field>
                                                    <field name="CANDLEINTERVAL_LIST">default</field>
                                                    <value name="CANDLEINDEX">
                                                      <shadow type="math_number" id="-#;}[i?5x|P+ovz!(9ZW">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="variables_get" id="uutmPp=34!Q[:QY0--yT">
                                                    <field name="VAR" id="Q@+3t]5^6wg;QKR:9MKb" variabletype="">МА</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="notify" id=".U5(^[wckPwNzT=Z19]g">
                                            <field name="NOTIFICATION_TYPE">info</field>
                                            <field name="NOTIFICATION_SOUND">announcement</field>
                                            <value name="MESSAGE">
                                              <shadow type="text" id="dSln11;Pp1ie^*!|Y?4]">
                                                <field name="TEXT">abc</field>
                                              </shadow>
                                              <block type="text" id="a]F{~/``Br)`Up:RA529">
                                                <field name="TEXT">ATTENTION ! Purchase...</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="purchase" id="/RW(@eZe(U@beP*R;6Pk">
                                                <field name="PURCHASE_LIST">CALL</field>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="controls_if" id=")~WGmhMTvxsAPWZTak4{">
                                        <value name="IF0">
                                          <block type="logic_operation" id="5-(PFgWq48YZo%5M*~OI">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="variables_get" id="`1nQ1,M}F.1=vQJ46%l8">
                                                <field name="VAR" id="rhE!kh=7j%ua0vApL^3*" variabletype="">DWtrend</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_operation" id="%8|@|l[fRRQG/0$Pv:0H">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="logic_compare" id=",{IHGJSJ;8zdI:sO(SB}">
                                                    <field name="OP">LT</field>
                                                    <value name="A">
                                                      <block type="variables_get" id="k)%auYp2ux*(gl63@[_i">
                                                        <field name="VAR" id="+zFk#l1k=-igF53=0MC." variabletype="">RSI</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="Li9sAj@?MzwDu3AP(ee,">
                                                        <field name="NUM">30</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_compare" id="I$6JK{38:;T1~Gj%M[n;">
                                                    <field name="OP">LT</field>
                                                    <value name="A">
                                                      <block type="variables_get" id="(i,,?[PROTECTED EMAIL]!V#}">
                                                        <field name="VAR" id="KQf-*h^O6}C/lz#alGw_" variabletype="">CCI</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="%eEn}xkDBQ%63j4lxB?(">
                                                        <field name="NUM">-100</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="controls_if" id="E_3l}NXxh-u/E`XFs5Uo">
                                            <value name="IF0">
                                              <block type="logic_operation" id="515eyiX_YarE0dyLBA?7" collapsed="true">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="logic_compare" id="FFiT7*U$?~{d7!.zs7s]">
                                                    <field name="OP">LT</field>
                                                    <value name="A">
                                                      <block type="read_ohlc" id="s:}rh+Ilk%UA4Eco-:]y">
                                                        <field name="OHLCFIELD_LIST">close</field>
                                                        <field name="CANDLEINTERVAL_LIST">default</field>
                                                        <value name="CANDLEINDEX">
                                                          <shadow type="math_number" id=".H`7WUe7Y?fp}i9;)Vfs">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="variables_get" id="kLmZaAG8]A..7SS0};K]">
                                                        <field name="VAR" id="UJ+_j5$Ip?,sI@}=?^a#" variabletype="">BB_lower</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_compare" id="Z%PnL!oM`+jvkx}.F*[[">
                                                    <field name="OP">LT</field>
                                                    <value name="A">
                                                      <block type="read_ohlc" id="UTD]?}yc]^RNowqxfCxT">
                                                        <field name="OHLCFIELD_LIST">close</field>
                                                        <field name="CANDLEINTERVAL_LIST">default</field>
                                                        <value name="CANDLEINDEX">
                                                          <shadow type="math_number" id="edw4U48`01TapTrkRxdb">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="variables_get" id="(@Hk3Y|Oht{Z9Z?v%eP,">
                                                        <field name="VAR" id="Q@+3t]5^6wg;QKR:9MKb" variabletype="">МА</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="notify" id="h;{jH?l%[el7.D5Xn/$[">
                                                <field name="NOTIFICATION_TYPE">info</field>
                                                <field name="NOTIFICATION_SOUND">announcement</field>
                                                <value name="MESSAGE">
                                                  <shadow type="text" id="dSln11;Pp1ie^*!|Y?4]">
                                                    <field name="TEXT">abc</field>
                                                  </shadow>
                                                  <block type="text" id="=g]X[V`~i]+:.?IAj+#M">
                                                    <field name="TEXT">ATTENTION ! Purchase...</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="purchase" id="s*$V0bM}a7^AhlBUI=]{">
                                                    <field name="PURCHASE_LIST">PUT</field>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="notify" id="Hn/(1otR}2hfU[Tgq=,t">
                                            <field name="NOTIFICATION_TYPE">success</field>
                                            <field name="NOTIFICATION_SOUND">silent</field>
                                            <value name="MESSAGE">
                                              <shadow type="text" id="hm@+x@VvOG+*$eC-[],7">
                                                <field name="TEXT">abc</field>
                                              </shadow>
                                              <block type="text" id="TB_OzPOZ=6~#KXkwj32.">
                                                <field name="TEXT">Waiting for the signal...</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>
