﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="%q?BvILPurUX-1Z3|T.%">Next</variable>
    <variable type="" id="1+?$h`hjNP,-P:4kZmXi">High</variable>
    <variable type="" id="1cS:l.wU@Dd`nWfIxrV%">Max Acceptable Loss</variable>
    <variable type="" id="-_pHkP9=(*1Ph^yf_)-K">Low</variable>
    <variable type="" id=".q$4z*}X-LpC@soouMDE">Expected Profit</variable>
    <variable type="" id="`sSe%5yO~*DN!)eQe*cs">Initial Amount</variable>
    <variable type="" id="SP/:xsnFi$5vB`#|$n5O">Win Amount</variable>
  </variables>
  <block type="trade" id="trade" x="-4" y="-144">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_10</field>
    <field name="TRADETYPECAT_LIST">touchnotouch</field>
    <field name="TRADETYPE_LIST">touchnotouch</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="E)N{E(NmY48Rx{S*%-$2">
        <field name="VAR" id="%q?BvILPurUX-1Z3|T.%" variabletype="">Next</field>
        <value name="VALUE">
          <block type="text" id="AsuRHO~]$hd)a#hY:#K]">
            <field name="TEXT">High</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="UHbM..aM}w@BeGUT:u[F">
            <field name="VAR" id="1cS:l.wU@Dd`nWfIxrV%" variabletype="">Max Acceptable Loss</field>
            <value name="VALUE">
              <block type="math_number" id="HFH,,@6N(+SE]MUU)MC)">
                <field name="NUM">25</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="P4VwO%9`ub#}!|?:Jzgg">
                <field name="VAR" id=".q$4z*}X-LpC@soouMDE" variabletype="">Expected Profit</field>
                <value name="VALUE">
                  <block type="math_number" id="l9zECia#*P(CYpP,e`JO">
                    <field name="NUM">35</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="dyZV*+tc*@[acK!jCEH`">
                    <field name="VAR" id="SP/:xsnFi$5vB`#|$n5O" variabletype="">Win Amount</field>
                    <value name="VALUE">
                      <block type="math_number" id="NRTi#47*ai}{!#QMJ=+v">
                        <field name="NUM">0.35</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="jE=TS?ooJFBN4f.wswuf">
                        <field name="VAR" id="`sSe%5yO~*DN!)eQe*cs" variabletype="">Initial Amount</field>
                        <value name="VALUE">
                          <block type="math_number" id="1llhm%F3?N*?$ch%_wwO">
                            <field name="NUM">0.35</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="controls_if" id="!$7|r;kA-e:HN%eXKva0" collapsed="true">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="4wOWd1s,8As+|t5)CU`:">
            <field name="VAR" id="1+?$h`hjNP,-P:4kZmXi" variabletype="">High</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="tradeOptions" id="FEoNf4=6tdV_$P)U?h:M">
            <field name="DURATIONTYPE_LIST">t</field>
            <field name="CURRENCY_LIST">USD</field>
            <field name="BARRIEROFFSETTYPE_LIST">-</field>
            <value name="DURATION">
              <block type="math_number" id="y9,|m3Y|4^*8z1@g5{bk">
                <field name="NUM">5</field>
              </block>
            </value>
            <value name="AMOUNT">
              <block type="variables_get" id="7nzOAJqEn6)+OAYI30hM">
                <field name="VAR" id="`sSe%5yO~*DN!)eQe*cs" variabletype="">Initial Amount</field>
              </block>
            </value>
            <value name="BARRIEROFFSET">
              <block type="math_number" id="Cc(bLDH[4[~He$8wv6(Q">
                <field name="NUM">0.085</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="tradeOptions" id="rw9P*y|OVX.a.QRgK^4c">
            <field name="DURATIONTYPE_LIST">t</field>
            <field name="CURRENCY_LIST">USD</field>
            <field name="BARRIEROFFSETTYPE_LIST">+</field>
            <value name="DURATION">
              <block type="math_number" id="?(mmO9M_).,9WBMo#FyD">
                <field name="NUM">5</field>
              </block>
            </value>
            <value name="AMOUNT">
              <block type="variables_get" id="+s[Q:CqgoR-oOnUtbV5$">
                <field name="VAR" id="`sSe%5yO~*DN!)eQe*cs" variabletype="">Initial Amount</field>
              </block>
            </value>
            <value name="BARRIEROFFSET">
              <block type="math_number" id="i2Xe8VWN2HL[{7F9L*?@">
                <field name="NUM">0.085</field>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="strategy" x="2" y="393">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="variables_set" id="#[o5vPC;B6=qlRFK4h!h" collapsed="true">
        <field name="VAR" id="1+?$h`hjNP,-P:4kZmXi" variabletype="">High</field>
        <value name="VALUE">
          <block type="logic_compare" id="sG(Z.E`(%I/l~8hU-0%r">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="read_ohlc" id="1t%%(qsL?@yr+|S%{vjb">
                <field name="OHLCFIELD_LIST">close</field>
                <field name="CANDLEINTERVAL_LIST">default</field>
                <value name="CANDLEINDEX">
                  <shadow type="math_number" id="(zzf-LP.,-!L]Ak]hGC~">
                    <field name="NUM">1</field>
                  </shadow>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="read_ohlc" id="l!X#d!|A_wCCW$^dNG?,">
                <field name="OHLCFIELD_LIST">high</field>
                <field name="CANDLEINTERVAL_LIST">default</field>
                <value name="CANDLEINDEX">
                  <shadow type="math_number" id="E)QfTKzk[qFhqk)6k/a_">
                    <field name="NUM">1</field>
                  </shadow>
                </value>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="`kqz.f~J?9HsX@?ZlJHa" collapsed="true">
            <field name="VAR" id="-_pHkP9=(*1Ph^yf_)-K" variabletype="">Low</field>
            <value name="VALUE">
              <block type="logic_compare" id="G?PkFHWoRzso8`$r@raw">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="read_ohlc" id="9ty8L:l3{dM?u*|~x:AX">
                    <field name="OHLCFIELD_LIST">close</field>
                    <field name="CANDLEINTERVAL_LIST">default</field>
                    <value name="CANDLEINDEX">
                      <shadow type="math_number" id="5=e18kBp2XkN=xo([uHZ">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="read_ohlc" id="PIzwHO4Fh!1fE)_2-`3}">
                    <field name="OHLCFIELD_LIST">low</field>
                    <field name="CANDLEINTERVAL_LIST">default</field>
                    <value name="CANDLEINDEX">
                      <shadow type="math_number" id="V~NjSAek6*6.}vxa6qf.">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="qU#qso=_KS7A!/MDJHF1">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="Z+lBgNMsH{d^GCs;o+*S">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="=k2Sp762b-[+F}6QzOzi">
                        <field name="VAR" id="%q?BvILPurUX-1Z3|T.%" variabletype="">Next</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="text" id="O#tWj_Ed=#8K|S*`]PAN">
                        <field name="TEXT">High</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="vKWaZEMWL1j1Q}W7HZpo" collapsed="true">
                    <value name="IF0">
                      <block type="variables_get" id="39rQea3nbYz--O$;|G%+">
                        <field name="VAR" id="1+?$h`hjNP,-P:4kZmXi" variabletype="">High</field>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="notify" id="9NzHoTQg_;{^kmYEVDRR" collapsed="true">
                        <field name="NOTIFICATION_TYPE">success</field>
                        <field name="NOTIFICATION_SOUND">announcement</field>
                        <value name="MESSAGE">
                          <shadow type="text" id="=KoQ;NQ;m,xqER{sy-Q[">
                            <field name="TEXT">High Tick</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="purchase" id=",wO3ZIyvpQSw)rSq`P`|">
                            <field name="PURCHASE_LIST">ONETOUCH</field>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="controls_if" id="aOu4RcnZT-t.a^+Uc0i|" collapsed="true">
                    <value name="IF0">
                      <block type="variables_get" id="mRs`c3I00#]N;YUlqq,I">
                        <field name="VAR" id="-_pHkP9=(*1Ph^yf_)-K" variabletype="">Low</field>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="notify" id="os4ub:sOHOkVp#Qy6RgZ" collapsed="true">
                        <field name="NOTIFICATION_TYPE">error</field>
                        <field name="NOTIFICATION_SOUND">announcement</field>
                        <value name="MESSAGE">
                          <shadow type="text" id="y-.t[K7idPdCl]#]Lo*!">
                            <field name="TEXT">Low Tick</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="purchase" id="J%KpQ,2{fxtIWUbG2|Gv">
                            <field name="PURCHASE_LIST">ONETOUCH</field>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="during_purchase" id="(4;NieXd}j|Bn!c-YiC|" x="2" y="673">
    <statement name="DURING_PURCHASE_STACK">
      <block type="controls_if" id="8?eYKAW%VczmRXQ-ou3r">
        <value name="IF0">
          <block type="check_sell" id="M=:_KpEeRAJY_}XTU^8~"></block>
        </value>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="finish" x="5" y="835">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="`B9]s{TClp1*uKm8h0[O">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="rEzKK;#|elm3%hwm89id">
            <field name="CHECK_RESULT">loss</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="notify" id="lToYjVh@C.!r{*;wLjt!">
            <field name="NOTIFICATION_TYPE">error</field>
            <field name="NOTIFICATION_SOUND">error</field>
            <value name="MESSAGE">
              <block type="text_join" id="TLH#c#JuF$,edigN~a,;">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="D8+W!1Lf#si]Pg:kKA?A">
                    <field name="TEXT">Loss:  </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="read_details" id="Y~A}hQ(k6YyyvwNV9#$z">
                    <field name="DETAIL_INDEX">4</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="math_change" id="1C4WFTY/S0tnMJrhdZWc">
                <field name="VAR" id="`sSe%5yO~*DN!)eQe*cs" variabletype="">Initial Amount</field>
                <value name="DELTA">
                  <shadow id="N=Vo^MVz~/^(xt7Ag@8E" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="idr?Ro2Yu1zb76kabZ8A">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow id="ka8n8|Dugz,q5FkUjs`7" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_single" id="=ZI54~1A=UG8{:?zh=Et">
                        <field name="OP">ABS</field>
                        <value name="NUM">
                          <shadow id="GleSn`9j7Cm7/dqg}FIA" type="math_number">
                            <field name="NUM">9</field>
                          </shadow>
                          <block type="read_details" id="f)dcUCmRqtT5{gWv{M1/">
                            <field name="DETAIL_INDEX">4</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="{JXdZCp2%s=sfO@yN:n}">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_number" id="T[[@{_(1?qAlRsCm_OF9">
                        <field name="NUM">2.5</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="R]qEkuMo[PeRj.|/}FhD">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="[Y$j_`[3k3iaAS0a2-Mh">
                        <field name="OP">NEQ</field>
                        <value name="A">
                          <block type="variables_get" id="aqlL/r3rkdny]:VI^hPg">
                            <field name="VAR" id="%q?BvILPurUX-1Z3|T.%" variabletype="">Next</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="text" id="Zq1jB/#=z@mtgR|b;]TI">
                            <field name="TEXT">High</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="H0u=4QuvA7Ck{m-xKqVT">
                        <field name="VAR" id="%q?BvILPurUX-1Z3|T.%" variabletype="">Next</field>
                        <value name="VALUE">
                          <block type="text" id="Wl(izqhvcyDDeGG8y]Q=">
                            <field name="TEXT">High</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="variables_set" id="BuQahbA7M$E`JEax*TfK">
                        <field name="VAR" id="%q?BvILPurUX-1Z3|T.%" variabletype="">Next</field>
                        <value name="VALUE">
                          <block type="text" id="YSDst9W,5u/}T7Y+!km`">
                            <field name="TEXT">Low</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="notify" id="T/]h.Kl)tI=3pW]5`e7.">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">earned-money</field>
            <value name="MESSAGE">
              <block type="text_join" id="vyF$.lsVb:Vyh=bszoN?">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id=",7u.}Ih6I.JQwZ~C-pzR">
                    <field name="TEXT">Profit: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="math_single" id="ILjqcMdG:PjkoLeIlhDD">
                    <field name="OP">ABS</field>
                    <value name="NUM">
                      <shadow id="GleSn`9j7Cm7/dqg}FIA" type="math_number">
                        <field name="NUM">9</field>
                      </shadow>
                      <block type="read_details" id="b~Rkc1IA=A]MFD|x1+|A">
                        <field name="DETAIL_INDEX">4</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="V]BvK^j3{r9r*fd8LJ/%">
                <field name="VAR" id="`sSe%5yO~*DN!)eQe*cs" variabletype="">Initial Amount</field>
                <value name="VALUE">
                  <block type="variables_get" id="mn{z|e[zGDrFVZ/,aEF}">
                    <field name="VAR" id="SP/:xsnFi$5vB`#|$n5O" variabletype="">Win Amount</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="notify" id="jqtqq%8EV{w?[%[hAl8K">
            <field name="NOTIFICATION_TYPE">info</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="C`v-o;eI-F0lx[kI[d@=">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="gHX]4-3[;aU;nft#`*y:">
                    <field name="TEXT">Total Profit: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="total_profit" id="1qsU.~gXA$4YcS/FWd=Y"></block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id=".yAfxZz%M[+3*Fd=R)=M">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="]2`@pj.Q`qCA1n5Yw|2Q">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="total_profit" id="3#mxU/b~yj)/B}cW1pf|"></block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="sBQc:L:@L5HOpx6F=l{y">
                        <field name="VAR" id=".q$4z*}X-LpC@soouMDE" variabletype="">Expected Profit</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="^l1azJHKQ$orJ-q]lG0Q">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_operation" id="h8v_zq%rg77(5OK2$)^[">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="math_number_property" id="#A4?Z6#|{3DN(?XsZh@F">
                            <mutation divisor_input="false"></mutation>
                            <field name="PROPERTY">NEGATIVE</field>
                            <value name="NUMBER_TO_CHECK">
                              <shadow id="otH_VG.6ad,:GnG=3=)5" type="math_number">
                                <field name="NUM">0</field>
                              </shadow>
                              <block type="total_profit" id="kylMakAh08%mw:*nPaau"></block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="1*XklJatRfP`}k+HifCm">
                            <field name="OP">GTE</field>
                            <value name="A">
                              <block type="math_single" id=")c#_,HP;A8a~GVrD,Iwe">
                                <field name="OP">ABS</field>
                                <value name="NUM">
                                  <shadow id="(UBCH+RQSwYPbgf%@ANZ" type="math_number">
                                    <field name="NUM">9</field>
                                  </shadow>
                                  <block type="total_profit" id="Tg(#~RUo1/W.`)1Xwu~#"></block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="/t[^=+u0i2Xm~Ij{NZwv">
                                <field name="VAR" id="1cS:l.wU@Dd`nWfIxrV%" variabletype="">Max Acceptable Loss</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="text_print" id="S84|^~ejd~*byDCJ?*jt">
                        <value name="TEXT">
                          <shadow id="Nau%l+%*hH!#y2I#Q@%5" type="text">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text" id="*$)}hFOMKc#Q3q(R8c:N">
                            <field name="TEXT">Max Acceptable Loss Reached</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="trade_again" id=";xc0RFP.I}X3~me9hBg+"></block>
                    </statement>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="text_print" id="-e/Xlr?f`NIR]F.tWW0l">
                    <value name="TEXT">
                      <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text_join" id="78zEFur}Qx??GXjak-Z-">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="$]oX6-Opz56KO_yU*3dY">
                            <field name="TEXT">Done! Total profit: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="total_profit" id="sBvouo.nD;(6gaU5C7wM"></block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>