﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="y;]71srPbsDGaDukLOKT">RSI</variable>
    <variable type="" id="0(J3W?)7WG,u!yX119;T">Max Acceptable Loss</variable>
    <variable type="" id="9a04?r6,35cNoR$s;S86">Expected Profit</variable>
    <variable type="" id="(A_WEO$aq{0CAgU2sNul">Initial Amount</variable>
    <variable type="" id="vUzj|28H4:cNQ)}C`cDu">Win Amount</variable>
    <variable type="" id="P8w3:!|wF5#9k/VFpYm4">Rise</variable>
    <variable type="" id="nBdbsQQWl9j#e[h2Z^Da">Fall</variable>
  </variables>
  <block type="before_purchase" id="H5%3Ws}MUs}=!LUs5,0T" x="682" y="155">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="variables_set" id="9YqBe{1[9}_o:H:eoPp2">
        <field name="VAR" id="y;]71srPbsDGaDukLOKT" variabletype="">RSI</field>
        <value name="VALUE">
          <block type="rsi" id="%$xx%;KILjuSv~%cvCm4">
            <value name="INPUT">
              <block type="ohlc_values" id="@{t?3be5rAkJZlOlPASo">
                <field name="OHLCFIELD_LIST">close</field>
                <field name="CANDLEINTERVAL_LIST">default</field>
              </block>
            </value>
            <value name="PERIOD">
              <shadow type="math_number" id="|D*Z~5Oqh)RA3@z^8uDt">
                <field name="NUM">5</field>
              </shadow>
              <block type="math_number" id="I1[kdO`pCR;hC8IamOSi">
                <field name="NUM">5</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="controls_if" id="m)5dL,tA{?|Q0KF!.9.K">
            <value name="IF0">
              <block type="logic_compare" id=";G?@J;~%4;:JN[/#pn}s">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="math_modulo" id="U|.//F]Fm-v0f44{PZf,">
                    <value name="DIVIDEND">
                      <shadow type="math_number" id="vavl{-/0H*fs9W$#f`r)">
                        <field name="NUM">64</field>
                      </shadow>
                      <block type="epoch" id="!:lPoi9gj:o%sLH90f8b"></block>
                    </value>
                    <value name="DIVISOR">
                      <shadow type="math_number" id="kMy5Ms!d*2sFBHAI@C/3">
                        <field name="NUM">60</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="nVWz0H2!DL,Zo+fp([NT">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="controls_if" id="yV!lEYVO:40ZN?iVa*ss">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_operation" id="io3byPMns#scK?.db.^x">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="ji49W}j~OX$hGH;w)pZ,">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="hW:$,VW,t/+}kx8W!Cr2">
                            <field name="VAR" id="nBdbsQQWl9j#e[h2Z^Da" variabletype="">Fall</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="5F}7_HKNNRyMuL#V;hl6">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="a%%+u5=rWv9)^A;UGx]M">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="p*yWakI2np%4+VI[Y7_:">
                            <field name="VAR" id="P8w3:!|wF5#9k/VFpYm4" variabletype="">Rise</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="]avm974AfPbv=QY`WMT;">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="9`ob`+9?*bkR,#C:%%;*">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="h,c_x`v$-;w}bEd2iYm=">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="variables_get" id="/Va*fl!)QkBFrF)8z@-f">
                            <field name="VAR" id="y;]71srPbsDGaDukLOKT" variabletype="">RSI</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="uMCS`BArH6WMJ[UZ9#M3">
                            <field name="NUM">90</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="math_change" id="4`J575?]Hb!:CaVy$0YM">
                        <field name="VAR" id="nBdbsQQWl9j#e[h2Z^Da" variabletype="">Fall</field>
                        <value name="DELTA">
                          <shadow type="math_number" id="1*?W8DjTM==nr|KT/uwN">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id="Nes`n]o5BOSO%(J+bYu~">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                        <next>
                          <block type="purchase" id="kfDXn~Ge*psuU4FH2@ow">
                            <field name="PURCHASE_LIST">PUT</field>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="controls_if" id="Bb-HaMp{FGjEbh`9#1$}">
                        <value name="IF0">
                          <block type="logic_compare" id="SH~hM4SQEyU}~dc=mg^6">
                            <field name="OP">LTE</field>
                            <value name="A">
                              <block type="variables_get" id="*?Gk$,uq}PBR^0QC0Pjs">
                                <field name="VAR" id="y;]71srPbsDGaDukLOKT" variabletype="">RSI</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="dlrs!qMOR/(u!jh!ahwK">
                                <field name="NUM">10</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="math_change" id="8%z?!x;3+9`sT*B97?Nx">
                            <field name="VAR" id="P8w3:!|wF5#9k/VFpYm4" variabletype="">Rise</field>
                            <value name="DELTA">
                              <shadow type="math_number" id="Qg4To.MI.JP7VHH;2|qn">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="math_number" id="5nr[0uvHa~edmL;xT(0H">
                                <field name="NUM">1</field>
                              </block>
                            </value>
                            <next>
                              <block type="purchase" id="QkZ}bLRqYUo+GVw$z1-E">
                                <field name="PURCHASE_LIST">CALL</field>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="controls_if" id=")}n=r{_pWU;@2q(!+g$H">
                    <value name="IF0">
                      <block type="logic_compare" id=":mo)%Y1E^m@WbFTrWo/m">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="variables_get" id="4xfqVN[EnSBx/$6Kf.,Q">
                            <field name="VAR" id="P8w3:!|wF5#9k/VFpYm4" variabletype="">Rise</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="6}^ne73k`U[#zszQZyP,">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="purchase" id="(zR]Y#k`h%zQ5jdm4)X}">
                        <field name="PURCHASE_LIST">CALL</field>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="x1vL1hw[mJ}A=!jVA-t?">
                        <value name="IF0">
                          <block type="logic_compare" id="X-tv2Q%MrhsUDVTlT[P,">
                            <field name="OP">GT</field>
                            <value name="A">
                              <block type="variables_get" id="G^JiS6eZ{NXPMB`WEZdn">
                                <field name="VAR" id="nBdbsQQWl9j#e[h2Z^Da" variabletype="">Fall</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="35[%N@aBL]UTJ!05y1xD">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="purchase" id="9Afc;c3}1fY.PY*^d3FP">
                            <field name="PURCHASE_LIST">PUT</field>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="trade" id="trade" x="0" y="212">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_100</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">FALSE</field>
    <statement name="INITIALIZATION">
      <block type="variables_set" id="v/O]iCQ}j[GiAK!S1!vk">
        <field name="VAR" id="0(J3W?)7WG,u!yX119;T" variabletype="">Max Acceptable Loss</field>
        <value name="VALUE">
          <block type="math_number" id="^:bth~fukQ(H;qG~W,J9">
            <field name="NUM">140</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="yuF[{UN_)/n/p_7|Bn{^">
            <field name="VAR" id="9a04?r6,35cNoR$s;S86" variabletype="">Expected Profit</field>
            <value name="VALUE">
              <block type="math_number" id="TNeUN!N2ai|Riu#T4Hs+">
                <field name="NUM">200</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="kYN4z~^G*jW!tl[ag//|">
                <field name="VAR" id="vUzj|28H4:cNQ)}C`cDu" variabletype="">Win Amount</field>
                <value name="VALUE">
                  <block type="math_number" id="D.+RaH}/KM^=R_/i;Uj-">
                    <field name="NUM">17.5</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="!rE+(YJ?USv@e;5A6{3i">
                    <field name="VAR" id="(A_WEO$aq{0CAgU2sNul" variabletype="">Initial Amount</field>
                    <value name="VALUE">
                      <block type="math_number" id="zBSG}Pb^V)cr2}S(Tt})">
                        <field name="NUM">17.5</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="8oAx#PND^$tnLe@FVh:~">
                        <field name="VAR" id="P8w3:!|wF5#9k/VFpYm4" variabletype="">Rise</field>
                        <value name="VALUE">
                          <block type="math_number" id="_vQ6!kxE?%]l`OB4d}/n">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="6GYo59c_2|K_J0b+XR%y">
                            <field name="VAR" id="nBdbsQQWl9j#e[h2Z^Da" variabletype="">Fall</field>
                            <value name="VALUE">
                              <block type="math_number" id="bS*s]x]Q]TN3Z~^ywBpg">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="_^3}];Bu%K;a,T1VxH!|">
        <field name="DURATIONTYPE_LIST">m</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block type="math_number" id="E{wg9Uzbj#A5|*K4jYPN">
            <field name="NUM">1</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="variables_get" id="0?Q}sei*{a4`}f^PRB%]">
            <field name="VAR" id="(A_WEO$aq{0CAgU2sNul" variabletype="">Initial Amount</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="finish" x="1" y="875">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="Ir8Bkront:`9V-sXi@#I">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id=";]s^2b=xTZS#QHDFKlgc">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="controls_if" id="UcQe)nFmqe(0[9Q,S|SD">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="?ah|jGeNWCoNWOkZN^v[">
                <field name="OP">GTE</field>
                <value name="A">
                  <block type="total_profit" id="F)y90As^kxx;Bs(WZH+r"></block>
                </value>
                <value name="B">
                  <block type="variables_get" id="*U,c^@9J6~3QBy$Pd8bH">
                    <field name="VAR" id="9a04?r6,35cNoR$s;S86" variabletype="">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="text_print" id="$8r+CTOK:~lL=ArIOw)y">
                <value name="TEXT">
                  <shadow type="text" id="qezOKcAqEM(,;hNe*o:6">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text_join" id="a`OV6i5P/qd6%`nmGr1Y">
                    <mutation items="2"></mutation>
                    <value name="ADD0">
                      <block type="text" id="4sYoZp{c_7P94r1D(Ii5">
                        <field name="TEXT">Profit Alcançado:</field>
                      </block>
                    </value>
                    <value name="ADD1">
                      <block type="total_profit" id="HO)#zQf1@_0sa,8F*{z]"></block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="variables_set" id="G!RGQ[b$3%%Ip*2x2{XY">
                <field name="VAR" id="P8w3:!|wF5#9k/VFpYm4" variabletype="">Rise</field>
                <value name="VALUE">
                  <block type="math_number" id="W#4a7Ov[4_N}_i^7w1p4">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="aEJvaZk^@-KM.Lh1wZce">
                    <field name="VAR" id="nBdbsQQWl9j#e[h2Z^Da" variabletype="">Fall</field>
                    <value name="VALUE">
                      <block type="math_number" id="V,M8g+mZ#.6iMU0z5CQJ">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="ciQq(gZ~Fxe`ciWN(j$3">
                        <field name="VAR" id="(A_WEO$aq{0CAgU2sNul" variabletype="">Initial Amount</field>
                        <value name="VALUE">
                          <block type="variables_get" id="xN8t][e_#Iwl,h_kU3eY">
                            <field name="VAR" id="vUzj|28H4:cNQ)}C`cDu" variabletype="">Win Amount</field>
                          </block>
                        </value>
                        <next>
                          <block type="trade_again" id="WI-a^kf~W-(Rre$!N}`A"></block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="controls_if" id="lVpoIFEPvMWQ#+YTm$^=">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_operation" id=":=6lqO1.N6^~D9)g8EiI">
                <field name="OP">AND</field>
                <value name="A">
                  <block type="math_number_property" id="DIW)?-wL{oMDDEWp1g:7">
                    <mutation divisor_input="false"></mutation>
                    <field name="PROPERTY">NEGATIVE</field>
                    <value name="NUMBER_TO_CHECK">
                      <shadow type="math_number" id="@hcVsk.y:aLd-H4CKxqG">
                        <field name="NUM">0</field>
                      </shadow>
                      <block type="read_details" id="q|E)#8hOl+w4kmy8?:ZJ">
                        <field name="DETAIL_INDEX">4</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_compare" id="[020a:-3WqN6.!v_./cM">
                    <field name="OP">GTE</field>
                    <value name="A">
                      <block type="math_single" id="pE^b$$}u#aD{mG.BaK4;">
                        <field name="OP">ABS</field>
                        <value name="NUM">
                          <shadow type="math_number" id="{76SW2GS]o@FUId)Dnaj">
                            <field name="NUM">9</field>
                          </shadow>
                          <block type="read_details" id=".i^3dv[nBSbblqU;/d$9">
                            <field name="DETAIL_INDEX">4</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="IP:;]S=XBjB0KZvCt*HI">
                        <field name="VAR" id="0(J3W?)7WG,u!yX119;T" variabletype="">Max Acceptable Loss</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="text_print" id="BUTT,affyMWh!JCK=tWu">
                <value name="TEXT">
                  <shadow type="text" id="qezOKcAqEM(,;hNe*o:6">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text_join" id="=V+V.X[0/40F0KJcYT0U">
                    <mutation items="2"></mutation>
                    <value name="ADD0">
                      <block type="text" id="S?r#[2YnRMRlD9qkp(eW">
                        <field name="TEXT">Stop Loss Alcançado:</field>
                      </block>
                    </value>
                    <value name="ADD1">
                      <block type="total_profit" id="+.P:]/cPwjlRy]^GE]aF"></block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="math_change" id=",qg9$~e=Ac(NLf{~]*F2">
                <field name="VAR" id="(A_WEO$aq{0CAgU2sNul" variabletype="">Initial Amount</field>
                <value name="DELTA">
                  <shadow type="math_number" id="*x9{oq(ip#8E)T{(VA(r">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="k*0xG=UzdHF=1LPEiY/z">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="e*}6i;_`As3}I?c_Q`o:">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_single" id="0Cq`$Jfc{J56d3dZ4:|l">
                        <field name="OP">ABS</field>
                        <value name="NUM">
                          <shadow type="math_number" id="{76SW2GS]o@FUId)Dnaj">
                            <field name="NUM">9</field>
                          </shadow>
                          <block type="read_details" id="Dtt_bAfGQVckxZG+h5Gz">
                            <field name="DETAIL_INDEX">4</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="1+|+ZLd}/EJQ%fRL8{.`">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="trade_again" id="EiZpzi6n7ZNYMJ?|S=vA"></block>
                </next>
              </block>
            </statement>
          </block>
        </statement>
      </block>
    </statement>
  </block>
</xml>