﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="7v{b?A4.f%8!px,=Fp]Q">Expected Profit</variable>
    <variable type="" id="+B7Ib@U%1$}5J=jsUQat">_loss</variable>
    <variable type="" id="?FSdkSsXDfldac}{,X?:">Win Amount</variable>
    <variable type="" id="rOWLMvHLXI;^UisX4uyF">Initial Amount</variable>
    <variable type="" id="2o;1$d%nfVgz%:]$dIaL">_perda</variable>
    <variable type="" id="IP*)26y{1:64f/KG]Jw[">_lossMax</variable>
    <variable type="" id="6~Y1v3{sM)j@ly=qLne7">_perdaMax</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_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="=X3k6GZ)kFy!-k5B`U6G">
        <field name="VAR" id="7v{b?A4.f%8!px,=Fp]Q" variabletype="">Expected Profit</field>
        <value name="VALUE">
          <block type="math_number" id="WNwLkIa|=hnoMV2~Dl,T">
            <field name="NUM">1000</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="J$[,xNV1GvH;+*8S**Zo">
            <field name="VAR" id="?FSdkSsXDfldac}{,X?:" variabletype="">Win Amount</field>
            <value name="VALUE">
              <block type="math_number" id="`*=H~O6+;NzOT).xySQK">
                <field name="NUM">10</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="^77NQ`7AoteeU!*Zg/rP">
                <field name="VAR" id="rOWLMvHLXI;^UisX4uyF" variabletype="">Initial Amount</field>
                <value name="VALUE">
                  <block type="math_number" id=";s%(^fK{.(9{v`gS;;e#">
                    <field name="NUM">10</field>
                  </block>
                </value>
                <next>
                  <block type="procedures_callnoreturn" id="~%e.SSDczu6j21EZLJ6,">
                    <mutation name="Inicializa variaveis"></mutation>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="m{j;dYKB8$wFg=9yv)+.">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <field name="BARRIEROFFSETTYPE_LIST">+</field>
        <field name="SECONDBARRIEROFFSETTYPE_LIST">-</field>
        <value name="DURATION">
          <block type="math_number" id="Bj/C!TkFbQ~/2Bf/|co#">
            <field name="NUM">2</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="variables_get" id="-sRUZY`~p8.]NwhJJIv~">
            <field name="VAR" id="rOWLMvHLXI;^UisX4uyF" variabletype="">Initial Amount</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="procedures_defnoreturn" id="g[DR?3IfH`]G^(JX4vsU" collapsed="true" x="0" y="510">
    <field name="NAME">Inicializa variaveis</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="Fh%Ld`tg)4t3nmYQ-K.W">
        <field name="VAR" id="+B7Ib@U%1$}5J=jsUQat" variabletype="">_loss</field>
        <value name="VALUE">
          <block type="math_number" id="RtG9v,1[TG}btEWxYsI]">
            <field name="NUM">0</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="f5K4wuPfKp,yehoM!x5V">
            <field name="VAR" id="2o;1$d%nfVgz%:]$dIaL" variabletype="">_perda</field>
            <value name="VALUE">
              <block type="math_number" id="?$%gH9b+[Z1;n0JIe8VI">
                <field name="NUM">0</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="8R}}}Vpxo=5kw73{HnZU">
                <field name="VAR" id="IP*)26y{1:64f/KG]Jw[" variabletype="">_lossMax</field>
                <value name="VALUE">
                  <block type="math_number" id="((F!_535sq8RvlP(}WzV">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="4M42ixP@;dc.=KqQ_e,W">
                    <field name="VAR" id="6~Y1v3{sM)j@ly=qLne7" variabletype="">_perdaMax</field>
                    <value name="VALUE">
                      <block type="math_number" id="$.i))|p^rtVwxrTb*T(`">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="finish" x="0" y="563">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="p6AvS}#WBH;ul*1y(%6G">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="M{icJMtAb@^wJB_Zrx?u">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="notify" id=";C*07b^*LdQEez{$drn5">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="OkXWJ,+)(TsQ5k[jQvjr">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="Yo1)GAPuS3Xx/TyG!f!.">
                    <field name="TEXT">Won:</field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="read_details" id="tn9cH5_Z=iZ%L.rkUb^A">
                    <field name="DETAIL_INDEX">4</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="RYma_Sn-sq1=gWvWWRC;">
                <field name="VAR" id="rOWLMvHLXI;^UisX4uyF" variabletype="">Initial Amount</field>
                <value name="VALUE">
                  <block type="variables_get" id="d8Ox!2`e|K?bN^L(a{:Z">
                    <field name="VAR" id="?FSdkSsXDfldac}{,X?:" variabletype="">Win Amount</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="L6mD)A9di[g2sILg@/[(">
                    <field name="VAR" id="+B7Ib@U%1$}5J=jsUQat" variabletype="">_loss</field>
                    <value name="VALUE">
                      <block type="math_number" id="3.GT(^HpsdyO6M/#fpEL">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="v7]x3^APduJ)6JBTE/7I">
                        <field name="VAR" id="2o;1$d%nfVgz%:]$dIaL" variabletype="">_perda</field>
                        <value name="VALUE">
                          <block type="math_number" id="k:ph)|6cjTV{b`(ByT6T">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="notify" id="=cyp#zhF8a%3R*^AV4Z1">
            <field name="NOTIFICATION_TYPE">warn</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="/?n26{AaqXzRQ8Hs?uH_">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="E.y#AA{w(5uBRbfJ$c|_">
                    <field name="TEXT">Lost: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="math_single" id="_ySv+V{!DBj:al5|i*u-">
                    <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="IK|(J;R~^9i^ed;{7d0Y">
                        <field name="DETAIL_INDEX">4</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="math_change" id="k#+R5uuzk_qVO-j)ge_X">
                <field name="VAR" id="rOWLMvHLXI;^UisX4uyF" variabletype="">Initial Amount</field>
                <value name="DELTA">
                  <shadow type="math_number" id="N=Vo^MVz~/^(xt7Ag@8E">
                    <field name="NUM">2</field>
                  </shadow>
                  <block type="math_arithmetic" id=":!~{iozS7#@tI%e4U+RR">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="ka8n8|Dugz,q5FkUjs`7">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="{JXdZCp2%s=sfO@yN:n}">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_single" id="f0D2+/[Nn.V2J`cO3@sf">
                        <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="Yc-b1A_(!]2b8Yi#91nE">
                            <field name="DETAIL_INDEX">4</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="math_change" id="Y,P($PamA#h0Y_IM6:7A">
                    <field name="VAR" id="+B7Ib@U%1$}5J=jsUQat" variabletype="">_loss</field>
                    <value name="DELTA">
                      <shadow type="math_number" id="_6kYLRPjrU)LlLd3y!*=">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_number" id="zUP,^.8tc|s8}Bi7xvzU">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                    <next>
                      <block type="math_change" id="PUee]I:tttKp5SqO[s8g">
                        <field name="VAR" id="2o;1$d%nfVgz%:]$dIaL" variabletype="">_perda</field>
                        <value name="DELTA">
                          <shadow type="math_number" id="_6kYLRPjrU)LlLd3y!*=">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_single" id="wsqw/DVCHja%W1SF=Cf$">
                            <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="g*5xwS0+l,pld||2fVX(">
                                <field name="DETAIL_INDEX">4</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="controls_if" id=":OPMu3-T=!/Y(A,iBGp#">
            <value name="IF0">
              <block type="logic_compare" id="$i[P9^@q@hr3xcR}Nw7z">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="variables_get" id="BL#wZRj{Tv{(5(NPQn|H">
                    <field name="VAR" id="+B7Ib@U%1$}5J=jsUQat" variabletype="">_loss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="variables_get" id="W=bPj!J?M}n7CGFOOLHf">
                    <field name="VAR" id="IP*)26y{1:64f/KG]Jw[" variabletype="">_lossMax</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="1l~fZ0?`L_sA:M94ElzG">
                <field name="VAR" id="IP*)26y{1:64f/KG]Jw[" variabletype="">_lossMax</field>
                <value name="VALUE">
                  <block type="variables_get" id="u)Bif_9#,D/UCFzKwaY8">
                    <field name="VAR" id="+B7Ib@U%1$}5J=jsUQat" variabletype="">_loss</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="5Cz/qB(Lxbew3^?-PMbc">
                <value name="IF0">
                  <block type="logic_compare" id="N~MaOeXpwpYT=}6HzT=@">
                    <field name="OP">GT</field>
                    <value name="A">
                      <block type="variables_get" id="-2BIqX#t;}Jb,76KoQs4">
                        <field name="VAR" id="2o;1$d%nfVgz%:]$dIaL" variabletype="">_perda</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="6TM+7-V-V5+it6t,yKvX">
                        <field name="VAR" id="6~Y1v3{sM)j@ly=qLne7" variabletype="">_perdaMax</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="rspnw%bB!D(KA@8gM=^/">
                    <field name="VAR" id="6~Y1v3{sM)j@ly=qLne7" variabletype="">_perdaMax</field>
                    <value name="VALUE">
                      <block type="variables_get" id="#pwhrc*gi5Q+IOy}2E?7">
                        <field name="VAR" id="2o;1$d%nfVgz%:]$dIaL" variabletype="">_perda</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="notify" id=".X4DIonfdK?-U.Z9dbkL">
                    <field name="NOTIFICATION_TYPE">info</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="i9@Epy[x4B.HMAiar=vm">
                        <mutation items="6"></mutation>
                        <value name="ADD0">
                          <block type="text" id="uf=bfki7edRabv`j$f-X">
                            <field name="TEXT">Total Profit: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="total_profit" id="kC5p-Ut6*2ZPN(n/$WXg"></block>
                        </value>
                        <value name="ADD2">
                          <block type="text" id="dec.%9RwrUQ%s!|f6U)[">
                            <field name="TEXT"> | Loss Max: </field>
                          </block>
                        </value>
                        <value name="ADD3">
                          <block type="variables_get" id="q^:}m8CB0O8`z9+c4F(P">
                            <field name="VAR" id="IP*)26y{1:64f/KG]Jw[" variabletype="">_lossMax</field>
                          </block>
                        </value>
                        <value name="ADD4">
                          <block type="text" id="i`_}3BFUq1+?J*2^}C=+">
                            <field name="TEXT"> | Perda Max: </field>
                          </block>
                        </value>
                        <value name="ADD5">
                          <block type="variables_get" id="Hq%L[Ew1$WTz{0k2C6xF">
                            <field name="VAR" id="6~Y1v3{sM)j@ly=qLne7" variabletype="">_perdaMax</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="controls_if" id="[t9`*_Ei!T^EL`Nrk}rv">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="jL5{3u/1/r~IkhbpF7W(">
                            <field name="OP">LT</field>
                            <value name="A">
                              <block type="total_profit" id="H92J-Olsm+mj$t!`?x?1"></block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="}4)07Vp#;q=duj7jC/3^">
                                <field name="VAR" id="7v{b?A4.f%8!px,=Fp]Q" variabletype="">Expected Profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="trade_again" id="1nz!_}8S38KB,rApcU7m"></block>
                        </statement>
                        <statement name="ELSE">
                          <block type="text_print" id="{^/d?1TRlUKs5i2#S!{U">
                            <value name="TEXT">
                              <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                <field name="TEXT">abc</field>
                              </shadow>
                              <block type="text_join" id="FEmKQeku)J6/,TBx/vLC">
                                <mutation items="2"></mutation>
                                <value name="ADD0">
                                  <block type="text" id="!Wj@GkoNx9!~rrJc1#Ol">
                                    <field name="TEXT">Done! Total profit: </field>
                                  </block>
                                </value>
                                <value name="ADD1">
                                  <block type="total_profit" id="}t3l=c+PF![q.fi|/^Ke"></block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="during_purchase" id="(4;NieXd}j|Bn!c-YiC|" x="0" y="1453">
    <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="before_purchase" id="strategy" x="0" y="1593">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="purchase" id="~E80vy4DpU70Y,RCWX6)">
        <field name="PURCHASE_LIST">DIGITEVEN</field>
      </block>
    </statement>
  </block>
</xml>