﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable id="ART{oIW8ZT5@kQsfPxsM" type="">ID:values</variable>
    <variable id="!Ax1oN:$G3XO[[:xvi%^" type="">ID:period</variable>
    <variable id=";3fx2ROHML-E`PZw{@r/" type="">::candles</variable>
    <variable id="~G3U9$=)G;h_^LS0Q?p(" type="">::period</variable>
    <variable id="J)/X1+0S;OaD8RGyHkM3" type="">IU:values</variable>
    <variable id="-Ai1Ws,x@)h$(aOp`6Kb" type="">IU:period</variable>
    <variable id="S`JZqR0|9;|Uo||xCm1A" type="">_candles</variable>
    <variable id=".!~Ks#r:UITaDg1jMq(V" type="">_start</variable>
    <variable id="Up]?M[`~qm5x+Hcz8Rf}" type="">dalembert:resultIsWin</variable>
    <variable id="dulxY%${Q00P#+E5W$Pi" type="">dalembert:profit</variable>
    <variable id="W-xvt^Xv)sP7B$YuU9$X" type="">ID:sma</variable>
    <variable id="r[,-EqX$Ic@!!fK3}3Z1" type="">ID:isDown</variable>
    <variable id=".Ju1FKtAMhSk%T79MgAz" type="">TP:List</variable>
    <variable id="ZA/7JoX65ukxp)iyuc-t" type="">IU:sma</variable>
    <variable id="-[,j5)WtUp)Q?)7!Lluu" type="">IU:isUp</variable>
    <variable id="?.V]}]H;PqN|h}8U5,[8" type="">AO:list1</variable>
    <variable id="N8Q7hBOe0+qgs|9h9n:I" type="">EMA</variable>
    <variable id="ID@4#rqb]w1i=^#EN+q6" type="">dalembert:totalProfit</variable>
    <variable id="!GJis%H-qhe[;YXvl}$)" type="">dalembert:tradeAgain</variable>
    <variable id="KBl#(Fl+@e*:lz]LL2u5" type="">ID:prev</variable>
    <variable id="WA~r[01]=bLKG9N$d/a^" type="">j</variable>
    <variable id="U//Rb)hTrLa=,!4A0WzP" type="">IU:prev</variable>
    <variable id="|=y*Q-MTI8S?VlH!h).!" type="">AO:list2</variable>
    <variable id="WC+89WuS}O$dL05Y?vO," type="">CCI</variable>
    <variable id="[}mBt0u=m=S$bpR64:2S" type="">dalembert:expectedProfit</variable>
    <variable id="_G+_j+,yos]3h_yz^;}?" type="">dalembert:size</variable>
    <variable id="ID[Sq(HJ~x_w#Ua7xgq^" type="">dalembert:amount</variable>
    <variable id="LIwJ7Z]p?C;|a}1?LHqs" type="">dalembert:profitUnits</variable>
    <variable id="TSb[v.0ODLDk(JV{Qq1r" type="">tp</variable>
    <variable id="~a3D;*p|@@;kbN(Z(?My" type="">AO:sublist</variable>
    <variable id=".Y9JKM=O6Go%rutRv]Tq" type="">AO</variable>
    <variable id="2I=SxWQ_tf_yYyt1|7y%" type="">dalembert:maximumLoss</variable>
    <variable id="wb%_sBV!L4`t8O)5y}oF" type="">ID:i</variable>
    <variable id="#LS1%xZN;r$VA$Dx[Rh3" type="">sum</variable>
    <variable id="omX.?{g`(nN`+l)ThbNL" type="">IU:i</variable>
    <variable id="sopP9]I+2oa)nZOy~(,u" type="">i</variable>
    <variable id="ea9=h#{H_}7$_lk,;*bo" type="">RSI</variable>
    <variable id="rNg;yEIDQ-!T%rmj5Diz" type="">UPtrend</variable>
    <variable id="KEum(LXgq5m35V:4A.T;" type="">DWtrend</variable>
  </variables>
  <block id="^9gz]OJO6YQN]wJ:R24L" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <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 w="160" h="80" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="v8Baj9tHzg+Tb_Z?^7?C" type="variables_set">
        <field id="W-xvt^Xv)sP7B$YuU9$X" name="VAR" variabletype="">ID:sma</field>
        <value name="VALUE">
          <block id="E]_;?ZQ2DV_|-[L3,n|?" type="emaa">
            <value name="INPUT">
              <block id="#udT2deGdIEq*NSVeO`F" type="lists_getSublist">
                <mutation at2="false" at1="true"></mutation>
                <field name="WHERE1">FROM_END</field>
                <field name="WHERE2">LAST</field>
                <value name="LIST">
                  <block id="Lcizxzsec:W]eVqy/hQ2" type="variables_get">
                    <field id="ART{oIW8ZT5@kQsfPxsM" name="VAR" variabletype="">ID:values</field>
                  </block>
                </value>
                <value name="AT1">
                  <block id="Kp1FeSOx?KX#Sh#0}D[e" type="math_arithmetic">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow id="V4cmRIpD@S]K~#|unBtt" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block id="rDPTttP{~WWSz?jGZ3EC" type="variables_get">
                        <field id="!Ax1oN:$G3XO[[:xvi%^" name="VAR" variabletype="">ID:period</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow id="]BO9pYlPiisZCsLWQ}N?" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block id="+KA7_s=|Jc_Du,,{Bd{," type="math_number">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <value name="PERIOD">
              <block id="y+./,Bz,*KDXLUr~0lQ%" type="variables_get">
                <field id="!Ax1oN:$G3XO[[:xvi%^" name="VAR" variabletype="">ID:period</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block id="]Vg@IBXf7|%m_JkvLy`z" type="variables_set">
            <field id="KBl#(Fl+@e*:lz]LL2u5" name="VAR" variabletype="">ID:prev</field>
            <value name="VALUE">
              <block id="r0~;Q+a_;/(E`YqQ0@P0" type="lists_getIndex">
                <mutation at="false" statement="false"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FIRST</field>
                <value name="VALUE">
                  <block id="oeD~G5fO~k-e=PN~sTV0" type="variables_get">
                    <field id="W-xvt^Xv)sP7B$YuU9$X" name="VAR" variabletype="">ID:sma</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="3P3`~]Wu,b^6i,XGzA+x" type="variables_set">
                <field id="r[,-EqX$Ic@!!fK3}3Z1" name="VAR" variabletype="">ID:isDown</field>
                <value name="VALUE">
                  <block id="L!`mJxK+x4sW,z}G_YI8" type="logic_boolean">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
                <next>
                  <block id="g:UjunDCqB0QU^*b5Hc}" type="controls_forEach">
                    <field id="wb%_sBV!L4`t8O)5y}oF" name="VAR" variabletype="">ID:i</field>
                    <value name="LIST">
                      <block id="7]57*%,lsi+~r7p}])0M" type="lists_getSublist">
                        <mutation at2="false" at1="true"></mutation>
                        <field name="WHERE1">FROM_END</field>
                        <field name="WHERE2">LAST</field>
                        <value name="LIST">
                          <block id="nCg?=*t]%nqCW{V0OS{r" type="variables_get">
                            <field id="W-xvt^Xv)sP7B$YuU9$X" name="VAR" variabletype="">ID:sma</field>
                          </block>
                        </value>
                        <value name="AT1">
                          <block id="Oy1sUEd|ix!{eEGtm#QK" type="math_number">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO">
                      <block id="YpGuhl2]JN{Iji[9ZE,F" type="variables_set">
                        <field id="r[,-EqX$Ic@!!fK3}3Z1" name="VAR" variabletype="">ID:isDown</field>
                        <value name="VALUE">
                          <block id="AS?Ubav=)1B3/-+@qxk}" type="logic_operation">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block id="FZjZc^cKbJ@:S~#.`m;(" type="variables_get">
                                <field id="r[,-EqX$Ic@!!fK3}3Z1" name="VAR" variabletype="">ID:isDown</field>
                              </block>
                            </value>
                            <value name="B">
                              <block id="-Z/7GT5Z|uqc9qh505il" type="logic_compare">
                                <field name="OP">GTE</field>
                                <value name="A">
                                  <block id="7ca@D:WrfX]5+R60t9^0" type="variables_get">
                                    <field id="KBl#(Fl+@e*:lz]LL2u5" name="VAR" variabletype="">ID:prev</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block id="jeeZiOJO,9+v4Ww?@v=." type="variables_get">
                                    <field id="wb%_sBV!L4`t8O)5y}oF" name="VAR" variabletype="">ID:i</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block id="6hc68W:Zs9Dl`6AwTWly" type="variables_get">
        <field id="r[,-EqX$Ic@!!fK3}3Z1" name="VAR" variabletype="">ID:isDown</field>
      </block>
    </value>
  </block>
  <block id="qq2xGirc*Byb/P/HE^]H" type="procedures_defreturn" y="53" x="0" collapsed="true">
    <field name="NAME">D'Alembert Trade Amount</field>
    <comment w="160" h="80" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="n4tz9*`uW5vI{Y(mwC)L" type="controls_if">
        <value name="IF0">
          <block id="3qWA5gevZ|UpE{.gFl4n" type="logic_compare">
            <field name="OP">EQ</field>
            <value name="A">
              <block id="nXPxXCq9p:hf1Xx:`D_{" type="variables_get">
                <field id="[}mBt0u=m=S$bpR64:2S" name="VAR" variabletype="">dalembert:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block id="Tp8pr^]@7PA~eGl`XK?b" type="logic_null"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block id="p8_@*8We560p~d]XEj-I" type="variables_set">
            <field id="[}mBt0u=m=S$bpR64:2S" name="VAR" variabletype="">dalembert:expectedProfit</field>
            <value name="VALUE">
              <block id="%r0#U,KXY;)S1-I},GCs" type="text_prompt_ext">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block id="AlB(yFhIT1/FZu-ZEpqQ" type="text">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block id="qa:)sj8|A!lxwG*|YaO]" type="controls_if">
            <value name="IF0">
              <block id="fo(G)bKdQhx,?aEY[Yl}" type="logic_compare">
                <field name="OP">EQ</field>
                <value name="A">
                  <block id="`Geg[{!:(HTr6q)A];`0" type="variables_get">
                    <field id="2I=SxWQ_tf_yYyt1|7y%" name="VAR" variabletype="">dalembert:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block id="!X8^fykpJtsH#Il8+Wh9" type="logic_null"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block id="t3Gw#E]HVqIM/6J-t-2Y" type="variables_set">
                <field id="2I=SxWQ_tf_yYyt1|7y%" name="VAR" variabletype="">dalembert:maximumLoss</field>
                <value name="VALUE">
                  <block id="K[Cz2)F(1ny#Zw!j7j!V" type="text_prompt_ext">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block id="dfNPxr:VpC%uF[yz%xk[" type="text">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block id="^CEM+~9aQ2uhnXtkL`kv" type="controls_if">
                <value name="IF0">
                  <block id="wL4k~{ia}[/ON_+z47RO" type="logic_compare">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block id="WjGS@!}HI|kFH{rJqavk" type="variables_get">
                        <field id="ID[Sq(HJ~x_w#Ua7xgq^" name="VAR" variabletype="">dalembert:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block id="qTK#~^WMVK;Wyz1LJ/@d" type="logic_null"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="ZxKDnNw2?MsznEZQtR6`" type="variables_set">
                    <field id="ID[Sq(HJ~x_w#Ua7xgq^" name="VAR" variabletype="">dalembert:amount</field>
                    <value name="VALUE">
                      <block id="^4peSz1pJ=`,CaD#@6Jd" type="text_prompt_ext">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block id="=6eX{Eblptb4BBlz7?U[" type="text">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="kC@O!Xl:KO^G_(uzKTzH" type="controls_if">
                    <value name="IF0">
                      <block id="@|K%}q0X`VebpuZQ=EV*" type="logic_compare">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block id="(xdUld=/ZoI`Y#*TZfMw" type="variables_get">
                            <field id="_G+_j+,yos]3h_yz^;}?" name="VAR" variabletype="">dalembert:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block id="CA@kQ}mQ:c8NW0=5Ed[." type="logic_null"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block id="^xOi2|SaRE2S4sk8(u74" type="variables_set">
                        <field id="_G+_j+,yos]3h_yz^;}?" name="VAR" variabletype="">dalembert:size</field>
                        <value name="VALUE">
                          <block id="v]w4MInl_BA/~uV5yCK3" type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block id="h,Nbdz7YuKUY`Gfbpf|m" type="controls_if">
                        <value name="IF0">
                          <block id="sb^6?GtDqE1.gRR,o^6w" type="logic_compare">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block id="Af?3G/kU#Zr*:F:)!TXF" type="variables_get">
                                <field id="LIwJ7Z]p?C;|a}1?LHqs" name="VAR" variabletype="">dalembert:profitUnits</field>
                              </block>
                            </value>
                            <value name="B">
                              <block id="bQQ+#eD?`3tP=4tI@B9S" type="logic_null"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block id="lw``#pLseumYH8FC2--~" type="variables_set">
                            <field id="LIwJ7Z]p?C;|a}1?LHqs" name="VAR" variabletype="">dalembert:profitUnits</field>
                            <value name="VALUE">
                              <block id="pOIB*s(LL2r5s}F#_Fs1" type="math_number">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block id="fwmgCgdRdN{)3S|t|fn7" type="controls_if">
                            <value name="IF0">
                              <block id="pj:P)Py2NsbQ8@=5Y9D=" type="logic_compare">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block id="5A]k/?)Q#Xi4G,Wpd;Pz" type="variables_get">
                                    <field id="ID@4#rqb]w1i=^#EN+q6" name="VAR" variabletype="">dalembert:totalProfit</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block id=";,X}K#n`DxM#4`t;d~Cc" type="logic_null"></block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block id="MmEFyqc*]VjjlJZzlNt[" type="variables_set">
                                <field id="ID@4#rqb]w1i=^#EN+q6" name="VAR" variabletype="">dalembert:totalProfit</field>
                                <value name="VALUE">
                                  <block id="DcgRnz]nVdJyT*eH=v!;" type="math_number">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block id="9oY.1lAF`%[xoFKW!Vak" type="math_arithmetic">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow id="!N5Q!/XB/Zq(Yh8GZNXa" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="Zb1gI0smw}o}MYn(O2z7" type="variables_get">
            <field id="_G+_j+,yos]3h_yz^;}?" name="VAR" variabletype="">dalembert:size</field>
          </block>
        </value>
        <value name="B">
          <shadow id="_MIi~6{+puJoIPRIyX8S" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="dZh,rVm,Z,HL;@*{;ZGS" type="variables_get">
            <field id="ID[Sq(HJ~x_w#Ua7xgq^" name="VAR" variabletype="">dalembert:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block id="yNTO_g~CmG;eLIF(#(Fq" type="procedures_defnoreturn" y="106" x="0" collapsed="true">
    <mutation>
      <arg name="dalembert:resultIsWin" varid="Up]?M[`~qm5x+Hcz8Rf}"></arg>
    </mutation>
    <field name="NAME">D'Alembert Core Functionality</field>
    <comment w="160" h="80" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="du_v/n9L4`|ArT@vt^u(" type="controls_if">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block id="P]*Fp7~p#Lj1S#`(3rAr" type="variables_get">
            <field id="Up]?M[`~qm5x+Hcz8Rf}" name="VAR" variabletype="">dalembert:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block id="!=lcrD.j^lG@TEIG!Wt+" type="variables_set">
            <field id="LIwJ7Z]p?C;|a}1?LHqs" name="VAR" variabletype="">dalembert:profitUnits</field>
            <value name="VALUE">
              <block id="TdC9Atw|9KH;~yI[5d-{" type="math_arithmetic">
                <field name="OP">ADD</field>
                <value name="A">
                  <shadow id="ZI-r}kzT8Y=p.GdTq7lH" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="X7ro_Db;}l{v^YAzQBbu" type="variables_get">
                    <field id="LIwJ7Z]p?C;|a}1?LHqs" name="VAR" variabletype="">dalembert:profitUnits</field>
                  </block>
                </value>
                <value name="B">
                  <shadow id="{Y2dS`Z1{(w6k%yQoR~m" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="^KQ1@hKbpC)EO-!1Vkh(" type="variables_get">
                    <field id="_G+_j+,yos]3h_yz^;}?" name="VAR" variabletype="">dalembert:size</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="T+LMuBa?y@W4es3Z}sjZ" type="controls_if">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block id="~dgK]Iz*%C46;r+~8#}!" type="logic_compare">
                    <field name="OP">GT</field>
                    <value name="A">
                      <block id="W2eGOw^LKa45XEtku6}W" type="variables_get">
                        <field id="_G+_j+,yos]3h_yz^;}?" name="VAR" variabletype="">dalembert:size</field>
                      </block>
                    </value>
                    <value name="B">
                      <block id="#s1ADC9}k|_{6N3I*+|Y" type="math_number">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="LUJS=P2(!/IWCRY:IsTl" type="variables_set">
                    <field id="_G+_j+,yos]3h_yz^;}?" name="VAR" variabletype="">dalembert:size</field>
                    <value name="VALUE">
                      <block id="7#hL./MNVEX(Gb#D`~EC" type="math_arithmetic">
                        <field name="OP">MINUS</field>
                        <value name="A">
                          <shadow id="yo:WX(YXv,7m)@[dD*T6" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="%:^P@RJGx^xUN2aftCd@" type="variables_get">
                            <field id="_G+_j+,yos]3h_yz^;}?" name="VAR" variabletype="">dalembert:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow id="xWP@Cne~D[-/%I4}kMHm" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block id="}HweP{]-KGldbObsN5ja" type="variables_set">
                    <field id="LIwJ7Z]p?C;|a}1?LHqs" name="VAR" variabletype="">dalembert:profitUnits</field>
                    <value name="VALUE">
                      <block id="F_|2V`E6ObE80k~?NztP" type="math_number">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block id="#sbO?-oLMKqQZk(C3=v?" type="notify">
                        <field name="NOTIFICATION_TYPE">success</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block id="N0Ms_cA_dls{(fg4o]rE" type="text">
                            <field name="TEXT">One DAlembert session finished successfully.</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block id="/-d0;K+{pd79q%;p^o6!" type="variables_set">
            <field id="LIwJ7Z]p?C;|a}1?LHqs" name="VAR" variabletype="">dalembert:profitUnits</field>
            <value name="VALUE">
              <block id="^1(jnI}%J5*f^qdE~e%!" type="math_arithmetic">
                <field name="OP">MINUS</field>
                <value name="A">
                  <shadow id="ZI-r}kzT8Y=p.GdTq7lH" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="uI[tG5Ijf_[ihid2hC0t" type="variables_get">
                    <field id="LIwJ7Z]p?C;|a}1?LHqs" name="VAR" variabletype="">dalembert:profitUnits</field>
                  </block>
                </value>
                <value name="B">
                  <shadow id="{Y2dS`Z1{(w6k%yQoR~m" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id=":yC#6A!Y3xuMNiwm-fdB" type="variables_get">
                    <field id="_G+_j+,yos]3h_yz^;}?" name="VAR" variabletype="">dalembert:size</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="?QPU}PR2doaiC^[4f2(d" type="variables_set">
                <field id="_G+_j+,yos]3h_yz^;}?" name="VAR" variabletype="">dalembert:size</field>
                <value name="VALUE">
                  <block id="{p%YL?+Yk3!+=*tM_dR/" type="math_arithmetic">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow id="yo:WX(YXv,7m)@[dD*T6" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block id="cp=ul.-FT,41`IF2Gzix" type="variables_get">
                        <field id="_G+_j+,yos]3h_yz^;}?" name="VAR" variabletype="">dalembert:size</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow id="X@amaJRGiwc^;5j.8f4T" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block id="_b//g0Q,2OW8MbY^`J3E" type="procedures_defreturn" y="159" x="0" collapsed="true">
    <mutation>
      <arg name="dalembert:profit" varid="dulxY%${Q00P#+E5W$Pi"></arg>
      <arg name="dalembert:resultIsWin" varid="Up]?M[`~qm5x+Hcz8Rf}"></arg>
    </mutation>
    <field name="NAME">D'Alembert Trade Again After Purchase</field>
    <comment w="160" h="80" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="5ph^#sJ_|cnLn{}e(%Z{" type="math_change">
        <field id="ID@4#rqb]w1i=^#EN+q6" name="VAR" variabletype="">dalembert:totalProfit</field>
        <value name="DELTA">
          <shadow id="[)Nh?MH}TXeN]0n(Q?PP" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="Kj+o2HPe^1#-J*pl.VD9" type="variables_get">
            <field id="dulxY%${Q00P#+E5W$Pi" name="VAR" variabletype="">dalembert:profit</field>
          </block>
        </value>
        <next>
          <block id="=``}2YqGE51x5XO#O{A6" type="variables_set">
            <field id="ID@4#rqb]w1i=^#EN+q6" name="VAR" variabletype="">dalembert:totalProfit</field>
            <value name="VALUE">
              <block id="m9HUE{JvBzON.?`k.p0L" type="math_arithmetic">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow id="Y445k*N9Y{3k^0nU:f/a" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="eOhznKTK*Yn[R~s!l7p;" type="math_round">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow id="NxI4W6P)%aS~YX^5:fm(" type="math_number">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block id="a52-x:2(jo3fN-]co/k]" type="math_arithmetic">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow id="1IiDMd{pA4I8#Jv5:v)F" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="djyZC:DVv!8AFfC.FoYS" type="variables_get">
                            <field id="ID@4#rqb]w1i=^#EN+q6" name="VAR" variabletype="">dalembert:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow id="QPp6Ex`FL}B)uWsSrQ*o" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="qdaI}RV~2ic%D1==.15s" type="math_number">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow id=";(PBMt(9fPe84P0`MRRO" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id=";)+n7kB.._k3n:rt!GvJ" type="math_number">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="P/L5q|aftSE^KsctnA}E" type="controls_if">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block id="IE(_]mU,GAeY}*bDjQY@" type="variables_get">
                    <field id="Up]?M[`~qm5x+Hcz8Rf}" name="VAR" variabletype="">dalembert:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="Y+/B?@*,K~?KRM!)/fmK" type="notify">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="4{*#BHVCa/!8W=WM7Kz8" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="I-e_UTV7xCYiDFI})Q=(" type="text">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="k4nklyFK@UB@/FR9Lp|s" type="variables_get">
                            <field id="dulxY%${Q00P#+E5W$Pi" name="VAR" variabletype="">dalembert:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block id=",llDyR^DXy%PU^4]}f./" type="notify">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="/HOAuftQSV1A*1Bigv8-" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="gF}3UoFAC]sxWV/nw%ei" type="text">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="1SW+cz/lMmWY)ms^lqaZ" type="math_single">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow id="GleSn`9j7Cm7/dqg}FIA" type="math_number">
                                <field name="NUM">9</field>
                              </shadow>
                              <block id="`]%tyAnT!{u4,M%!D1bd" type="variables_get">
                                <field id="dulxY%${Q00P#+E5W$Pi" name="VAR" variabletype="">dalembert:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="sDq[vcSX3kB!@W09lkSI" type="procedures_callnoreturn">
                    <mutation name="D'Alembert Core Functionality">
                      <arg name="dalembert:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block id=",gx.@YSp(M2f-koK!twT" type="variables_get">
                        <field id="Up]?M[`~qm5x+Hcz8Rf}" name="VAR" variabletype="">dalembert:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block id="Cvi8%t{p9/_xm#+X]om(" type="notify">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block id="BJCQ#/4O0}z[^DR9GgkO" type="text_join">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block id="ijsv9!fxO*BB:8yHR`f|" type="text">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block id="Kc?RVUrXujr{1X[%y1sW" type="variables_get">
                                <field id="ID@4#rqb]w1i=^#EN+q6" name="VAR" variabletype="">dalembert:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block id="ix3Jwr;,l7NS%LeIjciS" type="variables_set">
                            <field id="!GJis%H-qhe[;YXvl}$)" name="VAR" variabletype="">dalembert:tradeAgain</field>
                            <value name="VALUE">
                              <block id="Z;.teZof4syfkPW!mqo," type="logic_boolean">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block id="]Kv}Tw=x^zr6@I@D@S4q" type="controls_if">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block id=")|LQhZk*#Wi64TgP!Xa^" type="logic_compare">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block id="JIN._QaycDvYwCfcJGCM" type="variables_get">
                                        <field id="ID@4#rqb]w1i=^#EN+q6" name="VAR" variabletype="">dalembert:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block id="ca~g-NW_y(msxA`ID6uw" type="variables_get">
                                        <field id="[}mBt0u=m=S$bpR64:2S" name="VAR" variabletype="">dalembert:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block id="fVNi_Cv-~iB/uc)2U.3u" type="controls_if">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block id="+`bh%N2o{Y5P*([/ypeU" type="logic_compare">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block id="J~+vmLG#*!wX@7rgH_a9" type="variables_get">
                                            <field id="ID@4#rqb]w1i=^#EN+q6" name="VAR" variabletype="">dalembert:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block id="ETDn1dh]F.b#8{zcD@+|" type="math_single">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow id="#4N:bIe?FzTA#rOZjMqo" type="math_number">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block id="OovN9^AB=zF:sTh-=oGq" type="variables_get">
                                                <field id="2I=SxWQ_tf_yYyt1|7y%" name="VAR" variabletype="">dalembert:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block id="y%eZ%16)YFB?;J!WT-/1" type="variables_set">
                                        <field id="!GJis%H-qhe[;YXvl}$)" name="VAR" variabletype="">dalembert:tradeAgain</field>
                                        <value name="VALUE">
                                          <block id="qt?z|=[ordjkFsa{CxlK" type="logic_boolean">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block id="(!.##DU]KjPhy^tQC6YF" type="text_print">
                                        <value name="TEXT">
                                          <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block id="oX?Ia)5gqDMl[H*da_9g" type="text_join">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block id="ox|AU:{^KZm`Bk=piPeZ" type="text">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block id="bc,1cQ})F_fQN*9Fird^" type="math_single">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow id="pi;;Fh3#fMUD2s`W_UJZ" type="math_number">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block id="=b`joCv5,]G3N=_{)2ND" type="variables_get">
                                                    <field id="ID@4#rqb]w1i=^#EN+q6" name="VAR" variabletype="">dalembert:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block id="RqQw_^5^@PdBOSiPMkW7" type="text_print">
                                    <value name="TEXT">
                                      <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block id="uNhAtc%n?rJat;igy.i;" type="text_join">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block id="+Fd!Q%aw=bq2)~qEmqt=" type="text">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block id="CxB@:}TG^Od;=yysk/#C" type="variables_get">
                                            <field id="ID@4#rqb]w1i=^#EN+q6" name="VAR" variabletype="">dalembert:totalProfit</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block id="zEXck3l4zHs1m9JF0^g." type="variables_get">
        <field id="!GJis%H-qhe[;YXvl}$)" name="VAR" variabletype="">dalembert:tradeAgain</field>
      </block>
    </value>
  </block>
  <block id="1}K(;3qX~IrmdaSHXuhS" type="procedures_defreturn" y="212" x="0" collapsed="true">
    <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 w="160" h="80" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="wU1~H=Lck0U)hMLgS;T0" type="variables_set">
        <field id=".Ju1FKtAMhSk%T79MgAz" name="VAR" variabletype="">TP:List</field>
        <value name="VALUE">
          <block id="F#@c`7g/?51MLo3e}]#n" type="lists_create_with">
            <mutation items="0"></mutation>
          </block>
        </value>
        <next>
          <block id="]2+xYNMQ5(ZM^/1)=|RZ" type="controls_for">
            <field id="WA~r[01]=bLKG9N$d/a^" name="VAR" variabletype="">j</field>
            <value name="FROM">
              <block id="A1eFTa{|Yu.=ov@8:Cc$" type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
            <value name="TO">
              <block id="R-yKuN/?#2XiQ-dW9Nfi" type="variables_get">
                <field id="~G3U9$=)G;h_^LS0Q?p(" name="VAR" variabletype="">::period</field>
              </block>
            </value>
            <value name="BY">
              <block id="=oW8;.pd9Ve#QHcQpYq:" type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
            <statement name="DO">
              <block id="7|ycmItYZ3dr:zGg*xBd" type="lists_setIndex">
                <mutation at="false"></mutation>
                <field name="MODE">INSERT</field>
                <field name="WHERE">FIRST</field>
                <value name="LIST">
                  <block id="iwp``6:9${V{@FWLjKr." type="variables_get">
                    <field id=".Ju1FKtAMhSk%T79MgAz" name="VAR" variabletype="">TP:List</field>
                  </block>
                </value>
                <value name="TO">
                  <block id="v~l0}QCb!W+/2SEd;Hl:" type="math_arithmetic" inline="false">
                    <field name="OP">DIVIDE</field>
                    <value name="A">
                      <shadow id="6RtLksZyR:${,d/%s.zH" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block id="b*@+{Sb7f:?W%fq:kcrM" type="math_arithmetic" inline="false">
                        <field name="OP">ADD</field>
                        <value name="A">
                          <shadow id="rF^)k9x3EzH47+N2(s3/" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="MOY*e5|5gcPJ%?q{Z4%y" type="math_arithmetic" inline="false">
                            <field name="OP">ADD</field>
                            <value name="A">
                              <shadow id="~#w05-I)+zw|2`UzU(c3" type="math_number">
                                <field name="NUM">1</field>
                              </shadow>
                              <block id="sGw7]pvCYR,uczye:rV8" type="read_ohlc_obj">
                                <field name="OHLCFIELD_LIST">high</field>
                                <value name="OHLCOBJ">
                                  <block id="^4eK)mP4;(_pR=G^yrP3" type="lists_getIndex">
                                    <mutation at="true" statement="false"></mutation>
                                    <field name="MODE">GET</field>
                                    <field name="WHERE">FROM_END</field>
                                    <value name="VALUE">
                                      <block id="*c?[*gK0@~Q`?@gokrPQ" type="variables_get">
                                        <field id=";3fx2ROHML-E`PZw{@r/" name="VAR" variabletype="">::candles</field>
                                      </block>
                                    </value>
                                    <value name="AT">
                                      <block id="ljC`;3R6`JYywF}*`)@*" type="variables_get">
                                        <field id="WA~r[01]=bLKG9N$d/a^" name="VAR" variabletype="">j</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <shadow id="|9yROBovT46,iGy~56B|" type="math_number">
                                <field name="NUM">1</field>
                              </shadow>
                              <block id="Zh0=:B4U[,s.x(0d;vIn" type="read_ohlc_obj">
                                <field name="OHLCFIELD_LIST">low</field>
                                <value name="OHLCOBJ">
                                  <block id="8W`$}CGk3;?zt#9EMV6(" type="lists_getIndex">
                                    <mutation at="true" statement="false"></mutation>
                                    <field name="MODE">GET</field>
                                    <field name="WHERE">FROM_END</field>
                                    <value name="VALUE">
                                      <block id="}#%;[naO2=TKwiI#V]-c" type="variables_get">
                                        <field id=";3fx2ROHML-E`PZw{@r/" name="VAR" variabletype="">::candles</field>
                                      </block>
                                    </value>
                                    <value name="AT">
                                      <block id="7kdqq#sS,~qcD1LQIO}x" type="variables_get">
                                        <field id="WA~r[01]=bLKG9N$d/a^" name="VAR" variabletype="">j</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <shadow id="El?X6|BOklyTAS09(v%B" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="^M:{]WAvNNF7z`n1QF++" type="read_ohlc_obj">
                            <field name="OHLCFIELD_LIST">close</field>
                            <value name="OHLCOBJ">
                              <block id="{]unnM$TEb3;+FxLCg|8" type="lists_getIndex">
                                <mutation at="true" statement="false"></mutation>
                                <field name="MODE">GET</field>
                                <field name="WHERE">FROM_END</field>
                                <value name="VALUE">
                                  <block id="`,wTWtkI17cw!y_?,+KH" type="variables_get">
                                    <field id=";3fx2ROHML-E`PZw{@r/" name="VAR" variabletype="">::candles</field>
                                  </block>
                                </value>
                                <value name="AT">
                                  <block id="(26ujMAsnqERKpu*vH,Y" type="variables_get">
                                    <field id="WA~r[01]=bLKG9N$d/a^" name="VAR" variabletype="">j</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow id="T-hL(=90$h:wOMeK3W8N" type="math_number">
                        <field name="NUM">3</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block id="WMeM0n?/Ev-@!(9B2}j%" type="variables_set">
                <field id="TSb[v.0ODLDk(JV{Qq1r" name="VAR" variabletype="">tp</field>
                <value name="VALUE">
                  <block id="gEI9J)3SK($RdKe.p]O!" type="variables_get">
                    <field id=".Ju1FKtAMhSk%T79MgAz" name="VAR" variabletype="">TP:List</field>
                  </block>
                </value>
                <next>
                  <block id="ESwO#nLT.Urh6mc.1q@," type="variables_set">
                    <field id="#LS1%xZN;r$VA$Dx[Rh3" name="VAR" variabletype="">sum</field>
                    <value name="VALUE">
                      <block id="@Xj.ZN.Z1*NE23J2yJ,i" type="math_number">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block id="yuDAs@y^wPq|5MQ(Htoa" type="controls_for">
                        <field id="sopP9]I+2oa)nZOy~(,u" name="VAR" variabletype="">i</field>
                        <value name="FROM">
                          <block id="Vot{i*oO3!]S;IDw[S)8" type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                        <value name="TO">
                          <block id="}45ce8V/v7}Yh3]tvh1*" type="variables_get">
                            <field id="~G3U9$=)G;h_^LS0Q?p(" name="VAR" variabletype="">::period</field>
                          </block>
                        </value>
                        <value name="BY">
                          <block id="k**CLP-P29aY{laZ1,HA" type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                        <statement name="DO">
                          <block id="YYGeQ,cg%)$|NwU8F#_C" type="variables_set">
                            <field id="#LS1%xZN;r$VA$Dx[Rh3" name="VAR" variabletype="">sum</field>
                            <value name="VALUE">
                              <block id=";[I]e)[n]g#G9gfvMw)Y" type="math_arithmetic">
                                <field name="OP">ADD</field>
                                <value name="A">
                                  <shadow id="]Q!u9uo`3*{qex{GYNN/" type="math_number">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block id="A}%3Ku@^4JncrZvaTV,8" type="variables_get">
                                    <field id="#LS1%xZN;r$VA$Dx[Rh3" name="VAR" variabletype="">sum</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow id="Gb8vq%P3E38BIa18]{Re" type="math_number">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block id="d$8=uon[_aur!b(p,|Lo" type="math_single">
                                    <field name="OP">ABS</field>
                                    <value name="NUM">
                                      <shadow id="(ek5`FHj#?/Bo_p[X5~$" type="math_number">
                                        <field name="NUM">9</field>
                                      </shadow>
                                      <block id="[mX{~.Flc~Lh)6A?H-Wa" type="math_arithmetic" inline="false">
                                        <field name="OP">MINUS</field>
                                        <value name="A">
                                          <shadow id="ICreQPI0p-@]`IVJfa1f" type="math_number">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block id="IpIX9U;n8Yp[aK|5fs]k" type="lists_getIndex">
                                            <mutation at="true" statement="false"></mutation>
                                            <field name="MODE">GET</field>
                                            <field name="WHERE">FROM_END</field>
                                            <value name="VALUE">
                                              <block id="D#!~U0^HGCg2Q?G(rQ,r" type="variables_get">
                                                <field id="TSb[v.0ODLDk(JV{Qq1r" name="VAR" variabletype="">tp</field>
                                              </block>
                                            </value>
                                            <value name="AT">
                                              <block id="x2pxp3ip#g1ti9Y8:p#}" type="variables_get">
                                                <field id="sopP9]I+2oa)nZOy~(,u" name="VAR" variabletype="">i</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow id="+]PDxLa^/D4Dm~ie=?M?" type="math_number">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block id="KYMR[LySmnb]=^i!|MgG" type="sma">
                                            <value name="INPUT">
                                              <block id="#mSH{}QIbaS)JSYUuGbT" type="ohlc_values_in_list">
                                                <field name="OHLCFIELD_LIST">close</field>
                                                <value name="OHLCLIST">
                                                  <block id="vynEp.nC_u#H6lqKZk,v" type="variables_get">
                                                    <field id=";3fx2ROHML-E`PZw{@r/" name="VAR" variabletype="">::candles</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="PERIOD">
                                              <shadow id=":km%iqM$+CB,vr%2-uat" type="math_number">
                                                <field name="NUM">10</field>
                                              </shadow>
                                              <block id="+(.5*RTLQ9EDu}V|Qx0J" type="variables_get">
                                                <field id="~G3U9$=)G;h_^LS0Q?p(" name="VAR" 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 id="O-srK0`js|[n%JfT6!F{" type="math_arithmetic" inline="false">
        <field name="OP">DIVIDE</field>
        <value name="A">
          <shadow id="@:kVapH$QWb?WT+QI1#J" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="(]0{*/Lp#@+Y2R_7CVB5" type="math_arithmetic">
            <field name="OP">MINUS</field>
            <value name="A">
              <shadow id="gU8(qqdef~9^]BZOZ~,_" type="math_number">
                <field name="NUM">1</field>
              </shadow>
              <block id="}PPTTUy#ja46,d9tR-$y" type="lists_getIndex">
                <mutation at="false" statement="false"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">LAST</field>
                <value name="VALUE">
                  <block id="g~AwaPUJb;[w).8KqyXr" type="variables_get">
                    <field id="TSb[v.0ODLDk(JV{Qq1r" name="VAR" variabletype="">tp</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <shadow id="x-k`:Oo]X?A[Y7s2XL~g" type="math_number">
                <field name="NUM">1</field>
              </shadow>
              <block id="PL$2uqR6?ga-1+IAU/2B" type="sma">
                <value name="INPUT">
                  <block id="8xygL0XG?0P5*F/gwJpD" type="variables_get">
                    <field id="TSb[v.0ODLDk(JV{Qq1r" name="VAR" variabletype="">tp</field>
                  </block>
                </value>
                <value name="PERIOD">
                  <shadow id="mk-o`{!S:Vy8*~mOP3Fp" type="math_number">
                    <field name="NUM">10</field>
                  </shadow>
                  <block id="WIjWY%Q]uP(~z7X7I7kU" type="variables_get">
                    <field id="~G3U9$=)G;h_^LS0Q?p(" name="VAR" variabletype="">::period</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <shadow id="WTai)fK`?tuf5o^2[y7t" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="L[n?qDbVGU|LgJ;!rD;L" type="math_arithmetic">
            <field name="OP">MULTIPLY</field>
            <value name="A">
              <shadow id="{yS#MXGAxO`1qDe,f3_D" type="math_number">
                <field name="NUM">0.015</field>
              </shadow>
            </value>
            <value name="B">
              <shadow id="bue#E.U4Rgj|uSlRxFZU" type="math_number">
                <field name="NUM">1</field>
              </shadow>
              <block id="aP}J`qy1{~mJ3Xl`r%zD" type="math_arithmetic">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow id="fTkV8{jE[en_4Yq02x[h" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="g9omhv-nL`-[0DYWA|gb" type="variables_get">
                    <field id="#LS1%xZN;r$VA$Dx[Rh3" name="VAR" variabletype="">sum</field>
                  </block>
                </value>
                <value name="B">
                  <shadow id="rf:j@yaR?p.7T9(q5Fzn" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="M+#4x]4fGk*tGl3rg8(l" type="variables_get">
                    <field id="~G3U9$=)G;h_^LS0Q?p(" name="VAR" variabletype="">::period</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block id="^BtPrVqmTJNfy~9H7!h8" type="procedures_defreturn" y="265" x="0" collapsed="true">
    <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 w="160" h="80" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="oFBB7QmQNLjoR)t6W!2C" type="variables_set">
        <field id="ZA/7JoX65ukxp)iyuc-t" name="VAR" variabletype="">IU:sma</field>
        <value name="VALUE">
          <block id="Fj0!*RD(G,%]}o!L3G*w" type="emaa">
            <value name="INPUT">
              <block id="*ybSjprIC7@E3{u=cTOM" type="lists_getSublist">
                <mutation at2="false" at1="true"></mutation>
                <field name="WHERE1">FROM_END</field>
                <field name="WHERE2">LAST</field>
                <value name="LIST">
                  <block id="D3nDL-N084LOYR;6x;g7" type="variables_get">
                    <field id="J)/X1+0S;OaD8RGyHkM3" name="VAR" variabletype="">IU:values</field>
                  </block>
                </value>
                <value name="AT1">
                  <block id="g%){+@+drna~~WjDHuwK" type="math_arithmetic">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow id="V4cmRIpD@S]K~#|unBtt" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block id="zMK#Kv5n@MTwif[[]ry," type="variables_get">
                        <field id="-Ai1Ws,x@)h$(aOp`6Kb" name="VAR" variabletype="">IU:period</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow id="]BO9pYlPiisZCsLWQ}N?" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block id="(OrjD.Jy1-5Wp{[1wdYK" type="math_number">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <value name="PERIOD">
              <block id="f(Vd)7V_x0(UQ_mGnXV@" type="variables_get">
                <field id="-Ai1Ws,x@)h$(aOp`6Kb" name="VAR" variabletype="">IU:period</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block id="DeEXlP=J_n#0vuW1G%pG" type="variables_set">
            <field id="U//Rb)hTrLa=,!4A0WzP" name="VAR" variabletype="">IU:prev</field>
            <value name="VALUE">
              <block id="{CwG=-yF@mFq5,;W!9yb" type="lists_getIndex">
                <mutation at="false" statement="false"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FIRST</field>
                <value name="VALUE">
                  <block id="A}i@63~xLE5[z80%TPBC" type="variables_get">
                    <field id="ZA/7JoX65ukxp)iyuc-t" name="VAR" variabletype="">IU:sma</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="ya{SB(jt)[nQylUz?g,i" type="variables_set">
                <field id="-[,j5)WtUp)Q?)7!Lluu" name="VAR" variabletype="">IU:isUp</field>
                <value name="VALUE">
                  <block id="oz,Osq,;N?pU*jC6nlC." type="logic_boolean">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
                <next>
                  <block id="@[yEmYG!/[|^]+D^YerX" type="controls_forEach">
                    <field id="omX.?{g`(nN`+l)ThbNL" name="VAR" variabletype="">IU:i</field>
                    <value name="LIST">
                      <block id="-gOGm1XUH7iPu0j*s-r0" type="lists_getSublist">
                        <mutation at2="false" at1="true"></mutation>
                        <field name="WHERE1">FROM_END</field>
                        <field name="WHERE2">LAST</field>
                        <value name="LIST">
                          <block id="*gJ4sZLz]x7oTTb+j`G+" type="variables_get">
                            <field id="ZA/7JoX65ukxp)iyuc-t" name="VAR" variabletype="">IU:sma</field>
                          </block>
                        </value>
                        <value name="AT1">
                          <block id="~m.#FFdue~hkd4unG!}z" type="math_number">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO">
                      <block id="AI-=DajG}?M7U8qiYnP!" type="variables_set">
                        <field id="-[,j5)WtUp)Q?)7!Lluu" name="VAR" variabletype="">IU:isUp</field>
                        <value name="VALUE">
                          <block id="^hGB_rincn}d19e-5OZs" type="logic_operation">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block id="MFY`^,IRwXwv)`_9nzQz" type="variables_get">
                                <field id="-[,j5)WtUp)Q?)7!Lluu" name="VAR" variabletype="">IU:isUp</field>
                              </block>
                            </value>
                            <value name="B">
                              <block id="k!SE1wW=)7,O;,Ru8|]|" type="logic_compare">
                                <field name="OP">LTE</field>
                                <value name="A">
                                  <block id="pEjpLJ()6]26Z!`XjgnR" type="variables_get">
                                    <field id="U//Rb)hTrLa=,!4A0WzP" name="VAR" variabletype="">IU:prev</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block id="3D`e3yhPS~]V;QG-Oq)5" type="variables_get">
                                    <field id="omX.?{g`(nN`+l)ThbNL" name="VAR" variabletype="">IU:i</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block id="6FXu5;#,W=ZX:p0UqF2k" type="variables_get">
        <field id="-[,j5)WtUp)Q?)7!Lluu" name="VAR" variabletype="">IU:isUp</field>
      </block>
    </value>
  </block>
  <block id="2Me+N~rr^Wf%fL*x;0Fe" type="procedures_defreturn" y="318" x="0" collapsed="true">
    <mutation>
      <arg name="_candles" varid="S`JZqR0|9;|Uo||xCm1A"></arg>
      <arg name="_start" varid=".!~Ks#r:UITaDg1jMq(V"></arg>
    </mutation>
    <field name="NAME">ExMachina::GetAwesomeOscilator</field>
    <comment w="160" h="80" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="v,21?%b/b*CehPWgZLMo" type="variables_set">
        <field id="?.V]}]H;PqN|h}8U5,[8" name="VAR" variabletype="">AO:list1</field>
        <value name="VALUE">
          <block id="a@/{53gJ2N!%|Rk%sSOp" type="lists_create_with">
            <mutation items="0"></mutation>
          </block>
        </value>
        <next>
          <block id=":X{j!|L.ji5,5(+-5K]x" type="variables_set">
            <field id="|=y*Q-MTI8S?VlH!h).!" name="VAR" variabletype="">AO:list2</field>
            <value name="VALUE">
              <block id="ASA*=M6vg/?zC0{Rt%Uk" type="lists_create_with">
                <mutation items="0"></mutation>
              </block>
            </value>
            <next>
              <block id="3ONVvsp8Ppj(Fa/XM]{h" type="variables_set">
                <field id="~a3D;*p|@@;kbN(Z(?My" name="VAR" variabletype="">AO:sublist</field>
                <value name="VALUE">
                  <block id="`m@84AZ+ZSRy+:pXxEJ^" type="lists_getSublist">
                    <mutation at2="true" at1="true"></mutation>
                    <field name="WHERE1">FROM_END</field>
                    <field name="WHERE2">FROM_END</field>
                    <value name="LIST">
                      <block id="|j6-e0VR[gd,g//zI5j]" type="variables_get">
                        <field id="S`JZqR0|9;|Uo||xCm1A" name="VAR" variabletype="">_candles</field>
                      </block>
                    </value>
                    <value name="AT1">
                      <block id="08HBh3n/hqN4;M,fA=Vj" type="math_arithmetic">
                        <field name="OP">ADD</field>
                        <value name="A">
                          <shadow id="PN?{`}PC({?y1I`6~sN(" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="O,d8j`_ylf`+%VSP`=OI" type="math_number">
                            <field name="NUM">34</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow id="3k)hu_gx~!+bZICE[._8" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="rRHYh-z-:PFA+oL:i=tN" type="variables_get">
                            <field id=".!~Ks#r:UITaDg1jMq(V" name="VAR" variabletype="">_start</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="AT2">
                      <block id="]WjS^~{.WvNAjWS$leKi" type="variables_get">
                        <field id=".!~Ks#r:UITaDg1jMq(V" name="VAR" variabletype="">_start</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block id="Zzc,cUFaFXQ?mgmn(e!|" type="controls_for">
                    <field id="sopP9]I+2oa)nZOy~(,u" name="VAR" variabletype="">i</field>
                    <value name="FROM">
                      <block id="+|%kdD]a?mm;elsm47z+" type="math_number">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                    <value name="TO">
                      <block id="A[$l*2v4]0$]IyW`iMl=" type="math_number">
                        <field name="NUM">34</field>
                      </block>
                    </value>
                    <value name="BY">
                      <block id="wh%4gr]%OVU6E:w)`?I!" type="math_number">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                    <statement name="DO">
                      <block id="!pittkMJ(hbaZKk5DkYO" type="controls_if">
                        <value name="IF0">
                          <block id="arR2WA?jtFSh@FW:HvJB" type="logic_compare">
                            <field name="OP">LT</field>
                            <value name="A">
                              <block id="M9#0fq~}`L1CcaXs.^5D" type="variables_get">
                                <field id="sopP9]I+2oa)nZOy~(,u" name="VAR" variabletype="">i</field>
                              </block>
                            </value>
                            <value name="B">
                              <block id="Pi)(!oRPNPCOFdP1T)c=" type="math_number">
                                <field name="NUM">6</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block id="wv5+{K0#_v;OuyhS-8od" type="lists_setIndex">
                            <mutation at="false"></mutation>
                            <field name="MODE">INSERT</field>
                            <field name="WHERE">FIRST</field>
                            <value name="LIST">
                              <block id="FQ0+Y,(qI5Br;XWm/K|T" type="variables_get">
                                <field id="?.V]}]H;PqN|h}8U5,[8" name="VAR" variabletype="">AO:list1</field>
                              </block>
                            </value>
                            <value name="TO">
                              <block id="!bs*hmT%!X9jVx8+L66r" type="math_arithmetic" inline="false">
                                <field name="OP">DIVIDE</field>
                                <value name="A">
                                  <shadow id="w_jqoTs6cNvkB2.v|ouW" type="math_number">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block id="yj0xqAGq}#@}3=^TZdWz" type="math_arithmetic" inline="false">
                                    <field name="OP">ADD</field>
                                    <value name="A">
                                      <shadow id="oqf]3{0wXLEP13:46^}E" type="math_number">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block id="8kUn~1cIvZgmOY*b4??j" type="lists_getIndex">
                                        <mutation at="true" statement="false"></mutation>
                                        <field name="MODE">GET</field>
                                        <field name="WHERE">FROM_END</field>
                                        <value name="VALUE">
                                          <block id="(wuQ/Y^Mm#`_)Wran?MM" type="ohlc_values_in_list">
                                            <field name="OHLCFIELD_LIST">high</field>
                                            <value name="OHLCLIST">
                                              <block id="gF#0+LiQP,mH]%li:=Dk" type="variables_get">
                                                <field id="~a3D;*p|@@;kbN(Z(?My" name="VAR" variabletype="">AO:sublist</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="AT">
                                          <block id="8s]A6QWU8_r7@9^TDXPb" type="variables_get">
                                            <field id="sopP9]I+2oa)nZOy~(,u" name="VAR" variabletype="">i</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow id="$bZh.r?4tQH/wZHh?Mli" type="math_number">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block id=";m^#?4@M#/1NsT%Vb6+A" type="lists_getIndex">
                                        <mutation at="true" statement="false"></mutation>
                                        <field name="MODE">GET</field>
                                        <field name="WHERE">FROM_END</field>
                                        <value name="VALUE">
                                          <block id="RZDMs8:@XYL7S|@XLDU4" type="ohlc_values_in_list">
                                            <field name="OHLCFIELD_LIST">low</field>
                                            <value name="OHLCLIST">
                                              <block id="qI*sv]Ane*/{U1nhM-F," type="variables_get">
                                                <field id="~a3D;*p|@@;kbN(Z(?My" name="VAR" variabletype="">AO:sublist</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="AT">
                                          <block id="FP+hYK*MGxyU0A;X88M^" type="variables_get">
                                            <field id="sopP9]I+2oa)nZOy~(,u" name="VAR" variabletype="">i</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow id="pH%Z4umW9V9kRJdTJ[y)" type="math_number">
                                    <field name="NUM">2</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block id="Y8e1yh*RX*SqSHlt)(/]" type="lists_setIndex">
                            <mutation at="false"></mutation>
                            <field name="MODE">INSERT</field>
                            <field name="WHERE">FIRST</field>
                            <value name="LIST">
                              <block id="4O`8oL7TtnvRN2MWm6uR" type="variables_get">
                                <field id="|=y*Q-MTI8S?VlH!h).!" name="VAR" variabletype="">AO:list2</field>
                              </block>
                            </value>
                            <value name="TO">
                              <block id="AlCqZUs3bN5U$$-Cg.iZ" type="math_arithmetic" inline="false">
                                <field name="OP">DIVIDE</field>
                                <value name="A">
                                  <shadow id="w_jqoTs6cNvkB2.v|ouW" type="math_number">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block id="u0t$%7nHv7t-.],~Xt|]" type="math_arithmetic" inline="false">
                                    <field name="OP">ADD</field>
                                    <value name="A">
                                      <shadow id="oqf]3{0wXLEP13:46^}E" type="math_number">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block id="x)zBaE)_|+outpX5LGmz" type="lists_getIndex">
                                        <mutation at="true" statement="false"></mutation>
                                        <field name="MODE">GET</field>
                                        <field name="WHERE">FROM_END</field>
                                        <value name="VALUE">
                                          <block id="NjEEC:kqOx+)n]SvQp$;" type="ohlc_values_in_list">
                                            <field name="OHLCFIELD_LIST">high</field>
                                            <value name="OHLCLIST">
                                              <block id="8W(1WUO}ER]3NNKjB9_M" type="variables_get">
                                                <field id="~a3D;*p|@@;kbN(Z(?My" name="VAR" variabletype="">AO:sublist</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="AT">
                                          <block id="l0k|5lYu5;VI*/=wc3c~" type="variables_get">
                                            <field id="sopP9]I+2oa)nZOy~(,u" name="VAR" variabletype="">i</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow id="$bZh.r?4tQH/wZHh?Mli" type="math_number">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block id="G)(tMs*%{;(|X$F,=W=_" type="lists_getIndex">
                                        <mutation at="true" statement="false"></mutation>
                                        <field name="MODE">GET</field>
                                        <field name="WHERE">FROM_END</field>
                                        <value name="VALUE">
                                          <block id="xUo2*uE{FJm:^QvL^HAw" type="ohlc_values_in_list">
                                            <field name="OHLCFIELD_LIST">low</field>
                                            <value name="OHLCLIST">
                                              <block id="=i2nLkZMYnq)oIyUS)XI" type="variables_get">
                                                <field id="~a3D;*p|@@;kbN(Z(?My" name="VAR" variabletype="">AO:sublist</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="AT">
                                          <block id="TMfZIed^;jX}x+nUl~Dd" type="variables_get">
                                            <field id="sopP9]I+2oa)nZOy~(,u" name="VAR" variabletype="">i</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow id="HF:[%_I+n0h|33oo(.80" type="math_number">
                                    <field name="NUM">2</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block id=":TF@.Ot$(@)gFSr4rT]i" type="math_arithmetic" inline="false">
        <field name="OP">MINUS</field>
        <value name="A">
          <shadow id="jd.$~hCbwr9K#b*MGA@q" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="|$EfOsm6=~kxI4254EHn" type="sma">
            <value name="INPUT">
              <block id="Q`NAluvL(pS~t-huGO{i" type="variables_get">
                <field id="?.V]}]H;PqN|h}8U5,[8" name="VAR" variabletype="">AO:list1</field>
              </block>
            </value>
            <value name="PERIOD">
              <shadow id="9ohH]yunn+Bq2[KE6C:z" type="math_number">
                <field name="NUM">5</field>
              </shadow>
            </value>
          </block>
        </value>
        <value name="B">
          <shadow id="6lPK*OnPhI/1rpWj]JF?" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="2B$!GV@cpsQsLTub$~u7" type="sma">
            <value name="INPUT">
              <block id="pY;p?KklI3/k7)!E1hkY" type="variables_get">
                <field id="|=y*Q-MTI8S?VlH!h).!" name="VAR" variabletype="">AO:list2</field>
              </block>
            </value>
            <value name="PERIOD">
              <shadow id="]t}D^O6_9;nOz88n26Ke" type="math_number">
                <field name="NUM">34</field>
              </shadow>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block id="JcU=p;i9Es59a3_YJH(c" type="trade" y="371" x="0">
    <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="SUBMARKET">
      <block id=")`}*{`hG;Nygv}x1hBGp" type="tradeOptions">
        <field name="DURATIONTYPE_LIST">m</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <shadow id="|)gdHa[2^jKf*t|%O%d3" type="math_number">
            <field name="NUM">12</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow id="]AS@_|}BL7ACweDpPc57" type="math_number">
            <field name="NUM">0.5</field>
          </shadow>
          <block id="s9f2NVean]Wzy|k^aY:4" type="procedures_callreturn">
            <mutation name="D'Alembert Trade Amount"></mutation>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block id="Vt,CkLeK8E?%BmnB`~M)" type="after_purchase" y="774" x="0">
    <statement name="AFTERPURCHASE_STACK">
      <block id="c4hD.~!i/`+oLr.gjo[i" type="controls_if">
        <value name="IF0">
          <block id="rx[zNB{pB;.L$Y{xmjJ9" type="procedures_callreturn">
            <mutation name="D'Alembert Trade Again After Purchase">
              <arg name="dalembert:profit"></arg>
              <arg name="dalembert:resultIsWin"></arg>
            </mutation>
            <value name="ARG0">
              <block id="(HD^cZ@/yOS2a6x$`r3+" type="read_details">
                <field name="DETAIL_INDEX">4</field>
              </block>
            </value>
            <value name="ARG1">
              <block id="|,fo;:FeB.O).*E/Y3mR" type="contract_check_result">
                <field name="CHECK_RESULT">win</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block id="/ek?9{h@w@J)m5c{e9_7" type="trade_again"></block>
        </statement>
      </block>
    </statement>
  </block>
  <block id="aatnEspN2)xPtlUz#zQ)" type="before_purchase" y="984" x="0" collapsed="true">
    <statement name="BEFOREPURCHASE_STACK">
      <block id="81IsRxD1aI(fD3+X]/Zn" type="variables_set">
        <field id="N8Q7hBOe0+qgs|9h9n:I" name="VAR" variabletype="">EMA</field>
        <value name="VALUE">
          <block id="soI6LnwVVHm]Cw!fosfw" type="ema" collapsed="true">
            <value name="INPUT">
              <block id="wT[GDSgx10GJ;W[hbT1m" type="ohlc_values">
                <field name="OHLCFIELD_LIST">open</field>
                <field name="CANDLEINTERVAL_LIST">default</field>
              </block>
            </value>
            <value name="PERIOD">
              <shadow id="z|F)nGvw|e8A]MI)Oh9]" type="math_number">
                <field name="NUM">12</field>
              </shadow>
            </value>
          </block>
        </value>
        <next>
          <block id="^vPdQTtT/DJW3!K3-oeT" type="variables_set">
            <field id="WC+89WuS}O$dL05Y?vO," name="VAR" variabletype="">CCI</field>
            <value name="VALUE">
              <block id=":@ehxb$6MKSX;/y-HsA(" type="procedures_callreturn" collapsed="true">
                <mutation name="ExMachina::getCCI">
                  <arg name="::candles"></arg>
                  <arg name="::period"></arg>
                </mutation>
                <value name="ARG0">
                  <block id="}04t+LAuQ^@az:/OyzI1" type="lists_getSublist">
                    <mutation at2="false" at1="false"></mutation>
                    <field name="WHERE1">FIRST</field>
                    <field name="WHERE2">LAST</field>
                    <value name="LIST">
                      <block id="jPeD=26@{]Yyab;#eV67" type="ohlc">
                        <field name="CANDLEINTERVAL_LIST">default</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="ARG1">
                  <block id="iLZn?Z~%L(y2PV~,=RtT" type="math_number">
                    <field name="NUM">6</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="xrO2YQUz*wL/}2;,zzI=" type="variables_set">
                <field id=".Y9JKM=O6Go%rutRv]Tq" name="VAR" variabletype="">AO</field>
                <value name="VALUE">
                  <block id="e_noEk!gk_aj5dw*Udz2" type="procedures_callreturn" collapsed="true">
                    <mutation name="ExMachina::GetAwesomeOscilator">
                      <arg name="_candles"></arg>
                      <arg name="_start"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block id="6voE{0M);pFN9@}.=5$=" type="lists_getSublist">
                        <mutation at2="false" at1="true"></mutation>
                        <field name="WHERE1">FROM_START</field>
                        <field name="WHERE2">LAST</field>
                        <value name="LIST">
                          <block id="(L@SGs%#n8Ec5|sG8mtW" type="ohlc">
                            <field name="CANDLEINTERVAL_LIST">default</field>
                          </block>
                        </value>
                        <value name="AT1">
                          <block id="q=;hIu8{a9pl~JatLx+5" type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="ARG1">
                      <block id="@V%])bC2zKGHgEsw5xnQ" type="lists_getIndex">
                        <mutation at="true" statement="false"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">FROM_END</field>
                        <value name="VALUE">
                          <block id="}+KfoYbJik@tfA]W#{7;" type="ohlc">
                            <field name="CANDLEINTERVAL_LIST">default</field>
                          </block>
                        </value>
                        <value name="AT">
                          <block id="oVr,L7D$-~s0)Y?4zKBA" type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block id="ELJwUGsM.4%l6%I+Yh:c" type="variables_set">
                    <field id="ea9=h#{H_}7$_lk,;*bo" name="VAR" variabletype="">RSI</field>
                    <value name="VALUE">
                      <block id="du);X#KT``g9i},c6oUf" type="rsi" collapsed="true">
                        <value name="INPUT">
                          <block id="$,xxED*X#4QHG##;Eq}O" type="ohlc_values">
                            <field name="OHLCFIELD_LIST">open</field>
                            <field name="CANDLEINTERVAL_LIST">default</field>
                          </block>
                        </value>
                        <value name="PERIOD">
                          <shadow id="XZFI`n3p0(0O;7fMCSi/" type="math_number">
                            <field name="NUM">3</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block id="h8$zIx*lI$J;?xDoP.$W" type="variables_set">
                        <field id="rNg;yEIDQ-!T%rmj5Diz" name="VAR" variabletype="">UPtrend</field>
                        <value name="VALUE">
                          <block id=";?TxYUbtDfKIypP]f{8a" type="logic_operation" collapsed="true">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block id="90U1nbX^@I7RhA6Sg7n6" type="logic_operation">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block id="tgL_nVBpeeW*R`lyD?sz" type="procedures_callreturn">
                                    <mutation name="is uptrend">
                                      <arg name="IU:values"></arg>
                                      <arg name="IU:period"></arg>
                                    </mutation>
                                    <value name="ARG0">
                                      <block id="+.+rOy3,JuS|LHR4LWpH" type="lists_getSublist">
                                        <mutation at2="false" at1="true"></mutation>
                                        <field name="WHERE1">FROM_START</field>
                                        <field name="WHERE2">LAST</field>
                                        <value name="LIST">
                                          <block id="0L_vG[{Tjs0KJ?Bk.n48" type="ohlc_values">
                                            <field name="OHLCFIELD_LIST">close</field>
                                            <field name="CANDLEINTERVAL_LIST">default</field>
                                          </block>
                                        </value>
                                        <value name="AT1">
                                          <block id="m(ACQjSp2NS.dYphw.L|" type="math_number">
                                            <field name="NUM">2</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="ARG1">
                                      <block id="4|LADqz~+^hzqJVRK,kn" type="math_number">
                                        <field name="NUM">12</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block id="!q#3PJv)j]1ye@BS[n1-" type="procedures_callreturn">
                                    <mutation name="is uptrend">
                                      <arg name="IU:values"></arg>
                                      <arg name="IU:period"></arg>
                                    </mutation>
                                    <value name="ARG0">
                                      <block id="n#B3r=ivH$(bO#ej[OX?" type="lists_getSublist">
                                        <mutation at2="false" at1="true"></mutation>
                                        <field name="WHERE1">FROM_START</field>
                                        <field name="WHERE2">LAST</field>
                                        <value name="LIST">
                                          <block id="q${H@mNZ!:Izi$ObiFw^" type="ohlc_values">
                                            <field name="OHLCFIELD_LIST">close</field>
                                            <field name="CANDLEINTERVAL_LIST">default</field>
                                          </block>
                                        </value>
                                        <value name="AT1">
                                          <block id="kd!SjuaDp]!F2NE(2B5%" type="math_number">
                                            <field name="NUM">2</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="ARG1">
                                      <block id="t`;cyk10LFJtxq;A_mxj" type="math_number">
                                        <field name="NUM">18</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block id="mS|lWkLX(vUgyuL|7UB%" type="procedures_callreturn">
                                <mutation name="is uptrend">
                                  <arg name="IU:values"></arg>
                                  <arg name="IU:period"></arg>
                                </mutation>
                                <value name="ARG0">
                                  <block id="lqt!ma?lrL$yc*lZ!Mp_" type="lists_getSublist">
                                    <mutation at2="false" at1="true"></mutation>
                                    <field name="WHERE1">FROM_START</field>
                                    <field name="WHERE2">LAST</field>
                                    <value name="LIST">
                                      <block id="w}@tfo#H0x6q^{bjm+r|" type="ohlc_values">
                                        <field name="OHLCFIELD_LIST">close</field>
                                        <field name="CANDLEINTERVAL_LIST">default</field>
                                      </block>
                                    </value>
                                    <value name="AT1">
                                      <block id="mq?cucQ`Iz~W#)aVpkAW" type="math_number">
                                        <field name="NUM">2</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="ARG1">
                                  <block id="aqy@nvHSx`Sh:7[ko/z=" type="math_number">
                                    <field name="NUM">24</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block id="@v[w=2HnK_mppyj=Fu;A" type="variables_set">
                            <field id="KEum(LXgq5m35V:4A.T;" name="VAR" variabletype="">DWtrend</field>
                            <value name="VALUE">
                              <block id="6LYVOBes$z{r{BC]D8V+" type="logic_operation" collapsed="true">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block id="RIh2,tuugTgee9[0S3cN" type="logic_operation">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block id="JgDA=V/prBj_j`k.h@i%" type="procedures_callreturn">
                                        <mutation name="is downtrend">
                                          <arg name="ID:values"></arg>
                                          <arg name="ID:period"></arg>
                                        </mutation>
                                        <value name="ARG0">
                                          <block id="nD28U08$[c=Vea~/hKP(" type="lists_getSublist">
                                            <mutation at2="false" at1="true"></mutation>
                                            <field name="WHERE1">FROM_START</field>
                                            <field name="WHERE2">LAST</field>
                                            <value name="LIST">
                                              <block id="0;hI=1dZNElhw6ITWq5k" type="ohlc_values">
                                                <field name="OHLCFIELD_LIST">close</field>
                                                <field name="CANDLEINTERVAL_LIST">default</field>
                                              </block>
                                            </value>
                                            <value name="AT1">
                                              <block id="~!1S~QrocyQg;I),AJRN" type="math_number">
                                                <field name="NUM">2</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="ARG1">
                                          <block id="k5Q$t6D}1e/JzaV[aWbz" type="math_number">
                                            <field name="NUM">12</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block id="*2h-*T(o.g#7{Cn]Q3)E" type="procedures_callreturn">
                                        <mutation name="is downtrend">
                                          <arg name="ID:values"></arg>
                                          <arg name="ID:period"></arg>
                                        </mutation>
                                        <value name="ARG0">
                                          <block id="?@@x*7R2eWd-=g:RcLdC" type="lists_getSublist">
                                            <mutation at2="false" at1="true"></mutation>
                                            <field name="WHERE1">FROM_START</field>
                                            <field name="WHERE2">LAST</field>
                                            <value name="LIST">
                                              <block id="b`)L,./~@ITJf[BQ;]XP" type="ohlc_values">
                                                <field name="OHLCFIELD_LIST">close</field>
                                                <field name="CANDLEINTERVAL_LIST">default</field>
                                              </block>
                                            </value>
                                            <value name="AT1">
                                              <block id=".%D_.{Zj5]+c:})#o-L|" type="math_number">
                                                <field name="NUM">2</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="ARG1">
                                          <block id="El`S_F6MDQj7d((XO*}K" type="math_number">
                                            <field name="NUM">18</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block id="(X-v)Ba]%GH#RxWI}OKa" type="procedures_callreturn">
                                    <mutation name="is downtrend">
                                      <arg name="ID:values"></arg>
                                      <arg name="ID:period"></arg>
                                    </mutation>
                                    <value name="ARG0">
                                      <block id="ReW)zJ^$Y!zLn$P@4?e=" type="lists_getSublist">
                                        <mutation at2="false" at1="true"></mutation>
                                        <field name="WHERE1">FROM_START</field>
                                        <field name="WHERE2">LAST</field>
                                        <value name="LIST">
                                          <block id="V?o}e9z{VAgbAuK4pC`k" type="ohlc_values">
                                            <field name="OHLCFIELD_LIST">close</field>
                                            <field name="CANDLEINTERVAL_LIST">default</field>
                                          </block>
                                        </value>
                                        <value name="AT1">
                                          <block id="(apau*0%8n`cg_:#}yBP" type="math_number">
                                            <field name="NUM">2</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="ARG1">
                                      <block id="Gj}HX%^TzM[/1dky15+z" type="math_number">
                                        <field name="NUM">24</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block id="oXd1f2;f33r/F1/2lPdN" type="controls_if">
                                <value name="IF0">
                                  <block id="z!/CpiLin_oq?lW1R={H" type="logic_operation">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block id="73,y:x6xL5G.QLSW,#1A" type="logic_operation">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block id="OdJ[Ja|w5*5)MWZU#F)S" type="variables_get">
                                            <field id="rNg;yEIDQ-!T%rmj5Diz" name="VAR" variabletype="">UPtrend</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block id="O$/Q)kD`q(-DEU!$3q*e" type="logic_compare">
                                            <field name="OP">GT</field>
                                            <value name="A">
                                              <block id="zd0Els;n)v~[glv%+sNx" type="variables_get">
                                                <field id=".Y9JKM=O6Go%rutRv]Tq" name="VAR" variabletype="">AO</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block id="y*H{{~,WD($}n-@0Q^^Q" type="math_number">
                                                <field name="NUM">0</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block id="Sz=2d-ml?zcgtN2C5Y.3" type="logic_operation">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block id="0!oyGN?]CuP}0ZL[Slvd" type="logic_compare">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block id="[}}]RjoMn~w|UHb}rf6C" type="variables_get">
                                                <field id="WC+89WuS}O$dL05Y?vO," name="VAR" variabletype="">CCI</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block id="VHWUvFXAT,Ht_M+#9Yym" type="math_number">
                                                <field name="NUM">-100</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block id="@qb.;.eOevyt3FY%xP:;" type="logic_compare">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block id="{p+.e@RY@F*UkUXAt[JP" type="variables_get">
                                                <field id="ea9=h#{H_}7$_lk,;*bo" name="VAR" variabletype="">RSI</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block id="g,rN])u-Y0KRVK.*jH%8" type="math_number">
                                                <field name="NUM">25</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block id="=|tZn2SuvdBuv{lW0MAr" type="controls_if">
                                    <value name="IF0">
                                      <block id="lmzBmyQ+kM(!U?(eeun0" type="logic_compare">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block id=":^]z7wNuvq;;xtlEUOS`" type="read_ohlc">
                                            <field name="OHLCFIELD_LIST">close</field>
                                            <field name="CANDLEINTERVAL_LIST">default</field>
                                            <value name="CANDLEINDEX">
                                              <shadow id="b6:42[xDzP=R0q`zM}ce" type="math_number">
                                                <field name="NUM">2</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block id="]NJ%w%P+b:yrQtz:}0Yp" type="variables_get">
                                            <field id="N8Q7hBOe0+qgs|9h9n:I" name="VAR" variabletype="">EMA</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block id="h;{jH?l%[el7.D5Xn/$[" type="notify">
                                        <field name="NOTIFICATION_TYPE">info</field>
                                        <field name="NOTIFICATION_SOUND">announcement</field>
                                        <value name="MESSAGE">
                                          <shadow id="dSln11;Pp1ie^*!|Y?4]" type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block id="=g]X[V`~i]+:.?IAj+#M" type="text">
                                            <field name="TEXT">ATTENTION ! Purchase...</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block id="cFsa3gKvu`VWipml3HPF" type="purchase">
                                            <field name="PURCHASE_LIST">CALL</field>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <next>
                                  <block id="Qm#j)dGQv[nH%zRHj9^Y" type="controls_if">
                                    <value name="IF0">
                                      <block id="TgLD9jfIbtKUer#?C?It" type="logic_operation">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block id="k(e.P:2Nc|_LDCSvYyq;" type="logic_operation">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block id="W:ctSp/05}djpc{DGW!r" type="variables_get">
                                                <field id="KEum(LXgq5m35V:4A.T;" name="VAR" variabletype="">DWtrend</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block id="?%WKZAuIbm@Xg#BNP=:h" type="logic_compare">
                                                <field name="OP">LT</field>
                                                <value name="A">
                                                  <block id="`}vFk,;.hcA=,C2|Zlj}" type="variables_get">
                                                    <field id=".Y9JKM=O6Go%rutRv]Tq" name="VAR" variabletype="">AO</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block id="4EI73EKo@RVB$,hXF),5" type="math_number">
                                                    <field name="NUM">0</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block id="z1[JPTmk60xWs}m^Bks)" type="logic_operation">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block id="{C9DR+:KZU;oQ1_-%Sjp" type="logic_compare">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block id="K/adW4G3gvTHHfj;LWQX" type="variables_get">
                                                    <field id="WC+89WuS}O$dL05Y?vO," name="VAR" variabletype="">CCI</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block id="@;A_A,xCS89)SDLO{N~6" type="math_number">
                                                    <field name="NUM">100</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block id="V=d{n+/8cL(({MnU{]=a" type="logic_compare">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block id="F#lN[OX)tgCREKEYR#_%" type="variables_get">
                                                    <field id="ea9=h#{H_}7$_lk,;*bo" name="VAR" variabletype="">RSI</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block id="#m-t%NOw*oAL{!OB4le4" type="math_number">
                                                    <field name="NUM">75</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block id="tk.+42WtOVLl=a1/4qog" type="controls_if">
                                        <value name="IF0">
                                          <block id="6NNKa?8m?AcxI2JKb$|{" type="logic_compare">
                                            <field name="OP">GT</field>
                                            <value name="A">
                                              <block id="ZpPPa#|3N(=UZt!(o?^d" type="read_ohlc">
                                                <field name="OHLCFIELD_LIST">close</field>
                                                <field name="CANDLEINTERVAL_LIST">default</field>
                                                <value name="CANDLEINDEX">
                                                  <shadow id="ld]`Cm.C8Lzc@1|Mvt*C" type="math_number">
                                                    <field name="NUM">2</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block id="3JAWefz/-B]_KTF@(4{C" type="variables_get">
                                                <field id="N8Q7hBOe0+qgs|9h9n:I" name="VAR" variabletype="">EMA</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block id="R?c#N-b@rT]ZhcL860Ee" type="notify">
                                            <field name="NOTIFICATION_TYPE">info</field>
                                            <field name="NOTIFICATION_SOUND">announcement</field>
                                            <value name="MESSAGE">
                                              <shadow id="dSln11;Pp1ie^*!|Y?4]" type="text">
                                                <field name="TEXT">abc</field>
                                              </shadow>
                                              <block id=")c^0%y$yH7#[PROTECTED EMAIL]" type="text">
                                                <field name="TEXT">ATTENTION ! Purchase...</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block id="$K#K{FDg}FxpY@p`2VwV" type="purchase">
                                                <field name="PURCHASE_LIST">PUT</field>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                    <next>
                                      <block id="Hn/(1otR}2hfU[Tgq=,t" type="notify">
                                        <field name="NOTIFICATION_TYPE">success</field>
                                        <field name="NOTIFICATION_SOUND">silent</field>
                                        <value name="MESSAGE">
                                          <shadow id="hm@+x@VvOG+*$eC-[],7" type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block id="TB_OzPOZ=6~#KXkwj32." type="text">
                                            <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>
    </statement>
  </block>
</xml>
