﻿<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="e-edr,3}_],j7oSofy%c">SMMA 30</variable>
    <variable type="" id="?FSdkSsXDfldac}{,X?:">Win Amount</variable>
    <variable type="" id="rOWLMvHLXI;^UisX4uyF">Initial Amount</variable>
    <variable type="" id="o$+!z@YDUnoUTB1bXF)*">RSI</variable>
    <variable type="" id="[c!Htt)9L^zObC|QA^PI">Vela atual</variable>
    <variable type="" id="-/vA6T3o-DWbG5sKD@/6">vela de alta</variable>
    <variable type="" id="11PF+3U8BMvjbPzzzv5*">vela de baixa</variable>
  </variables>
  <block type="trade" id="trade" collapsed="true" x="-475" y="-248">
    <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="=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">100</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">0.35</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">0.35</field>
                  </block>
                </value>
              </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>
        <value name="DURATION">
          <block type="math_number" id="Bj/C!TkFbQ~/2Bf/|co#">
            <field name="NUM">5</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="during_purchase" id="(4;NieXd}j|Bn!c-YiC|" collapsed="true" x="-217" y="-253">
    <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="i-CIx.(Onm4?ihxzA}Y]" x="35" y="-252">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="variables_set" id="m?IwLOmYA-ldJ0p9F##c" collapsed="true">
        <field name="VAR" id="e-edr,3}_],j7oSofy%c" variabletype="">SMMA 30</field>
        <value name="VALUE">
          <block type="sma" id="KF-W{[}kuSS8ScXF)4d{">
            <value name="INPUT">
              <block type="ohlc_values" id="EmtW;eY7?u#f49nctl[j">
                <field name="OHLCFIELD_LIST">close</field>
                <field name="CANDLEINTERVAL_LIST">default</field>
              </block>
            </value>
            <value name="PERIOD">
              <shadow type="math_number" id="e9I#y.3^fc1w7PuhBo[A">
                <field name="NUM">10</field>
              </shadow>
              <block type="math_number" id=";kU3BVeO|u?beBVp$1mF">
                <field name="NUM">30</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="B1Nx{[ly2ZPp+X`OU1qw" collapsed="true">
            <field name="VAR" id="o$+!z@YDUnoUTB1bXF)*" variabletype="">RSI</field>
            <value name="VALUE">
              <block type="rsi" id=")|#/.~j%+^@a`@)v6WeI">
                <value name="INPUT">
                  <block type="ohlc_values" id="Ztf9*r5Z80]|4Y%~3@E]">
                    <field name="OHLCFIELD_LIST">close</field>
                    <field name="CANDLEINTERVAL_LIST">default</field>
                  </block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="_EsZ%K8^G($W@?n}I?A.">
                    <field name="NUM">7</field>
                  </shadow>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="PxXkEOntl*kD8Fc]|wkp" collapsed="true">
                <field name="VAR" id="[c!Htt)9L^zObC|QA^PI" variabletype="">Vela atual</field>
                <value name="VALUE">
                  <block type="read_ohlc" id="w/mh~^BptNNCK((DFJ)u">
                    <field name="OHLCFIELD_LIST">close</field>
                    <field name="CANDLEINTERVAL_LIST">default</field>
                    <value name="CANDLEINDEX">
                      <shadow type="math_number" id=";{O{:aC9bAQ5-j1l~HKt">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_number" id="+TsPoDw.X]_v6L.TLy;E">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="lE%Rg$/j]=O$6@vq#qb:" collapsed="true">
                    <field name="VAR" id="-/vA6T3o-DWbG5sKD@/6" variabletype="">vela de alta</field>
                    <value name="VALUE">
                      <block type="logic_negate" id="PZuv0jfHjiPN457Y;236">
                        <value name="BOOL">
                          <block type="is_candle_black" id="8s81pb3Ugt=]+^/%(=8[">
                            <value name="OHLCOBJ">
                              <block type="get_ohlc" id="=7tUZ;1jCZC;5Fep8T~N">
                                <field name="CANDLEINTERVAL_LIST">default</field>
                                <value name="CANDLEINDEX">
                                  <shadow type="math_number" id="G0]s,IC?/L/T:J=l^*Gw">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="math_number" id="{RY^B(iD`S=?B_K=uV*y">
                                    <field name="NUM">1</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="HE;Ir,~WW,:/p7}TnP0m" collapsed="true">
                        <field name="VAR" id="11PF+3U8BMvjbPzzzv5*" variabletype="">vela de baixa</field>
                        <value name="VALUE">
                          <block type="is_candle_black" id="e${etA{.euRmh2^n*ddU">
                            <value name="OHLCOBJ">
                              <block type="get_ohlc" id=",,Pyz,=/OlCNwY{~ZLL@">
                                <field name="CANDLEINTERVAL_LIST">default</field>
                                <value name="CANDLEINDEX">
                                  <shadow type="math_number" id="yT?tp+~s$j19;@%:)I)7">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="math_number" id="s?r`qHi1`R=vZ5pF`$.Q">
                                    <field name="NUM">1</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="controls_if" id="NQa4VD=_EXc4v+uI/*aX">
                            <value name="IF0">
                              <block type="logic_compare" id="sjfLJQ%aTATYF9Ya{KPF">
                                <field name="OP">GT</field>
                                <value name="A">
                                  <block type="variables_get" id="lC;/]mI1Q|g;02j#b)iR">
                                    <field name="VAR" id="[c!Htt)9L^zObC|QA^PI" variabletype="">Vela atual</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="dE%p[*pD`!R@M{j-SJjJ">
                                    <field name="VAR" id="e-edr,3}_],j7oSofy%c" variabletype="">SMMA 30</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="controls_if" id="0U9Z/?Pxd!vK[GY}h`!w">
                                <value name="IF0">
                                  <block type="logic_operation" id=";HOkKX.8*gQpK#5hUT-V">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="liL.7JO]_iRJ5}X$$8Bk">
                                        <field name="OP">LTE</field>
                                        <value name="A">
                                          <block type="variables_get" id="teQwng(^JyrwNC:T2YGw">
                                            <field name="VAR" id="o$+!z@YDUnoUTB1bXF)*" variabletype="">RSI</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="m6I4OUEL}PLjB?cA}vh%">
                                            <field name="NUM">65</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="Y=+ix!hTQRLHeQk{*6)K">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="tAAZ0Y%JK:QYfIQ^7OXa">
                                            <field name="VAR" id="o$+!z@YDUnoUTB1bXF)*" variabletype="">RSI</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="3f$Inr:CcRjqeF/jE)YO">
                                            <field name="NUM">60</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="6Tt|F*.,pK%=Cmy/*j+n">
                                    <value name="IF0">
                                      <block type="logic_compare" id="+C{Fi#E;zG=XELYcS01Q">
                                        <field name="OP">NEQ</field>
                                        <value name="A">
                                          <block type="variables_get" id="W]H.m+?sor;N@8R8Av%=">
                                            <field name="VAR" id="[c!Htt)9L^zObC|QA^PI" variabletype="">Vela atual</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="U5__VN_m[c3s)h-f;Sh=">
                                            <field name="VAR" id="11PF+3U8BMvjbPzzzv5*" variabletype="">vela de baixa</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="purchase" id="_|oZC+n71Sx,`anX;FQW">
                                        <field name="PURCHASE_LIST">CALL</field>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="hqSeOkMa~CPm{IpQBYhi">
                                <value name="IF0">
                                  <block type="logic_compare" id="GT5V{4y4B}``;8IVm2Jj">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="0sDtoo3`{kCpzitE@AHA">
                                        <field name="VAR" id="[c!Htt)9L^zObC|QA^PI" variabletype="">Vela atual</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="bk=d969~B[MHs#41/NFv">
                                        <field name="VAR" id="e-edr,3}_],j7oSofy%c" variabletype="">SMMA 30</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="F!wU/QefEJp(yQ-sLK@W">
                                    <value name="IF0">
                                      <block type="logic_operation" id="B-/bfM$[D^9k/+M/z4g[">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="K*xtuBn~B(dNvyY3)x)0">
                                            <field name="OP">GTE</field>
                                            <value name="A">
                                              <block type="variables_get" id="it3s$72I+Lu+q.;QM[x+">
                                                <field name="VAR" id="o$+!z@YDUnoUTB1bXF)*" variabletype="">RSI</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="XCMmvm$E7K)4+HLeXcSx">
                                                <field name="NUM">35</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="8D{BqT|%WL]IIAR!$}.{">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id="g$cEpFoi?0E#F4X{}S]_">
                                                <field name="VAR" id="o$+!z@YDUnoUTB1bXF)*" variabletype="">RSI</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="|-w5ae*W+E_1{UmF@kI!">
                                                <field name="NUM">40</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="controls_if" id="fS((r]C3F!#fiWX4kInr">
                                        <value name="IF0">
                                          <block type="logic_compare" id="L,~Bg;@6isLx#NyNdQk#">
                                            <field name="OP">NEQ</field>
                                            <value name="A">
                                              <block type="variables_get" id="jm~up1n,NF8g}k%*}ueD">
                                                <field name="VAR" id="[c!Htt)9L^zObC|QA^PI" variabletype="">Vela atual</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="Vc#Xs^RTG_shhPoJ-6^v">
                                                <field name="VAR" id="-/vA6T3o-DWbG5sKD@/6" variabletype="">vela de alta</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="purchase" id=":w?3jYz$oey;}9+hZeoe">
                                            <field name="PURCHASE_LIST">PUT</field>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="N01nmZB6F]dj3Jl-ia$9">
                                    <statement name="DO0">
                                      <block type="purchase" id="x/.-U9Sr6s[cF[XIyiB|">
                                        <field name="PURCHASE_LIST">PUT</field>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="finish" collapsed="true" x="299" y="-251">
    <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="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>
          </block>
        </statement>
        <statement name="ELSE">
          <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">1</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>
                  <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>
                <value name="B">
                  <shadow type="math_number" id="{JXdZCp2%s=sfO@yN:n}">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="?bG#NkR/O.%IBv7SG+!_">
                    <field name="NUM">0.95</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="[t9`*_Ei!T^EL`Nrk}rv">
            <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>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>