﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="d$Dea3+o,_ybAPrKRZl[">binary::is the candle new</variable>
    <variable type="" id="P`[HA*-TBw5k6pl5CnSC">Sum</variable>
    <variable type="" id="S:SbVwg2EGPUSbfhxQLy">martingale</variable>
    <variable type="" id="ln^Jn^`NdgW6ep9dllre">binary::current candle time</variable>
    <variable type="" id="}=IB)V]c4f%CrCkye}[%">MaxLoss</variable>
    <variable type="" id="D)jZ5$HqQ[KBr}Pb(]aH">Num of win</variable>
    <variable type="" id="?R_|3Gt|g)7=U2RYRqC+">Num of loss</variable>
    <variable type="" id="L(cfh5HeFSd:8;%_D3.F">Contract Type</variable>
    <variable type="" id=")Wy},.f{rdw4J5=7,Ps;">zigzag_Win</variable>
    <variable type="" id="VY!iXF*Y*QGBvZv1/bez">zigzag_Loss</variable>
  </variables>
  <block type="tick_analysis" id="TvBQx[=BF)1oQhZ:uV{p" collapsed="true" x="61" y="-169">
    <statement name="TICKANALYSIS_STACK">
      <block type="variables_set" id="~R:=zz1qwBcg?A^w?G/L">
        <field name="VAR" id="d$Dea3+o,_ybAPrKRZl[" variabletype="">binary::is the candle new</field>
        <value name="VALUE">
          <block type="logic_boolean" id="`;kb`)cxmsU#D:qGE[K!">
            <field name="BOOL">FALSE</field>
          </block>
        </value>
        <next>
          <block type="controls_if" id=")+956do`Vd45#Ri:y=oc">
            <value name="IF0">
              <block type="logic_operation" id=".UeMK}Uc]zBFWWE,+~,=">
                <field name="OP">OR</field>
                <value name="A">
                  <block type="logic_negate" id="OjNB9d5F9W7BZ2]r7b%{">
                    <value name="BOOL">
                      <block type="variables_get" id="K3P=3(q8n5xg8fDZrK]N">
                        <field name="VAR" id="ln^Jn^`NdgW6ep9dllre" variabletype="">binary::current candle time</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_compare" id="@zz9kXPIn*+e!l.U#^UJ">
                    <field name="OP">NEQ</field>
                    <value name="A">
                      <block type="variables_get" id="IWyh5!(%PP}IW.PLGR$B">
                        <field name="VAR" id="ln^Jn^`NdgW6ep9dllre" variabletype="">binary::current candle time</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="read_ohlc" id="/n]/cp7~0P?W}OW=EZ4Y">
                        <field name="OHLCFIELD_LIST">epoch</field>
                        <field name="CANDLEINTERVAL_LIST">default</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id=")yD6u069dPOv9p9Mm8AA">
                <field name="VAR" id="ln^Jn^`NdgW6ep9dllre" variabletype="">binary::current candle time</field>
                <value name="VALUE">
                  <block type="read_ohlc" id="L]w.yHnN8]0Gah{i+tvE">
                    <field name="OHLCFIELD_LIST">epoch</field>
                    <field name="CANDLEINTERVAL_LIST">default</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="kxLtw+j00sV/u?RP~mi-">
                    <field name="VAR" id="d$Dea3+o,_ybAPrKRZl[" variabletype="">binary::is the candle new</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="2HFdWG8`U2t[kl8ZpTOA">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="5S~A!^;f!!}EaU48%U8v" collapsed="true" x="390" y="-173">
    <field name="NAME">binary::is new candle</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="variables_get" id="mh;,*}1tZb!S2?)W7j~(">
        <field name="VAR" id="d$Dea3+o,_ybAPrKRZl[" variabletype="">binary::is the candle new</field>
      </block>
    </value>
  </block>
  <block type="trade" id="73vWdDagX-YhN)CtN.3D" x="9" y="-95">
    <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="@;F(mx-AeyE:(6:KZF$.">
        <field name="VAR" id="P`[HA*-TBw5k6pl5CnSC" variabletype="">Sum</field>
        <value name="VALUE">
          <block type="math_number" id="O#PaP)wRN_lbow+8e16b">
            <field name="NUM">0.35</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="q^cw*~]I`RvLQbot{@gh">
            <field name="VAR" id="S:SbVwg2EGPUSbfhxQLy" variabletype="">martingale</field>
            <value name="VALUE">
              <block type="math_number" id="ku(?IQN?Eq_-{h.O=~(Z">
                <field name="NUM">1.6</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="T+XFP@+anaFm98;)Ywh/">
                <field name="VAR" id="}=IB)V]c4f%CrCkye}[%" variabletype="">MaxLoss</field>
                <value name="VALUE">
                  <block type="math_number" id="m2D]:ts9JpLx.WBZ(rXZ">
                    <field name="NUM">23</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="6v!@?*xZA~*U{SuB=T[N">
                    <field name="VAR" id="L(cfh5HeFSd:8;%_D3.F" variabletype="">Contract Type</field>
                    <value name="VALUE">
                      <block type="text" id="4^!Tx5_|Of5,0r})/9^d">
                        <field name="TEXT">Call</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="3~6kEe[+S6pYMw.C*JA5">
                        <field name="VAR" id="D)jZ5$HqQ[KBr}Pb(]aH" variabletype="">Num of win</field>
                        <value name="VALUE">
                          <block type="math_number" id="DlgXb`;k}9[dx^=[x$W[">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="%)+amc+s=v3]@r$zN~B3">
                            <field name="VAR" id="?R_|3Gt|g)7=U2RYRqC+" variabletype="">Num of loss</field>
                            <value name="VALUE">
                              <block type="math_number" id="-[K^8q]WE?v7B3|z=Umn">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="nj:S!egDe{kz7Y;aUFY9">
                                <field name="VAR" id=")Wy},.f{rdw4J5=7,Ps;" variabletype="">zigzag_Win</field>
                                <value name="VALUE">
                                  <block type="math_number" id="h@@Dkqo/KvAUStw)cfxW">
                                    <field name="NUM">3</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id="_qr?GbiqB/CMGq6ZoWzr">
                                    <field name="VAR" id="VY!iXF*Y*QGBvZv1/bez" variabletype="">zigzag_Loss</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="L6[vnYQxc4QotVh?uX_3">
                                        <field name="NUM">1</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="9vRP9Exs%Ql.oH}Uv!T8">
        <field name="DURATIONTYPE_LIST">s</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
            <field name="NUM">55</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="variables_get" id="Wy{-+6DEKcHNG2bZ(FxZ">
            <field name="VAR" id="P`[HA*-TBw5k6pl5CnSC" variabletype="">Sum</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="X[gun7Sx6Shn3kldC}mZ" collapsed="true" x="803" y="-89">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="(e)F.,XYDc05N@bbs%.}">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="}]]13{goVqk[ffdut8!(">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="u@`F^7I6Yo^`Tm6FmNYT">
            <field name="VAR" id="P`[HA*-TBw5k6pl5CnSC" variabletype="">Sum</field>
            <value name="VALUE">
              <block type="math_number" id="K%Y9BfrVNq*)[_uxEQ^5">
                <field name="NUM">0.35</field>
              </block>
            </value>
            <next>
              <block type="controls_if" id="{z!~ETJk=#uY$y_8rR3?">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="E-oP-%=Y3K$ctctSkyzf">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="|[[T~ig`/](1-7t]PdY@">
                        <field name="VAR" id="D)jZ5$HqQ[KBr}Pb(]aH" variabletype="">Num of win</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="Zx]mZ$hC_@e:n8HMFP3#">
                        <field name="VAR" id=")Wy},.f{rdw4J5=7,Ps;" variabletype="">zigzag_Win</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="z3}:WAUuht-T(^)gyv~:">
                    <field name="VAR" id="D)jZ5$HqQ[KBr}Pb(]aH" variabletype="">Num of win</field>
                    <value name="VALUE">
                      <block type="math_number" id="~j5*a3LsPDAAu[Pk=5Sf">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_if" id="1-c,VlN:,{n1.F271)z.">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="gxiH0*@=TH*=X8}I4~99">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="oJph;:)i1!I_WB0WcIXe">
                                <field name="VAR" id="L(cfh5HeFSd:8;%_D3.F" variabletype="">Contract Type</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="text" id="8,_RxM0Mz5s4IB8=I|YI">
                                <field name="TEXT">Call</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="NqLuJB2Ie+-fc%JKw[9s">
                            <field name="VAR" id="L(cfh5HeFSd:8;%_D3.F" variabletype="">Contract Type</field>
                            <value name="VALUE">
                              <block type="text" id="@?@7V9GA}$A%hK#uEmq|">
                                <field name="TEXT">Put</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <statement name="ELSE">
                          <block type="variables_set" id="D7Gd;Qbdxw6C|V-UBB7?">
                            <field name="VAR" id="L(cfh5HeFSd:8;%_D3.F" variabletype="">Contract Type</field>
                            <value name="VALUE">
                              <block type="text" id="QH4m()a)1|soCbiE]$wx">
                                <field name="TEXT">Call</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="math_change" id="MGJT8L]`(f)TK;M8ux1S">
                    <field name="VAR" id="D)jZ5$HqQ[KBr}Pb(]aH" variabletype="">Num of win</field>
                    <value name="DELTA">
                      <shadow type="math_number" id="gf/gOt?FN(N}?WZgyWP)">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_number" id=";[7L?ML;^nwDwR4U.AQh">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="y)iTFAQO[XQZfq@.RIjA">
            <field name="VAR" id="P`[HA*-TBw5k6pl5CnSC" variabletype="">Sum</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="@lQoD7_e9P#i~wSdJ7|c">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow type="math_number" id="=-Z{2m+7{j:!TQvmtPvw">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="CHx,jd9)H[2x/OOSP=Fj">
                    <field name="VAR" id="P`[HA*-TBw5k6pl5CnSC" variabletype="">Sum</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id=")$ko*,9Nly)0fF@l5s/#">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="lfAy,[gX2GYe+yH:wG)e">
                    <field name="VAR" id="S:SbVwg2EGPUSbfhxQLy" variabletype="">martingale</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="mUz^4OGlyQ%waadR|*Kb">
                <field name="VAR" id="D)jZ5$HqQ[KBr}Pb(]aH" variabletype="">Num of win</field>
                <value name="VALUE">
                  <block type="math_number" id="hms7wZ.#la2c*g-n,$$5">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="FyjLcE2,@-ZIiZ+4fdPQ">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="contract_check_result" id="{*+LBh~K?I0W.f)Xw_{o">
                <field name="CHECK_RESULT">loss</field>
              </block>
            </value>
            <statement name="DO0">
              <block type="controls_if" id="]~hdcTU/ZAevd1ZIk|J9">
                <value name="IF0">
                  <block type="logic_compare" id="iyUEIvLKtrG+%f^Dc/=@">
                    <field name="OP">LTE</field>
                    <value name="A">
                      <block type="variables_get" id="-Ur1cW9MTr^h,6oma8t:">
                        <field name="VAR" id="P`[HA*-TBw5k6pl5CnSC" variabletype="">Sum</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="HyHNc;1q*|#yN[1^9wlS">
                        <field name="VAR" id="}=IB)V]c4f%CrCkye}[%" variabletype="">MaxLoss</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="U2+.LzC/FIJ99AJ6TD+F">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="Y6{N*Jp`mV:+3aO1KZJF">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="8;6HCHsow[cFBzG:UeIn">
                            <field name="VAR" id="?R_|3Gt|g)7=U2RYRqC+" variabletype="">Num of loss</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="+g(J:facJp}R[s;[xyY(">
                            <field name="VAR" id="VY!iXF*Y*QGBvZv1/bez" variabletype="">zigzag_Loss</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="F?Z(4zHSh!b6nH8BbQ_9">
                        <field name="VAR" id="?R_|3Gt|g)7=U2RYRqC+" variabletype="">Num of loss</field>
                        <value name="VALUE">
                          <block type="math_number" id="a]b#)oO!*mmS]c6M.:z)">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="controls_if" id="A~6PXHj*UFA(+Kb;rrZ$">
                            <mutation else="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="S{?-d:o)no!kHVjqUoMd">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="variables_get" id="_651bMy6(Ux)*PJ{krA9">
                                    <field name="VAR" id="L(cfh5HeFSd:8;%_D3.F" variabletype="">Contract Type</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="(AqWAFgMOhq=I0U`7#}Y">
                                    <field name="TEXT">Call</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="gx8=|9n%;$zvWnX-JKj)">
                                <field name="VAR" id="L(cfh5HeFSd:8;%_D3.F" variabletype="">Contract Type</field>
                                <value name="VALUE">
                                  <block type="text" id="`AH1hW+~Mm3)^JpRIoub">
                                    <field name="TEXT">Put</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <statement name="ELSE">
                              <block type="variables_set" id="KAQg}q*Y]7jQ@FXI4jx,">
                                <field name="VAR" id="L(cfh5HeFSd:8;%_D3.F" variabletype="">Contract Type</field>
                                <value name="VALUE">
                                  <block type="text" id="){wmh3|P_|A9:[[da%}p">
                                    <field name="TEXT">Call</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="math_change" id="pY`,Na0u!}RYlsApF?!d">
                        <field name="VAR" id="?R_|3Gt|g)7=U2RYRqC+" variabletype="">Num of loss</field>
                        <value name="DELTA">
                          <shadow type="math_number" id="*W*fI|C3N@Prc`_UG6Sl">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id="4Kve3?k=didG,U)h+~m?">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="trade_again" id="*!99[u4t-,9v)GE7C-jt"></block>
                    </next>
                  </block>
                </statement>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="variables_set" id="q(G+Jv@0nrfmR+L5179z">
                <field name="VAR" id="?R_|3Gt|g)7=U2RYRqC+" variabletype="">Num of loss</field>
                <value name="VALUE">
                  <block type="math_number" id="d(tad]UK!H#up]R2SA*m">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="trade_again" id="G3N9[Qa9+cp)C6g+B|!I"></block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" collapsed="true" x="11" y="505">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="N?VE{pw{Gi4nFiT[MsZG">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="procedures_callreturn" id="NZ^.Rh)d1s;`,+0|ebn#">
            <mutation name="binary::is new candle"></mutation>
          </block>
        </value>
        <statement name="DO0">
          <block type="controls_if" id="i^y1-),y7~|#4?F~nZ_|">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="!WkMU~7t-BaX/6mu`-0^">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="nFY.TxN+a_J`Np?^d:2c">
                    <field name="VAR" id="L(cfh5HeFSd:8;%_D3.F" variabletype="">Contract Type</field>
                  </block>
                </value>
                <value name="B">
                  <block type="text" id="2,4_9}MD6ZJ9Io([N~c;">
                    <field name="TEXT">Call</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
                <field name="PURCHASE_LIST">CALL</field>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="purchase" id="@5$RB6|F?Ws{|s)a6(3k">
                <field name="PURCHASE_LIST">PUT</field>
              </block>
            </statement>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="notify" id="Hn/(1otR}2hfU[Tgq=,t">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <shadow type="text" id="hm@+x@VvOG+*$eC-[],7">
                <field name="TEXT">abc</field>
              </shadow>
              <block type="text" id="TB_OzPOZ=6~#KXkwj32.">
                <field name="TEXT">Waiting for the signal...</field>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
</xml>