﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="i%-Xc(0J#mcYvRDLoL*C">Tiền Lãi Dừng Bot</variable>
    <variable type="" id="aEQ#VaSb2#j1zB0rY/*j">stop los</variable>
    <variable type="" id="L=mpJ?TO|(=o,,PpT`VR">cho lo</variable>
    <variable type="" id="c6b3d1D,(Ht4+5fAWhNu">Tiền Vào Lệnh</variable>
    <variable type="" id="3S7{k4m|vd$HcDOQ2p0^">Loss</variable>
    <variable type="" id="A+{pEXrql:205s$Rsf$Y">Tiền Vào Lệnh Khi Win</variable>
    <variable type="" id="DMt#M=yahWr-1!it`Xz}">Next Trade Condition</variable>
    <variable type="" id="@b#**.x.da{UCO%/]%/j">Số Lần Max Loss</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">digits</field>
    <field name="TRADETYPE_LIST">evenodd</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="i%-Xc(0J#mcYvRDLoL*C" 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="L=mpJ?TO|(=o,,PpT`VR" variabletype="">cho lo</field>
            <value name="VALUE">
              <block type="math_number" id=":O`SL8q$U*hl;R8|KTt=">
                <field name="NUM">100</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="Ab{/ZoTn4?m@CgEqzx3d">
                <field name="VAR" id="c6b3d1D,(Ht4+5fAWhNu" 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="A+{pEXrql:205s$Rsf$Y" 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="3S7{k4m|vd$HcDOQ2p0^" 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="@b#**.x.da{UCO%/]%/j" 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="aEQ#VaSb2#j1zB0rY/*j" 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="f8)0JkGVZx*qNGf1k@,|">
                                    <value name="IF0">
                                      <block type="logic_compare" id="KQ2T+#I]N+XZ!R)FGs![">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="text" id="mp]#pZmD6Qke3lLBzOE!">
                                            <field name="TEXT">So lan MaxLoss = So lan gap lenh sau Loss</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="text" id="6[RX/.R_tB=#h`D_Nj`p">
                                            <field name="TEXT">30_7_18_BOT ĐÁNH CHẴN NGHỈ KHI Win LOSS Ok</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </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">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
            <field name="NUM">5</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="variables_get" id="ggwP6Za$xbD]M.g^dvBv">
            <field name="VAR" id="c6b3d1D,(Ht4+5fAWhNu" variabletype="">Tiền Vào Lệnh</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="X[gun7Sx6Shn3kldC}mZ" x="0" y="695">
    <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="c6b3d1D,(Ht4+5fAWhNu" variabletype="">Tiền Vào Lệnh</field>
            <value name="VALUE">
              <block type="variables_get" id="ZwE~gjuXAq5S2}1/(Mki">
                <field name="VAR" id="A+{pEXrql:205s$Rsf$Y" 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="3S7{k4m|vd$HcDOQ2p0^" 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>
                    <next>
                      <block type="timeout" id="H?)%%iS+Z.I%}SW9RbjC">
                        <value name="SECONDS">
                          <shadow type="math_number" id="^|0=|jNO[@Bmo2$5cu;D">
                            <field name="NUM">5</field>
                          </shadow>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="!akPV%?vTC.zs7KIwix[">
            <field name="VAR" id="3S7{k4m|vd$HcDOQ2p0^" 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="3S7{k4m|vd$HcDOQ2p0^" 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="3S7{k4m|vd$HcDOQ2p0^" variabletype="">Loss</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="VuyGh?^(CiWA:URqMEok">
                        <field name="VAR" id="@b#**.x.da{UCO%/]%/j" 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="c6b3d1D,(Ht4+5fAWhNu" 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="A+{pEXrql:205s$Rsf$Y" 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="3S7{k4m|vd$HcDOQ2p0^" 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="c6b3d1D,(Ht4+5fAWhNu" 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>
                <next>
                  <block type="timeout" id="kE8K9ySGqgxBw4S}dly4">
                    <value name="SECONDS">
                      <shadow type="math_number" id="]V%JJav~E1(#Zc/FkvhA">
                        <field name="NUM">5</field>
                      </shadow>
                    </value>
                  </block>
                </next>
              </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>
  <block type="procedures_defreturn" id="%C{0jxjsK8cVaA+Rbk5!" x="0" y="1445">
    <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="i%-Xc(0J#mcYvRDLoL*C" 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="L=mpJ?TO|(=o,,PpT`VR" 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="aEQ#VaSb2#j1zB0rY/*j" 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="aEQ#VaSb2#j1zB0rY/*j" 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="aEQ#VaSb2#j1zB0rY/*j" 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="aEQ#VaSb2#j1zB0rY/*j" variabletype="">stop los</field>
      </block>
    </value>
  </block>
  <block type="before_purchase" id="strategy" x="0" y="1918">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="wo]EZZDH,clW1Q}HZ9gO">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="logic_compare" id="u?]A(_$nN02Gj@n%~wU)">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id=":uz6)hG(5G,y?7-mX.[y">
                <field name="VAR" id="DMt#M=yahWr-1!it`Xz}" variabletype="">Next Trade Condition</field>
              </block>
            </value>
            <value name="B">
              <block type="text" id="WwOr~o#TdSAG1Z`;~.45">
                <field name="TEXT">Even</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="purchase" id="kVXG]9Jpa0n[g!Uh=q)L">
            <field name="PURCHASE_LIST">DIGITEVEN</field>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="purchase" id="4isGw+hhQxM)g?*nw/vB">
            <field name="PURCHASE_LIST">DIGITEVEN</field>
          </block>
        </statement>
      </block>
    </statement>
  </block>
</xml>