﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="ge|~$.YDiBo@n^0;DV-@">martingale:resultIsWin</variable>
    <variable type="" id="=!9z*+eAQ1,#-FnoU9GJ">martingale:profit</variable>
    <variable type="" id="OoJo:W7qsue;E{R[mnMk">patern</variable>
    <variable type="" id="ovTC4K.Xb-hV!.Vr}THB">martingale:totalProfit</variable>
    <variable type="" id="Y8Xf{G~hV(kg/Pz(UV$g">martingale:tradeAgain</variable>
    <variable type="" id="1tu?Qe5vsEb}#)ZgdvEi">digit4</variable>
    <variable type="" id="BM~Iuky@aEKSXtXgA1sU">martingale:expectedProfit</variable>
    <variable type="" id="/LE-Te]C;P~%B96`q/y*">martingale:size</variable>
    <variable type="" id="kZd[8f$H^ywyI=^2M-}`">martingale:amount</variable>
    <variable type="" id="+Qv@,8dSJODH1bwXa+S8">digit3</variable>
    <variable type="" id="W.o_!{Uu~_:#MXE~-xq.">martingale:maximumLoss</variable>
    <variable type="" id="r$G]Ft);SE0Nx]~vUu9-">digit2</variable>
    <variable type="" id="$74Tk!S)U+OzHRC,en-3">digit1</variable>
  </variables>
  <block type="trade" id="73vWdDagX-YhN)CtN.3D" x="0" y="0">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_50</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="SUBMARKET">
      <block type="tradeOptions" id="@_*RbZjMR(*~e{lFWAlY">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
            <field name="NUM">5</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="procedures_callreturn" id="!u{3VlFd}x~LAr|BMM7G">
            <mutation name="Martingale Trade Amount"></mutation>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="tick_analysis" id="K-Q=o78p~4Ed$2hMia/z" collapsed="true" x="0" y="403">
    <statement name="TICKANALYSIS_STACK">
      <block type="variables_set" id="[dT|?~:mhGsk|ma2-W4.">
        <field name="VAR" id="OoJo:W7qsue;E{R[mnMk" variabletype="">patern</field>
        <value name="VALUE">
          <block type="math_number" id="BeYm(s?r)zQ4%-],y^`B">
            <field name="NUM">0</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="g+nFK//KP]PeK[*.l^]=">
            <field name="VAR" id="1tu?Qe5vsEb}#)ZgdvEi" variabletype="">digit4</field>
            <value name="VALUE">
              <block type="variables_get" id="m5SyW~CPs^%:WZ/mY|nh">
                <field name="VAR" id="+Qv@,8dSJODH1bwXa+S8" variabletype="">digit3</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="MUn$pYqsI}}wW0OkiA6s">
                <field name="VAR" id="+Qv@,8dSJODH1bwXa+S8" variabletype="">digit3</field>
                <value name="VALUE">
                  <block type="variables_get" id="7Dqcs;4!`_Z`G;_#N7r}">
                    <field name="VAR" id="r$G]Ft);SE0Nx]~vUu9-" variabletype="">digit2</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="]Ze7]b7Y0(N))wF,z0dw">
                    <field name="VAR" id="r$G]Ft);SE0Nx]~vUu9-" variabletype="">digit2</field>
                    <value name="VALUE">
                      <block type="variables_get" id="@`cZ,tZr}3zOrs2au@$-">
                        <field name="VAR" id="$74Tk!S)U+OzHRC,en-3" variabletype="">digit1</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="]*=NWS8e0Bb(O`V8P/c|">
                        <field name="VAR" id="$74Tk!S)U+OzHRC,en-3" variabletype="">digit1</field>
                        <value name="VALUE">
                          <block type="last_digit" id="!v@ZWEo)Gw}w)bCz{n/J"></block>
                        </value>
                        <next>
                          <block type="controls_if" id="iCz3:9BIks+bHJ5{XcPl">
                            <mutation else="1"></mutation>
                            <value name="IF0">
                              <block type="math_number_property" id="tdvBQ8_(YQ.fz|0G3J8P">
                                <mutation divisor_input="false"></mutation>
                                <field name="PROPERTY">EVEN</field>
                                <value name="NUMBER_TO_CHECK">
                                  <shadow type="math_number" id="oVxf,~C/$V7[)[-9CSt*">
                                    <field name="NUM">0</field>
                                  </shadow>
                                  <block type="variables_get" id="qECPQ}8m-c_d-b-B,1v5">
                                    <field name="VAR" id="$74Tk!S)U+OzHRC,en-3" variabletype="">digit1</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="math_change" id="gD@,4W(rhs1@%_3#[7`;">
                                <field name="VAR" id="OoJo:W7qsue;E{R[mnMk" variabletype="">patern</field>
                                <value name="DELTA">
                                  <shadow type="math_number" id="ZZ:ay2_mOCB|m$hU9;o5">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="math_number" id="$E,+*A7]/G#laA*W8yRx">
                                    <field name="NUM">2</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <statement name="ELSE">
                              <block type="math_change" id="W3]yrB)6OvAXuRT}269|">
                                <field name="VAR" id="OoJo:W7qsue;E{R[mnMk" variabletype="">patern</field>
                                <value name="DELTA">
                                  <shadow type="math_number" id="ZZ:ay2_mOCB|m$hU9;o5">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="math_number" id="y/mr`K)D;9Y,REs2TP5k">
                                    <field name="NUM">1</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="PS;Hr{EncKL.sOp;lCt}">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="math_number_property" id="l?NN,3@!rx)[H@n+{I.r">
                                    <mutation divisor_input="false"></mutation>
                                    <field name="PROPERTY">EVEN</field>
                                    <value name="NUMBER_TO_CHECK">
                                      <shadow type="math_number" id="oVxf,~C/$V7[)[-9CSt*">
                                        <field name="NUM">0</field>
                                      </shadow>
                                      <block type="variables_get" id="gs%^`7[;C0l#[ok=a/Cn">
                                        <field name="VAR" id="r$G]Ft);SE0Nx]~vUu9-" variabletype="">digit2</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="math_change" id="Yj38+r|Rm7cyZ@D~.}D^">
                                    <field name="VAR" id="OoJo:W7qsue;E{R[mnMk" variabletype="">patern</field>
                                    <value name="DELTA">
                                      <shadow type="math_number" id="7mD1{76+xykwF+qA_b#2">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="math_number" id="I#o4e69CAYA+K;.UkOqC">
                                        <field name="NUM">20</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="math_change" id="l2cDf?NwxHuTY[)9L~-+">
                                    <field name="VAR" id="OoJo:W7qsue;E{R[mnMk" variabletype="">patern</field>
                                    <value name="DELTA">
                                      <shadow type="math_number" id="!?HMGSqI^iXw%KOnVBZ{">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="math_number" id="*n(X8Z?6@1FO2?ye|y!G">
                                        <field name="NUM">10</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="+{U9`Xd1Sa_mU_.ewk9@">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="math_number_property" id="s57OCbt@K:,yPlv=6BQl">
                                        <mutation divisor_input="false"></mutation>
                                        <field name="PROPERTY">EVEN</field>
                                        <value name="NUMBER_TO_CHECK">
                                          <shadow type="math_number" id="oVxf,~C/$V7[)[-9CSt*">
                                            <field name="NUM">0</field>
                                          </shadow>
                                          <block type="variables_get" id="OW_@i*UdHQwWSOVg(sF-">
                                            <field name="VAR" id="+Qv@,8dSJODH1bwXa+S8" variabletype="">digit3</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="math_change" id="ECjZ}vajNXg=L381iE,^">
                                        <field name="VAR" id="OoJo:W7qsue;E{R[mnMk" variabletype="">patern</field>
                                        <value name="DELTA">
                                          <shadow type="math_number" id="ZZ:ay2_mOCB|m$hU9;o5">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="math_number" id="DC6z-]MN29BnF|ojB*+o">
                                            <field name="NUM">200</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="math_change" id="9=MPyOKG+3ON;6@F}P!5">
                                        <field name="VAR" id="OoJo:W7qsue;E{R[mnMk" variabletype="">patern</field>
                                        <value name="DELTA">
                                          <shadow type="math_number" id="^o.SrFCD(/c8on`{iMHH">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="math_number" id="MN6eOdWL5y!*WRux%sI`">
                                            <field name="NUM">100</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="controls_if" id="i?md{?N6;zZ8/k1#geO0">
                                        <mutation else="1"></mutation>
                                        <value name="IF0">
                                          <block type="math_number_property" id="1OL5-^lDC2W|V^.0cOWm">
                                            <mutation divisor_input="false"></mutation>
                                            <field name="PROPERTY">EVEN</field>
                                            <value name="NUMBER_TO_CHECK">
                                              <shadow type="math_number" id="oVxf,~C/$V7[)[-9CSt*">
                                                <field name="NUM">0</field>
                                              </shadow>
                                              <block type="variables_get" id="!kl[F7$Re|j*}/Y|HY@U">
                                                <field name="VAR" id="1tu?Qe5vsEb}#)ZgdvEi" variabletype="">digit4</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="math_change" id="8{/zUk}T7d2u~uJB|(tk">
                                            <field name="VAR" id="OoJo:W7qsue;E{R[mnMk" variabletype="">patern</field>
                                            <value name="DELTA">
                                              <shadow type="math_number" id="w8vXl*Qc)vCSedil4u2l">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="math_number" id="v+8s1Tp2:Fm8*pnjN:j:">
                                                <field name="NUM">2000</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                        <statement name="ELSE">
                                          <block type="math_change" id="5QFv$L,~8ZqsF@:#7I|3">
                                            <field name="VAR" id="OoJo:W7qsue;E{R[mnMk" variabletype="">patern</field>
                                            <value name="DELTA">
                                              <shadow type="math_number" id="r}ioxdamR6zL@L$]$}S0">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="math_number" id="29OUvOEr|9:M{rkGmx`1">
                                                <field name="NUM">1000</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="notify" id="uR@]e-[]]w(^@,$2yZ/J">
                                            <field name="NOTIFICATION_TYPE">info</field>
                                            <field name="NOTIFICATION_SOUND">silent</field>
                                            <value name="MESSAGE">
                                              <block type="variables_get" id="q:X/k/TIbG^8G2HK1v))">
                                                <field name="VAR" id="OoJo:W7qsue;E{R[mnMk" variabletype="">patern</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="during_purchase" id="(4;NieXd}j|Bn!c-YiC|" collapsed="true" x="0" y="456">
    <statement name="DURING_PURCHASE_STACK">
      <block type="controls_if" id="8?eYKAW%VczmRXQ-ou3r">
        <value name="IF0">
          <block type="check_sell" id="M=:_KpEeRAJY_}XTU^8~"></block>
        </value>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="qq2xGirc*Byb/P/HE^]H" collapsed="true" x="0" y="509">
    <field name="NAME">Martingale Trade Amount</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="n4tz9*`uW5vI{Y(mwC)L">
        <value name="IF0">
          <block type="logic_compare" id="3qWA5gevZ|UpE{.gFl4n">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="nXPxXCq9p:hf1Xx:`D_{">
                <field name="VAR" id="BM~Iuky@aEKSXtXgA1sU" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="logic_null" id="Tp8pr^]@7PA~eGl`XK?b"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="p8_@*8We560p~d]XEj-I">
            <field name="VAR" id="BM~Iuky@aEKSXtXgA1sU" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block type="text_prompt_ext" id="%r0#U,KXY;)S1-I},GCs">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text" id="AlB(yFhIT1/FZu-ZEpqQ">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="qa:)sj8|A!lxwG*|YaO]">
            <value name="IF0">
              <block type="logic_compare" id="fo(G)bKdQhx,?aEY[Yl}">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="`Geg[{!:(HTr6q)A];`0">
                    <field name="VAR" id="W.o_!{Uu~_:#MXE~-xq." variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_null" id="!X8^fykpJtsH#Il8+Wh9"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="t3Gw#E]HVqIM/6J-t-2Y">
                <field name="VAR" id="W.o_!{Uu~_:#MXE~-xq." variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block type="text_prompt_ext" id="K[Cz2)F(1ny#Zw!j7j!V">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text" id="dfNPxr:VpC%uF[yz%xk[">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="^CEM+~9aQ2uhnXtkL`kv">
                <value name="IF0">
                  <block type="logic_compare" id="wL4k~{ia}[/ON_+z47RO">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="WjGS@!}HI|kFH{rJqavk">
                        <field name="VAR" id="kZd[8f$H^ywyI=^2M-}`" variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_null" id="qTK#~^WMVK;Wyz1LJ/@d"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="ZxKDnNw2?MsznEZQtR6`">
                    <field name="VAR" id="kZd[8f$H^ywyI=^2M-}`" variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block type="text_prompt_ext" id="^4peSz1pJ=`,CaD#@6Jd">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text" id="=6eX{Eblptb4BBlz7?U[">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="kC@O!Xl:KO^G_(uzKTzH">
                    <value name="IF0">
                      <block type="logic_compare" id="@|K%}q0X`VebpuZQ=EV*">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="(xdUld=/ZoI`Y#*TZfMw">
                            <field name="VAR" id="/LE-Te]C;P~%B96`q/y*" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_null" id="CA@kQ}mQ:c8NW0=5Ed[."></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="^xOi2|SaRE2S4sk8(u74">
                        <field name="VAR" id="/LE-Te]C;P~%B96`q/y*" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block type="math_number" id="V^QkcFsonsJWZ0pgI8IU">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="fwmgCgdRdN{)3S|t|fn7">
                        <value name="IF0">
                          <block type="logic_compare" id="pj:P)Py2NsbQ8@=5Y9D=">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="5A]k/?)Q#Xi4G,Wpd;Pz">
                                <field name="VAR" id="ovTC4K.Xb-hV!.Vr}THB" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_null" id=";,X}K#n`DxM#4`t;d~Cc"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="MmEFyqc*]VjjlJZzlNt[">
                            <field name="VAR" id="ovTC4K.Xb-hV!.Vr}THB" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="DcgRnz]nVdJyT*eH=v!;">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="!BlRd)C:TXj@_wErj#qz">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number" id="F/^.gR-k|dBg*ZMQ,E?v">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="4;YLe/OL#s08%Fg6}T[#">
            <field name="VAR" id="/LE-Te]C;P~%B96`q/y*" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="v*eC4j=U!K8B76C5kQ*U">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="]6BmBNR~M:1|pttC(CT_">
            <field name="VAR" id="kZd[8f$H^ywyI=^2M-}`" variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="TY/(qs?1mzi0doraNq_[" collapsed="true" x="0" y="562">
    <mutation>
      <arg name="martingale:resultIsWin" varid="ge|~$.YDiBo@n^0;DV-@"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="wcQS%xc8=!!#P52Kt:1x">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="P]*Fp7~p#Lj1S#`(3rAr">
            <field name="VAR" id="ge|~$.YDiBo@n^0;DV-@" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id=",*SKPEhPmhmsq#tq`G*9">
            <field name="VAR" id="/LE-Te]C;P~%B96`q/y*" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_number" id="tNP@,EBgjET40TC9jh05">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="t-K_E*m(aYDGloWhgc%=">
            <field name="VAR" id="/LE-Te]C;P~%B96`q/y*" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="!s_!@p|hC)rIE_.8rAh2">
                <field name="OP">ADD</field>
                <value name="A">
                  <shadow type="math_number" id="s`0GxICgfMWy(8a0+N)C">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id=";x;#^I=T5+dN,Zu?u9%y">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="QujpfOq.d^A8_SMe`uvh">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="!7jq#O^~DP+j~efJv=eV">
                        <field name="VAR" id="/LE-Te]C;P~%B96`q/y*" variabletype="">martingale:size</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="%6%m1;%94AYq9a7`g[u!">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_number" id="f4;y.Q47WJBWSp4}1|_k">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id=";_YNR.^H6c{%+!se9mgq">
                    <field name="NUM">1</field>
                  </shadow>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="_b//g0Q,2OW8MbY^`J3E" collapsed="true" x="0" y="615">
    <mutation>
      <arg name="martingale:profit" varid="=!9z*+eAQ1,#-FnoU9GJ"></arg>
      <arg name="martingale:resultIsWin" varid="ge|~$.YDiBo@n^0;DV-@"></arg>
    </mutation>
    <field name="NAME">Martingale Trade Again After Purchase</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="5ph^#sJ_|cnLn{}e(%Z{">
        <field name="VAR" id="ovTC4K.Xb-hV!.Vr}THB" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="[)Nh?MH}TXeN]0n(Q?PP">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="Kj+o2HPe^1#-J*pl.VD9">
            <field name="VAR" id="=!9z*+eAQ1,#-FnoU9GJ" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="=``}2YqGE51x5XO#O{A6">
            <field name="VAR" id="ovTC4K.Xb-hV!.Vr}THB" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="m9HUE{JvBzON.?`k.p0L">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number" id="Y445k*N9Y{3k^0nU:f/a">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_round" id="eOhznKTK*Yn[R~s!l7p;">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow type="math_number" id="NxI4W6P)%aS~YX^5:fm(">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block type="math_arithmetic" id="a52-x:2(jo3fN-]co/k]">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow type="math_number" id="1IiDMd{pA4I8#Jv5:v)F">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="djyZC:DVv!8AFfC.FoYS">
                            <field name="VAR" id="ovTC4K.Xb-hV!.Vr}THB" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="QPp6Ex`FL}B)uWsSrQ*o">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id="qdaI}RV~2ic%D1==.15s">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id=";(PBMt(9fPe84P0`MRRO">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id=";)+n7kB.._k3n:rt!GvJ">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="5KFo!jX4/:fF7|O8_:AM">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="L[N5wU8U4Fj~q=JK3e*3">
                    <field name="VAR" id="ge|~$.YDiBo@n^0;DV-@" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="X!yLWFo.pnsN2p8.mhku">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="o|T}XF*xV|s^O[[T5-y_">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id=")A^KesPc24S7[#WdiUpC">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="RgAIb=eB,f|Iou[N!-8I">
                            <field name="VAR" id="=!9z*+eAQ1,#-FnoU9GJ" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="notify" id="_i^CFKP~e49;_EKp{u/`">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="u^Z8+w=IkvP+)w3`*lGO">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="xoNPU9oIK8J)B^%vr%^~">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="math_single" id="~h0K!.E)*v-|,9vGuFn1">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id="GleSn`9j7Cm7/dqg}FIA">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="variables_get" id="tj[WVE=J+4/Z:KIQ:g}v">
                                <field name="VAR" id="=!9z*+eAQ1,#-FnoU9GJ" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="procedures_callnoreturn" id="RHC~X)8#c;n3tE`]u1*.">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="variables_get" id="[|xwly3+qnsyH8X40V0H">
                        <field name="VAR" id="ge|~$.YDiBo@n^0;DV-@" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="Cvi8%t{p9/_xm#+X]om(">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text_join" id="BJCQ#/4O0}z[^DR9GgkO">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="ijsv9!fxO*BB:8yHR`f|">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="Kc?RVUrXujr{1X[%y1sW">
                                <field name="VAR" id="ovTC4K.Xb-hV!.Vr}THB" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="ix3Jwr;,l7NS%LeIjciS">
                            <field name="VAR" id="Y8Xf{G~hV(kg/Pz(UV$g" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="Z;.teZof4syfkPW!mqo,">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="]Kv}Tw=x^zr6@I@D@S4q">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id=")|LQhZk*#Wi64TgP!Xa^">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="JIN._QaycDvYwCfcJGCM">
                                        <field name="VAR" id="ovTC4K.Xb-hV!.Vr}THB" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="ca~g-NW_y(msxA`ID6uw">
                                        <field name="VAR" id="BM~Iuky@aEKSXtXgA1sU" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="fVNi_Cv-~iB/uc)2U.3u">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="+`bh%N2o{Y5P*([/ypeU">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="J~+vmLG#*!wX@7rgH_a9">
                                            <field name="VAR" id="ovTC4K.Xb-hV!.Vr}THB" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_single" id="ETDn1dh]F.b#8{zcD@+|">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow type="math_number" id="#4N:bIe?FzTA#rOZjMqo">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block type="variables_get" id="OovN9^AB=zF:sTh-=oGq">
                                                <field name="VAR" id="W.o_!{Uu~_:#MXE~-xq." variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="y%eZ%16)YFB?;J!WT-/1">
                                        <field name="VAR" id="Y8Xf{G~hV(kg/Pz(UV$g" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="qt?z|=[ordjkFsa{CxlK">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_print" id="(!.##DU]KjPhy^tQC6YF">
                                        <value name="TEXT">
                                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="oX?Ia)5gqDMl[H*da_9g">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="ox|AU:{^KZm`Bk=piPeZ">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_single" id="bc,1cQ})F_fQN*9Fird^">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow type="math_number" id="pi;;Fh3#fMUD2s`W_UJZ">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block type="variables_get" id="=b`joCv5,]G3N=_{)2ND">
                                                    <field name="VAR" id="ovTC4K.Xb-hV!.Vr}THB" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="text_print" id="RqQw_^5^@PdBOSiPMkW7">
                                    <value name="TEXT">
                                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="uNhAtc%n?rJat;igy.i;">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="+Fd!Q%aw=bq2)~qEmqt=">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="CxB@:}TG^Od;=yysk/#C">
                                            <field name="VAR" id="ovTC4K.Xb-hV!.Vr}THB" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                      </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="zEXck3l4zHs1m9JF0^g.">
        <field name="VAR" id="Y8Xf{G~hV(kg/Pz(UV$g" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="0" y="668">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="LYA1=O[Lo=P6RTysfdf[">
        <mutation elseif="1"></mutation>
        <value name="IF0">
          <block type="logic_compare" id="qNMz.*AND`e6vVOjJg(V">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="wCY,OeFu.=UsJ;ro1AWi">
                <field name="VAR" id="OoJo:W7qsue;E{R[mnMk" variabletype="">patern</field>
              </block>
            </value>
            <value name="B">
              <block type="math_number" id="E0sRS]4M8X{*xH~9Gf*R">
                <field name="NUM">1212</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
            <field name="PURCHASE_LIST">CALL</field>
          </block>
        </statement>
        <value name="IF1">
          <block type="logic_compare" id="w$^-z9^I|T}^#U(qB$en">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="KB_iUT13j0`{{]YouJi.">
                <field name="VAR" id="OoJo:W7qsue;E{R[mnMk" variabletype="">patern</field>
              </block>
            </value>
            <value name="B">
              <block type="math_number" id="nESy(7;(dzG???rtyr_E">
                <field name="NUM">2121</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO1">
          <block type="purchase" id="K+]a39k@t|dP%M$}ubr$">
            <field name="PURCHASE_LIST">PUT</field>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="0" y="914">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="=KbO,-HqtVsGwXTFQu;A">
        <value name="IF0">
          <block type="procedures_callreturn" id="#:Mg|GlkP@A6U0TvjHaG">
            <mutation name="Martingale Trade Again After Purchase">
              <arg name="martingale:profit"></arg>
              <arg name="martingale:resultIsWin"></arg>
            </mutation>
            <value name="ARG0">
              <block type="read_details" id="(E,!25pd^Ev`yMmr[z*_">
                <field name="DETAIL_INDEX">4</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="contract_check_result" id="^ShXafO+N,gqVXtl^w)e">
                <field name="CHECK_RESULT">win</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="trade_again" id="wK(XN;iOhw^@0?^z74gG"></block>
        </statement>
      </block>
    </statement>
  </block>
</xml>