﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="+Jd(zM6JLQ|glNZpL+8P">contador</variable>
    <variable type="" id="Jp[nn8c^MeV3@9CzRs]Q">Initial Amount</variable>
    <variable type="" id="D:{v45+,Ks`wWl6GtHj,">Max Acceptable Loss</variable>
    <variable type="" id="$c`.`@-?0(_M*n^l8pRP">Expected Profit</variable>
    <variable type="" id="?w*.fHQJ7$O}.3O}$*Z+">Win Amount</variable>
  </variables>
  <block type="trade" id="trade" x="0" y="0">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_25</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=";)`._)i(69d]ca5FdPOZ">
        <field name="VAR" id="+Jd(zM6JLQ|glNZpL+8P" variabletype="">contador</field>
        <value name="VALUE">
          <block type="math_number" id="D1ZHG54)5HW,|6bte_`@">
            <field name="NUM">0</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="v/O]iCQ}j[GiAK!S1!vk">
            <field name="VAR" id="D:{v45+,Ks`wWl6GtHj," variabletype="">Max Acceptable Loss</field>
            <value name="VALUE">
              <block type="math_number" id="^:bth~fukQ(H;qG~W,J9">
                <field name="NUM">1000</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="yuF[{UN_)/n/p_7|Bn{^">
                <field name="VAR" id="$c`.`@-?0(_M*n^l8pRP" variabletype="">Expected Profit</field>
                <value name="VALUE">
                  <block type="math_number" id="TNeUN!N2ai|Riu#T4Hs+">
                    <field name="NUM">10</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="kYN4z~^G*jW!tl[ag//|">
                    <field name="VAR" id="?w*.fHQJ7$O}.3O}$*Z+" variabletype="">Win Amount</field>
                    <value name="VALUE">
                      <block type="math_number" id="D.+RaH}/KM^=R_/i;Uj-">
                        <field name="NUM">0.35</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="!rE+(YJ?USv@e;5A6{3i">
                        <field name="VAR" id="Jp[nn8c^MeV3@9CzRs]Q" variabletype="">Initial Amount</field>
                        <value name="VALUE">
                          <block type="math_number" id="zBSG}Pb^V)cr2}S(Tt})">
                            <field name="NUM">0.35</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="NDif7y5R[Bwg#Pd)*@2%">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block type="math_number" id="E{wg9Uzbj#A5|*K4jYPN">
            <field name="NUM">5</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="variables_get" id="0?Q}sei*{a4`}f^PRB%]">
            <field name="VAR" id="Jp[nn8c^MeV3@9CzRs]Q" variabletype="">Initial Amount</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="finish" collapsed="true" x="740" y="-38">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="IXjzMcQZcdDd3n7,,:dR">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id=".tV9-1S^OyBs^[#.IOwC">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="notify" id="uHc(4S]c;*Z6b;)LGsR5">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="dVWvER8BQ0q`N2UIpjIo">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="Asktta7Jm6kHHrjc!I}p">
                    <field name="TEXT">Lucro:</field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="read_details" id="dNyHb`zWopmOp2]z/M{I">
                    <field name="DETAIL_INDEX">4</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="sz:*/;3FGv{_(@8`CsAN">
                <field name="VAR" id="Jp[nn8c^MeV3@9CzRs]Q" variabletype="">Initial Amount</field>
                <value name="VALUE">
                  <block type="variables_get" id="N+s2q0OtXoD?l5m)*yEC">
                    <field name="VAR" id="?w*.fHQJ7$O}.3O}$*Z+" variabletype="">Win Amount</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="notify" id="3e=nKHmT}R)kEkNwE44K">
            <field name="NOTIFICATION_TYPE">warn</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="+ihcjUv_-T3-JNIE/Qf#">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="OZW#yh+cQb3FF4-u#oq_">
                    <field name="TEXT">Perca: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="math_single" id="xoS[VZRN?!FYo0k(6f^L">
                    <field name="OP">ABS</field>
                    <value name="NUM">
                      <shadow type="math_number" id="GleSn`9j7Cm7/dqg}FIA">
                        <field name="NUM">9</field>
                      </shadow>
                      <block type="read_details" id="){wa^q*D#Y8}pX03-S,U">
                        <field name="DETAIL_INDEX">4</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="math_change" id="b.}/:AKk:!MkP9M]i]^L">
                <field name="VAR" id="Jp[nn8c^MeV3@9CzRs]Q" variabletype="">Initial Amount</field>
                <value name="DELTA">
                  <shadow type="math_number" id="N=Vo^MVz~/^(xt7Ag@8E">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="kwXPJjs[|E9{~lCyv^0I">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="ka8n8|Dugz,q5FkUjs`7">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_single" id="{{BEm2CxpR[vmDc8R%=!">
                        <field name="OP">ABS</field>
                        <value name="NUM">
                          <shadow type="math_number" id="GleSn`9j7Cm7/dqg}FIA">
                            <field name="NUM">9</field>
                          </shadow>
                          <block type="read_details" id="#pt~G|1(kk;gPZNzCmFF">
                            <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="1q||m4Da@z,?Qwp-:,~=">
                        <field name="NUM">1.2</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="notify" id="F!E.gsA%z7,B}ors))8*">
            <field name="NOTIFICATION_TYPE">info</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="W9TI44~3c3+I`K_6p^.M">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="D|DhSB{=+;}aRn_1ywy3">
                    <field name="TEXT">Lucro Total: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="total_profit" id="guYFpjWw}}fK)u9rR520"></block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="I:~j!7Go|dL~|1P(g[j^">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="contract_check_result" id="!9K.ck!pL?Iiij3gvW4G">
                    <field name="CHECK_RESULT">loss</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="math_change" id="K_~H:$A~%WmnPR#11ljl">
                    <field name="VAR" id="+Jd(zM6JLQ|glNZpL+8P" variabletype="">contador</field>
                    <value name="DELTA">
                      <shadow type="math_number" id="PZC;er29^mPi9;D5{Gl$">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="trade_again" id="uOlSmz[eyrcA##~{e)22"></block>
                    </next>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="trade_again" id="|g3nj`~wln`ttd,1;h,n"></block>
                </statement>
                <next>
                  <block type="controls_if" id="|wi(+1KpXz,BC.`!mUR)">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="X#rtD_I:^]253truBA9i">
                        <field name="OP">LT</field>
                        <value name="A">
                          <block type="total_profit" id="%l?%+gW7Wf%Ht;E86UE9"></block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="7;%_kjG(S(y}Y}K|yYmA">
                            <field name="VAR" id="$c`.`@-?0(_M*n^l8pRP" variabletype="">Expected Profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="controls_if" id="~A}Tn7=998po(%-Z9G/i">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_operation" id="/Zj6:Sh2HC}E5={Mz|dQ">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="math_number_property" id="8u4+N)Jsia1ueHZj)?0f">
                                <mutation divisor_input="false"></mutation>
                                <field name="PROPERTY">NEGATIVE</field>
                                <value name="NUMBER_TO_CHECK">
                                  <shadow type="math_number" id="otH_VG.6ad,:GnG=3=)5">
                                    <field name="NUM">0</field>
                                  </shadow>
                                  <block type="total_profit" id="e](;NpPt*dH-VjB97+#!"></block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="A[wua)LdE-eXJcBa{2Yj">
                                <field name="OP">GTE</field>
                                <value name="A">
                                  <block type="math_single" id="O|11X%J,DD:tzfT+6BXW">
                                    <field name="OP">ABS</field>
                                    <value name="NUM">
                                      <shadow type="math_number" id="(UBCH+RQSwYPbgf%@ANZ">
                                        <field name="NUM">9</field>
                                      </shadow>
                                      <block type="total_profit" id="NuCH#x3VEU}}7^|P96t`"></block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="WMJQ_hyS8o#3y@Bj89CI">
                                    <field name="VAR" id="D:{v45+,Ks`wWl6GtHj," variabletype="">Max Acceptable Loss</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="text_print" id="Wkf6pR9`=a{mijQRVuvs">
                            <value name="TEXT">
                              <shadow type="text" id="Nau%l+%*hH!#y2I#Q@%5">
                                <field name="TEXT">abc</field>
                              </shadow>
                              <block type="text" id="MoyQ.AxmX?i*C|oua3f!">
                                <field name="TEXT">Perca Total:</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <statement name="ELSE">
                          <block type="trade_again" id="sK}5;Fpy9Nk1Rg-:;jXE"></block>
                        </statement>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="text_print" id="_EBWv0o6mmneP1k,qm,c">
                        <value name="TEXT">
                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text_join" id="Gikz_{+PnB190]#QzjHx">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="RZ`{vrw!^U%//Gjrqtcy">
                                <field name="TEXT">Fim de Operações! Total de Lucro: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="total_profit" id="x34f6rZ~cULVD+?SXh]~"></block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" collapsed="true" x="736" y="38">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="HX$;],!W:Vk!-%:Gz59~">
        <value name="IF0">
          <block type="math_number_property" id="UKjVmL(UaCe;_nG=K:l4">
            <mutation divisor_input="false"></mutation>
            <field name="PROPERTY">ODD</field>
            <value name="NUMBER_TO_CHECK">
              <shadow type="math_number" id="HfMK@JME5YLq(7aNFmF=">
                <field name="NUM">0</field>
              </shadow>
              <block type="variables_get" id="$P!ZZgy1R))!962G*~,0">
                <field name="VAR" id="+Jd(zM6JLQ|glNZpL+8P" variabletype="">contador</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="purchase" id="`dJKjqY6z8M#+4j-od[M">
            <field name="PURCHASE_LIST">PUT</field>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="?MRt`~ynN6woD{Yh.b7|">
            <value name="IF0">
              <block type="math_number_property" id="obbsM=h:$x0%;vTN;6hV">
                <mutation divisor_input="false"></mutation>
                <field name="PROPERTY">EVEN</field>
                <value name="NUMBER_TO_CHECK">
                  <shadow type="math_number" id="HfMK@JME5YLq(7aNFmF=">
                    <field name="NUM">0</field>
                  </shadow>
                  <block type="variables_get" id="/Tk%6*`[TpqB,+@)C}8V">
                    <field name="VAR" id="+Jd(zM6JLQ|glNZpL+8P" variabletype="">contador</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="purchase" id="W6q#Z-I3q3d[d3-`S[dS">
                <field name="PURCHASE_LIST">CALL</field>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>