﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="MI+ci;Kt]Z{NVDeuS[yD">Max Acceptable Loss</variable>
    <variable type="" id="S-Y8$[]6.RKqzT?YtzXr">resistance</variable>
    <variable type="" id="E$+nL.`k%P9%WV-_%Q3q">Expected Profit</variable>
    <variable type="" id="Ql%h#3FU/ph~b5y,/p~:">Initial Amount</variable>
    <variable type="" id="A2:L)p2r)a=H3.w|2;zR">support</variable>
    <variable type="" id="]~w91JODGd-(?u:g$Ok8">Win Amount</variable>
  </variables>
  <block type="trade" id="trade" x="-73" y="-48">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_10</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=":H#vG|6ghgJ=}I=KDejC">
        <field name="VAR" id="MI+ci;Kt]Z{NVDeuS[yD" variabletype="">Max Acceptable Loss</field>
        <value name="VALUE">
          <block type="math_number" id="GDPRr8=z)u]iKK8Y$j1L">
            <field name="NUM">10</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="nc^w|2bz4lK`f]!MS]-1">
            <field name="VAR" id="E$+nL.`k%P9%WV-_%Q3q" variabletype="">Expected Profit</field>
            <value name="VALUE">
              <block type="math_number" id="}7b}?m+dSj57|fyK*$5@">
                <field name="NUM">5</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="nY2qR!6tu;?8LP$DC-Pg">
                <field name="VAR" id="]~w91JODGd-(?u:g$Ok8" variabletype="">Win Amount</field>
                <value name="VALUE">
                  <block type="math_number" id="En:^[Z,KUPZulmP*wWpA">
                    <field name="NUM">0.35</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="e2tkgvbgOUw;#fiqeDfI">
                    <field name="VAR" id="Ql%h#3FU/ph~b5y,/p~:" variabletype="">Initial Amount</field>
                    <value name="VALUE">
                      <block type="math_number" id="aliEiBj]kOoPcZ?1q6$,">
                        <field name="NUM">0.35</field>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="#cOFlL*.OE@,!o{~!FJ3">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block type="math_number" id="[0?XZ[+#_aQxGgU9}E:b">
            <field name="NUM">5</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="variables_get" id="uwlRl)V$5[#wo;eha77|">
            <field name="VAR" id="Ql%h#3FU/ph~b5y,/p~:" variabletype="">Initial Amount</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="strategy" x="-73" y="452">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="variables_set" id="PQ(nUUbH;lJ9z.Y0]IM+">
        <field name="VAR" id="S-Y8$[]6.RKqzT?YtzXr" variabletype="">resistance</field>
        <value name="VALUE">
          <block type="lists_getIndex" id="i|Xd[8O$9^L/?hpu4u*t">
            <mutation statement="false" at="false"></mutation>
            <field name="MODE">GET</field>
            <field name="WHERE">LAST</field>
            <value name="VALUE">
              <block type="lists_sort" id="g]WcGAK9c/+Q7=h?*AwG">
                <field name="TYPE">NUMERIC</field>
                <field name="DIRECTION">1</field>
                <value name="LIST">
                  <block type="lists_getSublist" id="/z+~p=G4znE9{,;p$(3Y">
                    <mutation at1="true" at2="true"></mutation>
                    <field name="WHERE1">FROM_END</field>
                    <field name="WHERE2">FROM_END</field>
                    <value name="LIST">
                      <block type="ticks" id="#Z|JIjJ9YJ1An!AZR2{$"></block>
                    </value>
                    <value name="AT1">
                      <block type="math_number" id="Y4%7@9bhM#{WSmo9^Jj,">
                        <field name="NUM">20</field>
                      </block>
                    </value>
                    <value name="AT2">
                      <block type="math_number" id="t:!ga`iFntpna@XeQ,X*">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="y2b:*PDwiVh=YWQisZ#c">
            <field name="VAR" id="A2:L)p2r)a=H3.w|2;zR" variabletype="">support</field>
            <value name="VALUE">
              <block type="lists_getIndex" id="KREpbB2]obw9x3w.EH@N">
                <mutation statement="false" at="false"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FIRST</field>
                <value name="VALUE">
                  <block type="lists_sort" id="^*GQ)Gyf]ZhXYYFtG`Z-">
                    <field name="TYPE">NUMERIC</field>
                    <field name="DIRECTION">1</field>
                    <value name="LIST">
                      <block type="lists_getSublist" id="N.bL-Y*2HZU1m0M0yz4_">
                        <mutation at1="true" at2="true"></mutation>
                        <field name="WHERE1">FROM_END</field>
                        <field name="WHERE2">FROM_END</field>
                        <value name="LIST">
                          <block type="ticks" id="uxW)4GlY2ey`Iv5D9L)W"></block>
                        </value>
                        <value name="AT1">
                          <block type="math_number" id="Pz}l)y{vpW5md^+7O0{0">
                            <field name="NUM">20</field>
                          </block>
                        </value>
                        <value name="AT2">
                          <block type="math_number" id="I_-9LVNssn_ORCZCd;:j">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="fU.9djMgQ|MQhR`CC5V+">
                <mutation elseif="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="w.Lb,:yBSUL[_Ol^3_[Q">
                    <field name="OP">GT</field>
                    <value name="A">
                      <block type="tick" id="*4ARZF*nW}$dJWbj-,/6"></block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="x_1|C+lI/#hSaCW_2!Y}">
                        <field name="VAR" id="S-Y8$[]6.RKqzT?YtzXr" variabletype="">resistance</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="purchase" id="rMaW,S4VjZ|.g^^6tvIb">
                    <field name="PURCHASE_LIST">PUT</field>
                  </block>
                </statement>
                <value name="IF1">
                  <block type="logic_compare" id="{+RF]SUEqkQ(1#3H|y0@">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="tick" id="0j#j=c3=,#$D`MsmY`qG"></block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="k^;[sHCaLE4ohK8|]8$_">
                        <field name="VAR" id="A2:L)p2r)a=H3.w|2;zR" variabletype="">support</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO1">
                  <block type="purchase" id="3w:a0BO$zITuOq#H,87,">
                    <field name="PURCHASE_LIST">CALL</field>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="finish" x="0" y="684">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="tNNMHQ9!Ay3ChW`;O$,{">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="ABbC5ey%8,z+o!5u[gX7">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="ty[02n?q%MRP`u)K7[lY">
            <field name="VAR" id="Ql%h#3FU/ph~b5y,/p~:" variabletype="">Initial Amount</field>
            <value name="VALUE">
              <block type="variables_get" id="$4?/d^1r:MXthWPC5g;8">
                <field name="VAR" id="]~w91JODGd-(?u:g$Ok8" variabletype="">Win Amount</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="math_change" id="e-ADEwzNF-#+L.=LFN}W">
            <field name="VAR" id="Ql%h#3FU/ph~b5y,/p~:" variabletype="">Initial Amount</field>
            <value name="DELTA">
              <shadow type="math_number" id="Uv=@kb9r@jlLAl6T(g1f">
                <field name="NUM">1</field>
              </shadow>
              <block type="math_single" id="^)9]qD:tGavaBA2^s,%^">
                <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="math_arithmetic" id="{U45Y$Jy()A)?K(!J}Pq">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="uQD02,3[LY-.z$3=1sXW">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="read_details" id="s^93Cz!jWgi9JR/pu+`Q">
                        <field name="DETAIL_INDEX">4</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="PV8Vv5#9Gv4JMnvcg(2K">
                        <field name="NUM">1.041</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="notify" id="=CTtF+{_-dz@GutCMK$c">
            <field name="NOTIFICATION_TYPE">info</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="r5l+L,6:=%!V@/=QvkMh">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="|`lyOAS*YRjqF7:};kog">
                    <field name="TEXT">Total Profit:</field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="total_profit" id="UT{Ubd1]Rw2TcAX`5;!e"></block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="oIJ!_28ml].~jLT/lV^M">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="kzt$cs#GD4Mm;*~q8vTx">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="total_profit" id="1}J[+v;F:(R_,Cxz:,x+"></block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="zC#Ac9N!.-?m+yoYyI9P">
                        <field name="VAR" id="E$+nL.`k%P9%WV-_%Q3q" variabletype="">Expected Profit</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="}D~ZoAUGBRwxnqa_,w4A">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_operation" id="@rneRa]_|DW:)S}a??({">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="math_number_property" id="@KNpabc/e19P^BO`G7q7">
                            <mutation divisor_input="false"></mutation>
                            <field name="PROPERTY">NEGATIVE</field>
                            <value name="NUMBER_TO_CHECK">
                              <shadow type="math_number" id="O5EG^Jmug}%}_rFum%xH">
                                <field name="NUM">0</field>
                              </shadow>
                              <block type="total_profit" id="P$h*PE7H_7$j?hJ|~l_f"></block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="[dBJs*{}2c3gdg!az{Ik">
                            <field name="OP">GTE</field>
                            <value name="A">
                              <block type="math_single" id="T5iLK1|mN)/sP78QD@A*">
                                <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="total_profit" id="R4t(}@EGxo@-Tue]9;Z["></block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="u`.)E!cyC=Dc1Q)U7N[T">
                                <field name="VAR" id="MI+ci;Kt]Z{NVDeuS[yD" variabletype="">Max Acceptable Loss</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="text_print" id="Z!JNOz1K;[a~=6J!ti1/">
                        <value name="TEXT">
                          <shadow type="text" id="|D(=r=owZnk,lmxkNk%3">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text_join" id="|+nl9@.-+;6~=`|u9}zq">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="]S,oa~qfAWwbO;BD3zSA">
                                <field name="TEXT">Max Acceptable Loss! Total: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="total_profit" id=":|rV9@Y^CO-YtK%{oX^R"></block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="trade_again" id="H2leW}F^Z(ECR;),p$Md"></block>
                    </statement>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="text_print" id="bn7_5pnCy;++d=%=QR+f">
                    <value name="TEXT">
                      <shadow type="text" id="|D(=r=owZnk,lmxkNk%3">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text_join" id="TcjUOC#l%gf/fktuLR$S">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="QL!fL}Te2a6G]St:]A9-">
                            <field name="TEXT">Done! Total Profit: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="total_profit" id="F6WKOSi]]!bfbn3wq[pX"></block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>