﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <block type="trade" id="xgH69|xFn9=70w.*3Vo@" x="13" y="-222">
    <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">TRUE</field>
    <statement name="INITIALIZATION">
      <block type="variables_set" id="i{*t:Yzk{QhAE1z5z`ow">
        <field name="VAR">initialStake</field>
        <value name="VALUE">
          <block type="math_number" id="P6r-jD|Bwy0Rkeq~L%Wp">
            <field name="NUM">0.35</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="z=MR,G-BB87,,89lBlw4">
            <field name="VAR">stopLoss</field>
            <value name="VALUE">
              <block type="math_number" id="RcO.O;h?xW1lY0aEWAdP">
                <field name="NUM">-10</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="8|d]FH(bR|d^/@Gz6a]j">
                <field name="VAR">targetProfit</field>
                <value name="VALUE">
                  <block type="math_number" id="[INXf|Zw%3U#HNHX8zZS">
                    <field name="NUM">5</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="pLV|BvL?D@-mGkEd]6j0">
                    <field name="VAR">martingale</field>
                    <value name="VALUE">
                      <block type="math_number" id="`JHBH[|8jItUNZiTU$U(">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id=",V^9lBPl_t-hSF*0T6CN">
                        <field name="VAR">stake</field>
                        <value name="VALUE">
                          <block type="variables_get" id="+I7~3Zc!+uHNS3kcHs4*">
                            <field name="VAR">initialStake</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="f$JnMyTHN8iNHeZp7K(p">
                            <field name="VAR">pattern</field>
                            <value name="VALUE">
                              <block type="lists_split" id="EzafmYjf;!PPicG;7e?}">
                                <mutation mode="SPLIT"></mutation>
                                <field name="MODE">SPLIT</field>
                                <value name="INPUT">
                                  <block type="text" id="S[PPbVsy.=-(~HwdDVZe">
                                    <field name="TEXT">r,r,f</field>
                                  </block>
                                </value>
                                <value name="DELIM">
                                  <shadow type="text" id="U2P$qQZFBr8(jmi_keXI">
                                    <field name="TEXT">,</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="$eL{4Qg4EnPaO1;XhK~W">
                                <field name="VAR">steps</field>
                                <value name="VALUE">
                                  <block type="math_number" id="H5=J^kJacP`ep[K(/HV6">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="x=V33~4Lb|(sLv`J[:Eb">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <shadow type="math_number" id="O*@58sDc=!cOO}*b2vf9">
            <field name="NUM">5</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number" id="ml)25~7^q}3I9}vjf:%K">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="cKa@*+_.ToPX5o/M6+4a">
            <field name="VAR">stake</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" x="7" y="253">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="math_change" id="]l%2pTsYL?s~PBgU0pDI">
        <field name="VAR">steps</field>
        <value name="DELTA">
          <shadow type="math_number" id="[ip:(;;k3HWv).l*w~S$">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <next>
          <block type="controls_if" id="/g0cCni)U}wJPb.m8bl,">
            <mutation elseif="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="Xf6?55zkr=cXa#hlo`Bk">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="lists_getIndex" id="|K~Pnp~bz/u0=KG8{[`c">
                    <mutation statement="false" at="true"></mutation>
                    <field name="MODE">GET</field>
                    <field name="WHERE">FROM_START</field>
                    <value name="VALUE">
                      <block type="variables_get" id="9i`J4fI3O[FTqbGf=zhy">
                        <field name="VAR">pattern</field>
                      </block>
                    </value>
                    <value name="AT">
                      <block type="variables_get" id="sEGrID}(+4R)T~oIqk%a">
                        <field name="VAR">steps</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="text" id="oQNzu=rrpYA5/m=6a{uN">
                    <field name="TEXT">r</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>
            <value name="IF1">
              <block type="logic_compare" id="EmA=*)W^u_$[USnpZ.7^">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="lists_getIndex" id="9w9Fi-MBx^pl#QMN.C++">
                    <mutation statement="false" at="true"></mutation>
                    <field name="MODE">GET</field>
                    <field name="WHERE">FROM_START</field>
                    <value name="VALUE">
                      <block type="variables_get" id="xNNY9C]0XqszajB=ToOS">
                        <field name="VAR">pattern</field>
                      </block>
                    </value>
                    <value name="AT">
                      <block type="variables_get" id="Yw]}~cbW5ukK[?dZMP)h">
                        <field name="VAR">steps</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="text" id="H/lkIKjm=DfT.lOkXL^J">
                    <field name="TEXT">f</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO1">
              <block type="purchase" id="3Kt_dDrN@p,y5AD058ee">
                <field name="PURCHASE_LIST">PUT</field>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="D^Jz1^n=2vtZku1vBN@;" x="10" y="506">
    <statement name="AFTERPURCHASE_STACK">
      <block type="math_change" id="6.$^RLj:IW4/sn50vG9E">
        <field name="VAR">totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="p7QWk6%+$,f}]Vg#bn~_">
            <field name="NUM">1</field>
          </shadow>
          <block type="read_details" id="i0vpG%6*]n3gc`TT}/z/">
            <field name="DETAIL_INDEX">4</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="y6|D[K-7@#$H?%06W;9s">
            <field name="VAR">stake</field>
            <value name="VALUE">
              <block type="logic_ternary" id="om]}Q[Jwi2*G1ZHVL1H2">
                <value name="IF">
                  <block type="contract_check_result" id="._uW/sc|b-FmSd?*c?%6">
                    <field name="CHECK_RESULT">win</field>
                  </block>
                </value>
                <value name="THEN">
                  <block type="math_arithmetic" id="XZ%P+2F.sk9fCGySEE~6">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="G)%|TmuT.r1NBI6IZ)}a">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="bYS02eQNl}UbCPvYdOR[">
                        <field name="VAR">stake</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="DIg2]q(8/H)whp~:R?/C">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="=*P{u*u?Ku,M|2*MI|xx">
                        <field name="VAR">martingale</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="ELSE">
                  <block type="variables_get" id="3n6deD53U@AxhEDm?[1Z">
                    <field name="VAR">initialStake</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="{U+q.%`[hrZ7[#@t/`E!">
                <field name="VAR">steps</field>
                <value name="VALUE">
                  <block type="logic_ternary" id="w_4_[trDR)g1?=:j_Ja2">
                    <value name="IF">
                      <block type="logic_compare" id="*r[rUV.16G50G65edj#x">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="B@xy@hb2H8(b3aEJ$JNV">
                            <field name="VAR">steps</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="lists_length" id="CH!VK0vi1R?Wo,D_.xHk">
                            <value name="VALUE">
                              <block type="variables_get" id="6;ah|z~T#c#u.-Ib!l2n">
                                <field name="VAR">pattern</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="THEN">
                      <block type="math_number" id="{qFzrBdH!CoRko@#T`Hx">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <value name="ELSE">
                      <block type="variables_get" id="5O+Ss#Nvr!uW..!hojD)">
                        <field name="VAR">steps</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="9nJYMVWS3`4:h;#tj/Z,">
                    <mutation elseif="2"></mutation>
                    <value name="IF0">
                      <block type="logic_operation" id="4ZTrLY!xEs0e)HO*^K6s" inline="false">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_compare" id="O~Um_^xWKKZ?uq/x=76}" inline="false">
                            <field name="OP">LT</field>
                            <value name="A">
                              <block type="variables_get" id=";1v#7I7{Ri6}37?W*m_4">
                                <field name="VAR">totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="GmKcsbk]A_f{tMsO8A6v">
                                <field name="VAR">targetProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="eZ)6wZ,CA=g9}?60@U2h" inline="false">
                            <field name="OP">GT</field>
                            <value name="A">
                              <block type="variables_get" id="G|[Z6T}UnUsUtXv3iQ04">
                                <field name="VAR">totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="?WDmKs$MlN,YE.o,.B]y">
                                <field name="VAR">stopLoss</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="notify" id="Xtf$Mm^wM#,g6Pd+3BWo">
                        <field name="NOTIFICATION_TYPE">success</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <shadow type="text" id="oSB{q+zpLK@yuc}|hdJ|">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text_join" id="3]2PsQ/{KC:6xlU,k1qx">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="r]^:I%-Cyaq{i^5(W^(a">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="nbj0WX;2=QKM=`@8D6-[">
                                <field name="VAR">totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="trade_again" id="c)S|KjoQdXc8l#J@5z3P"></block>
                        </next>
                      </block>
                    </statement>
                    <value name="IF1">
                      <block type="logic_compare" id="CqS:26ETvr3~g_UgG;.!" inline="false">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="variables_get" id="bPbR(0WwdTuz7.ac38L{">
                            <field name="VAR">totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="08#BTAAjFM|W0,6|H^[j">
                            <field name="VAR">targetProfit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO1">
                      <block type="text_print" id="_6(LjFt`O{5kL1MJ4eym">
                        <value name="TEXT">
                          <shadow type="text" id="*Nk]TwCOT=D7/FYwU+:J">
                            <field name="TEXT">Target</field>
                          </shadow>
                          <block type="text_join" id="Jl2y{wdNp.6W`iSZ78,K">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="]]1G@UUvQ3kGCPC#T+gn">
                                <field name="TEXT">Target Profit Reached | Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="1M!NL7KsA$_udTv+t*xu">
                                <field name="VAR">totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <value name="IF2">
                      <block type="logic_compare" id=":3HAG;%ue]S^69tC6T#*" inline="false">
                        <field name="OP">LT</field>
                        <value name="A">
                          <block type="variables_get" id="64YY+*:q)1X::401X0ak">
                            <field name="VAR">totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="ZCaI#~Z79C8(si1cvJR*">
                            <field name="VAR">stopLoss</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO2">
                      <block type="text_print" id="qP0LW/^iFYzC/9v!(Iw|">
                        <value name="TEXT">
                          <shadow type="text" id="*Nk]TwCOT=D7/FYwU+:J">
                            <field name="TEXT">Target</field>
                          </shadow>
                          <block type="text_join" id="5s.TXdrKntfjsH]sx({U">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="K]5BNN#`F%#R@`2BKfDs">
                                <field name="TEXT">Stop Loss Reached | Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="rhnDE1Yl_9O._zB$?H$:">
                                <field name="VAR">totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>