﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="i00|w1:}.d#YS`k=DV{h">__input__list</variable>
    <variable type="" id="~*~d:E]xl^S]v5HDtC8N">__input__list__length</variable>
    <variable type="" id="(YXa5=(#0cbftWr)jad,">IU:values</variable>
    <variable type="" id="K_$~Pg[qse-,q|F=IODs">IU:period</variable>
    <variable type="" id="L+t[lR_u]+R^Joq!nI$F">ID:values</variable>
    <variable type="" id="VJEE$YxRyP;A7hZ4@l*r">ID:period</variable>
    <variable type="" id="x;Tr2kZ*~RV7y$O1)RDA">Lose Count</variable>
    <variable type="" id="pVSRt6{O)UElhNfeAbAT">__f__result</variable>
    <variable type="" id="L?r3Wy}d#kSRTvt=?^St">IU:sma</variable>
    <variable type="" id="yf5!+Wk1MECX?@(Ps$O;">IU:isUp</variable>
    <variable type="" id="Uw/[PROTECTED EMAIL]^,E#5t~!">ID:isDown</variable>
    <variable type="" id="SpRq#Y,7`}*,6;UESs|k">ID:sma</variable>
    <variable type="" id="B}RX+HxC$6ECsq~+ADG4">Expected Profit</variable>
    <variable type="" id="W}}1(R)+L*kf5{v]7lHa">Initial Amount</variable>
    <variable type="" id="S6Zc2L9o,:66fuIHaJiT">__f__list</variable>
    <variable type="" id="~P^D`0~*46+q,}@m3Xo7">IU:prev</variable>
    <variable type="" id="2Nc$1rf`JpAy)!32PN9#">ID:prev</variable>
    <variable type="" id="Tk5LECuD3Y#QY~^B%-A=">Win Amount</variable>
    <variable type="" id=")Coptvzw9iC$JJ%MI,HT">roughly</variable>
    <variable type="" id="7*I/W.vsDDDzECNR41Hr">isPause</variable>
    <variable type="" id="*7Z5fmE-B%:+]N-!6Fo-">_firstTick</variable>
    <variable type="" id="wDUsa@I%)%h0RYNK~kB:">_secondTick</variable>
    <variable type="" id="ROwWxk:YBnJ:RU:#xwS*">IU:i</variable>
    <variable type="" id="2NAXYEh}_zO1e}Y2i6A:">ID:i</variable>
    <variable type="" id="UPsTTL%H8Kjbh?V`fE46">_thirdTick</variable>
  </variables>
  <block type="trade" id="73vWdDagX-YhN)CtN.3D" x="37" y="-248">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_75</field>
    <field name="TRADETYPECAT_LIST">callput</field>
    <field name="TRADETYPE_LIST">higherlower</field>
    <field name="TYPE_LIST">PUT</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="XDMYoip}{3uMJ$~,Wa(K">
        <field name="VAR" id="x;Tr2kZ*~RV7y$O1)RDA" variabletype="">Lose Count</field>
        <value name="VALUE">
          <block type="math_number" id="P!2=P_+S,MKLQTjA]xg(">
            <field name="NUM">0</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="dqduY+F]dYVC%/;)_QyX">
            <field name="VAR" id="B}RX+HxC$6ECsq~+ADG4" variabletype="">Expected Profit</field>
            <value name="VALUE">
              <block type="math_number" id="pGL%0jCRlD;R_i-Q:?jz">
                <field name="NUM">100000</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="cG;6qVzC4dU[J9h%wYdK">
                <field name="VAR" id="Tk5LECuD3Y#QY~^B%-A=" variabletype="">Win Amount</field>
                <value name="VALUE">
                  <block type="math_number" id="?UMlJ9?s?=7*h-CIL?Hv">
                    <field name="NUM">100</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="(GqO!$8|aP4T+(5lW(^E">
                    <field name="VAR" id="W}}1(R)+L*kf5{v]7lHa" variabletype="">Initial Amount</field>
                    <value name="VALUE">
                      <block type="math_number" id="dI_3Be9-$EK_$F=d.7w#">
                        <field name="NUM">100</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="CA7br]D?z95V9)OnltO}">
                        <field name="VAR" id="7*I/W.vsDDDzECNR41Hr" variabletype="">isPause</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="67(swgBv8`6zYcaG-Zdc">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="/Z;sOyW2sk7J!?l*4R]2">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <field name="BARRIEROFFSETTYPE_LIST">+</field>
        <value name="DURATION">
          <block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
            <field name="NUM">5</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="variables_get" id="HH%|(LT0f|?KG~.4^e=)">
            <field name="VAR" id="W}}1(R)+L*kf5{v]7lHa" variabletype="">Initial Amount</field>
          </block>
        </value>
        <value name="BARRIEROFFSET">
          <block type="math_number" id="^Z^;|#.SFhlXBB,z*ogY">
            <field name="NUM">25</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" collapsed="true" x="778" y="-224">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="notify" id="mFhOS0+0LZ-w2SI5(5ZI">
        <field name="NOTIFICATION_TYPE">success</field>
        <field name="NOTIFICATION_SOUND">silent</field>
        <value name="MESSAGE">
          <shadow id="Ko^owqwFbe/3Il:nGyh]" type="text">
            <field name="TEXT">abc</field>
          </shadow>
          <block type="text_join" id="xYP^g7y}r3z(KnN@ZU!C">
            <mutation items="2"></mutation>
            <value name="ADD0">
              <block type="text" id="(S/;pdl{!@q~:lxzbE)[">
                <field name="TEXT">Offset:</field>
              </block>
            </value>
            <value name="ADD1">
              <block type="variables_get" id="`ESes%5EnQHG8`a/]{[0">
                <field name="VAR" id=")Coptvzw9iC$JJ%MI,HT" variabletype="">roughly</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="controls_if" id="l5YM;:@REy3*lx%$bJ+#">
            <value name="IF0">
              <block type="logic_compare" id="$P.])PQMP,h=NAbWk~@Y">
                <field name="OP">GTE</field>
                <value name="A">
                  <block type="variables_get" id="M^@|yi2ty=/!Xk*d[/ny">
                    <field name="VAR" id=")Coptvzw9iC$JJ%MI,HT" variabletype="">roughly</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="-Pz?%`E=x;{~Yj,iKvE/">
                    <field name="NUM">50</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id=":`SAk(mVLu~ra#RUAXFM">
                <field name="VAR" id="7*I/W.vsDDDzECNR41Hr" variabletype="">isPause</field>
                <value name="VALUE">
                  <block type="logic_boolean" id=":(YvOs#[v{p5wH]e,R+8">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="3d#:$f}:C+OHK85o(o!@">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="`VE)?rPOJj3ZXA%rwU!)">
                    <field name="VAR" id="7*I/W.vsDDDzECNR41Hr" variabletype="">isPause</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="#f,Ux4Iu2^2~qMfindRd">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <shadow id="Ko^owqwFbe/3Il:nGyh]" type="text">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text" id="g-[p?_(G6}aLp)UQv`{;">
                        <field name="TEXT">The bot is auto pause for 15 minutes. The reason is market volatility too strong.</field>
                      </block>
                    </value>
                    <next>
                      <block type="timeout" id="+I0y-VLp4yE}:J0YJ7|?">
                        <statement name="TIMEOUTSTACK">
                          <block type="controls_if" id="=#G#VT_Km1E4|f*p2RMK">
                            <value name="IF0">
                              <block type="logic_operation" id="]=KDo3}lAn]]%_,s))RA">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_operation" id="X^,cHQ%MV_|~DDdchWd$">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="procedures_callreturn" id="4aH0;CO@)*ME]GC,G?4Z">
                                        <mutation name="isSignalDown">
                                          <arg name="__input__list"></arg>
                                          <arg name="__input__list__length"></arg>
                                        </mutation>
                                        <value name="ARG0">
                                          <block type="ticks" id="$f)}pyCU9_}Edq^nL-O,"></block>
                                        </value>
                                        <value name="ARG1">
                                          <block type="math_number" id="~`,?bCeODtU.pZ$,KIY=">
                                            <field name="NUM">4</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="procedures_callreturn" id="z[Q!ORkei[,fgY`-[Bcp">
                                        <mutation name="is downtrend">
                                          <arg name="ID:values"></arg>
                                          <arg name="ID:period"></arg>
                                        </mutation>
                                        <value name="ARG0">
                                          <block type="ticks" id="ehR80iV5exPC2WB]Jdi,"></block>
                                        </value>
                                        <value name="ARG1">
                                          <block type="math_number" id="HVbs75+%_avV}``-gmc$">
                                            <field name="NUM">10</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_negate" id="OUb+rUrPUo|A/N0jkf9x">
                                    <value name="BOOL">
                                      <block type="procedures_callreturn" id="+`3!LQA*$4#[9S~2aP/+">
                                        <mutation name="is uptrend">
                                          <arg name="IU:values"></arg>
                                          <arg name="IU:period"></arg>
                                        </mutation>
                                        <value name="ARG0">
                                          <block type="ticks" id="B-FR:{i9eG3}5cn?oAKY"></block>
                                        </value>
                                        <value name="ARG1">
                                          <block type="math_number" id="[~-;gAhDGM;/KBn@#T{(">
                                            <field name="NUM">10</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="+nGno%@zD,N??T^LVy+u">
                                <field name="VAR" id="7*I/W.vsDDDzECNR41Hr" variabletype="">isPause</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="sO~PKIH-7sy]%;.QTpL*">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
                                    <field name="PURCHASE_LIST">PUT</field>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <value name="SECONDS">
                          <shadow type="math_number" id="Q4l/Erj9M6,6UNsfd}E!">
                            <field name="NUM">600</field>
                          </shadow>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="controls_if" id=")|6:fJbQ_B2ufbnO!bE-">
                    <value name="IF0">
                      <block type="logic_operation" id="/j|5,2J.lM8T]jn4;D-?">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_operation" id="4?y]!veh-,OUOrgFir!^">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="procedures_callreturn" id="z.eVt5mIx@p2C%X9e~Bv">
                                <mutation name="isSignalDown">
                                  <arg name="__input__list"></arg>
                                  <arg name="__input__list__length"></arg>
                                </mutation>
                                <value name="ARG0">
                                  <block type="ticks" id="k-g@zop3/)vBYI#_@RYv"></block>
                                </value>
                                <value name="ARG1">
                                  <block type="math_number" id="AhF%N*f;#17{mpeAFc4Q">
                                    <field name="NUM">4</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="procedures_callreturn" id="!V3LYsbx)+M47PEUkl7b">
                                <mutation name="is downtrend">
                                  <arg name="ID:values"></arg>
                                  <arg name="ID:period"></arg>
                                </mutation>
                                <value name="ARG0">
                                  <block type="ticks" id="Sqd90{$PKLz}Y]o~;0C!"></block>
                                </value>
                                <value name="ARG1">
                                  <block type="math_number" id="`0`vj?hdUWw/NB)t?{9*">
                                    <field name="NUM">10</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_negate" id="9!L$?jiWB(3|k*th7K3;">
                            <value name="BOOL">
                              <block type="procedures_callreturn" id="86ZM@#mTLJ8;=x_L`ns4">
                                <mutation name="is uptrend">
                                  <arg name="IU:values"></arg>
                                  <arg name="IU:period"></arg>
                                </mutation>
                                <value name="ARG0">
                                  <block type="ticks" id="0YNTL:Q|U2dDsGGfW!F_"></block>
                                </value>
                                <value name="ARG1">
                                  <block type="math_number" id="#`LAHk6^+pLWNwr)=%x(">
                                    <field name="NUM">10</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="purchase" id="#T~VrD.DjSVk$]yGHobI">
                        <field name="PURCHASE_LIST">PUT</field>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="-|Ygi_6+n_cSIfm~/YSL" x="621" y="-197">
    <mutation>
      <arg name="__input__list" varid="i00|w1:}.d#YS`k=DV{h"></arg>
      <arg name="__input__list__length" varid="~*~d:E]xl^S]v5HDtC8N"></arg>
    </mutation>
    <field name="NAME">isSignalDown</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="WS:*td%WB%3NZ98STU_h">
        <field name="VAR" id="pVSRt6{O)UElhNfeAbAT" variabletype="">__f__result</field>
        <value name="VALUE">
          <block type="logic_boolean" id="2`G8*uD`pQ7FRhCbzp7D">
            <field name="BOOL">FALSE</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="vyTEPiN$0lDdB@t6R40#">
            <field name="VAR" id="S6Zc2L9o,:66fuIHaJiT" variabletype="">__f__list</field>
            <value name="VALUE">
              <block type="lists_getSublist" id="q)-Vk=RB2G1[.#41sM*3">
                <mutation at1="true" at2="true"></mutation>
                <field name="WHERE1">FROM_END</field>
                <field name="WHERE2">FROM_END</field>
                <value name="LIST">
                  <block type="variables_get" id="6uD)1c?jDHGwKl`XM^?S">
                    <field name="VAR" id="i00|w1:}.d#YS`k=DV{h" variabletype="">__input__list</field>
                  </block>
                </value>
                <value name="AT1">
                  <block type="variables_get" id="`U8LedTX7)19].O`N_#u">
                    <field name="VAR" id="~*~d:E]xl^S]v5HDtC8N" variabletype="">__input__list__length</field>
                  </block>
                </value>
                <value name="AT2">
                  <block type="math_number" id="J6LpGa{)}(#)10qnW9(Q">
                    <field name="NUM">1</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="##ksBDnPm`nhsrH;_ST}">
                <field name="VAR" id="*7Z5fmE-B%:+]N-!6Fo-" variabletype="">_firstTick</field>
                <value name="VALUE">
                  <block type="lists_getIndex" id="?DWq5LikYWhB4LoNML!2">
                    <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="neW|MGH?}Aezf~HQlV~U">
                        <field name="VAR" id="S6Zc2L9o,:66fuIHaJiT" variabletype="">__f__list</field>
                      </block>
                    </value>
                    <value name="AT">
                      <block type="math_number" id="OzbAwsG/y^V:@L-;ai1;">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="m[9Jp^yhy|},Zf*l-$S#">
                    <field name="VAR" id="wDUsa@I%)%h0RYNK~kB:" variabletype="">_secondTick</field>
                    <value name="VALUE">
                      <block type="lists_getIndex" id="#}^gYzi(mhNbs*|];:va">
                        <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="opoxXSHupyY}j{;#DEm)">
                            <field name="VAR" id="S6Zc2L9o,:66fuIHaJiT" variabletype="">__f__list</field>
                          </block>
                        </value>
                        <value name="AT">
                          <block type="math_number" id="2A|o^$H,J.5-rGf$RW[a">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="Z/@hoQI40mBi1qR@W)VP">
                        <field name="VAR" id="UPsTTL%H8Kjbh?V`fE46" variabletype="">_thirdTick</field>
                        <value name="VALUE">
                          <block type="lists_getIndex" id="8eQg@Az_F[0(|GJ~8ydD">
                            <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="uo3gG1-7dd9.i~($*(16">
                                <field name="VAR" id="S6Zc2L9o,:66fuIHaJiT" variabletype="">__f__list</field>
                              </block>
                            </value>
                            <value name="AT">
                              <block type="math_number" id="p;?x?O5YT5W7?F#Gpicg">
                                <field name="NUM">3</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="x|yX?H6Nn1W2}YP8SJ+p">
                            <field name="VAR" id=")Coptvzw9iC$JJ%MI,HT" variabletype="">roughly</field>
                            <value name="VALUE">
                              <block type="math_round" id="KTi0[RU)rX(|lI)zHJFV">
                                <field name="OP">ROUND</field>
                                <value name="NUM">
                                  <shadow id="i^n$I[mVqWt5cjBfp;7)" type="math_number">
                                    <field name="NUM">3.1</field>
                                  </shadow>
                                  <block type="math_single" id="se[GePb(K@M@y{%unU^a">
                                    <field name="OP">ABS</field>
                                    <value name="NUM">
                                      <shadow id="8-+v$xF4WEi`1/vxdkw-" type="math_number">
                                        <field name="NUM">9</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="cWGd_IU%a-gu)5(Izdy]">
                                        <field name="OP">MINUS</field>
                                        <value name="A">
                                          <shadow id="7|wmY%+OzrGfZp,,WJB`" type="math_number">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="variables_get" id="anMS5^3Ra9YA@0sI/11:">
                                            <field name="VAR" id="*7Z5fmE-B%:+]N-!6Fo-" variabletype="">_firstTick</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow id="~s]1L1Eu?haBB899|l0;" type="math_number">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="variables_get" id="hG4E76;TAj9F3k/;,7y!">
                                            <field name="VAR" id="UPsTTL%H8Kjbh?V`fE46" variabletype="">_thirdTick</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="C3{_N-l%J7RpRwb99vx5">
                                <value name="IF0">
                                  <block type="logic_operation" id="LlG1AW,3aeWnU]FcW%Co">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_operation" id="1sz@/Q;xEqo[Yu9;J/0^">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="2oj/,nNndAPEYi9w[+Sw">
                                            <field name="OP">GT</field>
                                            <value name="A">
                                              <block type="variables_get" id="Lo?Z`Th[#4$y|HIc8lk#">
                                                <field name="VAR" id="wDUsa@I%)%h0RYNK~kB:" variabletype="">_secondTick</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="r$bESyjk=;(ubQmz{C!@">
                                                <field name="VAR" id="*7Z5fmE-B%:+]N-!6Fo-" variabletype="">_firstTick</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="QCC`2iH[n_!:oE!_ui8W">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id="xf}POJH,bcX?PsuyE9^O">
                                                <field name="VAR" id="UPsTTL%H8Kjbh?V`fE46" variabletype="">_thirdTick</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="BWTjv_]yxl9bA.(0~urD">
                                                <field name="VAR" id="wDUsa@I%)%h0RYNK~kB:" variabletype="">_secondTick</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="D!N=!KAyBub{Eds;PV7I">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="%0eYlY9Q?}OrUGH=/TU6">
                                            <field name="VAR" id="UPsTTL%H8Kjbh?V`fE46" variabletype="">_thirdTick</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="mmkZ%o{4gXuy^Q/9p|qi">
                                            <field name="VAR" id="*7Z5fmE-B%:+]N-!6Fo-" variabletype="">_firstTick</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="variables_set" id="j6bMZL:?2Tqx[t|@b!:e">
                                    <field name="VAR" id="pVSRt6{O)UElhNfeAbAT" variabletype="">__f__result</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="Ku#G-UdbP94DNd+ujJ.Q">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="6XL2H0N8E)?9z+KX;WNE">
        <field name="VAR" id="pVSRt6{O)UElhNfeAbAT" variabletype="">__f__result</field>
      </block>
    </value>
  </block>
  <block type="after_purchase" id="finish" collapsed="true" x="603" y="43">
    <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="W}}1(R)+L*kf5{v]7lHa" variabletype="">Initial Amount</field>
                <value name="VALUE">
                  <block type="variables_get" id="xt{eOIX[E!rJ4}0f(|)w">
                    <field name="VAR" id="Tk5LECuD3Y#QY~^B%-A=" variabletype="">Win Amount</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="]ZE?WBUq.eTcfOw1[DpU">
                    <field name="VAR" id="x;Tr2kZ*~RV7y$O1)RDA" variabletype="">Lose Count</field>
                    <value name="VALUE">
                      <block type="math_number" id="#Aa,2*@wz85xJ{geh.u@">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                  </block>
                </next>
              </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 id="GleSn`9j7Cm7/dqg}FIA" type="math_number">
                        <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="i6yIDPNArPHt`40Aa??A">
                <field name="VAR" id="x;Tr2kZ*~RV7y$O1)RDA" variabletype="">Lose Count</field>
                <value name="DELTA">
                  <shadow type="math_number" id="4w-3#yS:qt16+HA(cAOc">
                    <field name="NUM">1</field>
                  </shadow>
                </value>
                <next>
                  <block type="math_change" id="Lp7Sf;6}.+aaQK7u|qC,">
                    <field name="VAR" id="W}}1(R)+L*kf5{v]7lHa" variabletype="">Initial Amount</field>
                    <value name="DELTA">
                      <shadow id="N=Vo^MVz~/^(xt7Ag@8E" type="math_number">
                        <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 id="ka8n8|Dugz,q5FkUjs`7" type="math_number">
                            <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 id="GleSn`9j7Cm7/dqg}FIA" type="math_number">
                                <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 id="{JXdZCp2%s=sfO@yN:n}" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id="L2m6.74Wo}DL)X%A@uE}">
                            <field name="NUM">10.5</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="variables_get" id="ukW~~@_Nepm]fCBs]LI-">
                                <field name="VAR" id="x;Tr2kZ*~RV7y$O1)RDA" variabletype="">Lose Count</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="YPnkyY}Re@N`#hi$:+qK">
                                <field name="NUM">10</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="{Dp3Zh`qx3F{e%!zm[oF">
                            <field name="VAR" id="W}}1(R)+L*kf5{v]7lHa" variabletype="">Initial Amount</field>
                            <value name="VALUE">
                              <block type="variables_get" id="h:P1U@JR9*Miyg4^$hVa">
                                <field name="VAR" id="Tk5LECuD3Y#QY~^B%-A=" variabletype="">Win Amount</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </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="B}RX+HxC$6ECsq~+ADG4" 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="math_change" id=".l$=JV:[:3Xv+|ieO]bz">
                    <field name="VAR" id="B}RX+HxC$6ECsq~+ADG4" variabletype="">Expected Profit</field>
                    <value name="DELTA">
                      <shadow type="math_number" id=",D0y_.Qn90CHFf+HF-Uv">
                        <field name="NUM">100</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="timeout" id=";;voY2rY]2q;?L$%`eWX">
                        <statement name="TIMEOUTSTACK">
                          <block type="trade_again" id="/$sH!$V)N[9MI~v`+[Y-"></block>
                        </statement>
                        <value name="SECONDS">
                          <shadow type="math_number" id="^AGx^T)Bs@2hIA)z)91M">
                            <field name="NUM">15</field>
                          </shadow>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="^BtPrVqmTJNfy~9H7!h8" x="48" y="328">
    <mutation>
      <arg name="IU:values" varid="(YXa5=(#0cbftWr)jad,"></arg>
      <arg name="IU:period" varid="K_$~Pg[qse-,q|F=IODs"></arg>
    </mutation>
    <field name="NAME">is uptrend</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="oFBB7QmQNLjoR)t6W!2C">
        <field name="VAR" id="L?r3Wy}d#kSRTvt=?^St" variabletype="">IU:sma</field>
        <value name="VALUE">
          <block type="emaa" id="Fj0!*RD(G,%]}o!L3G*w">
            <value name="INPUT">
              <block type="lists_getSublist" id="*ybSjprIC7@E3{u=cTOM">
                <mutation at1="true" at2="false"></mutation>
                <field name="WHERE1">FROM_END</field>
                <field name="WHERE2">LAST</field>
                <value name="LIST">
                  <block type="variables_get" id="D3nDL-N084LOYR;6x;g7">
                    <field name="VAR" id="(YXa5=(#0cbftWr)jad," variabletype="">IU:values</field>
                  </block>
                </value>
                <value name="AT1">
                  <block type="math_arithmetic" id="g%){+@+drna~~WjDHuwK">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow id="V4cmRIpD@S]K~#|unBtt" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="zMK#Kv5n@MTwif[[]ry,">
                        <field name="VAR" id="K_$~Pg[qse-,q|F=IODs" variabletype="">IU:period</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow id="]BO9pYlPiisZCsLWQ}N?" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_number" id="(OrjD.Jy1-5Wp{[1wdYK">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <value name="PERIOD">
              <block type="variables_get" id="f(Vd)7V_x0(UQ_mGnXV@">
                <field name="VAR" id="K_$~Pg[qse-,q|F=IODs" variabletype="">IU:period</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="DeEXlP=J_n#0vuW1G%pG">
            <field name="VAR" id="~P^D`0~*46+q,}@m3Xo7" variabletype="">IU:prev</field>
            <value name="VALUE">
              <block type="lists_getIndex" id="{CwG=-yF@mFq5,;W!9yb">
                <mutation statement="false" at="false"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FIRST</field>
                <value name="VALUE">
                  <block type="variables_get" id="A}i@63~xLE5[z80%TPBC">
                    <field name="VAR" id="L?r3Wy}d#kSRTvt=?^St" variabletype="">IU:sma</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="ya{SB(jt)[nQylUz?g,i">
                <field name="VAR" id="yf5!+Wk1MECX?@(Ps$O;" variabletype="">IU:isUp</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="oz,Osq,;N?pU*jC6nlC.">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
                <next>
                  <block type="controls_forEach" id="@[yEmYG!/[|^]+D^YerX">
                    <field name="VAR" id="ROwWxk:YBnJ:RU:#xwS*" variabletype="">IU:i</field>
                    <value name="LIST">
                      <block type="lists_getSublist" id="-gOGm1XUH7iPu0j*s-r0">
                        <mutation at1="true" at2="false"></mutation>
                        <field name="WHERE1">FROM_END</field>
                        <field name="WHERE2">LAST</field>
                        <value name="LIST">
                          <block type="variables_get" id="*gJ4sZLz]x7oTTb+j`G+">
                            <field name="VAR" id="L?r3Wy}d#kSRTvt=?^St" variabletype="">IU:sma</field>
                          </block>
                        </value>
                        <value name="AT1">
                          <block type="math_number" id="~m.#FFdue~hkd4unG!}z">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO">
                      <block type="variables_set" id="AI-=DajG}?M7U8qiYnP!">
                        <field name="VAR" id="yf5!+Wk1MECX?@(Ps$O;" variabletype="">IU:isUp</field>
                        <value name="VALUE">
                          <block type="logic_operation" id="^hGB_rincn}d19e-5OZs">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="variables_get" id="MFY`^,IRwXwv)`_9nzQz">
                                <field name="VAR" id="yf5!+Wk1MECX?@(Ps$O;" variabletype="">IU:isUp</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="k!SE1wW=)7,O;,Ru8|]|">
                                <field name="OP">LTE</field>
                                <value name="A">
                                  <block type="variables_get" id="pEjpLJ()6]26Z!`XjgnR">
                                    <field name="VAR" id="~P^D`0~*46+q,}@m3Xo7" variabletype="">IU:prev</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="3D`e3yhPS~]V;QG-Oq)5">
                                    <field name="VAR" id="ROwWxk:YBnJ:RU:#xwS*" variabletype="">IU:i</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="6FXu5;#,W=ZX:p0UqF2k">
        <field name="VAR" id="yf5!+Wk1MECX?@(Ps$O;" variabletype="">IU:isUp</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="^9gz]OJO6YQN]wJ:R24L" x="702" y="327">
    <mutation>
      <arg name="ID:values" varid="L+t[lR_u]+R^Joq!nI$F"></arg>
      <arg name="ID:period" varid="VJEE$YxRyP;A7hZ4@l*r"></arg>
    </mutation>
    <field name="NAME">is downtrend</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="v8Baj9tHzg+Tb_Z?^7?C">
        <field name="VAR" id="SpRq#Y,7`}*,6;UESs|k" variabletype="">ID:sma</field>
        <value name="VALUE">
          <block type="emaa" id="E]_;?ZQ2DV_|-[L3,n|?">
            <value name="INPUT">
              <block type="lists_getSublist" id="#udT2deGdIEq*NSVeO`F">
                <mutation at1="true" at2="false"></mutation>
                <field name="WHERE1">FROM_END</field>
                <field name="WHERE2">LAST</field>
                <value name="LIST">
                  <block type="variables_get" id="Lcizxzsec:W]eVqy/hQ2">
                    <field name="VAR" id="L+t[lR_u]+R^Joq!nI$F" variabletype="">ID:values</field>
                  </block>
                </value>
                <value name="AT1">
                  <block type="math_arithmetic" id="Kp1FeSOx?KX#Sh#0}D[e">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow id="V4cmRIpD@S]K~#|unBtt" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="rDPTttP{~WWSz?jGZ3EC">
                        <field name="VAR" id="VJEE$YxRyP;A7hZ4@l*r" variabletype="">ID:period</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow id="]BO9pYlPiisZCsLWQ}N?" type="math_number">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_number" id="+KA7_s=|Jc_Du,,{Bd{,">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <value name="PERIOD">
              <block type="variables_get" id="y+./,Bz,*KDXLUr~0lQ%">
                <field name="VAR" id="VJEE$YxRyP;A7hZ4@l*r" variabletype="">ID:period</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="]Vg@IBXf7|%m_JkvLy`z">
            <field name="VAR" id="2Nc$1rf`JpAy)!32PN9#" variabletype="">ID:prev</field>
            <value name="VALUE">
              <block type="lists_getIndex" id="r0~;Q+a_;/(E`YqQ0@P0">
                <mutation statement="false" at="false"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FIRST</field>
                <value name="VALUE">
                  <block type="variables_get" id="oeD~G5fO~k-e=PN~sTV0">
                    <field name="VAR" id="SpRq#Y,7`}*,6;UESs|k" variabletype="">ID:sma</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="3P3`~]Wu,b^6i,XGzA+x">
                <field name="VAR" id="Uw/[PROTECTED EMAIL]^,E#5t~!" variabletype="">ID:isDown</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="L!`mJxK+x4sW,z}G_YI8">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
                <next>
                  <block type="controls_forEach" id="g:UjunDCqB0QU^*b5Hc}">
                    <field name="VAR" id="2NAXYEh}_zO1e}Y2i6A:" variabletype="">ID:i</field>
                    <value name="LIST">
                      <block type="lists_getSublist" id="7]57*%,lsi+~r7p}])0M">
                        <mutation at1="true" at2="false"></mutation>
                        <field name="WHERE1">FROM_END</field>
                        <field name="WHERE2">LAST</field>
                        <value name="LIST">
                          <block type="variables_get" id="nCg?=*t]%nqCW{V0OS{r">
                            <field name="VAR" id="SpRq#Y,7`}*,6;UESs|k" variabletype="">ID:sma</field>
                          </block>
                        </value>
                        <value name="AT1">
                          <block type="math_number" id="Oy1sUEd|ix!{eEGtm#QK">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO">
                      <block type="variables_set" id="YpGuhl2]JN{Iji[9ZE,F">
                        <field name="VAR" id="Uw/[PROTECTED EMAIL]^,E#5t~!" variabletype="">ID:isDown</field>
                        <value name="VALUE">
                          <block type="logic_operation" id="AS?Ubav=)1B3/-+@qxk}">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="variables_get" id="FZjZc^cKbJ@:S~#.`m;(">
                                <field name="VAR" id="Uw/[PROTECTED EMAIL]^,E#5t~!" variabletype="">ID:isDown</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="-Z/7GT5Z|uqc9qh505il">
                                <field name="OP">GTE</field>
                                <value name="A">
                                  <block type="variables_get" id="7ca@D:WrfX]5+R60t9^0">
                                    <field name="VAR" id="2Nc$1rf`JpAy)!32PN9#" variabletype="">ID:prev</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="jeeZiOJO,9+v4Ww?@v=.">
                                    <field name="VAR" id="2NAXYEh}_zO1e}Y2i6A:" variabletype="">ID:i</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="6hc68W:Zs9Dl`6AwTWly">
        <field name="VAR" id="Uw/[PROTECTED EMAIL]^,E#5t~!" variabletype="">ID:isDown</field>
      </block>
    </value>
  </block>
</xml>
