﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="|;2-Aita.P0Y$hiG2b/L">tick 2</variable>
    <variable type="" id=".ADy6KvY:I*yl,HW#T}o">Max Acceptable Loss</variable>
    <variable type="" id="MohmwgecL=%l~qiW9?/@">tick 1</variable>
    <variable type="" id="wVKE8=rsg1^h+DH;fOh$">Expected Profit</variable>
    <variable type="" id="hmr5Ya~Wkhp=HB5Th(}{">Initial Amount</variable>
    <variable type="" id="pIz@@yGilxjWNR_~uL9)">Win Amount</variable>
    <variable type="" id="9J8FU5qUCn_7=qYQ$CZu">Max Loss Amount</variable>
  </variables>
  <block type="trade" id="trade" x="-14" y="-31">
    <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="dp]5sy.b9R8JccW3]_L9">
        <field name="VAR" id=".ADy6KvY:I*yl,HW#T}o" variabletype="">Max Acceptable Loss</field>
        <value name="VALUE">
          <block type="math_number" id="jLHc)yD.HLkm9gNg}~lM">
            <field name="NUM">25</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id=".4^S|AkELYZ/Bg?C5zFW">
            <field name="VAR" id="wVKE8=rsg1^h+DH;fOh$" variabletype="">Expected Profit</field>
            <value name="VALUE">
              <block type="math_number" id=")E$yQw]NMI#Ug,*Y~we$">
                <field name="NUM">5</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="?yw^)]$O[I,?:v|]VT31">
                <field name="VAR" id="pIz@@yGilxjWNR_~uL9)" variabletype="">Win Amount</field>
                <value name="VALUE">
                  <block type="math_number" id="MU[#V)[A:7HXo2$^eJt@">
                    <field name="NUM">0.35</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="idrS5(y69GSsgn4(2Fun">
                    <field name="VAR" id="hmr5Ya~Wkhp=HB5Th(}{" variabletype="">Initial Amount</field>
                    <value name="VALUE">
                      <block type="math_number" id="lh:Ll9n9A-%wvZ}FbF^r">
                        <field name="NUM">0.35</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="(AeRgaBeuRnNF$be2M)J">
                        <field name="VAR" id="|;2-Aita.P0Y$hiG2b/L" variabletype="">tick 2</field>
                        <value name="VALUE">
                          <block type="math_number" id="|eSe;yd.N-UurcHjCZ`]">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="[X;!N%?*FgsFQF%4(W*[">
                            <field name="VAR" id="MohmwgecL=%l~qiW9?/@" variabletype="">tick 1</field>
                            <value name="VALUE">
                              <block type="math_number" id="ma,SL/G7ZJpAv0HfE,.b">
                                <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="vH#/p4v#kXu{tWfMNst9">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <shadow type="math_number" id="vi`Lv0z1Lg!SyT.R[83l">
            <field name="NUM">5</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number" id="`Z6Qw+2)`O3:00{_Q{jV">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="aO/Qi*.DKJ7PLXfNm)N;">
            <field name="VAR" id="hmr5Ya~Wkhp=HB5Th(}{" variabletype="">Initial Amount</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="`*0+8M}Jmtn0{8v,u_s(" collapsed="true" x="-9" y="534">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id=";^AX*w0j912|Ckr5{No[">
        <mutation elseif="1"></mutation>
        <value name="IF0">
          <block type="logic_operation" id="24Or%0BOv1~(/8f_(57J" inline="false">
            <field name="OP">AND</field>
            <value name="A">
              <block type="logic_compare" id="smRN]1`8sdrN}k.(eY*o">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="9=v~#5ZG1WGhd]TYC~Jt">
                    <field name="VAR" id="MohmwgecL=%l~qiW9?/@" variabletype="">tick 1</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="nJB,hf$L=p(R3_=J%}*Q">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="logic_compare" id="n=90!`QR1fyJQs=g:D|X">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="gnlq:XsE]ff7;]jB3I07">
                    <field name="VAR" id="|;2-Aita.P0Y$hiG2b/L" variabletype="">tick 2</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="PIe$XX_:8S^9s4NSTbSe">
                    <field name="NUM">1</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="purchase" id=".~-0`lLxKfRnJ!KoDZif">
            <field name="PURCHASE_LIST">CALL</field>
          </block>
        </statement>
        <value name="IF1">
          <block type="logic_operation" id="D[lE,df|dih@^g+$Hw]{" inline="false">
            <field name="OP">AND</field>
            <value name="A">
              <block type="logic_compare" id="70bq1`N]?-j.ajbih|XG">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="vzP$DeUqW7QJ0yFdO1rP">
                    <field name="VAR" id="MohmwgecL=%l~qiW9?/@" variabletype="">tick 1</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="C{zLlyEtuBQl]soOIihx">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="logic_compare" id="*ZB?ndz|s8gVr_|`d@D*">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="9*1K3lEY)AfPK]4-plpZ">
                    <field name="VAR" id="|;2-Aita.P0Y$hiG2b/L" variabletype="">tick 2</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="8^CoqY;-zvkU0n3mV59D">
                    <field name="NUM">9</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO1">
          <block type="purchase" id="+C8MHj*%6W+[+2;/2J-J">
            <field name="PURCHASE_LIST">PUT</field>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="tick_analysis" id="/$x}(TnQ_a;chAk9:(7*" collapsed="true" x="-9" y="567">
    <statement name="TICKANALYSIS_STACK">
      <block type="variables_set" id=",,,/$$gnB4`I0z#+F5j0">
        <field name="VAR" id="|;2-Aita.P0Y$hiG2b/L" variabletype="">tick 2</field>
        <value name="VALUE">
          <block type="variables_get" id="Bm1,ZGjTTd:lZ]=-Dp3C">
            <field name="VAR" id="MohmwgecL=%l~qiW9?/@" variabletype="">tick 1</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="M/-u?6?9e^6FzK;V7N!C">
            <field name="VAR" id="MohmwgecL=%l~qiW9?/@" variabletype="">tick 1</field>
            <value name="VALUE">
              <block type="last_digit" id="~$PiB$;OD%|)60`@BKq4"></block>
            </value>
            <next>
              <block type="notify" id="(D[k)h(=m;M,FzH7L0f:">
                <field name="NOTIFICATION_TYPE">info</field>
                <field name="NOTIFICATION_SOUND">silent</field>
                <value name="MESSAGE">
                  <shadow type="text" id="sfaY266(t*?sY*KmbTk[">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text_join" id="s`Ss=P#rSQ9/IpJTg2xl">
                    <mutation items="4"></mutation>
                    <value name="ADD0">
                      <block type="text" id="c!8KMPAl%_W6tY;eh~M,">
                        <field name="TEXT">Tick1 =    </field>
                      </block>
                    </value>
                    <value name="ADD1">
                      <block type="variables_get" id="i};j(oj^~dOQ%WgHH@y^">
                        <field name="VAR" id="MohmwgecL=%l~qiW9?/@" variabletype="">tick 1</field>
                      </block>
                    </value>
                    <value name="ADD2">
                      <block type="text" id="7fEZzMjTl]OwcX13Imfn">
                        <field name="TEXT">         and  Tick2 = </field>
                      </block>
                    </value>
                    <value name="ADD3">
                      <block type="variables_get" id="CE3Z5sgbwXq)D`exPOWF">
                        <field name="VAR" id="|;2-Aita.P0Y$hiG2b/L" variabletype="">tick 2</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="notify" id="?n[%W33bLlNr57G)Whv%">
                    <field name="NOTIFICATION_TYPE">error</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <shadow type="text" id="sfaY266(t*?sY*KmbTk[">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text_join" id="WE|ulOaVVG[-m0b-Hhi^">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="xi*r!d#OXI/Fg]h*k-0H">
                            <field name="TEXT">Spot:  </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="tick" id="0|loK_kqeTDuAL^WaCx+"></block>
                        </value>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="finish" collapsed="true" x="-4" y="605">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="/TP%I,hfU)^|c.|/3ndN">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="!Ju)S0aU{UXQf0qHA6X,">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="notify" id="gHD9SF(^C:~$q@c/;(KP">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="]Je7[};kvx`BRACG:?(;">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="s/=(=W~@G6,IQ,b://B3">
                    <field name="TEXT">Won:</field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="read_details" id="SXm{k(Ltcd0rel3iez82">
                    <field name="DETAIL_INDEX">4</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="!7vE(S.O$(Hp%A$z{Q)4">
                <field name="VAR" id="hmr5Ya~Wkhp=HB5Th(}{" variabletype="">Initial Amount</field>
                <value name="VALUE">
                  <block type="variables_get" id="xt{eOIX[E!rJ4}0f(|)w">
                    <field name="VAR" id="pIz@@yGilxjWNR_~uL9)" variabletype="">Win Amount</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="notify" id="@^jo^p%_Dc9)/}ZVUN=q">
            <field name="NOTIFICATION_TYPE">warn</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="L!A5F7obJ6YDSU%sb~v$">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id=":bct,J@#aZ1,ap7%$u;m">
                    <field name="TEXT">Lost: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="math_single" id="Us=FXR=G20;r.vw#Qzx9">
                    <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="6^U0{%K4N4+shx$i.^;H">
                        <field name="DETAIL_INDEX">4</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="math_change" id="Lp7Sf;6}.+aaQK7u|qC,">
                <field name="VAR" id="hmr5Ya~Wkhp=HB5Th(}{" 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="eN7/Pe-C@6[cZuG=;sr|">
                    <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="n#dZL(R~tbmwTs^YpY{n">
                        <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="bV`6lc$_j`ElSi~fxG-e">
                            <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="L2m6.74Wo}DL)X%A@uE}">
                        <field name="NUM">1.03</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="THEX=3SJ9vM.fn6isSQX">
                    <value name="IF0">
                      <block type="logic_compare" id=")?vQl#~,J(1mnfNi]c|F">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="math_single" id="AeT7xRW8;G`0dUU3G9Zu">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id="ft^DVzOH^GlSjzUC}@3c">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="read_details" id="Dywmoc_eJ)3BDdpvZ+8%">
                                <field name="DETAIL_INDEX">4</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="IR(@Z1;/dK1a7*)koIlK">
                            <field name="VAR" id="9J8FU5qUCn_7=qYQ$CZu" variabletype="">Max Loss Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="text_print" id="MP:bns5WRrfs+]NCySeZ">
                        <value name="TEXT">
                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text_join" id="l#77+N~6RSODKh?CeYY4">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="+M,5;KZF~R7*zI2p0tec">
                                <field name="TEXT">Done! Total profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="total_profit" id="slBD+rxTQiUCbHHd6ka2"></block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="notify" id="1)tW7}^o?Ym2qm8-qmdO">
            <field name="NOTIFICATION_TYPE">info</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="t]P+(Nqhmu!Tg.F7-CPr">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="7gm[}!($og`%Y,*D%j%;">
                    <field name="TEXT">Total Profit: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="total_profit" id="|K4ymCMY8D%B0Pqg?9ad"></block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="IuxXfH4y2;l}4;x^GXgv">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="Qq=J(YADm#qJRtdnM78y">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="total_profit" id="W{-s|:=aTg]?pW@/|k~#"></block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="~h}JcSkFo$2+DvY7Z(i1">
                        <field name="VAR" id="wVKE8=rsg1^h+DH;fOh$" variabletype="">Expected Profit</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="trade_again" id=";?v.`3czHAz0=p.kKdO$"></block>
                </statement>
                <statement name="ELSE">
                  <block type="text_print" id="{#=T-jZoV^~Hg2fDop#P">
                    <value name="TEXT">
                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text_join" id="LlYXC#rV|?[e@:Hp=,j=">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="e{xh9Rs1RU:W_h6hSy/1">
                            <field name="TEXT">Done! Total profit: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="total_profit" id="TPWF3d]yS|:~*^VVyv]X"></block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="during_purchase" id="fN/jdM^M/w/pr.?!4,=K" collapsed="true" x="-4" y="607">
    <statement name="DURING_PURCHASE_STACK">
      <block type="controls_if" id="!FNfQ{a+W$R8dX46{!~Q">
        <value name="IF0">
          <block type="check_sell" id=")nOTZIfKxj05?1@Cb(uW"></block>
        </value>
      </block>
    </statement>
  </block>
</xml>