﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable id="*CR/0=iMw@7[xN]mq)rz" type="">martingale:resultIsWin</variable>
    <variable id="/:Zs/rk)]?r8T^UoDxm!" type="">martingale:profit</variable>
    <variable id=";wvvike[|t0~|v*pG5/Q" type="">martingale:totalProfit</variable>
    <variable id="@e~W)ph!m42,T}Ak%$VN" type="">martingale:tradeAgain</variable>
    <variable id="g=(wV~*8oan6/5YX)%i?" type="">Contract Type</variable>
    <variable id="-QkV(EC_;8-QFA=aoT$R" type="">martingale:expectedProfit</variable>
    <variable id="nEd0DNw46KUsCywpkU0R" type="">martingale:size</variable>
    <variable id="J#HzOplHme2rx5#/LQj." type="">martingale:amount</variable>
    <variable id="kvvov2Tuh:n|dwY:P=)i" type="">martingale:maximumLoss</variable>
  </variables>
  <block id="G8*bH0yYOiK7:XhZ-!pX" type="loader" y="0" x="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block id="*[^*nGgdfA3r!Ww~fd@q" type="loader" y="0" x="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block id="Lr[-i`Ra6r~lh]@8}2eo" type="loader" y="0" x="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block id="z/PGcjN12y0myO`z0cHE" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <field name="NAME">Martingale Trade Amount2</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="|**J8=zbly)3BG2Im]PR" type="controls_if">
        <value name="IF0">
          <block id="%FpebzLWTi`$~b3*/D}]" type="logic_compare">
            <field name="OP">EQ</field>
            <value name="A">
              <block id="n,t:]uk}V?b{ezTa^OwD" type="variables_get">
                <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block id="uYgSJq?NCGL]q:ls)$K5" type="logic_null"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block id="1/eoJB0y)psAl;rtD*JT" type="variables_set">
            <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block id="rU#ZJLo~4%z=$w@BTsxr" type="text_prompt_ext">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block id="-[C$8ng*0]8i/8`Fg6yS" type="text">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block id="J.p!+9[r]aGziA_ZPnB3" type="controls_if">
            <value name="IF0">
              <block id="9SD+S3Lv4*ZL6.+=+]Wn" type="logic_compare">
                <field name="OP">EQ</field>
                <value name="A">
                  <block id="X[*cx0?8OvoL*qG;1}Oq" type="variables_get">
                    <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block id="SKG%!?C(A,Ydn)s^JX60" type="logic_null"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block id="81K%00v%v:ZrfY9#eXw?" type="variables_set">
                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block id="}}.tqaNU(=/s=n!!J*av" type="text_prompt_ext">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block id="EF1X5||$^xn0tULQ=b`N" type="text">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block id="y}K_JT{GyF#!WCOLwC#o" type="controls_if">
                <value name="IF0">
                  <block id="lRbn9NY7Sp`l9I-`-PNP" type="logic_compare">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block id="%fzUn2G5r62/3^t[?-{e" type="variables_get">
                        <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block id="/np]w~0yhI}Rs=yP!OFp" type="logic_null"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="NT*tbFL58q,:r`QpR/B+" type="variables_set">
                    <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block id="@P}NoB:]-Mwk|^kv[sX=" type="text_prompt_ext">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block id="UI`QQ*_Y17[30LDQ}nUT" type="text">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="MaLNJJvrQE6Yq?SNz#{?" type="controls_if">
                    <value name="IF0">
                      <block id="/WK[EE]Piiy7uG[Q0DkZ" type="logic_compare">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block id="iTf.R}p}b1.QR_W*?Dni" type="variables_get">
                            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block id="#LQ9^0L-v+Ii(jG4r6!$" type="logic_null"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block id="Y:{o)|s-7My$lC*Y1CZ0" type="variables_set">
                        <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block id="Z8F;,`Ag~YW{cAl?whp3" type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block id="K{]oG6X.G#ja[Y+q|4WF" type="controls_if">
                        <value name="IF0">
                          <block id="!6XFQnp/*GwP[Fwjp?V+" type="logic_compare">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block id="VqT.gwj`|e?Vhr8!d+RD" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block id="h;hax(EhTJr]l@]yu~Z:" type="logic_null"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block id="?IzmaDNs[zg0{E.7{vhw" type="variables_set">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block id="a$Jx?.bJh=*p/GB$krRr" type="math_number">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block id="^|M!QKvLJ5{kjiW9kvk/" type="math_arithmetic">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow id="F/^.gR-k|dBg*ZMQ,E?v" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="W:3I;]`r^Bd{4^lgKMhO" type="variables_get">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow id="v*eC4j=U!K8B76C5kQ*U" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="?!vF9Dd?.s}c/F9J6x*." type="variables_get">
            <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block id="@!K_}e0BFr-ZVN{VAF%5" type="procedures_defnoreturn" y="0" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality2</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="O!KWY*UcM!v#DB18::I9" type="controls_if">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block id="{fDlq7~|HiaB=sC[_[*6" type="variables_get">
            <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block id="_kQ:Hb.RTZxaJnE5Y#]I" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id="}WYDh@0*w(|(Osn+RNxH" type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block id="t;N9C9[UH,-q1-XyQD=D" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id="nsaIT-FVYV}e+^F06%mv" type="math_arithmetic">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow id="QujpfOq.d^A8_SMe`uvh" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="8T$*DIpHbHlHJe3hi7:8" type="variables_get">
                    <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow id="%6%m1;%94AYq9a7`g[u!" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="i4_f72q/dRQ![#z@@Cn)" type="math_number">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block id="[b5X.Cia2jS2zq]-T}w1" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:profit" varid="/:Zs/rk)]?r8T^UoDxm!"></arg>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Trade Again After Purchase2</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="]#0C#OY)(`..r_Yy%(pJ" type="math_change">
        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow id="[)Nh?MH}TXeN]0n(Q?PP" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="Yl2Zj80.|J540K/KkEaH" type="variables_get">
            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block id="v6i0%Hoy)+~d.mFCX={|" type="variables_set">
            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block id="h^t]ob[g9JoQ+R|{%_@7" type="math_arithmetic">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow id="Y445k*N9Y{3k^0nU:f/a" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="6(VqTba71SZu)8K7)*%9" type="math_round">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow id="NxI4W6P)%aS~YX^5:fm(" type="math_number">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block id="].AJP/DOdKYSTCOdOwlS" type="math_arithmetic">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow id="1IiDMd{pA4I8#Jv5:v)F" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="[,$Sf_2|N|*H?.L=6Ucj" type="variables_get">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow id="QPp6Ex`FL}B)uWsSrQ*o" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="NHtsnHhJS4vVVool7%k," type="math_number">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow id=";(PBMt(9fPe84P0`MRRO" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="@dZYK-=hzMo?uOp|Of{K" type="math_number">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="b@[PROTECTED EMAIL]?@qI~EHuIIDE" type="controls_if">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block id="Y5,wEU7Oe|IZ=xt-I!xy" type="variables_get">
                    <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="$^hTz8jo|wYd-c:/:?3/" type="notify">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="qc33)MX#QR-{Jxyq[!GB" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id=".qMF_hWWOFp~}fiw2Udw" type="text">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="GxpB]qRf2c=A(zB_JFys" type="variables_get">
                            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block id="XMb^/OaJys-L(a$?-2jm" type="notify">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="rk7]{ff:-TQc=c%!y*gk" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="`y;ZRPv{3txnY?r}OY.s" type="text">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="R-~qW-O3s0O?hPybd1_J" type="math_single">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow id="GleSn`9j7Cm7/dqg}FIA" type="math_number">
                                <field name="NUM">9</field>
                              </shadow>
                              <block id="NK|fYN]Ph{@+dvbK|R:^" type="variables_get">
                                <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="11wcE5TRub#Et/kXOr3p" type="procedures_callnoreturn">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block id="clcawygat_Hb*Zcuwoh0" type="variables_get">
                        <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block id="RxfBY`vYfnLZ.j/.~3Fp" type="notify">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block id="8jvjR?q;IqVc(=MrU!;]" type="text_join">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block id="$a#xQ5q~EkIJGd;n$o(]" type="text">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block id=".CUF,{]1C*Gwy%%~?Omb" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block id="!a#=yLau}=lExQXWGv([" type="variables_set">
                            <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block id="_DrSbBM.1f:LI.p2Q=sh" type="logic_boolean">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block id="W@GpX8cDaN-kdknu5prs" type="controls_if">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block id="zr{(U$l,Eiw7u)l,w1J8" type="logic_compare">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block id="`=)d1jAbvHH4))SD=@zV" type="variables_get">
                                        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block id="^0`9D,j9?+@S3sAJKvEt" type="variables_get">
                                        <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block id="^Xa4e!N9-*89:EGb7R(%" type="controls_if">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block id="HYx8oi$sRy@AX0$mrBww" type="logic_compare">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block id="23*(j9Ktb909_n,ZjFM{" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block id="C[*4:udl+hcd?5~5qd!?" type="math_single">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow id="#4N:bIe?FzTA#rOZjMqo" type="math_number">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block id="q(.tXg=Lbu2L?f@J][n!" type="variables_get">
                                                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block id="ENZalm}.%Sz[8}Dr/K|L" type="variables_set">
                                        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block id="N;tH?Js$1^xn]EPSZ}W[" type="logic_boolean">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block id="F^}1$JqTD-y^)l.@T7Bd" type="text_print">
                                        <value name="TEXT">
                                          <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block id="m/i~S/GBOkcR:ViIeSX~" type="text_join">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block id="17*c+WkFSl.bo3D+Sp(o" type="text">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block id="g^D43ggoEb+pmyr$R_$/" type="math_single">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow id="pi;;Fh3#fMUD2s`W_UJZ" type="math_number">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block id="m(i|vdUGufoh?UhQq?]k" type="variables_get">
                                                    <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block id="$SH/QCP5=hTAG[gbb|d1" type="text_print">
                                    <value name="TEXT">
                                      <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block id="$MLR%#xGQuE8HU+U9S=w" type="text_join">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block id="p0=:xF_I/$Wc-7G6r`3l" type="text">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block id="77!sM3_fftrnrtWNFr+9" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" 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 id="zr+7E5g]P||=/V1YZ;=x" type="variables_get">
        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block id="7eiQ{PEgk_P{TdGQr4hr" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <field name="NAME">Martingale Trade Amount3</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="Dq1wkt{iVr.0tCMPh6Vk" type="controls_if">
        <value name="IF0">
          <block id="}q?V!%(%qEvQ46l(w~go" type="logic_compare">
            <field name="OP">EQ</field>
            <value name="A">
              <block id="PG,MaM]^(rZB]VIhg7l[" type="variables_get">
                <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block id="p7?c!-VJg-$4+7s%YTQ!" type="logic_null"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block id=".fIBnC#@9p%ABklT1?lh" type="variables_set">
            <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block id="z14f`jDNl{]}#:w_u^oY" type="text_prompt_ext">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block id="^}2ESGnsIbgY$opRtKKb" type="text">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block id="NGPg},t$mdOr!nbr)3%L" type="controls_if">
            <value name="IF0">
              <block id="Wv@J:yy4tv~IT6^2gbI=" type="logic_compare">
                <field name="OP">EQ</field>
                <value name="A">
                  <block id="w*]ixJ_P+Bft4@@[SJZ2" type="variables_get">
                    <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block id="K{z=2@acfW^Miee-3tv{" type="logic_null"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block id="7m/DrDH|(#nO~^rXXoo9" type="variables_set">
                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block id="{0Kz9l*31*_ZDbJ(sI8a" type="text_prompt_ext">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block id="xfSWkx;zn?bkuVHi78Dv" type="text">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block id="%PxIm#wr*#XiaVuHTiOX" type="controls_if">
                <value name="IF0">
                  <block id=".hP%Ul]C.{Ht(Do{X!C4" type="logic_compare">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block id="D;C9DpL4k#JP7ete1p.q" type="variables_get">
                        <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block id="UB`B$)mAP;gFdV1$;SEs" type="logic_null"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block id=".A``8-/VgaK5_M~4]S2|" type="variables_set">
                    <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block id="n{EACR~VsV3{Eo$,~l#x" type="text_prompt_ext">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block id="p?0!d.X6z=FUswD{Mr+/" type="text">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id=",c*J=O`#{:uPpaU;K,Fn" type="controls_if">
                    <value name="IF0">
                      <block id="k|GSDFZl|WjFu%,jm+.f" type="logic_compare">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block id="Z/-!Glmx/4YA|QPaD[vt" type="variables_get">
                            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block id="_C4.bt@OG+l@k4=Ahy/]" type="logic_null"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block id="lgsQ}zkL;{xhjU~*Bz|o" type="variables_set">
                        <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block id="wOWfp{2ZN,@!JBN#A9jH" type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block id="tIP~`]RsEJWhUXcyA#V]" type="controls_if">
                        <value name="IF0">
                          <block id="ZK00j3PvmBIPH;xG;Mf!" type="logic_compare">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block id="^cKlBk!9l!f(nbcU5mIv" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block id=";,@aamIEU~H9xsYVt^;D" type="logic_null"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block id=",hE%97wu@riYfFH/CR+U" type="variables_set">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block id="7Jb]R](emW|~#L;3DYnp" type="math_number">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block id="lJ)F}[c*01gaA}t@6eYx" type="math_arithmetic">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow id="F/^.gR-k|dBg*ZMQ,E?v" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="r}/[;re|$q${sX/1RWcH" type="variables_get">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow id="v*eC4j=U!K8B76C5kQ*U" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="0zfi)FT}XLGa7Ely4H[%" type="variables_get">
            <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block id="@7KQw^KsuhAMkJ-d~|;*" type="procedures_defnoreturn" y="0" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality3</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="9}/kQyw:heR.3SNmAiE/" type="controls_if">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block id="U}~0}!fIeTGoIB=a-z?E" type="variables_get">
            <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block id="$Lud~#LE4N2X0R3$8wzy" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id="fW)Z]cIMy8q/0r(U.,GN" type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block id="z`i;lIc1c.+F%uy5_sO=" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id=",NuN}|3v#vaU`E=_3+Wl" type="math_arithmetic">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow id="QujpfOq.d^A8_SMe`uvh" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="R(Vp?rfuH!QPNL^-;u*N" type="variables_get">
                    <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow id="%6%m1;%94AYq9a7`g[u!" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="7W=O-9q6wv|k%-77gLG0" type="math_number">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block id="A*+Dp?nH}Ta*3?cMD8jA" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:profit" varid="/:Zs/rk)]?r8T^UoDxm!"></arg>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Trade Again After Purchase3</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="8-s_s{|i*=Xp-tm?ljiX" type="math_change">
        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow id="[)Nh?MH}TXeN]0n(Q?PP" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="}-Iv9uhxybCN|X*MH)k8" type="variables_get">
            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block id="g;!($b=W)QH(??7u2]o[" type="variables_set">
            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block id="x%!bs*/N/iCdDXs3;:ZM" type="math_arithmetic">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow id="Y445k*N9Y{3k^0nU:f/a" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="uMQuJLY1yQ4q~eUSPj|h" type="math_round">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow id="NxI4W6P)%aS~YX^5:fm(" type="math_number">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block id="c+7{EJdB]5x+}`Gnvs6-" type="math_arithmetic">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow id="1IiDMd{pA4I8#Jv5:v)F" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="^:hWZ]:7~26L)1+`Xzwo" type="variables_get">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow id="QPp6Ex`FL}B)uWsSrQ*o" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="gy@0SeTL=Pt.x%kTH;1B" type="math_number">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow id=";(PBMt(9fPe84P0`MRRO" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="(fPC`jQCu7;o;EOsU#S|" type="math_number">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="ZERzz7pND*/Ybb(1I,FT" type="controls_if">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block id="2H18^9sm)v17Nv%LDZL$" type="variables_get">
                    <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="X},oV+saLgUOlrHcm6?K" type="notify">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="RitJkYoL53)-IvI}608E" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="mRVzP.gz^a`:6XI;NwyP" type="text">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id=".z{d[0?j/l47e0Np1;#W" type="variables_get">
                            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block id="3iqzXB!A}#gh7(1t9syM" type="notify">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="iA9bWVyh)qUAZx?glL-J" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="^y9CJB7-|9BX}:(,c-=8" type="text">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="1;Lg=SJFb6,D_ONj?x)5" type="math_single">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow id="GleSn`9j7Cm7/dqg}FIA" type="math_number">
                                <field name="NUM">9</field>
                              </shadow>
                              <block id="((8K#qYCF_iyr97Tag-3" type="variables_get">
                                <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="O(t9jut`a-e1wmiW#nYc" type="procedures_callnoreturn">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block id="$/f4so:I1S;?~Yd+*T!/" type="variables_get">
                        <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block id="dG1r.etG#LVwPnZ)m0!1" type="notify">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block id="zwpyj1a$]{^f;$A)#Vc#" type="text_join">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block id="AMn~45Ey@tQr9=9`pXE(" type="text">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block id=";aMN2?U*`O-0.d~-5QhD" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block id="bX4?Qxc~Uo/{*+lg?i0!" type="variables_set">
                            <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block id="j;e}Gc6=B|KG)XpFI.B4" type="logic_boolean">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block id="wHfPC+:*IK3#+;GAy|i@" type="controls_if">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block id="LQaIv?{0@nvu@M0E]GCp" type="logic_compare">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block id=";#DH6e{o`KrsnsCG/TyQ" type="variables_get">
                                        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block id="l)jEmXoT:V)cmPz/Ss2n" type="variables_get">
                                        <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block id=";KE6NfT.,ram}(e9NeG|" type="controls_if">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block id="eqdE~ijE4nOz_ehx`^xR" type="logic_compare">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block id="0zSsZW@TDCT8hN`NJ+`Z" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block id="U77^MGF3CzOHu/[K~?MK" type="math_single">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow id="#4N:bIe?FzTA#rOZjMqo" type="math_number">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block id="qd]V3dlyyfbvHV|X+j#s" type="variables_get">
                                                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block id="cfWmBOW0eVRlxf=yJ7uI" type="variables_set">
                                        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block id="2.omPwd-ckZJ)R;CSl-;" type="logic_boolean">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block id="b{pmh#87e`vfkd=m~xi?" type="text_print">
                                        <value name="TEXT">
                                          <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block id="X4CC4}$A;}!zFIA]|G`D" type="text_join">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block id="G*)`q0RBES8*FGnbNgOX" type="text">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block id="I*t#lG7sqMQwT3T*oeMu" type="math_single">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow id="pi;;Fh3#fMUD2s`W_UJZ" type="math_number">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block id="}0O`ip?R-8SX8rVQ}q4I" type="variables_get">
                                                    <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block id="|z9B[nN6rRkkz3.Dy[.U" type="text_print">
                                    <value name="TEXT">
                                      <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block id="oyc]EXO/Z/{k7$S1H!_X" type="text_join">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block id="^U#1vyoqK;fU4+l]pbU1" type="text">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block id="c;O*HWR|aN8`!cv,vDy-" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" 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 id="5G{$!_,n_n^Fh@%nj_FJ" type="variables_get">
        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block id="wolU!1/l6v.OuTCOEU~!" type="loader" y="0" x="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block id="38~=8{h5;:$k|@Ti{(!c" type="loader" y="0" x="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block id="yj|1/d#rKvE!{{wqXH.+" type="loader" y="0" x="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block id="@*s2?ZYw`P2);x(x/Z{J" type="loader" y="0" x="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block id="-m]xNYx*^Xr7=$Z[d@yq" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <field name="NAME">Martingale Trade Amount4</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id=":N1lpFwZ}|I;a:wYe|G1" type="controls_if">
        <value name="IF0">
          <block id="ci?N@`Y~~BB/Xc`{n_jJ" type="logic_compare">
            <field name="OP">EQ</field>
            <value name="A">
              <block id="cNf^P%)+D???J.f)MEWa" type="variables_get">
                <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block id="mV~]xjoJGg9u].k*Rz^@" type="logic_null"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block id="S0}Q?8aU$1.h.g-xtfz_" type="variables_set">
            <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block id="~SO;@@XTR:xrrkGyVfbf" type="text_prompt_ext">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block id="Ssy3,H_zJcPE`/5qq@LC" type="text">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block id="_TGv/1a*,f_LB@uFWE;~" type="controls_if">
            <value name="IF0">
              <block id="hf{L{Wv/7JZZ2ki}S9HT" type="logic_compare">
                <field name="OP">EQ</field>
                <value name="A">
                  <block id="5+]=h=,KQ2P/~JKDJHLN" type="variables_get">
                    <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block id="gA@sbAtKC1d~kcCx`+2+" type="logic_null"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block id="]8g?2Mj_jnmU]=;=1+_+" type="variables_set">
                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block id="N{^ODYb.6fCD`?s46{4_" type="text_prompt_ext">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block id="iEq.|qV^P35uGrb20c{x" type="text">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block id="D(4oj:Me6Dns|~])AmUc" type="controls_if">
                <value name="IF0">
                  <block id="0EA2xu712Eub9Yh?zJX_" type="logic_compare">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block id="p;WX[L$3=rV!t=?/TF`U" type="variables_get">
                        <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block id="WO5Q?pvq1*pJtI6l`k(_" type="logic_null"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block id=",sA0h7,l.iV}LwRV]4-8" type="variables_set">
                    <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block id="ZSG6s`9`nVrYu(!+!(7?" type="text_prompt_ext">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block id="Uhe=kNa83U_X-%p9VY69" type="text">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="-|8yX.a3mev-XuJG}G|," type="controls_if">
                    <value name="IF0">
                      <block id="}pNKdXRE2FROq|;QW.R;" type="logic_compare">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block id="xbi3gc#Z0VLMPr!tqfiE" type="variables_get">
                            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block id="1}.{Pjdpvobl(A4MEw6m" type="logic_null"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block id="]B)0;o!5;b7.Ef{Cr+4B" type="variables_set">
                        <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block id="uIcDAqGdza8}4n(rRKBq" type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block id="p2o=j$/[B+,U40X$J-d0" type="controls_if">
                        <value name="IF0">
                          <block id="MpwqTa.2{bJLk+zmQHh*" type="logic_compare">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block id="w3u)GZ5]lAmq#xHbUsDD" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block id="_)l/t4@KNatKLI}|X{t]" type="logic_null"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block id="44=%,$6Yx#QzQf/-y(kA" type="variables_set">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block id="lZ3Vhb2(IKwT..F[,2^M" type="math_number">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block id="@@z%gSKRF6Dva%Yz]`=7" type="math_arithmetic">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow id="F/^.gR-k|dBg*ZMQ,E?v" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="y)EKb1Zv;IaAzF%J`$Rr" type="variables_get">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow id="v*eC4j=U!K8B76C5kQ*U" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="{%XY%)q3AnI3qrfJxWzD" type="variables_get">
            <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block id="O8Bl_=h3.7c~6$1qc8OX" type="procedures_defnoreturn" y="0" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality4</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="^mj[C$g0CIi/0~g}?zWd" type="controls_if">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block id="]KBfY*AVxZ%LD({AW[b|" type="variables_get">
            <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block id="BmaMzK%5a2-4$5geXvVV" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id="GY)Ln#b`T0#J2;3iFf*$" type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block id="c$KG,AtkA(:)-=+M{9,8" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id="b+@3#_5o8dGt{#ZGWpsv" type="math_arithmetic">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow id="QujpfOq.d^A8_SMe`uvh" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="82.}?,R|Iyg.?QVxs/Jc" type="variables_get">
                    <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow id="%6%m1;%94AYq9a7`g[u!" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="l~_+GnF~#4c.sl56{}i_" type="math_number">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block id="hqW}QIM=ADm=^~^Mz=71" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:profit" varid="/:Zs/rk)]?r8T^UoDxm!"></arg>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Trade Again After Purchase4</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="%?~{RXczUP#K|a-~J4uk" type="math_change">
        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow id="[)Nh?MH}TXeN]0n(Q?PP" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="VJ#k5_Nns}ITEEbj^^#~" type="variables_get">
            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block id="@u}Lf!4kkDByu!%^v;;N" type="variables_set">
            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block id="VV`O-4y(aD2e+InvYO,x" type="math_arithmetic">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow id="Y445k*N9Y{3k^0nU:f/a" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="?5(x]PWfD)BB#Y11V46f" type="math_round">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow id="NxI4W6P)%aS~YX^5:fm(" type="math_number">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block id="n0WH]=a%#OffR4]~4`D4" type="math_arithmetic">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow id="1IiDMd{pA4I8#Jv5:v)F" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="}%EOUaI6jt4ZJ[x2oMV`" type="variables_get">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow id="QPp6Ex`FL}B)uWsSrQ*o" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="].0|$a!!ib1ZpMQRmEr$" type="math_number">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow id=";(PBMt(9fPe84P0`MRRO" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="9MV^L7,BEDzIWHDL6Gt)" type="math_number">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="AFN/sx{)1nQ]inmBQ7{N" type="controls_if">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block id="3SUe.BfTHd@=Q2u^xz=~" type="variables_get">
                    <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block id=";m0A7!+:@Y6g8cZOskI1" type="notify">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="lr4@00KwWzYu5vZ.5V6H" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="VNF7+?YfqMxFo4MUthvn" type="text">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="j#D=`SnoQtaBVn:dRQoa" type="variables_get">
                            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block id="{?I^^UESWgScwaHJUpL9" type="notify">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="~})8^}A5QA6ut}0lWIWo" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="aUCE`LJ[EG#rt]%)+q9/" type="text">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="I:7yIupf=GC=XcY_wa|[" type="math_single">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow id="GleSn`9j7Cm7/dqg}FIA" type="math_number">
                                <field name="NUM">9</field>
                              </shadow>
                              <block id="eBKN#h#HowW}-vvZ;_}A" type="variables_get">
                                <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="s[ue~LH|f4zV([!OWM)r" type="procedures_callnoreturn">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block id="SoTYL?tx=3{g.bWT?(wl" type="variables_get">
                        <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block id="@z8hN$)Dpo=p*DuPj%Di" type="notify">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block id="*_TeeCuy:^Uu5m}lmD0d" type="text_join">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block id="H^`/!BXj.A:qgwpC`uNK" type="text">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block id="$l-`l!|B6,S;*gHeG_Gu" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block id="VZGgnCX{jx=3vL-KY{ke" type="variables_set">
                            <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block id="7RNJ2RqXt2WQ!CZfNKJq" type="logic_boolean">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block id="aRxx|wFVnoprR;su~gn@" type="controls_if">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block id="[RvbWPyc.V#E-S_CW61{" type="logic_compare">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block id="9P;jxV[g_5nV+c_npu2x" type="variables_get">
                                        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block id="Cl[24PT:nMHs:f]hOHz@" type="variables_get">
                                        <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block id="BR`:IJ~gMVN][Lpr*@@m" type="controls_if">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block id="6wm|M0Cw.|tRn/6C6_~R" type="logic_compare">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block id="O)qd4x$,%(Dl!B1VQPkn" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block id="5C/}nxdn3y#}M3GmCG/q" type="math_single">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow id="#4N:bIe?FzTA#rOZjMqo" type="math_number">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block id="3sY~P!Gyt.WQiEw5w1gG" type="variables_get">
                                                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block id="R8{VRNizbZqMKk$;!/vm" type="variables_set">
                                        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block id="EYUpJm=C0qQqMP~*@iT," type="logic_boolean">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block id="VXQQr@d?-0x3Xtvzw8C!" type="text_print">
                                        <value name="TEXT">
                                          <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block id="Xk[KdDEJ}XxZV5]iQ*U{" type="text_join">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block id="Gp!L^#Z:1L}I%-Dy]R#{" type="text">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block id=",L.25kBHh^c{w8u[(uYZ" type="math_single">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow id="pi;;Fh3#fMUD2s`W_UJZ" type="math_number">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block id="T=`O)rR;k{Lz~)fL1Jn/" type="variables_get">
                                                    <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block id="WE:kBIXkDyNQ%x-1[}de" type="text_print">
                                    <value name="TEXT">
                                      <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block id="rX.%Hy]Mi`,Hjk`AMXq`" type="text_join">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block id="]C@f,hTPYj`-wAOsTd|:" type="text">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block id="=NOs8+7#1%Vw:9tChKie" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" 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 id="y](Kt}kI6rbeFwu:oa4#" type="variables_get">
        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block id="R2{1)Ud%-MqR}%m0P1u7" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <field name="NAME">Martingale Trade Amount5</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="CVLl(c;wz,YWA%t%i;e}" type="controls_if">
        <value name="IF0">
          <block id="f9Fu/4o{+1=ii$fd%}|M" type="logic_compare">
            <field name="OP">EQ</field>
            <value name="A">
              <block id="kw-ZMu`#?d_~rQ2dY+p~" type="variables_get">
                <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block id="]-x$o:Wrh:wSNUapUHew" type="logic_null"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block id="lv+NzM4e2qFKyE#Iy;p9" type="variables_set">
            <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block id="Ot]D/6c#/y@]ySH.r3D#" type="text_prompt_ext">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block id="E19UJKg3j#VD;25a`3Nl" type="text">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block id="[uIPT(Km@!`n);~e!h?t" type="controls_if">
            <value name="IF0">
              <block id="`!T*:}!#_-U=!M0Go5*k" type="logic_compare">
                <field name="OP">EQ</field>
                <value name="A">
                  <block id="PCr%#{sl|(l944Wl`9I?" type="variables_get">
                    <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block id="]OenTk!_.smT(EZVG*z)" type="logic_null"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block id="jtAZuF[rv00mW6Q:8,E`" type="variables_set">
                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block id="5pN3`2Xk.=P4MnZFgV9E" type="text_prompt_ext">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block id="/B)ss$bVwK$KqEM[so.n" type="text">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block id="qIfl4ixc;O{2u?CoYbc8" type="controls_if">
                <value name="IF0">
                  <block id="PYD)hIUY?%*b5Q+._:H6" type="logic_compare">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block id=";r,+x}FK1]k8R`]A)!9Z" type="variables_get">
                        <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block id="@3eEsD[.?/.44C2NGu6H" type="logic_null"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="2E.$-my8y-ER=t8o48vv" type="variables_set">
                    <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block id="BigKXRHe^XpUz+]J+7@w" type="text_prompt_ext">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block id="8a?4Q!jFM984kT}YbFw_" type="text">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="C-lVWTo1,k@NtPcD{?Cf" type="controls_if">
                    <value name="IF0">
                      <block id="F[5yPZhJ:Di?Y`OK[`[c" type="logic_compare">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block id="$8,C-4Hbfe$]`V$GHOlB" type="variables_get">
                            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block id="Z?^oF-3lt^@{77zpkbZY" type="logic_null"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block id="d*?{acAPxt@WJ)NL3$Tb" type="variables_set">
                        <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block id="sEnvzb7!wPEccZU10BcI" type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block id=";;DOarcg9(yUfT_3`K`." type="controls_if">
                        <value name="IF0">
                          <block id="Lr/sCFU:lp:V,A/%gDc*" type="logic_compare">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block id="+$@Ufbs0PMbXy%FKBaAA" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block id="qG]4ufgtj=TW=r.njNp=" type="logic_null"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block id="WB$@5w-C9kP}Y`0jcTqW" type="variables_set">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block id="+`a41vQ-[1TPz)n*dc)c" type="math_number">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block id="4|ZS7ve/Qo[F2)a8Y]C-" type="math_arithmetic">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow id="F/^.gR-k|dBg*ZMQ,E?v" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="n}4c/0Hs[2?ai]Z`zN,~" type="variables_get">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow id="v*eC4j=U!K8B76C5kQ*U" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="J3::K%lUmJni4Dc@^SNt" type="variables_get">
            <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block id="Z653T7kPeCC|C$N%|if?" type="procedures_defnoreturn" y="0" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality5</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="Q~r[#-hT2[v0+Y@lqa)6" type="controls_if">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block id="mheJ]r{!KNY@EETA!mV$" type="variables_get">
            <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block id="8QILuGgxDm8YjM#cu2K2" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id="l|}r|i5t?}jsSsv@jFFe" type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block id="o7aOspU*)Yc%u`2IPKd;" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id="!.lp/@POJ-1]!T(_c_y," type="math_arithmetic">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow id="QujpfOq.d^A8_SMe`uvh" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="?b4}^-gJ(8}nU53UFa5o" type="variables_get">
                    <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow id="%6%m1;%94AYq9a7`g[u!" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="GO{N5^V-*f=^}tgSuok?" type="math_number">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block id="G_Ctufk}(Pw`$Df!HzrB" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:profit" varid="/:Zs/rk)]?r8T^UoDxm!"></arg>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Trade Again After Purchase5</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="yL%1ctEdr9_y:09EhQ0q" type="math_change">
        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow id="[)Nh?MH}TXeN]0n(Q?PP" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="gm(ygEQ8J~@SQ.ImUWK#" type="variables_get">
            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block id="%fPikE+W5h:uH,fS`CfE" type="variables_set">
            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block id="(tN4:g$$e*1D6UW2/LF{" type="math_arithmetic">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow id="Y445k*N9Y{3k^0nU:f/a" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="sfd.(cXi|wN8^WVK_z:P" type="math_round">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow id="NxI4W6P)%aS~YX^5:fm(" type="math_number">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block id="D8L$BD5mDnjr_(4-qT]D" type="math_arithmetic">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow id="1IiDMd{pA4I8#Jv5:v)F" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="5mf-L}f[d~|7m_JEUGwC" type="variables_get">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow id="QPp6Ex`FL}B)uWsSrQ*o" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id=":gm(Mq2wUkg]?IMFqcrg" type="math_number">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow id=";(PBMt(9fPe84P0`MRRO" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="8i+H3ta32jGgGzz*BC6y" type="math_number">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="#u9z:_OD,M!KVH,F+cQr" type="controls_if">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block id="J0(FWB1C`Nq9*n%Sfe7R" type="variables_get">
                    <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="K{]x9Dsq2@dt/d|92WM8" type="notify">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="S*9_t7^xT2tfllT|amWE" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="eud)Upyicw2Cik.zG]Z2" type="text">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="iy+Nvc.Oz-3yriYYTvD." type="variables_get">
                            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block id="U|DDA|Qb`W5=_Ta1@W*G" type="notify">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="R)bZlL-hp4H/Q(u(?MR4" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="_AahY{H9KK#;YZ(Z3+l]" type="text">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="QlT^q;JQ{$NAwP^K;AMg" type="math_single">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow id="GleSn`9j7Cm7/dqg}FIA" type="math_number">
                                <field name="NUM">9</field>
                              </shadow>
                              <block id="T?5v+Q{+ne9JqW}T(*Dy" type="variables_get">
                                <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="?AtA#uJWLvvC)gbGlueR" type="procedures_callnoreturn">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block id="h_,zgDCs}4(BoQ:OuuSZ" type="variables_get">
                        <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block id="-8YpU5Xf?MmEOQjFJ%OZ" type="notify">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block id=":-fcoadk07NGgx9W8;=_" type="text_join">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block id="SQ`+_Gm]X^5arH0!$qz?" type="text">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block id="}+v~LSu5R+i*Rw1;nYca" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block id="YqgQ~m6~B46%{{)zeKex" type="variables_set">
                            <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block id="LUjCq%3H$Y*U~bUdflZi" type="logic_boolean">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block id="n#uD{L|/C#!KYCFin.j-" type="controls_if">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block id="T8eED1%r*+XYpd(XuMqx" type="logic_compare">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block id="^:/rSJ_)Vz=xQeG|WOc(" type="variables_get">
                                        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block id="9:9Z@S!5hOA7m6INMVg9" type="variables_get">
                                        <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block id="WAz3Rk?;#2jok-?%T37J" type="controls_if">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block id="C?OOz}cQTUW2,)fgVF5(" type="logic_compare">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block id="U^UG,vtg+/]g$nMtoQ?@" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block id="vw)^`UuwTxwUW.Sf]ZM3" type="math_single">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow id="#4N:bIe?FzTA#rOZjMqo" type="math_number">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block id="E}l$6i+M*7*KG},wd)-C" type="variables_get">
                                                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block id="##@K20l/O{z9r8=atv*j" type="variables_set">
                                        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block id="FaM,+3$,J.aJ.TXMwcd~" type="logic_boolean">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block id="d?w[$,KmHkOnz[/,us|@" type="text_print">
                                        <value name="TEXT">
                                          <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block id="EWikbpbR5^},_t:):=[p" type="text_join">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block id="FK4v20#(ps/^QjIS4`b9" type="text">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block id=":NnEdjOdhbIK~EmEe?L8" type="math_single">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow id="pi;;Fh3#fMUD2s`W_UJZ" type="math_number">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block id="s-D47XfMjH+);{,AJR2x" type="variables_get">
                                                    <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block id="G;xb;x:6-}#KxqCv%|v#" type="text_print">
                                    <value name="TEXT">
                                      <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block id="eUdo#!z0;b3_N^?Np8JA" type="text_join">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block id="unXHQ=Ximi-nLp@Z!QWX" type="text">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block id="kt1*b7z}Io5kyoQ)#`KN" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" 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 id="a=4VcpB|#UR=%;N(KQc(" type="variables_get">
        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block id="elZP;Z+)ry?eE)ljq+CD" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <field name="NAME">Martingale Trade Amount6</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="EVoi|=7XW`(7BP4,$G!1" type="controls_if">
        <value name="IF0">
          <block id="wzyf/1/#?g2!A(P2P}i1" type="logic_compare">
            <field name="OP">EQ</field>
            <value name="A">
              <block id="FzJKfJ!=L@8GD/l!rwYe" type="variables_get">
                <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block id="OqH8*SdK%#a=~ky)^U07" type="logic_null"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block id="DpT+psaF3?J~!}X.T6jo" type="variables_set">
            <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block id="6!63^[8R_p9z3q-#NaNa" type="text_prompt_ext">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block id=",Kz1LVg#336{bc@Go~sf" type="text">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block id="0y#*+T?[vVcY@x:$Jlw5" type="controls_if">
            <value name="IF0">
              <block id="vqgtf,Xi%!TwB|T=j)L0" type="logic_compare">
                <field name="OP">EQ</field>
                <value name="A">
                  <block id="_WDS/1_nT2MqM_/A[@Ej" type="variables_get">
                    <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block id="uoh[~}nt5jANFK;VO@5T" type="logic_null"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block id="Yd;@tM,%T-U13Zx.:{z$" type="variables_set">
                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block id="I}mTkI9FE({P=bR5EI3O" type="text_prompt_ext">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block id="Vnfdt*`3iUe36Jq_6Kv?" type="text">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block id="]b3.#7K%pko`.a`p)Ak." type="controls_if">
                <value name="IF0">
                  <block id="YZsWtOXYEbua!,x/Nsi6" type="logic_compare">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block id="]^_3Jwh{X@D(AF-xlQM{" type="variables_get">
                        <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block id="_MgCb7K(Qx]V_@t,;Wjd" type="logic_null"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="g-P?b/RxA^zpW}rc#*5-" type="variables_set">
                    <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block id="?;6Pg+.}r+irWP?7@53k" type="text_prompt_ext">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block id="Q(5H!Y5Appdr+VV{Z;7x" type="text">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="G^IYMf}@eBTTJO=x;CO." type="controls_if">
                    <value name="IF0">
                      <block id="-[Xr[y.pGK.XW-M6VI$h" type="logic_compare">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block id="K!e@8_=tnvg,)%:gJ}qO" type="variables_get">
                            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block id="q`jIaEC]rHFgCL]8$lrf" type="logic_null"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block id="~{:t;IEVAc$7C+.VzS~0" type="variables_set">
                        <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block id="N}*f)`L(cRdmk)Ro_g@?" type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block id="d:s2IcMkuH[yb/X9lvR%" type="controls_if">
                        <value name="IF0">
                          <block id="Rs%UIi-oFsR#J7ZP%w~f" type="logic_compare">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block id="_[f#O69*XV;c}Gq=a8*O" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block id="`cfV7Qh9,ald(-77M_JI" type="logic_null"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block id="(fHxf[M?!5#2Ujae8I]Z" type="variables_set">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block id="O.]c?YD4$}3+G+I9;@mp" type="math_number">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block id="0${|YsixkO@[fw3NglS2" type="math_arithmetic">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow id="F/^.gR-k|dBg*ZMQ,E?v" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="-_m$W]9EdG{(Y(g!/?3X" type="variables_get">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow id="v*eC4j=U!K8B76C5kQ*U" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="R!PnndPS+]B3R|-$v{$~" type="variables_get">
            <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block id="S+c2lMnTZ$5V(G0wq(o%" type="procedures_defnoreturn" y="0" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality6</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="%::*H)7YxQsBq_fAw4^t" type="controls_if">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block id="vm8e[YI[!CEO4CUej}|i" type="variables_get">
            <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block id="}[VN`j],(p/1-t2#oXj}" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id="F-sWFSk_l3+`Z=-|)0;?" type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block id="FYpwAZ=pi)NpM3z^,XZ$" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id="jlDV8-w=8tYBwBut;yx]" type="math_arithmetic">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow id="QujpfOq.d^A8_SMe`uvh" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="hP_E2`(,83R|:b?Xwb(1" type="variables_get">
                    <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow id="%6%m1;%94AYq9a7`g[u!" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="^fVPamNfi01(XvMF**#X" type="math_number">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block id="?/#4vg1Z-td+?$PL,55~" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:profit" varid="/:Zs/rk)]?r8T^UoDxm!"></arg>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Trade Again After Purchase6</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="HZ7!F|w0g[*[`geW%_M;" type="math_change">
        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow id="[)Nh?MH}TXeN]0n(Q?PP" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="TY4jz1=zOu9I)9ttbQ+4" type="variables_get">
            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block id="|uF|saQ?ufl{W1lwrpkL" type="variables_set">
            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block id="Pc{+kb3fZPD(A}%0Gu,^" type="math_arithmetic">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow id="Y445k*N9Y{3k^0nU:f/a" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="b]v?5whqzgS8pd!Lyy-y" type="math_round">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow id="NxI4W6P)%aS~YX^5:fm(" type="math_number">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block id="y*~b_1|m{:}NQ|Cpm06i" type="math_arithmetic">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow id="1IiDMd{pA4I8#Jv5:v)F" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="c-0EWie*+6*NTK)wzS)u" type="variables_get">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow id="QPp6Ex`FL}B)uWsSrQ*o" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="F6nF}?j|-X`/oqiQ01EJ" type="math_number">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow id=";(PBMt(9fPe84P0`MRRO" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="Mdp{RrGZ4?Az4G=[UilD" type="math_number">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="Uq7kiv,maE}xId)k*nI`" type="controls_if">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block id="j~-*I+Gv`G1x)gDhiD)j" type="variables_get">
                    <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="]8M5*4yBY?(!ELgVAc)7" type="notify">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="WdB#(AjJ(VZSa:sNKPPB" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="Xm_h9dQb:MnJ*h.dr|Iz" type="text">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="^(6e,9k@qjKsyQ7cxGCO" type="variables_get">
                            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block id="21i_ec/MP^S:,`5hFHgK" type="notify">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="Fzpkh.9^t$h^a-j#}]Y}" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="B|!)wnggWs2R/b`a.Np!" type="text">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id=")ixZy{FlnYOVd`=?DL[L" type="math_single">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow id="GleSn`9j7Cm7/dqg}FIA" type="math_number">
                                <field name="NUM">9</field>
                              </shadow>
                              <block id="}~4p`lddaXrrRRQ]BjVW" type="variables_get">
                                <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="x_dm/#exF3sq12~C(;.d" type="procedures_callnoreturn">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block id="1[O,cOG~kglbCr|jtN9U" type="variables_get">
                        <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block id="59nB(N972^nAnFy`~0=N" type="notify">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block id="t-L(=LXR/k?!cRy)t3*5" type="text_join">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block id="SF)pJyl4))_axrHGh*y*" type="text">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block id="5,%~^/~l;Q15yN4@3/]d" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block id="5p=*VHJ!!+PWowCwsGhS" type="variables_set">
                            <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block id="iK.Zm?~K*^ti/e?-)w}9" type="logic_boolean">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block id="fn9tQudPvWJ?EF]oeJt-" type="controls_if">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block id="Z9]H:y+m|^kX-5*mC3tw" type="logic_compare">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block id="Bf_$~#`v@60MoxS5`cSF" type="variables_get">
                                        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block id="0zB]NbQ;5FC4~q#:Mbsq" type="variables_get">
                                        <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block id="1sh|?cedoJ4%3!9=h%3M" type="controls_if">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block id="KUwu0^kn,|jAxlS]=#M{" type="logic_compare">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block id="+8@4Ky8v~rv]uMa_/0(c" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block id=";N#C*OxAgK!{]^%toqk9" type="math_single">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow id="#4N:bIe?FzTA#rOZjMqo" type="math_number">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block id="*zP;PFjk~dP=BSQ4xZdU" type="variables_get">
                                                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block id="$u+9dIu*cA+Zf212P!(X" type="variables_set">
                                        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block id="!N3dGdr_w*+.jsVyDLI," type="logic_boolean">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block id="q;caK{P7$O?23x${xQnL" type="text_print">
                                        <value name="TEXT">
                                          <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block id="Dg_]Q;hXmvAcpHD=igw]" type="text_join">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block id="1DdK{P{$rcLkNFNO|kAg" type="text">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block id="XD-.$oy]hl:q^lAOC%jT" type="math_single">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow id="pi;;Fh3#fMUD2s`W_UJZ" type="math_number">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block id="Wejwwq6_=t}!o*Mi?$5X" type="variables_get">
                                                    <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block id="v`+VQxzTSBoi6^X6GxgE" type="text_print">
                                    <value name="TEXT">
                                      <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block id="FKneZ{.+x9/%bXH;+?VG" type="text_join">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block id="GUx{`~t^.SKHZRxfI16m" type="text">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block id="BR7NMp`T;-3.$tv^+[/]" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" 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 id="2U,jJ?s7J$+(klh`MN!i" type="variables_get">
        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block id="O}02[;5rCEuy5eG~iY~)" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <field name="NAME">Martingale Trade Amount7</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="a9fE3niL^anfb.zp8afr" type="controls_if">
        <value name="IF0">
          <block id="eY1o}|IF199j4SPB8vqt" type="logic_compare">
            <field name="OP">EQ</field>
            <value name="A">
              <block id="#un-{vBNb`pfJI8pYL+m" type="variables_get">
                <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block id="eoGJ}35Vk1GcQ^Aj;Y*p" type="logic_null"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block id="@pDYD+)Ayw!7Do6!I*B0" type="variables_set">
            <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block id="Kw:R)2?MGvft9sDl:bKQ" type="text_prompt_ext">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block id="IS8zfv^n*t74niBLXGSr" type="text">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block id="l``ucC~Vh3SsNDh$s/HA" type="controls_if">
            <value name="IF0">
              <block id="*|V!S/Djs7+s9q8/wK[i" type="logic_compare">
                <field name="OP">EQ</field>
                <value name="A">
                  <block id="O-7EdK7QHI=M!IW?^:{H" type="variables_get">
                    <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block id="W7Y_/zl=sOG5@,rv4?Fg" type="logic_null"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block id="vRa=siF5AIf1KgxFXR(Q" type="variables_set">
                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block id="sTk*Y_!UZ)+CjSPh(4/b" type="text_prompt_ext">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block id="Lh:Fw9]G5N~_V+W/wyxt" type="text">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block id="lY)f~5DMvl+EMI?f+F-V" type="controls_if">
                <value name="IF0">
                  <block id=",omKrqc!Wx!tx$iz`^]]" type="logic_compare">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block id="w1IlU8rI:YIw*BaseT^`" type="variables_get">
                        <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block id="u@Ic.@U==MP=,Kpq%`%j" type="logic_null"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="w@{t}Z~7Q7pD5EHRYM9L" type="variables_set">
                    <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block id="o;--;m1(elHkFXnfk;GT" type="text_prompt_ext">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block id="u/9DMezmiZo?^#C]CfKa" type="text">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="]ZT@b!Rm^cEyM$ws/Rfe" type="controls_if">
                    <value name="IF0">
                      <block id="RIpdyBicYCP^`}YmDYVF" type="logic_compare">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block id="RHKGA7XE@cl1lr+,R-}3" type="variables_get">
                            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block id="zx~zq_Yrd,L9jsW/^+oO" type="logic_null"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block id="3_,nM*GjU3A8%{=NAbJm" type="variables_set">
                        <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block id="m~DLhq+ULYt-.)8nAURz" type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block id="^ymAp[%faCNwWo@^g9^]" type="controls_if">
                        <value name="IF0">
                          <block id="=fz?fdhFqFB*J{.a:^$E" type="logic_compare">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block id="v.0fVGO5b0?),z`1tI9L" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block id="uY2mGKf^KY]+crm`my??" type="logic_null"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block id="xfn3LpexrZDWHL@{Cd5K" type="variables_set">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block id="b=%?i$S6ZzOP,tpI%^;0" type="math_number">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block id="0*j.91ypX|z?%/P(djMT" type="math_arithmetic">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow id="F/^.gR-k|dBg*ZMQ,E?v" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="*VFGu[=Bq1/%,p%3;,A9" type="variables_get">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow id="v*eC4j=U!K8B76C5kQ*U" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="kIEa%dx)/Vn/_eh]jp.w" type="variables_get">
            <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block id="@V59fF.Q]1%3kJFqndBb" type="procedures_defnoreturn" y="0" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality7</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="gZ`$WGOwk;N@f{GOJu#L" type="controls_if">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block id="fAQvB{w^g!PdW=eyS`lm" type="variables_get">
            <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block id="L_k+mv0xdMQMoi-1{z?L" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id=";2.n-y,y5J=}9KAp#J;S" type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block id="62P1i[T|!1Yeq[B1$F~|" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id="(H7_%gr2u_r$xnz5SpvS" type="math_arithmetic">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow id="QujpfOq.d^A8_SMe`uvh" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="%LOv.dLQb;N_Q%Pt]?@N" type="variables_get">
                    <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow id="%6%m1;%94AYq9a7`g[u!" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="9!2hE!D|)(9J7.U[m4yl" type="math_number">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block id="S98qfe8iWj]|Ng%K}07w" type="procedures_defreturn" y="0" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:profit" varid="/:Zs/rk)]?r8T^UoDxm!"></arg>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Trade Again After Purchase7</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="7SYtpeV)2(gbbfwu]O0Q" type="math_change">
        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow id="[)Nh?MH}TXeN]0n(Q?PP" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id=";3IK2RpS=A7FKA-w~|}[" type="variables_get">
            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block id="Qmqc2/d/p+JAW:!0+5IZ" type="variables_set">
            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block id="bX$]h8Tf{-c^{7y),kQ}" type="math_arithmetic">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow id="Y445k*N9Y{3k^0nU:f/a" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="Bp4piup:H$??I69[7cK9" type="math_round">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow id="NxI4W6P)%aS~YX^5:fm(" type="math_number">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block id="!X_GLg=1wB_Po3IOo^/f" type="math_arithmetic">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow id="1IiDMd{pA4I8#Jv5:v)F" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id=",c:ymGNF4U)l6B}7%}lp" type="variables_get">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow id="QPp6Ex`FL}B)uWsSrQ*o" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="TI1kD/_uwa7:0~TU*F!v" type="math_number">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow id=";(PBMt(9fPe84P0`MRRO" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="VA(T6bntysiP`qK.cY*b" type="math_number">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="-CW{OUzod::#fBZyO0%)" type="controls_if">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block id="N0]5eM:tr~!vuoQ$0%k$" type="variables_get">
                    <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="x/%)3B~R+ev?^H9P1a!4" type="notify">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="RwnS[MRX=Lv%B3OS8rrd" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="c}cw#Vc];-R!c_4~4PxD" type="text">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="@1FqUzKVpHyBWy=9aN2s" type="variables_get">
                            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block id="S-ZdEkwuoXCFIt6ggpJZ" type="notify">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="@l~l*,=#L8-}gR5#U/+?" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="Eau/SXX;5kAFLfh5hD|R" type="text">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="+.BlXv]k8T[V5sX/(5k." type="math_single">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow id="GleSn`9j7Cm7/dqg}FIA" type="math_number">
                                <field name="NUM">9</field>
                              </shadow>
                              <block id="fzxR};3;h4_xZoeN[RQ:" type="variables_get">
                                <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="6@K9hn:,8MAjc1vz}f*m" type="procedures_callnoreturn">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block id="yR%%+IOFaw0NZB6onR1=" type="variables_get">
                        <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block id="Ve3h$h?jYjX/?l)(cv36" type="notify">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block id="IQ~Lj5dY^7U_3NUSp_Ys" type="text_join">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block id=")e_hj_LDefuS%38-vSK+" type="text">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block id="6N2ZWW4XFyqXu,`X8G0x" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block id="jo,bkQINB6CpUg~cqo@x" type="variables_set">
                            <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block id="A.03r)L`mO#yg+tbWKm%" type="logic_boolean">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block id="Q7zFM~Rlq}?9jLR#a@[i" type="controls_if">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block id="gqLp@`:uOKDwQp@$*6S[" type="logic_compare">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block id="8@=)i]2|P{_zI3vNjy]h" type="variables_get">
                                        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block id="df;jW9sNO^u3ogkVK+x@" type="variables_get">
                                        <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block id="Gk?~9b7`WZ]ljGRt?#Gy" type="controls_if">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block id="uBd40heKW5t|m-ole4{}" type="logic_compare">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block id="Dn43jR]YezY{#r[a+}^G" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block id="S9Bavf(MY$QcDYUT?AP@" type="math_single">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow id="#4N:bIe?FzTA#rOZjMqo" type="math_number">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block id="p%1,zJQ9G4frn#88HH.V" type="variables_get">
                                                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block id="z+1LQ(B3ujFDVh^7x6I*" type="variables_set">
                                        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block id="Dclh!#;b-xPFcc6N$#4a" type="logic_boolean">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block id="fdi/0MTgbR1S,yF5,W;G" type="text_print">
                                        <value name="TEXT">
                                          <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block id="2I7u=YN.B*S]k)X`pd-N" type="text_join">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block id="}d$;l?Nz=0|E:Ne7CeHt" type="text">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block id=")$e/;g}T*soIj|H(V#@c" type="math_single">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow id="pi;;Fh3#fMUD2s`W_UJZ" type="math_number">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block id="jt}W!~|=v$IzAGSgJ}ab" type="variables_get">
                                                    <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block id="{Iy]_30%0N#IbX8taHyJ" type="text_print">
                                    <value name="TEXT">
                                      <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block id="ryf67b!3YhJ[@$^RZ%s0" type="text_join">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block id="Wu16xPkq+2ei57!h~j6q" type="text">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block id="-!V_@UN0U~O@pVL1d(HF" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" 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 id="c{9hH4-xcz*d_R~[8-tH" type="variables_get">
        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block id="w3xEw68B*.+rZ*T:bg]G" type="loader" y="55" x="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block id="qq2xGirc*Byb/P/HE^]H" type="procedures_defreturn" y="110" x="0" collapsed="true">
    <field name="NAME">Martingale Trade Amount</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="n4tz9*`uW5vI{Y(mwC)L" type="controls_if">
        <value name="IF0">
          <block id="3qWA5gevZ|UpE{.gFl4n" type="logic_compare">
            <field name="OP">EQ</field>
            <value name="A">
              <block id="nXPxXCq9p:hf1Xx:`D_{" type="variables_get">
                <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block id="Tp8pr^]@7PA~eGl`XK?b" type="logic_null"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block id="p8_@*8We560p~d]XEj-I" type="variables_set">
            <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block id="%r0#U,KXY;)S1-I},GCs" type="text_prompt_ext">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block id="AlB(yFhIT1/FZu-ZEpqQ" type="text">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block id="qa:)sj8|A!lxwG*|YaO]" type="controls_if">
            <value name="IF0">
              <block id="fo(G)bKdQhx,?aEY[Yl}" type="logic_compare">
                <field name="OP">EQ</field>
                <value name="A">
                  <block id="`Geg[{!:(HTr6q)A];`0" type="variables_get">
                    <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block id="!X8^fykpJtsH#Il8+Wh9" type="logic_null"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block id="t3Gw#E]HVqIM/6J-t-2Y" type="variables_set">
                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block id="K[Cz2)F(1ny#Zw!j7j!V" type="text_prompt_ext">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block id="dfNPxr:VpC%uF[yz%xk[" type="text">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block id="^CEM+~9aQ2uhnXtkL`kv" type="controls_if">
                <value name="IF0">
                  <block id="wL4k~{ia}[/ON_+z47RO" type="logic_compare">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block id="WjGS@!}HI|kFH{rJqavk" type="variables_get">
                        <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block id="qTK#~^WMVK;Wyz1LJ/@d" type="logic_null"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="ZxKDnNw2?MsznEZQtR6`" type="variables_set">
                    <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block id="^4peSz1pJ=`,CaD#@6Jd" type="text_prompt_ext">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow id=".P`a1!r=yj-[H(SJX}_m" type="text">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block id="=6eX{Eblptb4BBlz7?U[" type="text">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="kC@O!Xl:KO^G_(uzKTzH" type="controls_if">
                    <value name="IF0">
                      <block id="@|K%}q0X`VebpuZQ=EV*" type="logic_compare">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block id="(xdUld=/ZoI`Y#*TZfMw" type="variables_get">
                            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block id="CA@kQ}mQ:c8NW0=5Ed[." type="logic_null"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block id="^xOi2|SaRE2S4sk8(u74" type="variables_set">
                        <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block id="V^QkcFsonsJWZ0pgI8IU" type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block id="fwmgCgdRdN{)3S|t|fn7" type="controls_if">
                        <value name="IF0">
                          <block id="pj:P)Py2NsbQ8@=5Y9D=" type="logic_compare">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block id="5A]k/?)Q#Xi4G,Wpd;Pz" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block id=";,X}K#n`DxM#4`t;d~Cc" type="logic_null"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block id="MmEFyqc*]VjjlJZzlNt[" type="variables_set">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block id="DcgRnz]nVdJyT*eH=v!;" type="math_number">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block id="!BlRd)C:TXj@_wErj#qz" type="math_arithmetic">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow id="F/^.gR-k|dBg*ZMQ,E?v" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="4;YLe/OL#s08%Fg6}T[#" type="variables_get">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow id="v*eC4j=U!K8B76C5kQ*U" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="]6BmBNR~M:1|pttC(CT_" type="variables_get">
            <field id="J#HzOplHme2rx5#/LQj." name="VAR" variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block id="TY/(qs?1mzi0doraNq_[" type="procedures_defnoreturn" y="163" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="wcQS%xc8=!!#P52Kt:1x" type="controls_if">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block id="P]*Fp7~p#Lj1S#`(3rAr" type="variables_get">
            <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block id=",*SKPEhPmhmsq#tq`G*9" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id="tNP@,EBgjET40TC9jh05" type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block id="t-K_E*m(aYDGloWhgc%=" type="variables_set">
            <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block id=";x;#^I=T5+dN,Zu?u9%y" type="math_arithmetic">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow id="QujpfOq.d^A8_SMe`uvh" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="!7jq#O^~DP+j~efJv=eV" type="variables_get">
                    <field id="nEd0DNw46KUsCywpkU0R" name="VAR" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow id="%6%m1;%94AYq9a7`g[u!" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="f4;y.Q47WJBWSp4}1|_k" type="math_number">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block id="_b//g0Q,2OW8MbY^`J3E" type="procedures_defreturn" y="216" x="0" collapsed="true">
    <mutation>
      <arg name="martingale:profit" varid="/:Zs/rk)]?r8T^UoDxm!"></arg>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Trade Again After Purchase</field>
    <comment h="80" w="160" pinned="false">Describe this function...</comment>
    <statement name="STACK">
      <block id="5ph^#sJ_|cnLn{}e(%Z{" type="math_change">
        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow id="[)Nh?MH}TXeN]0n(Q?PP" type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block id="Kj+o2HPe^1#-J*pl.VD9" type="variables_get">
            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block id="=``}2YqGE51x5XO#O{A6" type="variables_set">
            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block id="m9HUE{JvBzON.?`k.p0L" type="math_arithmetic">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow id="Y445k*N9Y{3k^0nU:f/a" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id="eOhznKTK*Yn[R~s!l7p;" type="math_round">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow id="NxI4W6P)%aS~YX^5:fm(" type="math_number">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block id="a52-x:2(jo3fN-]co/k]" type="math_arithmetic">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow id="1IiDMd{pA4I8#Jv5:v)F" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="djyZC:DVv!8AFfC.FoYS" type="variables_get">
                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow id="QPp6Ex`FL}B)uWsSrQ*o" type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block id="qdaI}RV~2ic%D1==.15s" type="math_number">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow id=";(PBMt(9fPe84P0`MRRO" type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block id=";)+n7kB.._k3n:rt!GvJ" type="math_number">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block id="5KFo!jX4/:fF7|O8_:AM" type="controls_if">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block id="L[N5wU8U4Fj~q=JK3e*3" type="variables_get">
                    <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block id="X!yLWFo.pnsN2p8.mhku" type="notify">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="o|T}XF*xV|s^O[[T5-y_" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id=")A^KesPc24S7[#WdiUpC" type="text">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="RgAIb=eB,f|Iou[N!-8I" type="variables_get">
                            <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block id="_i^CFKP~e49;_EKp{u/`" type="notify">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block id="u^Z8+w=IkvP+)w3`*lGO" type="text_join">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block id="xoNPU9oIK8J)B^%vr%^~" type="text">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block id="~h0K!.E)*v-|,9vGuFn1" type="math_single">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow id="GleSn`9j7Cm7/dqg}FIA" type="math_number">
                                <field name="NUM">9</field>
                              </shadow>
                              <block id="tj[WVE=J+4/Z:KIQ:g}v" type="variables_get">
                                <field id="/:Zs/rk)]?r8T^UoDxm!" name="VAR" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block id="RHC~X)8#c;n3tE`]u1*." type="procedures_callnoreturn">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block id="[|xwly3+qnsyH8X40V0H" type="variables_get">
                        <field id="*CR/0=iMw@7[xN]mq)rz" name="VAR" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block id="Cvi8%t{p9/_xm#+X]om(" type="notify">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block id="BJCQ#/4O0}z[^DR9GgkO" type="text_join">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block id="ijsv9!fxO*BB:8yHR`f|" type="text">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block id="Kc?RVUrXujr{1X[%y1sW" type="variables_get">
                                <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block id="ix3Jwr;,l7NS%LeIjciS" type="variables_set">
                            <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block id="Z;.teZof4syfkPW!mqo," type="logic_boolean">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block id="]Kv}Tw=x^zr6@I@D@S4q" type="controls_if">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block id=")|LQhZk*#Wi64TgP!Xa^" type="logic_compare">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block id="JIN._QaycDvYwCfcJGCM" type="variables_get">
                                        <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block id="ca~g-NW_y(msxA`ID6uw" type="variables_get">
                                        <field id="-QkV(EC_;8-QFA=aoT$R" name="VAR" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block id="fVNi_Cv-~iB/uc)2U.3u" type="controls_if">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block id="+`bh%N2o{Y5P*([/ypeU" type="logic_compare">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block id="J~+vmLG#*!wX@7rgH_a9" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block id="ETDn1dh]F.b#8{zcD@+|" type="math_single">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow id="#4N:bIe?FzTA#rOZjMqo" type="math_number">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block id="OovN9^AB=zF:sTh-=oGq" type="variables_get">
                                                <field id="kvvov2Tuh:n|dwY:P=)i" name="VAR" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block id="y%eZ%16)YFB?;J!WT-/1" type="variables_set">
                                        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block id="qt?z|=[ordjkFsa{CxlK" type="logic_boolean">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block id="(!.##DU]KjPhy^tQC6YF" type="text_print">
                                        <value name="TEXT">
                                          <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block id="oX?Ia)5gqDMl[H*da_9g" type="text_join">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block id="ox|AU:{^KZm`Bk=piPeZ" type="text">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block id="bc,1cQ})F_fQN*9Fird^" type="math_single">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow id="pi;;Fh3#fMUD2s`W_UJZ" type="math_number">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block id="=b`joCv5,]G3N=_{)2ND" type="variables_get">
                                                    <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block id="RqQw_^5^@PdBOSiPMkW7" type="text_print">
                                    <value name="TEXT">
                                      <shadow id="kqlrIk.GO.^}hI,PoUV)" type="text">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block id="uNhAtc%n?rJat;igy.i;" type="text_join">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block id="+Fd!Q%aw=bq2)~qEmqt=" type="text">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block id="CxB@:}TG^Od;=yysk/#C" type="variables_get">
                                            <field id=";wvvike[|t0~|v*pG5/Q" name="VAR" 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 id="zEXck3l4zHs1m9JF0^g." type="variables_get">
        <field id="@e~W)ph!m42,T}Ak%$VN" name="VAR" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block id="73vWdDagX-YhN)CtN.3D" type="trade" y="269" x="0">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_100</field>
    <field name="TRADETYPECAT_LIST">digits</field>
    <field name="TRADETYPE_LIST">evenodd</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 id="6v!@?*xZA~*U{SuB=T[N" type="variables_set">
        <field id="g=(wV~*8oan6/5YX)%i?" name="VAR" variabletype="">Contract Type</field>
        <value name="VALUE">
          <block id="4^!Tx5_|Of5,0r})/9^d" type="text">
            <field name="TEXT">odd</field>
          </block>
        </value>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block id="mZ?PLC]mJp)H~?*vhB^9" type="tradeOptions">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block id="0p-bjjEuB1k(LNWLaiS]" type="math_number">
            <field name="NUM">5</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block id="(|S1WZx(~/P2bp{l]+nq" type="procedures_callreturn">
            <mutation name="Martingale Trade Amount"></mutation>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block id="tOc)]Xd=cAm0aiy+-8(8" type="before_purchase" y="684" x="0">
    <statement name="BEFOREPURCHASE_STACK">
      <block id="i^y1-),y7~|#4?F~nZ_|" type="controls_if">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block id="!WkMU~7t-BaX/6mu`-0^" type="logic_compare">
            <field name="OP">EQ</field>
            <value name="A">
              <block id="nFY.TxN+a_J`Np?^d:2c" type="variables_get">
                <field id="g=(wV~*8oan6/5YX)%i?" name="VAR" variabletype="">Contract Type</field>
              </block>
            </value>
            <value name="B">
              <block id="2,4_9}MD6ZJ9Io([N~c;" type="text">
                <field name="TEXT">odd</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block id="Q;`vp48|v7pG%t@W6`uQ" type="purchase">
            <field name="PURCHASE_LIST">DIGITEVEN</field>
          </block>
        </statement>
        <statement name="ELSE">
          <block id="@5$RB6|F?Ws{|s)a6(3k" type="purchase">
            <field name="PURCHASE_LIST">DIGITODD</field>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block id="Vt,CkLeK8E?%BmnB`~M)" type="after_purchase" y="896" x="0">
    <statement name="AFTERPURCHASE_STACK">
      <block id="fhx(fO!cb|asgk(ay{hB" type="controls_if">
        <value name="IF0">
          <block id="AnEQFO/5OWIoC#=IddTD" type="contract_check_result">
            <field name="CHECK_RESULT">loss</field>
          </block>
        </value>
        <statement name="DO0">
          <block id="1-c,VlN:,{n1.F271)z." type="controls_if">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block id="gxiH0*@=TH*=X8}I4~99" type="logic_compare">
                <field name="OP">EQ</field>
                <value name="A">
                  <block id="oJph;:)i1!I_WB0WcIXe" type="variables_get">
                    <field id="g=(wV~*8oan6/5YX)%i?" name="VAR" variabletype="">Contract Type</field>
                  </block>
                </value>
                <value name="B">
                  <block id="8,_RxM0Mz5s4IB8=I|YI" type="text">
                    <field name="TEXT">odd</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block id="NqLuJB2Ie+-fc%JKw[9s" type="variables_set">
                <field id="g=(wV~*8oan6/5YX)%i?" name="VAR" variabletype="">Contract Type</field>
                <value name="VALUE">
                  <block id="@?@7V9GA}$A%hK#uEmq|" type="text">
                    <field name="TEXT">even</field>
                  </block>
                </value>
              </block>
            </statement>
            <statement name="ELSE">
              <block id="D7Gd;Qbdxw6C|V-UBB7?" type="variables_set">
                <field id="g=(wV~*8oan6/5YX)%i?" name="VAR" variabletype="">Contract Type</field>
                <value name="VALUE">
                  <block id="QH4m()a)1|soCbiE]$wx" type="text">
                    <field name="TEXT">odd</field>
                  </block>
                </value>
              </block>
            </statement>
          </block>
        </statement>
        <next>
          <block id="#=yO.C1rn7n]Zw*%E1AI" type="controls_if">
            <value name="IF0">
              <block id="}fROgrB?r4DMBoqdL}=(" type="procedures_callreturn">
                <mutation name="Martingale Trade Again After Purchase">
                  <arg name="martingale:profit"></arg>
                  <arg name="martingale:resultIsWin"></arg>
                </mutation>
                <value name="ARG0">
                  <block id="5J4Wvp4Y;^MBlr]Gdzsy" type="read_details">
                    <field name="DETAIL_INDEX">4</field>
                  </block>
                </value>
                <value name="ARG1">
                  <block id=",]jTH6_rcBIF4Ug0.60_" type="contract_check_result">
                    <field name="CHECK_RESULT">win</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block id=",VG2~pX|wvNj6hMyw=%~" type="trade_again"></block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>
