﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="WdN*t|t`J.[4A4{]|_Yv">S:Input List</variable>
    <variable type="" id="9ybJGO9I@5/2zu|xLR+`">S:Period</variable>
    <variable type="" id="RT[Ow4y]).DMC2bU;N~|">_candles</variable>
    <variable type="" id="JHiZAzcg)Su0GAcVF?YB">_channel(K/D/Both)</variable>
    <variable type="" id="LIuJ::1K1#6[Q8evOt`L">_length</variable>
    <variable type="" id="Zg]^D_lUsj,ms,_@N}|q">_smoothK</variable>
    <variable type="" id="]_7}[ec]+~peLPy(m|$`">_smoothD</variable>
    <variable type="" id="VffID-EjCs/%+X~d#wlC">S:K</variable>
    <variable type="" id="TI,H(+i7[c/(G4Eb?R=#">Initial Amount</variable>
    <variable type="" id="t52+8k@$Du9yO5}S.YR=">Stoch D</variable>
    <variable type="" id="Y8@UL{)3`D30I{a:%-LN">Histogram</variable>
    <variable type="" id="?$PaTZY@``LY^m@71v{q">S:input_type</variable>
    <variable type="" id="$7KM=8LDznm~^*Wfj4iS">S:last_price</variable>
    <variable type="" id="8@lNTcjCsV05tT_pWWDW">S:loop_i</variable>
    <variable type="" id=":x=HET%=l?i]ry}vP*C,">S:candles</variable>
    <variable type="" id="ZA.:@-,3vJ?lb@`rbN^d">S:D</variable>
    <variable type="" id="e}SvfkW53S$6g7xA3z,C">Win Amount</variable>
    <variable type="" id="g!9R2coFN`IOA^0XBe=p">S:list</variable>
    <variable type="" id="3!04wBS#F}FXXXQ1JaP`">Expected Profit</variable>
    <variable type="" id="v{#uG^C|q9Y%6JD3ik@(">Stoch_K</variable>
    <variable type="" id="Q,%RK)CKIF1f1}C0*]#8">S:loop_j</variable>
    <variable type="" id="(ar;R[+e{gn,9*.*p1+;">S:lowest_price</variable>
    <variable type="" id="k++b%2dg.A2gHKFF98Dh">S:biggest_price</variable>
    <variable type="" id="OS?qcNi=SM-2)Kh+|HMA">Maximum Loss</variable>
    <variable type="" id="O;*B/%~b*(FGuUur,)%z">RSI</variable>
    <variable type="" id="#Xb}lG~R#wy;DDB,^H7e">S:i</variable>
    <variable type="" id="#1nvvzeHDuOZUBj|Esbr">martingale::multiplier</variable>
    <variable type="" id="himwqBlrRy(D=UJR|T})">Max Loss Amount</variable>
    <variable type="" id="`vN*~677_yEB++/g95(W">S:j</variable>
  </variables>
  <block type="procedures_defreturn" id="|!vA(o/o[JIeR2}{q72s" collapsed="true" x="12" y="-66">
    <mutation>
      <arg name="S:Input List" varid="WdN*t|t`J.[4A4{]|_Yv"></arg>
      <arg name="S:Period" varid="9ybJGO9I@5/2zu|xLR+`"></arg>
    </mutation>
    <field name="NAME">indicator::GetStochK</field>
    <comment pinned="false" h="206" w="221">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="1%v{9C9:+OY!.t^53-%#">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="math_number_property" id=";0to{X[Q6H)WO{q[(OAw">
            <mutation divisor_input="false"></mutation>
            <field name="PROPERTY">POSITIVE</field>
            <value name="NUMBER_TO_CHECK">
              <shadow type="math_number" id="4;*{~2:%;+c@fY{;#]nc">
                <field name="NUM">0</field>
              </shadow>
              <block type="lists_getIndex" id="PQMF9p2;.kOgFi$|(T~G">
                <mutation statement="false" at="false"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">LAST</field>
                <value name="VALUE">
                  <block type="variables_get" id="a0I9[z^r}J~$)3xAD0;5">
                    <field name="VAR" id="WdN*t|t`J.[4A4{]|_Yv" variabletype="">S:Input List</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="@Y8I?4c08~PE$vzKi{qr">
            <field name="VAR" id="?$PaTZY@``LY^m@71v{q" variabletype="">S:input_type</field>
            <value name="VALUE">
              <block type="text" id="P~{Ugi7,AAan:_|!W58+">
                <field name="TEXT">tick</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="%^TKZkMra?5/rQ(Jjz;l">
                <field name="VAR" id="$7KM=8LDznm~^*Wfj4iS" variabletype="">S:last_price</field>
                <value name="VALUE">
                  <block type="lists_getIndex" id="HjizYnQ4k-m#dZ,u%+Gy">
                    <mutation statement="false" at="false"></mutation>
                    <field name="MODE">GET</field>
                    <field name="WHERE">LAST</field>
                    <value name="VALUE">
                      <block type="variables_get" id="VBVydc{-]2,zHjwW#TT4">
                        <field name="VAR" id="WdN*t|t`J.[4A4{]|_Yv" variabletype="">S:Input List</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="9+tuK01o(:2AbN0uGQqi">
            <field name="VAR" id="$7KM=8LDznm~^*Wfj4iS" variabletype="">S:last_price</field>
            <value name="VALUE">
              <block type="read_ohlc_obj" id="^:Y[L{/f`W^6y_kAcjf5">
                <field name="OHLCFIELD_LIST">close</field>
                <value name="OHLCOBJ">
                  <block type="lists_getIndex" id="Mz;deV~FurV*+{h8#}Ge">
                    <mutation statement="false" at="false"></mutation>
                    <field name="MODE">GET</field>
                    <field name="WHERE">LAST</field>
                    <value name="VALUE">
                      <block type="variables_get" id="pCY7nVt!VkQwpDc(}*v+">
                        <field name="VAR" id="WdN*t|t`J.[4A4{]|_Yv" variabletype="">S:Input List</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="variables_set" id="AdX8!:0RqA[Wg.vfu8bO">
            <field name="VAR" id="8@lNTcjCsV05tT_pWWDW" variabletype="">S:loop_i</field>
            <value name="VALUE">
              <block type="math_number" id="7i{uxz#6;O-:hF0`moIo">
                <field name="NUM">1</field>
              </block>
            </value>
            <next>
              <block type="controls_whileUntil" id="$pf+$lOUST;jMMVwF=3(">
                <field name="MODE">WHILE</field>
                <value name="BOOL">
                  <block type="logic_compare" id="c,KP[yQq$xFTHLwP5;/y">
                    <field name="OP">LTE</field>
                    <value name="A">
                      <block type="variables_get" id="ynrk(QrGw]Mk?;Xm2b0$">
                        <field name="VAR" id="8@lNTcjCsV05tT_pWWDW" variabletype="">S:loop_i</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id=")?b=wz_Jt@3avU7d2hS;">
                        <field name="VAR" id="9ybJGO9I@5/2zu|xLR+`" variabletype="">S:Period</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO">
                  <block type="controls_if" id=":=w8tBmuzEp[[qc7o+EK">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="d$WP=D-hbI,:N@)}`T3H">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="2},LOa[FtgXDPIIu!#I3">
                            <field name="VAR" id="?$PaTZY@``LY^m@71v{q" variabletype="">S:input_type</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="text" id=":iJj$g7Zlgs4,pn+GQyI">
                            <field name="TEXT">tick</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="|glB@SI$EIwzcI!9E[s|">
                        <field name="VAR" id="#Xb}lG~R#wy;DDB,^H7e" variabletype="">S:i</field>
                        <value name="VALUE">
                          <block type="lists_getIndex" id="^R3G?/Z9B!?1uJ}_pY0s">
                            <mutation statement="false" at="true"></mutation>
                            <field name="MODE">GET</field>
                            <field name="WHERE">FROM_END</field>
                            <value name="VALUE">
                              <block type="variables_get" id="tmok6$K1]{$Xj?#jczJQ">
                                <field name="VAR" id="WdN*t|t`J.[4A4{]|_Yv" variabletype="">S:Input List</field>
                              </block>
                            </value>
                            <value name="AT">
                              <block type="variables_get" id="[Hh|M@=8=F_@m3{{[ZDt">
                                <field name="VAR" id="8@lNTcjCsV05tT_pWWDW" variabletype="">S:loop_i</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="variables_set" id="cU:6/}w{?-yMbd_IV0YG">
                        <field name="VAR" id="#Xb}lG~R#wy;DDB,^H7e" variabletype="">S:i</field>
                        <value name="VALUE">
                          <block type="read_ohlc_obj" id="0?qO{_N7IEy+T|w[#XWl">
                            <field name="OHLCFIELD_LIST">low</field>
                            <value name="OHLCOBJ">
                              <block type="lists_getIndex" id="5L-S_v6z7s:1o/B%9,Yq">
                                <mutation statement="false" at="true"></mutation>
                                <field name="MODE">GET</field>
                                <field name="WHERE">FROM_END</field>
                                <value name="VALUE">
                                  <block type="variables_get" id="hQi$JpGy+2NXA5_-y{uG">
                                    <field name="VAR" id="WdN*t|t`J.[4A4{]|_Yv" variabletype="">S:Input List</field>
                                  </block>
                                </value>
                                <value name="AT">
                                  <block type="variables_get" id="Yd2C2lZHXKy![IID{AyE">
                                    <field name="VAR" id="8@lNTcjCsV05tT_pWWDW" variabletype="">S:loop_i</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="7bFEk.r_.V2xGft!l0#U">
                        <value name="IF0">
                          <block type="logic_operation" id="nD9(7:OB(mKr(ad;6E!i">
                            <field name="OP">OR</field>
                            <value name="A">
                              <block type="logic_compare" id="Ra%h*mn0i3dvpZhLDdrT">
                                <field name="OP">GT</field>
                                <value name="A">
                                  <block type="variables_get" id="C;mx,jUd):(fm5veE1TB">
                                    <field name="VAR" id="(ar;R[+e{gn,9*.*p1+;" variabletype="">S:lowest_price</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="GI|93ZTS0h*BG)]X=C,4">
                                    <field name="VAR" id="#Xb}lG~R#wy;DDB,^H7e" variabletype="">S:i</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_negate" id="Q6[h8qdz0D$4tK1l$cwp">
                                <value name="BOOL">
                                  <block type="variables_get" id=".bqKmZR@aQUJB2Y(4m}]">
                                    <field name="VAR" id="(ar;R[+e{gn,9*.*p1+;" variabletype="">S:lowest_price</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="FhEb:xKqH.dZpk~w7*{}">
                            <field name="VAR" id="(ar;R[+e{gn,9*.*p1+;" variabletype="">S:lowest_price</field>
                            <value name="VALUE">
                              <block type="variables_get" id="Y?Fn)c7*Q=:T7IiW.td|">
                                <field name="VAR" id="#Xb}lG~R#wy;DDB,^H7e" variabletype="">S:i</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="math_change" id="%lPckwT90yFBCx}aQkb=">
                            <field name="VAR" id="8@lNTcjCsV05tT_pWWDW" variabletype="">S:loop_i</field>
                            <value name="DELTA">
                              <shadow type="math_number" id="(yx{d[*7H5#H,$=fuaEg">
                                <field name="NUM">1</field>
                              </shadow>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="variables_set" id="SzcyE}DjlCXF2=I+|jf2">
                    <field name="VAR" id="Q,%RK)CKIF1f1}C0*]#8" variabletype="">S:loop_j</field>
                    <value name="VALUE">
                      <block type="math_number" id="`48IJObHz;BRRHPdCRq!">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_whileUntil" id="6*|KB-lSjzkbaW0j;|{j">
                        <field name="MODE">WHILE</field>
                        <value name="BOOL">
                          <block type="logic_compare" id="j1xs]Nv:__$ZZO]1vaE=">
                            <field name="OP">LTE</field>
                            <value name="A">
                              <block type="variables_get" id="eS_;w`4~3O~xw{S6xHI8">
                                <field name="VAR" id="Q,%RK)CKIF1f1}C0*]#8" variabletype="">S:loop_j</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="E($#RzLw^,AjjK]%)2*J">
                                <field name="VAR" id="9ybJGO9I@5/2zu|xLR+`" variabletype="">S:Period</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO">
                          <block type="controls_if" id="itw-4P#t{9C)yBWJP*w$">
                            <mutation else="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="aG2Y*j*uq?N9xmlht(]2">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="variables_get" id="N`qYx_(3gCu~0aGqyL~i">
                                    <field name="VAR" id="?$PaTZY@``LY^m@71v{q" variabletype="">S:input_type</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="Qk8;Z7pxa8IAI0Yqsj(I">
                                    <field name="TEXT">tick</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="X|?Ft#cb{CU7Zx){91O]">
                                <field name="VAR" id="`vN*~677_yEB++/g95(W" variabletype="">S:j</field>
                                <value name="VALUE">
                                  <block type="lists_getIndex" id="d[zBJxywr33};FJKs:9o">
                                    <mutation statement="false" at="true"></mutation>
                                    <field name="MODE">GET</field>
                                    <field name="WHERE">FROM_END</field>
                                    <value name="VALUE">
                                      <block type="variables_get" id="l;nAK$A]Lz(ctZIsOo(P">
                                        <field name="VAR" id="WdN*t|t`J.[4A4{]|_Yv" variabletype="">S:Input List</field>
                                      </block>
                                    </value>
                                    <value name="AT">
                                      <block type="variables_get" id="DngG}p#R9!+tf!N1aS@,">
                                        <field name="VAR" id="Q,%RK)CKIF1f1}C0*]#8" variabletype="">S:loop_j</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <statement name="ELSE">
                              <block type="variables_set" id="QT4VrI4uG+xP5;FG[oTj">
                                <field name="VAR" id="`vN*~677_yEB++/g95(W" variabletype="">S:j</field>
                                <value name="VALUE">
                                  <block type="read_ohlc_obj" id="1B`O|?o{ggtwgB01U];w">
                                    <field name="OHLCFIELD_LIST">high</field>
                                    <value name="OHLCOBJ">
                                      <block type="lists_getIndex" id="R??mS/3UxJtvkvJ-HaK4">
                                        <mutation statement="false" at="true"></mutation>
                                        <field name="MODE">GET</field>
                                        <field name="WHERE">FROM_END</field>
                                        <value name="VALUE">
                                          <block type="variables_get" id="W8`#,S2=7`s5EcBwN6Uv">
                                            <field name="VAR" id="WdN*t|t`J.[4A4{]|_Yv" variabletype="">S:Input List</field>
                                          </block>
                                        </value>
                                        <value name="AT">
                                          <block type="variables_get" id="zI/2VqvI,HvA`14pngD{">
                                            <field name="VAR" id="Q,%RK)CKIF1f1}C0*]#8" variabletype="">S:loop_j</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="X=BKa#oJdBk(s`|k{-AQ">
                                <value name="IF0">
                                  <block type="logic_operation" id="_;-bX]2-J|ZSJPc?,Kw#">
                                    <field name="OP">OR</field>
                                    <value name="A">
                                      <block type="logic_compare" id="6F4mW#3ned`E;Yf]r~ep">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="g8zk=;;Z/,;Yqn.y6g:i">
                                            <field name="VAR" id="k++b%2dg.A2gHKFF98Dh" variabletype="">S:biggest_price</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="0Q2pm#?elB2g$B.*G;~p">
                                            <field name="VAR" id="`vN*~677_yEB++/g95(W" variabletype="">S:j</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_negate" id="VC6HuXcQ;^vsyjh$XBID">
                                        <value name="BOOL">
                                          <block type="variables_get" id="6;Q/3^vr1b5|~k!TKnkM">
                                            <field name="VAR" id="k++b%2dg.A2gHKFF98Dh" variabletype="">S:biggest_price</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="variables_set" id="3.Ca_YLO?TPaV09^ck08">
                                    <field name="VAR" id="k++b%2dg.A2gHKFF98Dh" variabletype="">S:biggest_price</field>
                                    <value name="VALUE">
                                      <block type="variables_get" id="$W+17jk@,6A1GsjmM^3Z">
                                        <field name="VAR" id="`vN*~677_yEB++/g95(W" variabletype="">S:j</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="math_change" id="/TMGveZWeE^m(pu.i]je">
                                    <field name="VAR" id="Q,%RK)CKIF1f1}C0*]#8" variabletype="">S:loop_j</field>
                                    <value name="DELTA">
                                      <shadow type="math_number" id="_Ma5SD?EFSI+S~Zth~5=">
                                        <field name="NUM">1</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="t(,IiyGB_V[u*C;H15Z7">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number" id="cQ[cnQ7RjtA,jP1+S$-d">
            <field name="NUM">1</field>
          </shadow>
          <block type="math_arithmetic" id="U![grDGk2XIEZU),a87P">
            <field name="OP">DIVIDE</field>
            <value name="A">
              <shadow type="math_number" id="UVNp*N.HPP.?]gG7x_C*">
                <field name="NUM">1</field>
              </shadow>
              <block type="math_arithmetic" id="l+M8?JTe!3+UeJ]?pSbk">
                <field name="OP">MINUS</field>
                <value name="A">
                  <shadow type="math_number" id="v}HJ}vTPm3Gslc3i$P|x">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="I~Fz+#0|sdz4sfxUTJ)!">
                    <field name="VAR" id="$7KM=8LDznm~^*Wfj4iS" variabletype="">S:last_price</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="2@(}mb_JCPi$i{teVr+-">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id=";lb.#n5n7c8|i;q}{zUY">
                    <field name="VAR" id="(ar;R[+e{gn,9*.*p1+;" variabletype="">S:lowest_price</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <shadow type="math_number" id="U:Fky+LD_6UKu+X[ay-k">
                <field name="NUM">1</field>
              </shadow>
              <block type="math_arithmetic" id="=%)O[t@]/4|%%O~w)z%8">
                <field name="OP">MINUS</field>
                <value name="A">
                  <shadow type="math_number" id="T2u:z7tlSM)4jG8@e-Kz">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="R,NXv.k+ud[|G^85`MCf">
                    <field name="VAR" id="k++b%2dg.A2gHKFF98Dh" variabletype="">S:biggest_price</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="=U6lq/9b1VF]53@N{^]-">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="hOirCNWMB,-pqFC$UUT?">
                    <field name="VAR" id="(ar;R[+e{gn,9*.*p1+;" variabletype="">S:lowest_price</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="DoswA.M,rKm#c75=$a4`">
            <field name="NUM">100</field>
          </shadow>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="}dV0zCj2^,^s%*%{[4g(" collapsed="true" x="279" y="-72">
    <mutation>
      <arg name="_candles" varid="RT[Ow4y]).DMC2bU;N~|"></arg>
      <arg name="_channel(K/D/Both)" varid="JHiZAzcg)Su0GAcVF?YB"></arg>
      <arg name="_length" varid="LIuJ::1K1#6[Q8evOt`L"></arg>
      <arg name="_smoothK" varid="Zg]^D_lUsj,ms,_@N}|q"></arg>
      <arg name="_smoothD" varid="]_7}[ec]+~peLPy(m|$`"></arg>
    </mutation>
    <field name="NAME">indicator::GetStochKD</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="T3ija|%9^8Y{%y.d7I*Z">
        <field name="VAR" id="VffID-EjCs/%+X~d#wlC" variabletype="">S:K</field>
        <value name="VALUE">
          <block type="procedures_callreturn" id="6m?_hL~ivtx#N35@1`D(">
            <mutation name="indicator::GetStochK">
              <arg name="S:Input List"></arg>
              <arg name="S:Period"></arg>
            </mutation>
            <value name="ARG0">
              <block type="variables_get" id="`5]==`4SZ5c?8//wMKbn">
                <field name="VAR" id="RT[Ow4y]).DMC2bU;N~|" variabletype="">_candles</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="variables_get" id="l)1|JsLqCH4;NcRZUAbr">
                <field name="VAR" id="Zg]^D_lUsj,ms,_@N}|q" variabletype="">_smoothK</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="-dR7y|Zs|RvFumc.=rJo">
            <field name="VAR" id=":x=HET%=l?i]ry}vP*C," variabletype="">S:candles</field>
            <value name="VALUE">
              <block type="variables_get" id="Y/Y^jCyb%N?nK3l(.9~*">
                <field name="VAR" id="RT[Ow4y]).DMC2bU;N~|" variabletype="">_candles</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="rd/i9NsH1Q[#YJMpH-{!">
                <field name="VAR" id="g!9R2coFN`IOA^0XBe=p" variabletype="">S:list</field>
                <value name="VALUE">
                  <block type="lists_create_with" id="v+f}rW~PL)uF!VL@AT46">
                    <mutation items="0"></mutation>
                  </block>
                </value>
                <next>
                  <block type="lists_setIndex" id="sQ.TbK^qUeKX]WhOONZT">
                    <mutation at="false"></mutation>
                    <field name="MODE">INSERT</field>
                    <field name="WHERE">FIRST</field>
                    <value name="LIST">
                      <block type="variables_get" id="ZH2}KMHXdn*nc`|BeF#^">
                        <field name="VAR" id="g!9R2coFN`IOA^0XBe=p" variabletype="">S:list</field>
                      </block>
                    </value>
                    <value name="TO">
                      <block type="procedures_callreturn" id="9QvTTEX]-44?b$Z(|:ue">
                        <mutation name="indicator::GetStochK">
                          <arg name="S:Input List"></arg>
                          <arg name="S:Period"></arg>
                        </mutation>
                        <value name="ARG0">
                          <block type="variables_get" id="A+`fuPd*Y_pCTF*VPD8C">
                            <field name="VAR" id=":x=HET%=l?i]ry}vP*C," variabletype="">S:candles</field>
                          </block>
                        </value>
                        <value name="ARG1">
                          <block type="variables_get" id="W]onZ1|#@IAOZgfC~;0f">
                            <field name="VAR" id="LIuJ::1K1#6[Q8evOt`L" variabletype="">_length</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="lists_getIndex" id="):@qvyMRayA{?{f:TW`@">
                        <mutation statement="true" at="false"></mutation>
                        <field name="MODE">REMOVE</field>
                        <field name="WHERE">LAST</field>
                        <value name="VALUE">
                          <block type="variables_get" id="Y{dnB_l7(,Vv1eVM}^;]">
                            <field name="VAR" id=":x=HET%=l?i]ry}vP*C," variabletype="">S:candles</field>
                          </block>
                        </value>
                        <next>
                          <block type="lists_setIndex" id="q.0?+$%Fx[gppy2UrlRF">
                            <mutation at="false"></mutation>
                            <field name="MODE">INSERT</field>
                            <field name="WHERE">FIRST</field>
                            <value name="LIST">
                              <block type="variables_get" id="d1_g+Mo?RBd%:KtU+VmE">
                                <field name="VAR" id="g!9R2coFN`IOA^0XBe=p" variabletype="">S:list</field>
                              </block>
                            </value>
                            <value name="TO">
                              <block type="procedures_callreturn" id="zn.vU;TNQzj|QDxlcTS?">
                                <mutation name="indicator::GetStochK">
                                  <arg name="S:Input List"></arg>
                                  <arg name="S:Period"></arg>
                                </mutation>
                                <value name="ARG0">
                                  <block type="variables_get" id="6p;w$lJ+nP]DO)5[y5J@">
                                    <field name="VAR" id=":x=HET%=l?i]ry}vP*C," variabletype="">S:candles</field>
                                  </block>
                                </value>
                                <value name="ARG1">
                                  <block type="variables_get" id="i^CVwFz#|B;UG)7HlQ[G">
                                    <field name="VAR" id="LIuJ::1K1#6[Q8evOt`L" variabletype="">_length</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="lists_getIndex" id="n$xP^_MXCcc$D|V]m#Ra">
                                <mutation statement="true" at="false"></mutation>
                                <field name="MODE">REMOVE</field>
                                <field name="WHERE">LAST</field>
                                <value name="VALUE">
                                  <block type="variables_get" id="mzzKk/y4LASe~wTp5`DT">
                                    <field name="VAR" id=":x=HET%=l?i]ry}vP*C," variabletype="">S:candles</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="lists_setIndex" id="9SJiE+[Q#DQq.$`H+.#8">
                                    <mutation at="false"></mutation>
                                    <field name="MODE">INSERT</field>
                                    <field name="WHERE">FIRST</field>
                                    <value name="LIST">
                                      <block type="variables_get" id="FABD+^f)9BS0p*U|%MUy">
                                        <field name="VAR" id="g!9R2coFN`IOA^0XBe=p" variabletype="">S:list</field>
                                      </block>
                                    </value>
                                    <value name="TO">
                                      <block type="procedures_callreturn" id="KzYhd#+xUyK}|Nu:ySRl">
                                        <mutation name="indicator::GetStochK">
                                          <arg name="S:Input List"></arg>
                                          <arg name="S:Period"></arg>
                                        </mutation>
                                        <value name="ARG0">
                                          <block type="variables_get" id="O;o#N%ji2C^Kq,H2`.w|">
                                            <field name="VAR" id=":x=HET%=l?i]ry}vP*C," variabletype="">S:candles</field>
                                          </block>
                                        </value>
                                        <value name="ARG1">
                                          <block type="variables_get" id="DD4p7?a}=]zD1V$.!~tl">
                                            <field name="VAR" id="LIuJ::1K1#6[Q8evOt`L" variabletype="">_length</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="lists_getIndex" id="1y?F54:L7S}(Lx$#H%M.">
                                        <mutation statement="true" at="false"></mutation>
                                        <field name="MODE">REMOVE</field>
                                        <field name="WHERE">LAST</field>
                                        <value name="VALUE">
                                          <block type="variables_get" id="0PMF(KOifJ6OTVm/IWtW">
                                            <field name="VAR" id=":x=HET%=l?i]ry}vP*C," variabletype="">S:candles</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="lists_setIndex" id="5aNJde):XefX~T*+1/Nu">
                                            <mutation at="false"></mutation>
                                            <field name="MODE">INSERT</field>
                                            <field name="WHERE">FIRST</field>
                                            <value name="LIST">
                                              <block type="variables_get" id="!j?Di[oKE(7@Urie{@:!">
                                                <field name="VAR" id="g!9R2coFN`IOA^0XBe=p" variabletype="">S:list</field>
                                              </block>
                                            </value>
                                            <value name="TO">
                                              <block type="procedures_callreturn" id=".#ck5?%^sQ@{n%Uq2t?H">
                                                <mutation name="indicator::GetStochK">
                                                  <arg name="S:Input List"></arg>
                                                  <arg name="S:Period"></arg>
                                                </mutation>
                                                <value name="ARG0">
                                                  <block type="variables_get" id="?X+_5#Est8xd)Uup$go}">
                                                    <field name="VAR" id=":x=HET%=l?i]ry}vP*C," variabletype="">S:candles</field>
                                                  </block>
                                                </value>
                                                <value name="ARG1">
                                                  <block type="variables_get" id="Sl@0;$Hv@/JlsS.|=(Id">
                                                    <field name="VAR" id="LIuJ::1K1#6[Q8evOt`L" variabletype="">_length</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id="@:W^=Q[]1qq)jJeNpQ*X">
                                                <field name="VAR" id="ZA.:@-,3vJ?lb@`rbN^d" variabletype="">S:D</field>
                                                <value name="VALUE">
                                                  <block type="sma" id="Sx,FBI=aMRK$D7M){{qN">
                                                    <value name="INPUT">
                                                      <block type="variables_get" id="I#jwvNT.L-z)x[L:)4r;">
                                                        <field name="VAR" id="g!9R2coFN`IOA^0XBe=p" variabletype="">S:list</field>
                                                      </block>
                                                    </value>
                                                    <value name="PERIOD">
                                                      <shadow type="math_number" id="0*u;$9XgjY*!*eBuy0ic">
                                                        <field name="NUM">3</field>
                                                      </shadow>
                                                      <block type="variables_get" id="gw5@!Jkix:|ETHz8UH|l">
                                                        <field name="VAR" id="]_7}[ec]+~peLPy(m|$`" variabletype="">_smoothD</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="logic_ternary" id="kia7_u4AUYEH6?bs{e%Z">
        <value name="IF">
          <block type="logic_compare" id="~3Q`A;+zuqwHzwx{jhq$">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="^8lHq(S(3^mfA1=;!#58">
                <field name="VAR" id="JHiZAzcg)Su0GAcVF?YB" variabletype="">_channel(K/D/Both)</field>
              </block>
            </value>
            <value name="B">
              <block type="text" id="Vl21#r?G![-c9_Myjv}K">
                <field name="TEXT">D</field>
              </block>
            </value>
          </block>
        </value>
        <value name="THEN">
          <block type="variables_get" id="#KHYf[pDMCx0VoYkV6F$">
            <field name="VAR" id="ZA.:@-,3vJ?lb@`rbN^d" variabletype="">S:D</field>
          </block>
        </value>
        <value name="ELSE">
          <block type="logic_ternary" id="W%oVGjWlAkmmWdx/+V%A">
            <value name="IF">
              <block type="logic_compare" id="EAP6w#z*OHkEK|WvoTQ]">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="$j)ryC%:AS^^C)B8VWe:">
                    <field name="VAR" id="JHiZAzcg)Su0GAcVF?YB" variabletype="">_channel(K/D/Both)</field>
                  </block>
                </value>
                <value name="B">
                  <block type="text" id="ZP-l79c8P(NRed61H*Ek">
                    <field name="TEXT">K</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="THEN">
              <block type="variables_get" id="~xH(Qs@aogj]eF[OEi6/">
                <field name="VAR" id="VffID-EjCs/%+X~d#wlC" variabletype="">S:K</field>
              </block>
            </value>
            <value name="ELSE">
              <block type="lists_create_with" id="Q~xoDZ%J!.Im9.0=Cr^,">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="variables_get" id="P:soDorI#)~O$Xx6J9dY">
                    <field name="VAR" id="VffID-EjCs/%+X~d#wlC" variabletype="">S:K</field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="variables_get" id="_lgVusBS`YiRdo`,Gh)0">
                    <field name="VAR" id="ZA.:@-,3vJ?lb@`rbN^d" variabletype="">S:D</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="tick_analysis" id="HJa:IV:_byU^Ua*$XONH" collapsed="true" x="569" y="-65">
    <statement name="TICKANALYSIS_STACK">
      <block type="variables_set" id="DFQ,!8wVfN%`qD3r!.mT">
        <field name="VAR" id="t52+8k@$Du9yO5}S.YR=" variabletype="">Stoch D</field>
        <value name="VALUE">
          <block type="procedures_callreturn" id="}=m!AMFr(iEiSTSNf`f|">
            <mutation name="indicator::GetStochKD">
              <arg name="_candles"></arg>
              <arg name="_channel(K/D/Both)"></arg>
              <arg name="_length"></arg>
              <arg name="_smoothK"></arg>
              <arg name="_smoothD"></arg>
            </mutation>
            <value name="ARG0">
              <block type="lists_getSublist" id="=-^~bC2|?y{mRn`pA+18">
                <mutation at1="false" at2="false"></mutation>
                <field name="WHERE1">FIRST</field>
                <field name="WHERE2">LAST</field>
                <value name="LIST">
                  <block type="ticks" id="o]~kHXJ0M?r,[RovpanI"></block>
                </value>
              </block>
            </value>
            <value name="ARG1">
              <block type="text" id=";h4ra~XMrt*r`I)Te!$p">
                <field name="TEXT">D</field>
              </block>
            </value>
            <value name="ARG2">
              <block type="math_number" id="LmNAzMd,c)IIFle4*FME">
                <field name="NUM">10</field>
              </block>
            </value>
            <value name="ARG3">
              <block type="math_number" id="@8@~wPOm)@VQ:p1t8HNQ">
                <field name="NUM">5</field>
              </block>
            </value>
            <value name="ARG4">
              <block type="math_number" id="KXEE0l6am^gT8A/[klV{">
                <field name="NUM">3</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="controls_if" id="fyh9H[i)R;jc6b0xjaIw">
            <mutation elseif="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="aCw*]2~X/Fh~e~6noN^n">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="variables_get" id="vTl5NG!;)/-XY2qny*,D">
                    <field name="VAR" id="t52+8k@$Du9yO5}S.YR=" variabletype="">Stoch D</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="@~Z63H~BTp1M2uYCw?F2">
                    <field name="NUM">80</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="notify" id="|KXm.tL1`P)FpE9m;Y{/">
                <field name="NOTIFICATION_TYPE">success</field>
                <field name="NOTIFICATION_SOUND">silent</field>
                <value name="MESSAGE">
                  <shadow type="text" id="mUCA,|lyrP#f{bXXEXt;">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text" id="OjEPUb)qkZSHiiEMZ]Z#">
                    <field name="TEXT">Stoch&gt;80 </field>
                  </block>
                </value>
              </block>
            </statement>
            <value name="IF1">
              <block type="logic_compare" id="G_QQJW[7uw*Uta,]45#!">
                <field name="OP">LT</field>
                <value name="A">
                  <block type="variables_get" id="?|qM{T#n$96EVK34Vc=$">
                    <field name="VAR" id="t52+8k@$Du9yO5}S.YR=" variabletype="">Stoch D</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="TSltVd7/zasm2s;h1`J;">
                    <field name="NUM">20</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO1">
              <block type="notify" id="i4)?@=;nrX9!vjB;nucg">
                <field name="NOTIFICATION_TYPE">error</field>
                <field name="NOTIFICATION_SOUND">silent</field>
                <value name="MESSAGE">
                  <shadow type="text" id="#V[hMu5vRF!#/+C,@+K-">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text" id="$CN|Th#N3T.HYtTnsEF:">
                    <field name="TEXT">Stoch&lt;20 </field>
                  </block>
                </value>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" collapsed="true" x="916" y="-65">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="lXx[u)])DplI5tNJCX#E">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="f`.9rMI;|4i^FZ9y12zT">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="notify" id="4YfK{W[2OoWl^*}:`-~%">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">earned-money</field>
            <value name="MESSAGE">
              <block type="text_join" id="NI6_z2cNjwq/t2B^h`{=">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="5%$!H}8?@4$/?s+Piv_+">
                    <field name="TEXT">Win: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="read_details" id="rm)(g3DL.ASYfcDYc913">
                    <field name="DETAIL_INDEX">4</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="RHjB4R=uQ`(l+$;WvdmJ">
                <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
                <value name="VALUE">
                  <block type="variables_get" id="@f`s#/,Qh+L1siQ%@LZu">
                    <field name="VAR" id="e}SvfkW53S$6g7xA3z,C" variabletype="">Win Amount</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="notify" id="=%CD;.rm0YSeX3^NARv{">
            <field name="NOTIFICATION_TYPE">error</field>
            <field name="NOTIFICATION_SOUND">job-done</field>
            <value name="MESSAGE">
              <block type="text_join" id="`~I~AJSjE5P*6+$e,}D8">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="CrG9@.tREViPIC`9}[=i">
                    <field name="TEXT">Loss: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="math_single" id="nlr^LH9]K.,!~{!S_Q*6">
                    <field name="OP">ABS</field>
                    <value name="NUM">
                      <shadow type="math_number" id="pe:l,[yfpPuE-)d3*.,%">
                        <field name="NUM">9</field>
                      </shadow>
                      <block type="read_details" id="[:48l.owbE2cBTmqoyO1">
                        <field name="DETAIL_INDEX">4</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="math_change" id="fZr!9v0GJno]2?#^f:],">
                <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
                <value name="DELTA">
                  <shadow type="math_number" id="(]GS)V@8Ctdg3v2E@jlY">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="z/WaQqeZuv/Zm?rK6V,8">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="Z@8CJ%w{vP|HSGrX6_|R">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_single" id="_jH,FeYPHFM7tmj.CVso">
                        <field name="OP">ABS</field>
                        <value name="NUM">
                          <shadow type="math_number" id="]whX,`:RR{}94Il[LH_E">
                            <field name="NUM">9</field>
                          </shadow>
                          <block type="read_details" id="bKxhF?]DA_i*QVe-yb_X">
                            <field name="DETAIL_INDEX">4</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="aJV]c6a38`GC_S]Yryu^">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="sk4Ntk[-cj^OW~=BUtV]">
                        <field name="VAR" id="#1nvvzeHDuOZUBj|Esbr" variabletype="">martingale::multiplier</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="X)8ln$MDH0FqTVSB{OuF">
                    <value name="IF0">
                      <block type="logic_compare" id="4Oc$~[[wtRu=wws9Lmt(">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="math_single" id="`Gjie|Z~7{OVFZ1cRy*=">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id=",N`k%BQ|bfznfjP*JUe+">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="read_details" id="!eXzvhZHl#ED^IYC%f64">
                                <field name="DETAIL_INDEX">4</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="}C8o9bUH`nB$Cx0l0Zo$">
                            <field name="VAR" id="himwqBlrRy(D=UJR|T})" variabletype="">Max Loss Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id=".|dn+LQd#)hRw5m1Q4:@">
                        <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
                        <value name="VALUE">
                          <block type="variables_get" id="5C|=Rc8Zg}mhG?7.}I=5">
                            <field name="VAR" id="e}SvfkW53S$6g7xA3z,C" variabletype="">Win Amount</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="notify" id="+22zCiPYK`7t/0,(j^hu">
            <field name="NOTIFICATION_TYPE">info</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="13ZNjx,;FBn{xq;;T~L4">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="I(n.3v{gwNKj!b4UK-TV">
                    <field name="TEXT">Total Profit: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="total_profit" id="?=%:cTu{h@KWwZoev4|t"></block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="(#7D~2Va0l51${Pu!yW;">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="Qtsk$6Qd[X~o1wD~hfOt">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="total_profit" id="5]xuiqe3-INE?#f@Y=fu"></block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="_9Hf(nmF~1H_+_d`Hazz">
                        <field name="VAR" id="3!04wBS#F}FXXXQ1JaP`" variabletype="">Expected Profit</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="[^X~=j0--A~:d7R9rZ}w">
                    <value name="IF0">
                      <block type="contract_check_result" id="b=[:uhX3@/~}a$2[Xwxs">
                        <field name="CHECK_RESULT">loss</field>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="controls_if" id="~AF%1bVa3b;nkX-V3Q#_">
                        <value name="IF0">
                          <block type="logic_compare" id=":p*F7Z/7,hw4:V$%UKj4">
                            <field name="OP">LTE</field>
                            <value name="A">
                              <block type="variables_get" id="zxXT;a-C*?r(v.R@:u[!">
                                <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="F=jpj6Sa4lXj=_*U6UD-">
                                <field name="VAR" id="OS?qcNi=SM-2)Kh+|HMA" variabletype="">Maximum Loss</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="trade_again" id=")o8,}Q?0FkGk)-%mn3C;"></block>
                        </statement>
                      </block>
                    </statement>
                    <next>
                      <block type="trade_again" id="1P(yqTf0n(m!F{Ri4gxk"></block>
                    </next>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="text_print" id="-)Qjpn/c$W_)gB%MdIir">
                    <value name="TEXT">
                      <shadow type="text" id="]XR@@VL{)*ZI)WlTipd_">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text_join" id="t;s[5Z2J?n5$VabcYdow">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="H$7i.%r.PFeQh_Soc[||">
                            <field name="TEXT">I Earned !!! </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="total_profit" id="cgi0g($gg7bzWm^};+`4"></block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="trade" id="a}?G8wUmqZ3rl?jre]+O" x="1" y="-6">
    <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="oL,N!GcRwTD~1)jNy,Y%">
        <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
        <value name="VALUE">
          <block type="math_number" id="#e?V2:ZH7i{8sQn=q5uw">
            <field name="NUM">0.35</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="-sO/76{)WZOk%x;3(ZXA">
            <field name="VAR" id="e}SvfkW53S$6g7xA3z,C" variabletype="">Win Amount</field>
            <value name="VALUE">
              <block type="math_number" id="fdqPY!0Jz`J;@kk2hCfn">
                <field name="NUM">0.35</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="3k@clny)TTcuVoq--]J0">
                <field name="VAR" id="3!04wBS#F}FXXXQ1JaP`" variabletype="">Expected Profit</field>
                <value name="VALUE">
                  <block type="math_number" id="Y)6O[GV7ZmHO@/ka$fTH">
                    <field name="NUM">5</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="*T116jD,Gj:Rg~cJv+|6">
                    <field name="VAR" id="OS?qcNi=SM-2)Kh+|HMA" variabletype="">Maximum Loss</field>
                    <value name="VALUE">
                      <block type="math_number" id="Wl/Qk-aPx9((}$Je$~.N">
                        <field name="NUM">6</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="8,Aejn}Pz{m$2TU:)~Q,">
                        <field name="VAR" id="#1nvvzeHDuOZUBj|Esbr" variabletype="">martingale::multiplier</field>
                        <value name="VALUE">
                          <block type="math_number" id="19a#Ed}f85,KnB.?NZJ9">
                            <field name="NUM">0.6</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="x=V33~4Lb|(sLv`J[:Eb">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <shadow type="math_number" id="O*@58sDc=!cOO}*b2vf9">
            <field name="NUM">6</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number" id="ml)25~7^q}3I9}vjf:%K">
            <field name="NUM">0.35</field>
          </shadow>
          <block type="variables_get" id="gOK}2q0kQ7N_6P6LvQtR">
            <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" collapsed="true" x="2" y="544">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="variables_set" id="RqJ~K3DJ}k.+i!?n,_Cx">
        <field name="VAR" id="Y8@UL{)3`D30I{a:%-LN" variabletype="">Histogram</field>
        <value name="VALUE">
          <block type="lists_getIndex" id="/;T]w%H(B*P+nRIGFAo[" collapsed="true">
            <mutation statement="false" at="false"></mutation>
            <field name="MODE">GET</field>
            <field name="WHERE">LAST</field>
            <value name="VALUE">
              <block type="macda" id=")$z$^%Z*))bGL`~PJ;S1">
                <field name="MACDFIELDS_LIST">0</field>
                <value name="INPUT">
                  <block type="ticks" id="Y}IDUn((]9TRjT3bE-q="></block>
                </value>
                <value name="FAST_EMA_PERIOD">
                  <shadow type="math_number" id="#%v[6OL{q1FwS?*W#[Ic">
                    <field name="NUM">14</field>
                  </shadow>
                  <block type="math_number" id="pd|b,PXis`$)QuIXE_hI">
                    <field name="NUM">12</field>
                  </block>
                </value>
                <value name="SLOW_EMA_PERIOD">
                  <shadow type="math_number" id="3T#b7Z,i*O9*FBah}g^f">
                    <field name="NUM">29</field>
                  </shadow>
                  <block type="math_number" id="=NuqVOuJil5C1vPA|68o">
                    <field name="NUM">24</field>
                  </block>
                </value>
                <value name="SIGNAL_EMA_PERIOD">
                  <block type="math_number" id="OUl5uWtr*X6lf7NOuI:i">
                    <field name="NUM">6</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="b,/VLH5{(.g.W*.LYDq$">
            <field name="VAR" id="t52+8k@$Du9yO5}S.YR=" variabletype="">Stoch D</field>
            <value name="VALUE">
              <block type="procedures_callreturn" id="0RH!FuX*}p+$.yqm0wr!" collapsed="true">
                <mutation name="indicator::GetStochKD">
                  <arg name="_candles"></arg>
                  <arg name="_channel(K/D/Both)"></arg>
                  <arg name="_length"></arg>
                  <arg name="_smoothK"></arg>
                  <arg name="_smoothD"></arg>
                </mutation>
                <value name="ARG0">
                  <block type="lists_getSublist" id="L0Fr048Z6t;3=yj:Hx7b">
                    <mutation at1="false" at2="false"></mutation>
                    <field name="WHERE1">FIRST</field>
                    <field name="WHERE2">LAST</field>
                    <value name="LIST">
                      <block type="ticks" id="Rp_5,u9PU(5[Rs{jobhh"></block>
                    </value>
                  </block>
                </value>
                <value name="ARG1">
                  <block type="text" id="*q`vvI7`Y0N5lJ[!5uSR">
                    <field name="TEXT">D</field>
                  </block>
                </value>
                <value name="ARG2">
                  <block type="math_number" id="6p.yw6}C=Rdw,uX-!ASx">
                    <field name="NUM">10</field>
                  </block>
                </value>
                <value name="ARG3">
                  <block type="math_number" id=")U~~.ipsNdsjlix9p?tI">
                    <field name="NUM">5</field>
                  </block>
                </value>
                <value name="ARG4">
                  <block type="math_number" id="s)fKu=:DI5Ef|sH2FkuM">
                    <field name="NUM">3</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="4nyWwvR_TL_l^UiLT$nG">
                <field name="VAR" id="v{#uG^C|q9Y%6JD3ik@(" variabletype="">Stoch_K</field>
                <value name="VALUE">
                  <block type="procedures_callreturn" id="rfRRlt!Umc-S(88E$n4y" collapsed="true">
                    <mutation name="indicator::GetStochK">
                      <arg name="S:Input List"></arg>
                      <arg name="S:Period"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="lists_getSublist" id="~;d`{f8xJyx|f9D{B=+)">
                        <mutation at1="true" at2="false"></mutation>
                        <field name="WHERE1">FROM_END</field>
                        <field name="WHERE2">LAST</field>
                        <value name="LIST">
                          <block type="ticks" id="H1o8lb@gn9BJ;a5izl_9"></block>
                        </value>
                        <value name="AT1">
                          <block type="math_number" id="hj#{/IiAM4ieDWq`l4fq">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="ARG1">
                      <block type="math_number" id="^pkj`(%7j+ma5bI{t$ff">
                        <field name="NUM">10</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id=".K|;BtQ49F`8shk)|px{">
                    <field name="VAR" id="O;*B/%~b*(FGuUur,)%z" variabletype="">RSI</field>
                    <value name="VALUE">
                      <block type="lists_getIndex" id="g8!0X`Ry,~/rAJZrcDs)" collapsed="true">
                        <mutation statement="false" at="false"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">LAST</field>
                        <value name="VALUE">
                          <block type="rsia" id="o3bENVPpv@qd_e-,xd~$">
                            <value name="INPUT">
                              <block type="ticks" id="VjFE8_t;e0KO(;vjOHg3"></block>
                            </value>
                            <value name="PERIOD">
                              <shadow type="math_number" id="#IgL=X`gx.tFc4/{SJUb">
                                <field name="NUM">10</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="xcLaW2%0g+_~WM%r`p{B">
                        <field name="NOTIFICATION_TYPE">warn</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <shadow type="text" id="K}Bj/%@!wqwO0Q6}$G/)">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text_join" id="^L(o#]x6yAtHlp$@{{S?">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="UBffonzh(KT)fYkRF}h|">
                                <field name="TEXT">RSI: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="-,19lsj){SA3:u-4F%%W">
                                <field name="VAR" id="O;*B/%~b*(FGuUur,)%z" variabletype="">RSI</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="controls_if" id="S:fqR-@jQXu!uu5,eJ9j">
                            <value name="IF0">
                              <block type="logic_operation" id="N]swt+n0//ixFMO=y9JO">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_operation" id="gV;L@_wp8%,sL61W+O$Q">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="}v)7xnfDc*ygV%r^*;vj">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="?L}B)x/gol6Gr$@MOD|a">
                                            <field name="VAR" id="t52+8k@$Du9yO5}S.YR=" variabletype="">Stoch D</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="vjnValjD^NrI;QpfZ*r;">
                                            <field name="NUM">80</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="o.o4zY)/,tu)w-n.e4Gr">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="IMh?s}#tqjmBx(Xa~4e+">
                                            <field name="VAR" id="v{#uG^C|q9Y%6JD3ik@(" variabletype="">Stoch_K</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="4E%FHEPrW!rD=P`2.9U:">
                                            <field name="NUM">80</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_operation" id="n,?GkNK[an_p(g)k|]O8">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="!T2nWQu}d*Y,yj/0iN+S">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="!Tgcwx-#GD_@Yoz+:MJV">
                                            <field name="VAR" id="Y8@UL{)3`D30I{a:%-LN" variabletype="">Histogram</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="uhnirbq7IgiIg)FRdEAi">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="u3l9Q7%{QWo_$J_VyQ$v">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id=";=|H_o6uM1.rJ[y#U/:t">
                                            <field name="VAR" id="O;*B/%~b*(FGuUur,)%z" variabletype="">RSI</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="*ljR341xM[~-N^as}Zz-">
                                            <field name="NUM">70</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="purchase" id="W6q#Z-I3q3d[d3-`S[dS">
                                <field name="PURCHASE_LIST">PUT</field>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="]xfdyfSoFD6cHId;=B`^">
                                <value name="IF0">
                                  <block type="logic_operation" id="ECKz`.q+st1MprrK=-lT">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_operation" id="T9=(s4+%8ptN)qF.|SEB">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="szsiyZn2DZ!%}%#WX4%{">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id="j]nZXN`nsDGR7YDf]V==">
                                                <field name="VAR" id="t52+8k@$Du9yO5}S.YR=" variabletype="">Stoch D</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="1SUi@9]c9w*H!tx(Srh=">
                                                <field name="NUM">20</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="5v~2:+{1]A86;Qb#E~A?">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id="psQDF,tF}2.nhjp[zIXS">
                                                <field name="VAR" id="v{#uG^C|q9Y%6JD3ik@(" variabletype="">Stoch_K</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="]7a^=rrcs.(.mpLe,]Di">
                                                <field name="NUM">20</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_operation" id="9L@-EO5Vd+K@|lQ1]C5u">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="QMS_Zb,H]aOq8aS5Gp.T">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id="^#V~I0V1B4$iJ5$-$eJO">
                                                <field name="VAR" id="Y8@UL{)3`D30I{a:%-LN" variabletype="">Histogram</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="9Q%%yvUy%qXD]tb4k/yx">
                                                <field name="NUM">0</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="WY]?eV_Dm(!e{Ygu!bA9">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id=",TAkaWl$GEfO,2;Q~Jev">
                                                <field name="VAR" id="O;*B/%~b*(FGuUur,)%z" variabletype="">RSI</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="zfr`o*a|,CZq^}*M2s/w">
                                                <field name="NUM">30</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="purchase" id=":wY#|@c3.93w8SUO)@fW">
                                    <field name="PURCHASE_LIST">CALL</field>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>