﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="te/YNE=J~zthlpX)a$5c">Tiền Lãi Dừng Bot</variable>
    <variable type="" id="rdF)tti]:tuNo.zFmU}A">REDCALLR</variable>
    <variable type="" id="c~3ZD/h~]2tEkX:5:?!$">stop los</variable>
    <variable type="" id="5d$ZwJl?f:8wy`z-0qS#">PurchaseTime</variable>
    <variable type="" id="6t+.)nmrKZPhNTDvJNfH">cho lo</variable>
    <variable type="" id="qkBG,#FnI(oMzM!b@DV*">Tiền Vào Lệnh</variable>
    <variable type="" id=";mYnJWSyEIkuf(Qo6wsg">REDR</variable>
    <variable type="" id="ngB{C4|%oIZ;U`4oqJif">GREENPUTR</variable>
    <variable type="" id="HX7APDe;Ssl6t~~bUEOF">Loss</variable>
    <variable type="" id="V)p.c%2kKdqoT?3pN@QO">REDCALLO</variable>
    <variable type="" id="wIipLs*,uZu:2nrfLuZb">CandleTime</variable>
    <variable type="" id="WQ7R^eCXkZ{vSK|5!Xi3">CandleClosed</variable>
    <variable type="" id="d!1L7#s;dc0;,c.9d2jC">Tiền Vào Lệnh Khi Win</variable>
    <variable type="" id="u#5]P5lsCuh:g|zy)W,W">REDO</variable>
    <variable type="" id="Y[eS}{s9xL6@[U_^H`S%">GREENPUTO</variable>
    <variable type="" id="2jS=zsY3Sl3U?JpbPj~X">CALL</variable>
    <variable type="" id="$Z1Mlj`3Dp`?hWccT@Cw">Số Lần Max Loss</variable>
    <variable type="" id="^D#wqi3={;kOZMv(4/Tx">PUT</variable>
  </variables>
  <block type="trade" id=")inu*9KBx=?O=ZEkmjl_" x="0" y="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="INITIALIZATION">
      <block type="variables_set" id="iE}+7|=M2Z^mSvyF$C3=">
        <field name="VAR" id="te/YNE=J~zthlpX)a$5c" variabletype="">Tiền Lãi Dừng Bot</field>
        <value name="VALUE">
          <block type="math_number" id="_Y9iP9#GijEm$d!FHM0U">
            <field name="NUM">5</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="TzYV-?dFKXK1a/)BBp@^">
            <field name="VAR" id="6t+.)nmrKZPhNTDvJNfH" variabletype="">cho lo</field>
            <value name="VALUE">
              <block type="math_number" id=":O`SL8q$U*hl;R8|KTt=">
                <field name="NUM">50</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="Ab{/ZoTn4?m@CgEqzx3d">
                <field name="VAR" id="qkBG,#FnI(oMzM!b@DV*" variabletype="">Tiền Vào Lệnh</field>
                <value name="VALUE">
                  <block type="math_number" id=")goETVd34guA:ne(g:?4">
                    <field name="NUM">0.35</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="CGq|YFnTt`_2GjG$zBMB">
                    <field name="VAR" id="d!1L7#s;dc0;,c.9d2jC" variabletype="">Tiền Vào Lệnh Khi Win</field>
                    <value name="VALUE">
                      <block type="math_number" id="MHD~hMPmXcjg*1|vI{*R">
                        <field name="NUM">0.35</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="u2#9+g*k`Ye#7kyV]aHq">
                        <field name="VAR" id="HX7APDe;Ssl6t~~bUEOF" variabletype="">Loss</field>
                        <value name="VALUE">
                          <block type="math_number" id="Pfa`i:Hc;PYk(:c~$%%U">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="NtDVBSBB6$#IchG1e1G.">
                            <field name="VAR" id="$Z1Mlj`3Dp`?hWccT@Cw" variabletype="">Số Lần Max Loss</field>
                            <value name="VALUE">
                              <block type="math_number" id="fI)1)[vGAfT10o//xa9.">
                                <field name="NUM">2</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="M::{WI1mZaMAUx)jxz^,">
                                <field name="VAR" id="c~3ZD/h~]2tEkX:5:?!$" variabletype="">stop los</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="hTp.@diK*2zpdr)jb+^y">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="controls_if" id="v{JExF%7XYBNZEYs+G9n">
                                    <value name="IF0">
                                      <block type="logic_compare" id="{|%)4;KTR1sRms[]|/9_">
                                        <field name="OP">EQ</field>
                                        <value name="B">
                                          <block type="text" id="(fey{zc#60OU@/PtK3A=">
                                            <field name="TEXT">6_Call Put -Theo Màu Nến Trước 29S - CandeTime-After Loss Reverse Ok_31_7_18</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="controls_if" id="gkX.%jTZm=#y.gx-$N#w">
                                        <value name="IF0">
                                          <block type="logic_compare" id="T5W^Gx=cgfS/xQ3V7lRq" disabled="true">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="text" id="09_CW$9_a|P8mEu2@U8z">
                                                <field name="TEXT">CandleTime</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="text" id=",Fruk:g,Cevf}zCFhFxK">
                                                <field name="TEXT">Tested Loss 8</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="/I1|?tZ1664kEKLzO:nP">
        <field name="DURATIONTYPE_LIST">s</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
            <field name="NUM">29</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="variables_get" id="ggwP6Za$xbD]M.g^dvBv">
            <field name="VAR" id="qkBG,#FnI(oMzM!b@DV*" variabletype="">Tiền Vào Lệnh</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="nG`7zg_ax[1li#uaJG9b" x="0" y="752">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="variables_set" id="Rq9?tWHWU*L3h[$[*rF?">
        <field name="VAR" id="rdF)tti]:tuNo.zFmU}A" variabletype="">REDCALLR</field>
        <value name="VALUE">
          <block type="variables_get" id="F?=~*@_a.q4f@Q@@,a5G">
            <field name="VAR" id=";mYnJWSyEIkuf(Qo6wsg" variabletype="">REDR</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="kA:38u{=K%XKVhi0$RXt">
            <field name="VAR" id="ngB{C4|%oIZ;U`4oqJif" variabletype="">GREENPUTR</field>
            <value name="VALUE">
              <block type="logic_negate" id="sY%AQSPd?:0Ao8o1/PI^">
                <value name="BOOL">
                  <block type="variables_get" id="5^ZqKULkkUzK?Di#pC7*">
                    <field name="VAR" id=";mYnJWSyEIkuf(Qo6wsg" variabletype="">REDR</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="TKeZh:{G{[NM{,UYg0BP">
                <field name="VAR" id="V)p.c%2kKdqoT?3pN@QO" variabletype="">REDCALLO</field>
                <value name="VALUE">
                  <block type="variables_get" id="vxi3!X:;pt/!f.dATC1=">
                    <field name="VAR" id="u#5]P5lsCuh:g|zy)W,W" variabletype="">REDO</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="7n,uk@^RVzCr(e5f3m-Q">
                    <field name="VAR" id="Y[eS}{s9xL6@[U_^H`S%" variabletype="">GREENPUTO</field>
                    <value name="VALUE">
                      <block type="logic_negate" id="K|8,(gnvxa_zz;G2sW-o">
                        <value name="BOOL">
                          <block type="variables_get" id="8e.,P|^!~^Yh2oK:IZ6M">
                            <field name="VAR" id="u#5]P5lsCuh:g|zy)W,W" variabletype="">REDO</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="NE:8L?.2NOUP}~Gk;Yd/">
                        <field name="VAR" id="2jS=zsY3Sl3U?JpbPj~X" variabletype="">CALL</field>
                        <value name="VALUE">
                          <block type="variables_get" id="JL!vxQE4f~:k(tF8x6CQ">
                            <field name="VAR" id="ngB{C4|%oIZ;U`4oqJif" variabletype="">GREENPUTR</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="3?7E~fJuv2qcSS*Wqx+O">
                            <field name="VAR" id="^D#wqi3={;kOZMv(4/Tx" variabletype="">PUT</field>
                            <value name="VALUE">
                              <block type="variables_get" id="b%5z)Xt!h3Xi,N]i2i+8">
                                <field name="VAR" id="rdF)tti]:tuNo.zFmU}A" variabletype="">REDCALLR</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="Us#qvQP(aw3!C%LR^8n+">
                                <value name="IF0">
                                  <block type="logic_operation" id="6H]fQQt.zB[yL{(-6h0M">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="Jg+l}0dD{tv=T_m-s8#H">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="variables_get" id="#;kkSnc;vN(t~J@y6r(3">
                                            <field name="VAR" id="ngB{C4|%oIZ;U`4oqJif" variabletype="">GREENPUTR</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="PVjO*+0gv@$zAVDw)8e6">
                                            <field name="VAR" id="Y[eS}{s9xL6@[U_^H`S%" variabletype="">GREENPUTO</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="ySf=_WPI{yx}pXwrf3*[">
                                        <field name="VAR" id="2jS=zsY3Sl3U?JpbPj~X" variabletype="">CALL</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="notify" id="PqA%owGYJ[N8C^`WHE`V">
                                    <field name="NOTIFICATION_TYPE">info</field>
                                    <field name="NOTIFICATION_SOUND">silent</field>
                                    <value name="MESSAGE">
                                      <shadow id="6$^WhcliEJ)DmAf~]Hql" type="text">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="A:#?=VeBs`Ym0F3~jj|w">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="TS=7SO-(tDx{z!Umc1+B">
                                            <field name="TEXT">CALL: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="]ish=EVs|]i[JQ:LG1g9">
                                            <field name="VAR" id="2jS=zsY3Sl3U?JpbPj~X" variabletype="">CALL</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="purchase" id="jG2dD8RS9z]._+R`p#Hv">
                                        <field name="PURCHASE_LIST">CALL</field>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="=?[2VyK)#0}3egnz]kI6">
                                    <value name="IF0">
                                      <block type="logic_operation" id="EzfR{^b(YBTnbgH!$dkk">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="variables_get" id="y=0(uj}.~V)xz(xp^RU(">
                                            <field name="VAR" id="^D#wqi3={;kOZMv(4/Tx" variabletype="">PUT</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="g%V4/H=!6Jv+Nu$i.`O(">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="variables_get" id="?Q-Bw6{w.o+s8-e{7/!?">
                                                <field name="VAR" id="V)p.c%2kKdqoT?3pN@QO" variabletype="">REDCALLO</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="!n)ch]ppWSZH[j7ZrC4;">
                                                <field name="VAR" id="rdF)tti]:tuNo.zFmU}A" variabletype="">REDCALLR</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="notify" id="yFqLKJH.J]/A]{+SD@mL">
                                        <field name="NOTIFICATION_TYPE">success</field>
                                        <field name="NOTIFICATION_SOUND">silent</field>
                                        <value name="MESSAGE">
                                          <shadow id="6$^WhcliEJ)DmAf~]Hql" type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="$!n_4sw]=Nz}xG{]?mq|">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="1x9|{9I}+BZYuxFu.fxy">
                                                <field name="TEXT">PUT: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="variables_get" id="~3?8EH^BFKVl-`lJN~iM">
                                                <field name="VAR" id="^D#wqi3={;kOZMv(4/Tx" variabletype="">PUT</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="purchase" id="PM?tt@lVmu4a{?a-%ADg">
                                            <field name="PURCHASE_LIST">PUT</field>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="notify" id="`Y83Hn]+P^$y4E|k}*+R">
                                        <field name="NOTIFICATION_TYPE">warn</field>
                                        <field name="NOTIFICATION_SOUND">silent</field>
                                        <value name="MESSAGE">
                                          <shadow id="6$^WhcliEJ)DmAf~]Hql" type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="u^.7I3+1OX!O~:Z;#I.7">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="doS8$n;)tn/@8{fJe$wC">
                                                <field name="TEXT">Wait.....</field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="balance" id="TKKP}MV:B}#?V.duotfX">
                                                <field name="BALANCE_TYPE">STR</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="%C{0jxjsK8cVaA+Rbk5!" collapsed="true" x="0" y="1439">
    <field name="NAME">is stop</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="c]f68fy]Dz?^5).c-7#,">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="logic_compare" id="%0{WR*PZUkL+zv@m)Lok">
            <field name="OP">GT</field>
            <value name="A">
              <block type="variables_get" id="eOD|^uibH$Db(nOt^UF1">
                <field name="VAR" id="te/YNE=J~zthlpX)a$5c" variabletype="">Tiền Lãi Dừng Bot</field>
              </block>
            </value>
            <value name="B">
              <block type="total_profit" id="-41P#hv5WtRs^E_z;Csm"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="controls_if" id="UlN8cGXvy^-w(]Ysww^K">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="FI)deME{;))`JkJ1TEHQ">
                <field name="OP">LT</field>
                <value name="A">
                  <block type="variables_get" id="v)g3D_Du2#E]x?:pfXJq">
                    <field name="VAR" id="6t+.)nmrKZPhNTDvJNfH" variabletype="">cho lo</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_arithmetic" id=",X5]/oYBLm%R~A07(pZ%">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow id="^Ryd#xGE*2,/)i6{W|+[" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="total_profit" id="2I*N8-A!|{kA:]+;xoff"></block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="IcnbAG2(}*,rDaG]#=97">
                        <field name="NUM">-1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="+K-Q2|S}j.6TD`x@J)[%">
                <field name="VAR" id="c~3ZD/h~]2tEkX:5:?!$" variabletype="">stop los</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="gh]w)x^qoN|TT(h=VkW!">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
                <next>
                  <block type="notify" id="X6M?d=eG!9rQ_8KlBy^e">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">error</field>
                    <value name="MESSAGE">
                      <shadow id="w+|k7Z2BA4;zD=E/9TA(" type="text">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text_join" id="|J|s*y4A`{$DwCZw+r/W">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="@9g#kUv}7~dP|)s,Hh)r">
                            <field name="TEXT">Stop loss</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="total_profit" id="y,Wdp-Nx0FsQG{0X~nrB"></block>
                        </value>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="variables_set" id="EsK4dSHwR5QUEc!WifH+">
                <field name="VAR" id="c~3ZD/h~]2tEkX:5:?!$" variabletype="">stop los</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="s~R|I]!]Trj1yqesa}X3">
                    <field name="BOOL">FALSE</field>
                  </block>
                </value>
              </block>
            </statement>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="5wnc+^9)VlhL]vRx:TLz">
            <field name="VAR" id="c~3ZD/h~]2tEkX:5:?!$" variabletype="">stop los</field>
            <value name="VALUE">
              <block type="logic_boolean" id="62F%![P@`S5|AQPGASmf">
                <field name="BOOL">TRUE</field>
              </block>
            </value>
            <next>
              <block type="notify" id="OM~nN%dN,j(XUKA5IhL-">
                <field name="NOTIFICATION_TYPE">success</field>
                <field name="NOTIFICATION_SOUND">earned-money</field>
                <value name="MESSAGE">
                  <shadow id="w+|k7Z2BA4;zD=E/9TA(" type="text">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text_join" id="~6jQv~uN-P;gZQwtwuih">
                    <mutation items="2"></mutation>
                    <value name="ADD0">
                      <block type="text" id="QuJC|;bJP/uVw7(:_$QX">
                        <field name="TEXT">tổng lai</field>
                      </block>
                    </value>
                    <value name="ADD1">
                      <block type="total_profit" id="mk2r|AP1n5Hp@Rby^L]B"></block>
                    </value>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="Vh3%K/=ur!bHQZw[wplJ">
        <field name="VAR" id="c~3ZD/h~]2tEkX:5:?!$" variabletype="">stop los</field>
      </block>
    </value>
  </block>
  <block type="tick_analysis" id="5ak#!lo]1Ak3AJR4`teZ" collapsed="true" x="0" y="1492">
    <statement name="TICKANALYSIS_STACK">
      <block type="variables_set" id="OJk^R_`-Kf-b:@5P_a6=">
        <field name="VAR" id="5d$ZwJl?f:8wy`z-0qS#" variabletype="">PurchaseTime</field>
        <value name="VALUE">
          <block type="logic_boolean" id="]Z,L/c]m*[[D9nN~}?dk">
            <field name="BOOL">FALSE</field>
          </block>
        </value>
        <next>
          <block type="controls_if" id=")kJp#;nn#,_~]aLrxWIX">
            <mutation elseif="1" else="1"></mutation>
            <value name="IF0">
              <block type="logic_negate" id="#4p{(?|7on~+V|5T6Eje">
                <value name="BOOL">
                  <block type="variables_get" id="GI4zw+4oUeU(3S6Q|mEY">
                    <field name="VAR" id="wIipLs*,uZu:2nrfLuZb" variabletype="">CandleTime</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="nF!e+a4?F7+cyRNnxt3M">
                <field name="VAR" id="wIipLs*,uZu:2nrfLuZb" variabletype="">CandleTime</field>
                <value name="VALUE">
                  <block type="read_ohlc" id=";kl1,;s*p~-/M7GwP]:C">
                    <field name="OHLCFIELD_LIST">epoch</field>
                    <field name="CANDLEINTERVAL_LIST">default</field>
                    <value name="CANDLEINDEX">
                      <shadow type="math_number" id="G4}Bt-,=:UTpO@$u[#,_">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <value name="IF1">
              <block type="logic_compare" id="S?wk0-nxEH+dS,Dm-%~H">
                <field name="OP">NEQ</field>
                <value name="A">
                  <block type="variables_get" id="r)Qie0TLK3EV%6Ci!Txk">
                    <field name="VAR" id="wIipLs*,uZu:2nrfLuZb" variabletype="">CandleTime</field>
                  </block>
                </value>
                <value name="B">
                  <block type="read_ohlc" id="Ucs-a5gao:jUzA=sH,jl">
                    <field name="OHLCFIELD_LIST">epoch</field>
                    <field name="CANDLEINTERVAL_LIST">default</field>
                    <value name="CANDLEINDEX">
                      <shadow type="math_number" id="#mO%Kv%/g8jgk]Qp{{V9">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO1">
              <block type="variables_set" id="!?=8#},~eI$-X=m_z8Q]">
                <field name="VAR" id="wIipLs*,uZu:2nrfLuZb" variabletype="">CandleTime</field>
                <value name="VALUE">
                  <block type="read_ohlc" id="K~Ls_F+o?0ZNM@8~2Sk)">
                    <field name="OHLCFIELD_LIST">epoch</field>
                    <field name="CANDLEINTERVAL_LIST">default</field>
                    <value name="CANDLEINDEX">
                      <shadow type="math_number" id="i!W`n@uq#ih%R`mY4tK_">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="m@g`M|G[vW_zZcA!g0P!">
                    <field name="VAR" id="WQ7R^eCXkZ{vSK|5!Xi3" variabletype="">CandleClosed</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="2`fzM#NRB3^9N!K5q)+}">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id=";tcw}t]]A:EWy+z;id=(">
                        <field name="VAR" id="5d$ZwJl?f:8wy`z-0qS#" variabletype="">PurchaseTime</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="hZN|2gCFtdxiRGKyAE=%">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="variables_set" id="NsJ4Fu6.H$6{F7V%?~$1">
                <field name="VAR" id="WQ7R^eCXkZ{vSK|5!Xi3" variabletype="">CandleClosed</field>
                <value name="VALUE">
                  <block type="logic_boolean" id=")R636[p$KA;Rzi[}p|+t">
                    <field name="BOOL">FALSE</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="nfE;DZ,vkf+7X(jD:Y8b">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="is_candle_black" id="e?=TIJXo-@b#27ZrAdO#">
                    <value name="OHLCOBJ">
                      <block type="get_ohlc" id="DU?j@ZD,(W#N%k?.[ukS">
                        <field name="CANDLEINTERVAL_LIST">default</field>
                        <value name="CANDLEINDEX">
                          <shadow type="math_number" id="i*3SBF*Jl9a$GijZW@rE">
                            <field name="NUM">2</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="yFESm2:pO5E9D[BvxqPe">
                    <field name="VAR" id="u#5]P5lsCuh:g|zy)W,W" variabletype="">REDO</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="8d/k]Ersf@-kET!EK$JD">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="variables_set" id="|rjEzG!g1cP`4YVopv?f">
                    <field name="VAR" id="u#5]P5lsCuh:g|zy)W,W" variabletype="">REDO</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id=":`[Um(e.q^YEiL0fG)f/">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="**H]=@IloZ@k~K!3bBVf">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="is_candle_black" id="^e=6FNJgD;wkr};?L1PN">
                        <value name="OHLCOBJ">
                          <block type="get_ohlc" id="SK6;uLmq]b:S0TZudH2Y">
                            <field name="CANDLEINTERVAL_LIST">default</field>
                            <value name="CANDLEINDEX">
                              <shadow type="math_number" id="I[Q4O[?w]#7Sdv3|o-9K">
                                <field name="NUM">1</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="eVYh2SJsBH2W)Wqk-l#[">
                        <field name="VAR" id=";mYnJWSyEIkuf(Qo6wsg" variabletype="">REDR</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="qVpOhqeOz+MV;d!:go4k">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="variables_set" id="+fi2B]8bpWmB)5-P$wwC">
                        <field name="VAR" id=";mYnJWSyEIkuf(Qo6wsg" variabletype="">REDR</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="U,@/7y,[YL{W~`kJ}bBa">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="X[gun7Sx6Shn3kldC}mZ" x="0" y="1545">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="+b@!?p+s(~^u0f.Aw[Le">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="@{:fY*(sf{)QlzbTcg`|">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="cUu!BdTCL[_26UEpsEK~">
            <field name="VAR" id="qkBG,#FnI(oMzM!b@DV*" variabletype="">Tiền Vào Lệnh</field>
            <value name="VALUE">
              <block type="variables_get" id="ZwE~gjuXAq5S2}1/(Mki">
                <field name="VAR" id="d!1L7#s;dc0;,c.9d2jC" variabletype="">Tiền Vào Lệnh Khi Win</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="#Op3WV/]9o?!EZO(Ib;#">
                <field name="VAR" id="HX7APDe;Ssl6t~~bUEOF" variabletype="">Loss</field>
                <value name="VALUE">
                  <block type="math_number" id="6zm9_~]r5)k~@br$93FE">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <next>
                  <block type="notify" id="pkYL{:^0{KXkl%?[dBY;">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">announcement</field>
                    <value name="MESSAGE">
                      <shadow id="%#M=P+7o~X#Mul$u3Ref" type="text">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text_join" id="0.wQ-5.ZZR`tS2nS.^la">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="RuiHD^`x-(PQMa17bnt.">
                            <field name="TEXT">Tổng Lãi:  </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="total_profit" id="*n72GBoJW_RH6)=8hy%("></block>
                        </value>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="!akPV%?vTC.zs7KIwix[">
            <field name="VAR" id="HX7APDe;Ssl6t~~bUEOF" variabletype="">Loss</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="ZPF1tY2-h;,PD:eA.}wJ">
                <field name="OP">ADD</field>
                <value name="A">
                  <shadow id="?_DKTGs{Py#qSjCYvco4" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="Z1]M`Mr)axiN!6EL/}:y">
                    <field name="VAR" id="HX7APDe;Ssl6t~~bUEOF" variabletype="">Loss</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="ts*7l%9O=K~[:H.cqDJz">
                    <field name="NUM">1</field>
                  </shadow>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="l,cDj[k*1teNcx,qpl-n">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="T+eB)yQ@[:$s@M)xbpQ#">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id=",Yrj,5sT/Dg3mFj==!D[">
                        <field name="VAR" id="HX7APDe;Ssl6t~~bUEOF" variabletype="">Loss</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="VuyGh?^(CiWA:URqMEok">
                        <field name="VAR" id="$Z1Mlj`3Dp`?hWccT@Cw" variabletype="">Số Lần Max Loss</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="OUto_lXZ`EhVkA|2SJec">
                    <field name="VAR" id="qkBG,#FnI(oMzM!b@DV*" variabletype="">Tiền Vào Lệnh</field>
                    <value name="VALUE">
                      <block type="variables_get" id="dl8r*6-|8K/@pn*8|rdO">
                        <field name="VAR" id="d!1L7#s;dc0;,c.9d2jC" variabletype="">Tiền Vào Lệnh Khi Win</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="2`A{WJ|.GD`~$nT?^ofn">
                        <field name="VAR" id="HX7APDe;Ssl6t~~bUEOF" variabletype="">Loss</field>
                        <value name="VALUE">
                          <block type="math_number" id="iX0YFsv%v_ZScoGHX)g0">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="notify" id="dWk5*SUS_F4prU5V|oR*">
                            <field name="NOTIFICATION_TYPE">warn</field>
                            <field name="NOTIFICATION_SOUND">job-done</field>
                            <value name="MESSAGE">
                              <shadow type="text" id="g`P;f~^v!zOc_9DL!lQ+">
                                <field name="TEXT">Cắt Gấp Lệnh</field>
                              </shadow>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="math_change" id="^}-SF?9Y65qEah4#o:qc">
                    <field name="VAR" id="qkBG,#FnI(oMzM!b@DV*" variabletype="">Tiền Vào Lệnh</field>
                    <value name="DELTA">
                      <shadow id="eQLX!homgWc0%tW_M]C[" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_arithmetic" id="_p*h4t]+5!GB~v`}eH0A">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow id="PuU{?eAPuKUg*FWY~7uy" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_single" id="w{Cb|rH:v%]wD2r7tu]C">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow id="Jy}UP+^sjjdx]O-M@2NJ" type="math_number">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="read_details" id="XSu%6pD|U$nhIT-00U`W">
                                <field name="DETAIL_INDEX">4</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="96)?LE]`n`!?Vw,JdSFE">
                            <field name="NUM">1.05</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="{Ir[sKM61Yy{7:2o89rC">
            <value name="IF0">
              <block type="logic_negate" id="IFBPt~X$a!3A%Os-,~mS">
                <value name="BOOL">
                  <block type="procedures_callreturn" id="gZMMYk}u}x^@!l4!jW6~">
                    <mutation name="is stop"></mutation>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="trade_again" id="@zYm7xv_1*f}CjR}xv~4"></block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>