﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="*CR/0=iMw@7[xN]mq)rz">martingale:resultIsWin</variable>
    <variable type="" id="/:Zs/rk)]?r8T^UoDxm!">martingale:profit</variable>
    <variable type="" id=";wvvike[|t0~|v*pG5/Q">martingale:totalProfit</variable>
    <variable type="" id="@e~W)ph!m42,T}Ak%$VN">martingale:tradeAgain</variable>
    <variable type="" id="g=(wV~*8oan6/5YX)%i?">Contract Type</variable>
    <variable type="" id="-QkV(EC_;8-QFA=aoT$R">martingale:expectedProfit</variable>
    <variable type="" id="nEd0DNw46KUsCywpkU0R">martingale:size</variable>
    <variable type="" id="J#HzOplHme2rx5#/LQj.">martingale:amount</variable>
    <variable type="" id="kvvov2Tuh:n|dwY:P=)i">martingale:maximumLoss</variable>
  </variables>
  <block type="loader" id="G8*bH0yYOiK7:XhZ-!pX" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block type="loader" id="X)/fom:~zF~QlnxIT{H5" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block type="loader" id="4jSyA~c!z@Ldq,rpK=wc" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block type="procedures_defreturn" id=",LM{#oX~?lTgVZkgcdj]" collapsed="true" x="0" y="0">
    <field name="NAME">Martingale Trade Amount2</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="hl=D.3iav_c3TV_O$4L?">
        <value name="IF0">
          <block type="logic_compare" id="cH?6VHo43n-J@_SWzu++">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="u}Rx6`W]=Ef`H;jq{-m~">
                <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="logic_null" id="4UL?(^tfi,Vp:#*,GH8e"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="l2jw?v+xmQA[p8yB98b5">
            <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block type="text_prompt_ext" id="pQjX^miwFSLOsH-1(#%h">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text" id="h#p#0,euy`V}4E@efDR(">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="nN{jR;U!|%CSS0bs)#vM">
            <value name="IF0">
              <block type="logic_compare" id="Tr~t46c*6Y~Mfkn/U:aK">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="Ol~DNPtH@A-ye5GV[y9z">
                    <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_null" id="8]oV2jvml*jczyToiUTJ"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="DF@lOG36-:~{o)4Ge`E.">
                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block type="text_prompt_ext" id=",zpFRC=/PG{TBvZ?Tc~^">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text" id="pJWfj3nzX8ToNb]WN7Rq">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="Tv;UYx]{ExT:.#ie+C(I">
                <value name="IF0">
                  <block type="logic_compare" id="EnuAtE=;)t_YiHrqYAMo">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="(B7i=dR}0`@q;dfZ9ok/">
                        <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_null" id="zJk?t_6o}mX,EMB?AK}d"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="=dFx!7UJr5=CPcgf!(;H">
                    <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block type="text_prompt_ext" id="01Ad[`xXH81dz@~M2%Kr">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text" id="7|(~hX3~0iBlEm@R~(0(">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="hiDj[v}a@wP@eN_?S03|">
                    <value name="IF0">
                      <block type="logic_compare" id="K@kit8%wpD+WxzH)3FV:">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="yL4tA(_ihJL:]+hkgPCl">
                            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_null" id=")Az6vd1]#0P]PD5wrnQK"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="7uQuU5+*KqtS#O9q_c@h">
                        <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block type="math_number" id="3ao(z?I?cO.B5G+|:E_l">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="Er3hX}?AeF^R9,YiJMP(">
                        <value name="IF0">
                          <block type="logic_compare" id="$+^/a|ySFZMJv9$I,(mM">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="`p:$`kei4F9N;=Z2Ke;f">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_null" id="%70f;O04]XxbuaUuuI5Z"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="xhcT3cTQ)+/~?~v$wa`b">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="+@5IYV/_KhA`UhOr%u(;">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="rbHfKOkdqi{ev+WYfKsk">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number" id="F/^.gR-k|dBg*ZMQ,E?v">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="A)T:#u0Gs8+-/JI%O9K;">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="v*eC4j=U!K8B76C5kQ*U">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="=E:!Ef`leDIKcN0cT:BE">
            <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="1ra$yCY2d_T4QBg-qdN4" collapsed="true" x="0" y="0">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality2</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="K:iaM0lRO@YHaS+Ti0C)">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="aFztY;qwAroT,Q?K`$!i">
            <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="Pkw;gYR-`#wd*)O[bcHI">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_number" id="x1*6(W~EblUV**AVCcbU">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id=".14oo|-0bqraJPL)QXSO">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="E+[@fz).B#O-{k|oKNEJ">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow type="math_number" id="QujpfOq.d^A8_SMe`uvh">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="UPprD0:tLBdzWvS4AjDj">
                    <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="%6%m1;%94AYq9a7`g[u!">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="xJt,B4cVHVLb0m|zw%`e">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="f$hgShz(u{Lir1?XeYTj" collapsed="true" x="0" y="0">
    <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 pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="4QiSD3K*!2CZ!zz?[:LP">
        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="[)Nh?MH}TXeN]0n(Q?PP">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="BLUW}hhglia-{%+8=CCz">
            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="*f]tU?9K=ek)j!(ODq|#">
            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="Y.}mS0~iS[UzX@CZps[0">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number" id="Y445k*N9Y{3k^0nU:f/a">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_round" id="=.Ojgldl/fdT:2Sx3*~V">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow type="math_number" id="NxI4W6P)%aS~YX^5:fm(">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block type="math_arithmetic" id="qx[~C)GIUFiR_l[,g;xW">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow type="math_number" id="1IiDMd{pA4I8#Jv5:v)F">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="D_e)WHq]|OZ3s7I5y;gr">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="QPp6Ex`FL}B)uWsSrQ*o">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id="4Av5Y`q]*fIk,7XI5J2r">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id=";(PBMt(9fPe84P0`MRRO">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="]G1`n6z,$E~1JGijp;?*">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id=";nn^*|U,}|hJ,:gD2}Z4">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="NTm}o`Y.[PuH5OxmgH#C">
                    <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="wPOd=]02#H$BpQ^zFKy-">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="z+zt7MkTd*.)~QE}Xak#">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="t%}*uk-FPFQ4YM|Z(%AT">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="GM]eZ!LjHu5U)rr2MSt9">
                            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="notify" id="p@sYlcqUE0#~AWe]1O!0">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="-1!yjj#CIM~0bXtC+LQD">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="Ail9A1AdS!rRUme7vkkY">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="math_single" id="3S2jS7XVxW7yc2sOX/Jh">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id="GleSn`9j7Cm7/dqg}FIA">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="variables_get" id="E*++Mv;DrM^Ch?sGc_T}">
                                <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="procedures_callnoreturn" id="cR/ROL--/gnOO|~(vCgt">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="variables_get" id="zdT+I%a5@ui{UI[3]G_|">
                        <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="d{@cX,(KCS{eI0E(p9$R">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text_join" id="wG:t%0{E+w*JS)(2rDO%">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="UHs]Np57gy5vKW/?]-gA">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="DWX7[y#CrNvcpRBr}yX%">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="!xq)~Z,kb7B1E8t1^qki">
                            <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="5FuP+Ca|{!dFPWuVm9Uu">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="Es0I6`wR~[[fmDFd^FfU">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="UM)RcdiW-BSh0f9(t7oZ">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="cql1wI6(k]~Tz*d^Ch1p">
                                        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="U_H5rlZOo%,OD6i;%v~4">
                                        <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="e3:5TS=PR=fiT`aKQr-}">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="bTuS#C)BBUo]P-)g(HO}">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="[8S{iuemg(L):X8dk#Os">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_single" id="czkeG%Ww+fZ{+zmLpK*+">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow type="math_number" id="#4N:bIe?FzTA#rOZjMqo">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block type="variables_get" id="{b*d,m7c9)2:XAn^;fjq">
                                                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="3S/F8ze{:1l2Iy6r)jRq">
                                        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="|ODK1~,Mikiu$=R!oC?!">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_print" id="IDW+Mw^`G1_JY7I1xDnU">
                                        <value name="TEXT">
                                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="Kl)}hA=9r$r$^9BN)edI">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="}YalDuqvJ`$Hy]5W:O9{">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_single" id="egQAu:J=cXNBo}((bRM,">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow type="math_number" id="pi;;Fh3#fMUD2s`W_UJZ">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block type="variables_get" id="Qylt*LW^X-Zr]dU6MKGe">
                                                    <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="text_print" id="[/%Yk$(:tkj:taZ%fCGK">
                                    <value name="TEXT">
                                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="#[M]=,nJ_P_$6PrI/X4:">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="G|/+ic#WIqx0|.%]rqvC">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="(e?kL@~cPOJ]WcF[SbvI">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="l8D47%vB|/}SOc^C@E?~">
        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="3JFml-do5FsF]ev_~${," collapsed="true" x="0" y="0">
    <field name="NAME">Martingale Trade Amount3</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id=".7d8~WXyBYk?(-,Mb+rb">
        <value name="IF0">
          <block type="logic_compare" id="uK;eG4,cQA]xRU%}?38W">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="1^ds-^ALwFCLujJ`U?Z@">
                <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="logic_null" id="eLNx;;s-Nle`eVcF9#C)"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="G9PBd{{#JGZyxcu0wERN">
            <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block type="text_prompt_ext" id="-}/-x;BC.;]TgUFC[ouX">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text" id="UKc[MH/pzi0`wF4@vegd">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="FG04q-fSR-OnZ`oO|F%~">
            <value name="IF0">
              <block type="logic_compare" id="ql!C#u`Q`+s*@A$M2A#%">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="$@^)Fk)AVp!B)=:h*sxo">
                    <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_null" id="hJci=+?`n=ORsd~mC~kh"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="3~,Qxd%6ji+rjOvw|*_l">
                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block type="text_prompt_ext" id="Z``]3GHKteh2hcnGvS|#">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text" id="mrs):)R-nD~1pgx!~IMu">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id=";Ye!T`KGOdqcq*Az9/ht">
                <value name="IF0">
                  <block type="logic_compare" id="Aw#}|_$umHUnky~ailnI">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="bD0DmBi?L0Wc?1N5)ZBz">
                        <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_null" id="$ZfEjoX+:~y1m(n[n^!E"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="TQV$k{*J%Gxo|%%*L:;7">
                    <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block type="text_prompt_ext" id="U.^.F%ZTCm`dXv71.k9)">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text" id="T?:0@Bxn2HMI|IoUjPsT">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id=":p0+@1PvfQ2WVoTfFO*c">
                    <value name="IF0">
                      <block type="logic_compare" id="q(X`Q7CoX1uc35zr/]Kf">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="Gi/mH}ZtdV572BMKg3!b">
                            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_null" id="/qt.|cP_A8WL0;0.U:Nj"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="$j8CEr^].r5X0`l031pQ">
                        <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block type="math_number" id="(P%$n}Og^;Mqo1ta6|67">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="?Ly0[k^h]`.FN(/1i=4?">
                        <value name="IF0">
                          <block type="logic_compare" id="p|`g=1[wz:dOt/[gY{LW">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="-L,uwj3eck(P:g?%Sb0p">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_null" id="$Pw4=*Fp)?_[(#Tmn(|^"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="M+g=U)bVsWdYytG@,[Q{">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="Y%`V$H0G6L:K@wz7L$X8">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id=";W?C_1[~;4k$J0Eoo{`^">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number" id="F/^.gR-k|dBg*ZMQ,E?v">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="7d95!hPFa++eA_g09E5:">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="v*eC4j=U!K8B76C5kQ*U">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="]msJfFr]h1T~K/AZy|=j">
            <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="(snreybTDXVZ;on`|g_w" collapsed="true" x="0" y="0">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality3</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="^z{_w_)jK}8lj[B):#-a">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="{]KD1c*%M5ts*JGoteFX">
            <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="DvlQKw^tZr;(Dszd]mx!">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_number" id="#a$yf/|u8|{JWg$^W;.1">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="w#G+)BQgdVe?1A.gXEpu">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="HT2vcXS.wF{EBZ,.p1-?">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow type="math_number" id="QujpfOq.d^A8_SMe`uvh">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="{lnCK#e0pP9%aHJ}_Pw/">
                    <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="%6%m1;%94AYq9a7`g[u!">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="03NqRjJ3{)bO7S-`C]/b">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id=")BXg?_)w-UB=6vFn/6JU" collapsed="true" x="0" y="0">
    <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 pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="zVyH/bw8t*w+IZPVv48%">
        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="[)Nh?MH}TXeN]0n(Q?PP">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="N(i@gQ4)jIg6{O8o(q/Q">
            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="ue1V,eXa`h;2RF/UwqYt">
            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="D9l:*K()CX)5@pF0Aj|W">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number" id="Y445k*N9Y{3k^0nU:f/a">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_round" id="8/d,5#,F.X,k{i=pqd]G">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow type="math_number" id="NxI4W6P)%aS~YX^5:fm(">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block type="math_arithmetic" id="h+:-HJ/Kd.eVIm9#1EEa">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow type="math_number" id="1IiDMd{pA4I8#Jv5:v)F">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="77?}0Fz/-1;TFKz/v1SP">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="QPp6Ex`FL}B)uWsSrQ*o">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id="!*!XNcYdS0PT)?lsEY,$">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id=";(PBMt(9fPe84P0`MRRO">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="=[]uELm3abthX/e^KA`R">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="9;k,.4OaAz_R=gD:H~ja">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="#hrifDELX=!Ek!4*5qy8">
                    <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="rppyd(!_i:$IF/~YUA1E">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="t:!(Sl(OPa{Rj+}~f#=(">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="/AlJveJoXo#Y|T?|}yJ^">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="Vo`yDf$QU-W9b{WL9tSw">
                            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="notify" id="~daB7;#;hI#IA0_^Q2*S">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="lNvCFP?Oj[(kYLJm|Mqk">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="@F`-4XC^k?PJEo#hrk?p">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="math_single" id="Zrvqna|#?7NkiYf4fjxO">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id="GleSn`9j7Cm7/dqg}FIA">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="variables_get" id="OXSE4xMhBb8lrpqAVmG:">
                                <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="procedures_callnoreturn" id="s.f^Gn3b,^H{)7gx,?}z">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="variables_get" id="G[#Zfz;OiZzg(++1l~Ve">
                        <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="gdZD[9%QfMym;LyE`9NE">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text_join" id="y3(o*%2cNQAt$1/|2}te">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="roU9A_}|h~_@zexb:`-o">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="D~b}2Y81zn-J03(r5@Op">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="}$@j!,g/s0}Jf]qI4U($">
                            <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="bh}M#4`#w^SnXIJ^L*@Q">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="E*13J]y25$6bfdA4+_8Z">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="c?KuM905%F}C:EH_9jZo">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="q5%_)b84oDswE$98){D1">
                                        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id=":G=y3(SKcql[U[9bjkK=">
                                        <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="7ifI}M!HE{_-hvdW{T:3">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="T(~N$df`zjMpox,ujkyD">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="!-k~:oHX-)=3{)r:g{?=">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_single" id="3^;ol1/s{)]N9,GXT{GC">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow type="math_number" id="#4N:bIe?FzTA#rOZjMqo">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block type="variables_get" id=":If+ow@A#RlErGV|~sB)">
                                                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="$se+DoN*`-rjEn_%=;U(">
                                        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="Wt$5cqpj,KyS`cl7{x|g">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_print" id="4C*#V5^YtGox-uzPe~u_">
                                        <value name="TEXT">
                                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="N0(![6[7:TfTCqY6)m|c">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="2qYNZQTtbZR.|IioS}LY">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_single" id="1_zN]!H2XmqyWiFxQqjb">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow type="math_number" id="pi;;Fh3#fMUD2s`W_UJZ">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block type="variables_get" id="z?t3BuIX,_ba[nQajF^4">
                                                    <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="text_print" id="dj/$6nvvc98O7Kz3aOA}">
                                    <value name="TEXT">
                                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="c!N23!qkvR#{$?1}uiYq">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="mT{Sb,@tks~go{^v.`%I">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="/d6+gMSzu,AJth4zN$lG">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="|X]-*zEF%$L+?QeHzQ=i">
        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="loader" id="S^3JB%QqP-:Fo$@)EELp" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block type="loader" id="!5m}]4TE.G!{U6eJ$%SE" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block type="loader" id="=g/Iiiu{Cm`J3y2g;jqx" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block type="loader" id="7^AOl[}(kjrEHH8x$*|?" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block type="procedures_defreturn" id="ygtDA?Z]oNo5*]?(xfw$" collapsed="true" x="0" y="0">
    <field name="NAME">Martingale Trade Amount4</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="5N4GVD(a*mQ;u}6PU4-)">
        <value name="IF0">
          <block type="logic_compare" id="kft[~pye;-P|Ptj^v0)N">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="k`LEo0$f3ayhV],@g%d!">
                <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="logic_null" id="^YLj]5#Xr+~JRo.v=g`T"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="a8W@mcR$}A5LbzpYw#mA">
            <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block type="text_prompt_ext" id="N:l5XgmbCixueUU,=x4b">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text" id="zi6+yJQy?)MomkIC^R3T">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="%{Nu%5$|fVQMLncRlOh(">
            <value name="IF0">
              <block type="logic_compare" id="G1D~~]c*;D{K~^XkE!N_">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="u]f$zfn:ViK^4I.ytNc]">
                    <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_null" id="M=0j?IR!ok.K.*!X|Xr."></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="3TmT0Zjw^`DCJu}/aw{-">
                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block type="text_prompt_ext" id="_Gc(_4@blZX!Bo]oEX5H">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text" id="zn|QLDoh^31vl89[PS+?">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="H=H)Ww+4!?qrsg?C9p%`">
                <value name="IF0">
                  <block type="logic_compare" id="8@d}KI{;G4wp[TC%^3JI">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="|{[MFRjPw2dZgaB!hvgm">
                        <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_null" id="C@3ZEBh,@SoI+*FsxA,V"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="~{p*qPG6?]o{eb+QD-H;">
                    <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block type="text_prompt_ext" id=")`$YQf,9y-0ALA:pCQ:1">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text" id="QgM::0@5*nqtn}F!YKYN">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="sH$ZW.A0clTT0fT8^G%o">
                    <value name="IF0">
                      <block type="logic_compare" id="NIG[^tT@nN%z::E)H/vX">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="mKG,MXIyGMedn^2{9)O+">
                            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_null" id="j][Oo;lFny4AHiD3CxO-"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="..cZA^~p+9TdT+t6Ep;E">
                        <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block type="math_number" id="b!Hmt7:`rq23vZEeQ:Dl">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id=":f5;ZM]FLqK_i=:9eeAZ">
                        <value name="IF0">
                          <block type="logic_compare" id="b{HJGR`yhqT]H,2K^eN!">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="QpBhw76m$Z:iy@P-*rV)">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_null" id="dHEt-LA=W%lz^~;9m^}6"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="C7EJA?6in@Inl)w1%g7r">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="ZGaSZ+v3caMrcj8lv+t:">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="ssQ8iGb+^Z/[h.eoTq_;">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number" id="F/^.gR-k|dBg*ZMQ,E?v">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="9+TT)7.lLF|cp7?Po7v!">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="v*eC4j=U!K8B76C5kQ*U">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="EejQ,xKTgVEB~u?9:#US">
            <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="Cvep0rpP%~`^0=~I7tn6" collapsed="true" x="0" y="0">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality4</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="Eu*1pZW5|lTl{MwK`}=S">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="BM7LUvm%{Xfa+F3a;!oD">
            <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="R%{m_tRV5YATt{=O0ukD">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_number" id=")@N)CuiLT5(y(@q717u5">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="(9fuqIu5(FV#X?5~raXD">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="(M4])rt=:qYBR,)ABLlK">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow type="math_number" id="QujpfOq.d^A8_SMe`uvh">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id=".-P;sGZHbhcTvd]Cn#K6">
                    <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="%6%m1;%94AYq9a7`g[u!">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id=";(NO^:58RBO9Ex#Yt}jR">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id=":o%_Zd[4bID1gfyY+x;A" collapsed="true" x="0" y="0">
    <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 pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="$wVUuIjJ8]Fhs:OA-mPU">
        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="[)Nh?MH}TXeN]0n(Q?PP">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="F]r(xx0@L.|wq4a?Z82!">
            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id=".5(RHuUhbTnX??ZPBd6[">
            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="M9ElElYZ-y%%;78a),P?">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number" id="Y445k*N9Y{3k^0nU:f/a">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_round" id="udSS^,aR7ru4L949Q7U,">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow type="math_number" id="NxI4W6P)%aS~YX^5:fm(">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block type="math_arithmetic" id="eMESf1j}HiW@EvC1|sBu">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow type="math_number" id="1IiDMd{pA4I8#Jv5:v)F">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="qO!J9:J}1kyT~X}d(~Nj">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="QPp6Ex`FL}B)uWsSrQ*o">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id="cio.HyQKW(gPrHp5yDza">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id=";(PBMt(9fPe84P0`MRRO">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="20{]WKF?O)?+JB%l9Ak:">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="VFEM1(|vat}6ImVM7JMy">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="9sdYlEreNqRu5w^0Q=9]">
                    <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="%RTlh4RMBlN8$-;V`+b.">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="h(;WWVwL%~QP*BIm$BSU">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="oO09klGg-TCg)*htm:1E">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="47*`bt#*Ofvu?rYCo/2o">
                            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="notify" id="M~0[bKbi{3Tio*5By9S@">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="H+wR-hFE78_VSi^Ap*d/">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="XfvlmY[=PYH,8HqjEs7-">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="math_single" id="]I5@}$Ew5g})d35Bsr`u">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id="GleSn`9j7Cm7/dqg}FIA">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="variables_get" id="mmT[|6eqy9#}$?+{b}t:">
                                <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="procedures_callnoreturn" id="BC2no9z+Q22|%2(-g81a">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="variables_get" id="X=!4`xJ1=qJUX`0[*bm$">
                        <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="(a.=uzG(vA?097ZVcpT[">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text_join" id="T:0gh;}KeJ3-EumQgq{.">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="!SOdQuN*S:w,0orESE^_">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="[9@He7~H/]^w9[arbdws">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id=",D7QM[1WwZydko7;z^kJ">
                            <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="E.WROLY-rzaA;M|9VT20">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="cFnF6`ws(q=T`FNQtG!E">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="T?gc3;qb8yYbA!UJFxPP">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="?*JN8~=Gq.|VU,!l@E#_">
                                        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="0^{ua*$5Y4H;QfxGE]$5">
                                        <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="PvkR1JB(oMlv2PD7+u2X">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="OL]c=5Ft)):=_[8AvZ!|">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="ud!U=E:Vbw(BMc-0?#=:">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_single" id=":*!HTOAUm!?Xmr`[$fhT">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow type="math_number" id="#4N:bIe?FzTA#rOZjMqo">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block type="variables_get" id="qM@=o7@R*YGQGudlBrZ0">
                                                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="g6oX[AEH:a_5ZaLy=Wo6">
                                        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="Ok7gWR^)?lyofp*EPJ#B">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_print" id=":)XTmne9K*05:O*TT7`b">
                                        <value name="TEXT">
                                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="~HPoK4E`gon!Ugg5mhRX">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="A-GoE?@B!mf__W.@tb~d">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_single" id="S:@]NNs(t~A]zo4}W}2l">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow type="math_number" id="pi;;Fh3#fMUD2s`W_UJZ">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block type="variables_get" id="Vz5I(Ln*G;``%;m}+hH+">
                                                    <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="text_print" id="/7onzM36W]Ka(w[#Xp:3">
                                    <value name="TEXT">
                                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="oKP}Br~DNIC{11AoTJh4">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="Y%9N{PR6qX{Nk[,pD@pu">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="$KlmPv;w_1xjckkp9*7L">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="p-?H{%!`03`3z,W[oG`{">
        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="M*OJNEGDuAhF~;M[dG^Y" collapsed="true" x="0" y="0">
    <field name="NAME">Martingale Trade Amount5</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="iBzjKw.EKjT~GPv(+Gft">
        <value name="IF0">
          <block type="logic_compare" id="KYk+s7MzB(B7*UVVL4};">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="3w.~T0!,#UiJ=91J+,r!">
                <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="logic_null" id="m?V,X.^,P+[/zZlZ*(67"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="RYbooaJPxG3{DKkHL6AH">
            <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block type="text_prompt_ext" id="U,@{wo;rOTrPKeeasN}F">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text" id="pmjfSd.a3v5RF~B(RMbb">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="-bd[dzwc.VcLaq^YN/Fp">
            <value name="IF0">
              <block type="logic_compare" id="iDI5tOc0cokuohYjYIt^">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="gJbx6Y4dWz@R;Hg9nl?d">
                    <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_null" id="oC,.IYhVp(@W:a9f0VEn"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="gXBSCdQA^DA}))N=8CmD">
                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block type="text_prompt_ext" id="Hcx|t@m;HY=;tQ{UmvJR">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text" id="H2Nq(@=ed.eI-]=zL1rE">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id=",uCSd7LRBD%qr$4BPC6w">
                <value name="IF0">
                  <block type="logic_compare" id="E6K+W=}Uor$V|^!74uK3">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="_H#.0cT`*^0.SM9.p{--">
                        <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_null" id="p#d|l16Io`^|R[i`(uY/"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="AXTHs/}FowP{dqb74-GI">
                    <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block type="text_prompt_ext" id="EUii0a7vZ3_PD!I]0fk!">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text" id="+/E*-+op2t!P,!G7Zd`P">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="{IQl2s)QwCZAyIRgUhhn">
                    <value name="IF0">
                      <block type="logic_compare" id="K/f=ExyTITcl,}50SE02">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="kG2iXevcS=r:)i@Z}~lY">
                            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_null" id="OG$q]Z+r_U[#5)k0`MzQ"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="s+?ZEZOk*2DLMbL09)VW">
                        <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block type="math_number" id="Dy!Fr6?!@8+A6AsCuO|+">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="t|r$*|MKkqSu;1q6D.-o">
                        <value name="IF0">
                          <block type="logic_compare" id="$B(0#:=a+$qzWfqa8#aW">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id=".%LR=Brq*x^vI/a5VskS">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_null" id="oU|%SKU}p)Sf6Z~ob/5,"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="+0pTpbfHtPN)*k!C;PNE">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="zvhKz}?.X~;J%!so,Zk:">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="DoCzdX+R(NU%T}B,(^c|">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number" id="F/^.gR-k|dBg*ZMQ,E?v">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="ZWAR2N_j#X%t7mIWeu:A">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="v*eC4j=U!K8B76C5kQ*U">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="^($X^R@I)[0`_:d4Rdc!">
            <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="TX:J6baUU=V^xSDK|Fer" collapsed="true" x="0" y="0">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality5</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="CZ{l=!N7K/x:}hc~(.VT">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="4{R7)y4[^[fTxw31K-dE">
            <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id=".G%HG,%K#;c+;J|u5~E{">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_number" id="N`)~Takk0inui*_7}LpO">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="$gI,u}~UjV1Dg4DBJo!m">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="x=pc#08fP8|buo8I8rkJ">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow type="math_number" id="QujpfOq.d^A8_SMe`uvh">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="SW~!dQ[^o3}cN511o7K6">
                    <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="%6%m1;%94AYq9a7`g[u!">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="Xb9Yg}64_SkMO%eC|_t*">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id=",d%eTTxzml%JpTVx{!I3" collapsed="true" x="0" y="0">
    <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 pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="zl:@j!y,.tUF%0x2UTTq">
        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="[)Nh?MH}TXeN]0n(Q?PP">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="V.o(ljcj@RuC8U|hqDlH">
            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="AVV9g7cedob^lZQ(8OVU">
            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="K{axBbg_10UmfSIzQioO">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number" id="Y445k*N9Y{3k^0nU:f/a">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_round" id="lZs#|nN*l~=@to!^AQ.~">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow type="math_number" id="NxI4W6P)%aS~YX^5:fm(">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block type="math_arithmetic" id="OA6.qXFfm#v/mX8^n1$4">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow type="math_number" id="1IiDMd{pA4I8#Jv5:v)F">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="avQqKhJooBIWXYbdm(^u">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="QPp6Ex`FL}B)uWsSrQ*o">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id="8YXNFI9Qtyfr.e}nNJk`">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id=";(PBMt(9fPe84P0`MRRO">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="z6voqezeR3m7gV7}qaiL">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="qxU^e+.0LFIY$IRl_G~j">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id=")K@L_[T,kzS_cDR+7k1p">
                    <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="B[Mz8u3a%JJUPV@}[N~1">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="}S?b^7Pksnt$0vF~{%+D">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="byk%.ECXyD=;3S+Ad|eJ">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="HxX=xux-|.moXU~$|1f^">
                            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="notify" id="N~SoeY@Z|ne^TY{F_%xy">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="6,7zZ).Ia|b_V_TAIYQ]">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id=":#zO,FydVQD]b(BE%tKc">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="math_single" id="s9L$#/C$w7y%!`hyI$Gu">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id="GleSn`9j7Cm7/dqg}FIA">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="variables_get" id="]sEQq*!*3AT4)|VUhX[u">
                                <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="procedures_callnoreturn" id="-hn}ye6A?R;Q(1-%lwR:">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="variables_get" id="0|#ti;1wdIg}!KG^}z]X">
                        <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="xy.|e6j|_S)=Sbky5Ee#">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text_join" id="{oD}3onhwm4a1P45Zo5p">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id=")Z9t^[s0.udnnrQog_IQ">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="zk)m-)7/N|su2]HX!PAT">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="gV2f@@{V]Wb(d2Nc~ep-">
                            <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="GKn{KN0?z!ZoXDXZI#-p">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="mI,At+@z@v4)O%@,UvA7">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="TOEcxeVgQ;v1qp9+Y`VA">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="qq54%yPI/squ^.9HULg!">
                                        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id=":m}!p*PYg:Y$:?7d?qt`">
                                        <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="W-/VvqP4$-)u$T.`1Vsu">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="]bjjp,[AB)@X/7Ez=Q_,">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="}2P|YCFw^xO{4j)C6=-/">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_single" id="N47gs~p%SS87Mw[h(uQ}">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow type="math_number" id="#4N:bIe?FzTA#rOZjMqo">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block type="variables_get" id="!eo,iv*O6jxi4Yq6()i,">
                                                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="HY{CP#sh^EiUfNbpU.)M">
                                        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="rG%9n=0eVCHucJBp8RZ=">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_print" id="e6b@NzbDuxeI3,%6)b1`">
                                        <value name="TEXT">
                                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="#^B,5P6|5c~bP[{}Zyqh">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="%JO.jTqfj70glNK=]DtJ">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_single" id="lju2nq*1OJ#5s=Q7JE(o">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow type="math_number" id="pi;;Fh3#fMUD2s`W_UJZ">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block type="variables_get" id="6RaFyC%+f!L]OnoN@P4l">
                                                    <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="text_print" id="VxbdGV++x#]R|f!HvJyA">
                                    <value name="TEXT">
                                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="Tx;r9=Sq(^^ueX][D1ey">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="?Tq?dGFQ2K([-qJi`GR;">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="g{H`w@f2tL}s[D`?M_e!">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="@9~$mxTmxQQVy,J:a.6p">
        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="Q(xpUP$4Ek?]J5@CsRr)" collapsed="true" x="0" y="0">
    <field name="NAME">Martingale Trade Amount6</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="TLYJfK{81|d4FvQqY=*m">
        <value name="IF0">
          <block type="logic_compare" id="Jf!voxoZ6Q:~Iu0YPyV(">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="I:iUW^,e`98zYp}NO/*@">
                <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="logic_null" id="KDWkJ8KxWh~4S,JNGkVn"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="FifkZMVK67J0~*od`Dqg">
            <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block type="text_prompt_ext" id="BTPjM?l#gzO^kCNGwx}/">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text" id="I_6Lq`gnxr3g8/W#%ISG">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="10ynI2|dgs2f/3e]1`@C">
            <value name="IF0">
              <block type="logic_compare" id="8VJ(RtY%Pz!dBtL}jp!;">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="Z5xsF*(v|)0({kz4w85v">
                    <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_null" id="Emtnw,+vby5yFCM!f2aZ"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="%W#!2sK1gcwSW7FBJt]9">
                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block type="text_prompt_ext" id="i:pXFK0^=_/a{c(Y-s{?">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text" id="s6pNJ._H52n9fC4Q|OPc">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="z+/kF$eOjdjV@.BryV=X">
                <value name="IF0">
                  <block type="logic_compare" id="qg[T%*Jru_8D9A:U;q44">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="e{.@F=D3maEYU}%4g#}k">
                        <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_null" id="P.e?!Gg/f64m93sWG;Cf"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="~6W/,N6K$B0Sw|q+=MeR">
                    <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block type="text_prompt_ext" id="zP$M~qxBj}@}:@@mi!`t">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text" id="pKDD_d(S3P)0zd5;$mY!">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="2/F[%[.v-1g=aa|@n9vE">
                    <value name="IF0">
                      <block type="logic_compare" id="s~A0z@QT[2Ep]gA`mOTi">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="1Oy*rR.zoNK]%M4?gal*">
                            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_null" id="TC9-%KD`_VSmYqNrd.VJ"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id=".o?t|,HV.aGkx@]d~f@M">
                        <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block type="math_number" id="d88h85mAK2c3*8xeg*xp">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="+3[h%=J~:yAA_0TZfQs1">
                        <value name="IF0">
                          <block type="logic_compare" id="2iH2f5PgAcF3s76~C).}">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="DirF{i)TtcCOPtJhL=y!">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_null" id="CKSy`T]lKb{/Pl)U_ySL"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="RD;S48ZMz[`7NS}SCijD">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="W|RrD?,kCqnqf^[X-1X`">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="U(Y0[!@=MDM+]fI79V3,">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number" id="F/^.gR-k|dBg*ZMQ,E?v">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="?wdYt!5a9{lz)IvQt?T%">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="v*eC4j=U!K8B76C5kQ*U">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="TIAglfN;-`Gg:of?T.V:">
            <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="f3J~%!j{^orl1WkoZ+A*" collapsed="true" x="0" y="0">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality6</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="X|sjE3YXdP7gJb9`v)nP">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="AQxXEyROII2mgL5XtKCj">
            <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="w/C~Ykkf{S8nhjHY,%e?">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_number" id="1eGcz+KdWO(@HIa.-*(8">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="EKxK0PRWZte9_%yc@cUG">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="-b0VjG~+93Tix8sa$_(I">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow type="math_number" id="QujpfOq.d^A8_SMe`uvh">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="NhWtvg=+Way|1|5V[Ay`">
                    <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="%6%m1;%94AYq9a7`g[u!">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="oCv]u#5sCF#Y2cmuE$)?">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="YSu|Z7N_M-w/SBgXgc,n" collapsed="true" x="0" y="0">
    <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 pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="yGQ(ezgI1U_.)oZ5r,9|">
        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="[)Nh?MH}TXeN]0n(Q?PP">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="N($sixlHR9z~mxfXtlUB">
            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="8WF4OmdV61$+zh.gC*Pf">
            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="@3^u(XUX+b0,n1a^a]p{">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number" id="Y445k*N9Y{3k^0nU:f/a">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_round" id="Q,k;eDvB.Q^oV}!qn,Xl">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow type="math_number" id="NxI4W6P)%aS~YX^5:fm(">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block type="math_arithmetic" id="K5cJga|8XWD]FsA)gjre">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow type="math_number" id="1IiDMd{pA4I8#Jv5:v)F">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="M#`x3.u]8bry#UQjeE-^">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="QPp6Ex`FL}B)uWsSrQ*o">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id="/g8eJld;Od9Hhn7rZ}wB">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id=";(PBMt(9fPe84P0`MRRO">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="Uzr,-2KGGH}}y2$:iNc0">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="Uc*=pZg@dVW`K]vrp.pf">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="Sa1vmTT|YE8U:^jD6nmj">
                    <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="|l`P}fF6J)Et_P09LAOX">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id=",QKV|%FPaa%/I^:c.^.I">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="lV=1WPxr=5u2_3pgUN_6">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="d3n`N6vMY%Rg{Pi}RS6_">
                            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="notify" id="!Bg^C*jTVg2J=$Mm].y@">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="PEvHoAGz]4wcgWQf(.K/">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="EK{n:5YNjYb5HODW0OEs">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="math_single" id="BNH.|`[PD!K7-Jw!zbuu">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id="GleSn`9j7Cm7/dqg}FIA">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="variables_get" id="Y`+U{8$P]Hg}A-;[i[1/">
                                <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="procedures_callnoreturn" id="rs_vd@luC1cNCei!b9l$">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="variables_get" id="6L~e(ZAgVKB}GfZ(.^+Y">
                        <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="^Le_#E8xZieVj$5?,lTL">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text_join" id="EZo.yi#gA=x3D2@-o^bu">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="D{6_m9UL1+2g/AtfpdVY">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="(~Lk8$zL=74`BpnjaY0!">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="ckVxlk=_c,GGoqpclw$]">
                            <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="J$@GB*s6JcC7At@~Z-[a">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="*[$NmArVJ/,rW6uIN4MD">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="S_ldcLT;_LD6[Or]9ysc">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id=".5oiOKd~k!y(U539_LR5">
                                        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="_?I7i!KsCSMeMl,y^OD4">
                                        <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="k,8!k6VwN;f?,1/f8#aD">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="HGEW.#=J`Fr6,r/ql*?D">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="rOaaZHr4uR:-o^rvhM:*">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_single" id="FU@@0.8Tits{hKN?OpAU">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow type="math_number" id="#4N:bIe?FzTA#rOZjMqo">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block type="variables_get" id="[^m8#NpjaPH$!v4669DZ">
                                                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="R8bvjwK#H;R;QBJ=VY-)">
                                        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="J=XL`jTmZ/~(Q3MBF+rz">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_print" id="[@90nR0*7kC7TOS`+!Lh">
                                        <value name="TEXT">
                                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="frTB*_BA4%LZBq63w}Wz">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="aH?{G?h-7Or=AC/k[U[i">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_single" id="fyQ{b015o@y/X6lTvd.$">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow type="math_number" id="pi;;Fh3#fMUD2s`W_UJZ">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block type="variables_get" id="en#a*OUTCWWwyI|;VE]@">
                                                    <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="text_print" id="u+ShEGRa.6=ap00L5jX*">
                                    <value name="TEXT">
                                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="H35t!qvAr|HE2Pp@QGQ|">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="rx`%q/Vnzn*Ou6gE,BM9">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="u06H]$5n-pB1`[c:xU$?">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="Gic|%i5j3Orv2R1dK/@?">
        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id=".I*:UN/WCVUd_05_6az)" collapsed="true" x="0" y="0">
    <field name="NAME">Martingale Trade Amount7</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="w8*IOl53XIyae9,DS~X;">
        <value name="IF0">
          <block type="logic_compare" id="nL4t15f}nUfhug4c$]~5">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="ND%zggHL4j?lKDe!(Q:|">
                <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="logic_null" id="(!yZn9(b]b:UK=c)cGZd"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="l^2O1wXryp7MuZ+yqMi)">
            <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block type="text_prompt_ext" id="WcfZ6oF,2ZsdLO8rllDb">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text" id="wofrrvWU*^CdaYP-vy]y">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="W@I2xXw=@pNS7xQkJKq2">
            <value name="IF0">
              <block type="logic_compare" id="$550FH{w#tO?fD+YdTGl">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="i6|I,JY:eH#McN7k*9X}">
                    <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_null" id="$}p4ATPJWY+4OQixjJcd"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="r%|89b8vwH]J{(}f^pO^">
                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block type="text_prompt_ext" id="49@*P~p#@?PeEY(7q`KE">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text" id="D_FNsl:ygj@Wv]T_]^S#">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="Y(TbI,sF:1,+j@YbYo5`">
                <value name="IF0">
                  <block type="logic_compare" id="KpL@^x7Ni]{dr_lkeKX9">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id=")@q)fZ*/@F_A=q1j$]dR">
                        <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_null" id="?G3r)qI?tEeVvk%q*)UK"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="x2SyY]R1AVrK|DYU$8O@">
                    <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block type="text_prompt_ext" id="YPoHQrUS}^)%cMK;~DyG">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text" id=",]+@h/MqRZuvB^9W8(dq">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="FlD(LM-VxGH|MkV{@u$P">
                    <value name="IF0">
                      <block type="logic_compare" id="=C$g{|xId;eYZP:mD[A5">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="dUw??8E^hbm-lIRh0va=">
                            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_null" id="Dt~atqjEKG9og+|X7(zp"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="8HNf(3RDV/I2^+Q0QDTn">
                        <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block type="math_number" id="Q)5C|!JTD;I2pW1xyr|4">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="BxEe/`.[UKU``aArwgVA">
                        <value name="IF0">
                          <block type="logic_compare" id="ekF]-@!py4j@!j+^Q=f_">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="O8:DFIOLc%_=Ic^2nH3b">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_null" id="NG6I@0nxZL+*x1~wxNeh"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="sEQ+@*T]Jw2Va/C.j-$n">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="kGWw-w+LCOZ,0u*Tou)q">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="*uoZ12Lm]06B`+0N_31)">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number" id="F/^.gR-k|dBg*ZMQ,E?v">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="[lo~l`V:;^KQ-Q=jIX6C">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="v*eC4j=U!K8B76C5kQ*U">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="-|F!p[v15,lXx!pIBpsp">
            <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="ONekspn.9m$?j7GPs}dj" collapsed="true" x="0" y="0">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality7</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="e[#OslHJch[By$ZIWf#A">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="l4);a#v0(;{Oa-6PKmhU">
            <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="fCFzQa./h^i`,Vq8Np^M">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_number" id="L(+c.ahkrT[)aAF9u!K4">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="pRyQqihz=m2JoMIWP0P7">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="S}PMsFFvfyV{A*AWo#C~">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow type="math_number" id="QujpfOq.d^A8_SMe`uvh">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="YPiC4H7l$P)K/fbdG({w">
                    <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="%6%m1;%94AYq9a7`g[u!">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="0i-9+Q+0QCVza/E#x`Ex">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="%Pqr%b@gv![a5?j[jw|i" collapsed="true" x="0" y="0">
    <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 pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="9~T/|4SBaIbn3q*/J75)">
        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="[)Nh?MH}TXeN]0n(Q?PP">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="%KXgs9/[rMYdI_6aqwgX">
            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="BlO0%nw`aY]4kdmSO)B^">
            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="y=}(QJw!)h]W)$Q0PtZE">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number" id="Y445k*N9Y{3k^0nU:f/a">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_round" id="%W!q^AlIoNlU8z)#;|?n">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow type="math_number" id="NxI4W6P)%aS~YX^5:fm(">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block type="math_arithmetic" id="kx#]?FuBX-sQ{S4~Qd#0">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow type="math_number" id="1IiDMd{pA4I8#Jv5:v)F">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="=$*QT[H$^v#d0xwf{z=7">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="QPp6Ex`FL}B)uWsSrQ*o">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id=":w`xY;Va|I?u4d9!Km@T">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id=";(PBMt(9fPe84P0`MRRO">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="Pm6$AIWN}/|D$$l7]k@M">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="gEIDK;Z]}.NVa7CFK^Nt">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="*uX7c:7bJ[U!%(#^ju|x">
                    <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="2+a?Vy`tw6X$j_%ap$-5">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="t,^V-khB+Ft]xx*:KwRT">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="l.1`Dpy2GGK%qT4[;rK{">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="~|XAFyi[yQy75x1WX]20">
                            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="notify" id="?OfG$|zSdr(ivDth%x!h">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="8VE@K!9CLrB%z#vf@Lo6">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="G-Uaa!mzZoc[fUvgqt1J">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="math_single" id="r7*-5+,ncobH*Su_P|FD">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id="GleSn`9j7Cm7/dqg}FIA">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="variables_get" id="HOMl_vXE^2uwkWdZI[U=">
                                <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="procedures_callnoreturn" id="i[g@o1xrL{;a.p~jtOy:">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="variables_get" id="/zJ4@4[@=p%eKH8i*`Md">
                        <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="T*T@/eq}#:^MKQ./bj~1">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text_join" id="3_HQP}RNpRfDS:k*zaP~">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="bTK|]F7w(-%*f0Y+4AT~">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="bceKHxZf|5Id!vxS!yr~">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id=".=RhO)b+6LGnS((Y(A(7">
                            <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="xW23PiW`kx,HH;FzKBD%">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="ba]vNd*yo-Y[sfB%e-Z0">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="O*$wh6[EdT;].EnmJrAT">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="i:x(Z4JcZswkp?(=[61/">
                                        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="EM^opE_Y91DS9UE$o/}P">
                                        <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="SA8A3TUXY4V]@uY5@6D!">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="FpJsgmYG~A{j1zt@R{UU">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="bO^^79[ga3fv)r8;W)#9">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_single" id="c5G5OO^wcr=jlVk|C(xX">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow type="math_number" id="#4N:bIe?FzTA#rOZjMqo">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block type="variables_get" id="b.![o7,v6X0#6|0!@QgK">
                                                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="JL;%.`PIp#o@4U}cGV@Q">
                                        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="FsodEE~G]6WM1;[jDf|t">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_print" id="6;yz.EZ!4=.jybv|(C:D">
                                        <value name="TEXT">
                                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id=":/.{77$IM7#}xYC_121z">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="p%/VW{^!t@SRiXdb}Po(">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_single" id="c]H]4[.E![(~U+A-!;Q!">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow type="math_number" id="pi;;Fh3#fMUD2s`W_UJZ">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block type="variables_get" id="(.Sb?Mw[-#c}9}CDCHn]">
                                                    <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="text_print" id="Mj7(ug$rvL*0+`/XPOld">
                                    <value name="TEXT">
                                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="-v~JWH`lb$AK*.piaK(,">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="v{`1.F`VF$yQ|-*IbX{]">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="o5_RB_%yX,6#2Xfu+JM3">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="[X]5_ZbNrj)e`V.V]oCE">
        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="loader" id="w3xEw68B*.+rZ*T:bg]G" x="0" y="55">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block type="procedures_defreturn" id="qq2xGirc*Byb/P/HE^]H" collapsed="true" x="0" y="110">
    <field name="NAME">Martingale Trade Amount</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="n4tz9*`uW5vI{Y(mwC)L">
        <value name="IF0">
          <block type="logic_compare" id="3qWA5gevZ|UpE{.gFl4n">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="nXPxXCq9p:hf1Xx:`D_{">
                <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="logic_null" id="Tp8pr^]@7PA~eGl`XK?b"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="p8_@*8We560p~d]XEj-I">
            <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block type="text_prompt_ext" id="%r0#U,KXY;)S1-I},GCs">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text" id="AlB(yFhIT1/FZu-ZEpqQ">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="qa:)sj8|A!lxwG*|YaO]">
            <value name="IF0">
              <block type="logic_compare" id="fo(G)bKdQhx,?aEY[Yl}">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="`Geg[{!:(HTr6q)A];`0">
                    <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_null" id="!X8^fykpJtsH#Il8+Wh9"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="t3Gw#E]HVqIM/6J-t-2Y">
                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block type="text_prompt_ext" id="K[Cz2)F(1ny#Zw!j7j!V">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text" id="dfNPxr:VpC%uF[yz%xk[">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="^CEM+~9aQ2uhnXtkL`kv">
                <value name="IF0">
                  <block type="logic_compare" id="wL4k~{ia}[/ON_+z47RO">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="WjGS@!}HI|kFH{rJqavk">
                        <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_null" id="qTK#~^WMVK;Wyz1LJ/@d"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="ZxKDnNw2?MsznEZQtR6`">
                    <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block type="text_prompt_ext" id="^4peSz1pJ=`,CaD#@6Jd">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text" id="=6eX{Eblptb4BBlz7?U[">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="kC@O!Xl:KO^G_(uzKTzH">
                    <value name="IF0">
                      <block type="logic_compare" id="@|K%}q0X`VebpuZQ=EV*">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="(xdUld=/ZoI`Y#*TZfMw">
                            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_null" id="CA@kQ}mQ:c8NW0=5Ed[."></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="^xOi2|SaRE2S4sk8(u74">
                        <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block type="math_number" id="V^QkcFsonsJWZ0pgI8IU">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="fwmgCgdRdN{)3S|t|fn7">
                        <value name="IF0">
                          <block type="logic_compare" id="pj:P)Py2NsbQ8@=5Y9D=">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="5A]k/?)Q#Xi4G,Wpd;Pz">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_null" id=";,X}K#n`DxM#4`t;d~Cc"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="MmEFyqc*]VjjlJZzlNt[">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="DcgRnz]nVdJyT*eH=v!;">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="!BlRd)C:TXj@_wErj#qz">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number" id="F/^.gR-k|dBg*ZMQ,E?v">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="4;YLe/OL#s08%Fg6}T[#">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="v*eC4j=U!K8B76C5kQ*U">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="]6BmBNR~M:1|pttC(CT_">
            <field name="VAR" id="J#HzOplHme2rx5#/LQj." variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="TY/(qs?1mzi0doraNq_[" collapsed="true" x="0" y="163">
    <mutation>
      <arg name="martingale:resultIsWin" varid="*CR/0=iMw@7[xN]mq)rz"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="wcQS%xc8=!!#P52Kt:1x">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="P]*Fp7~p#Lj1S#`(3rAr">
            <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id=",*SKPEhPmhmsq#tq`G*9">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_number" id="tNP@,EBgjET40TC9jh05">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="t-K_E*m(aYDGloWhgc%=">
            <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_arithmetic" id=";x;#^I=T5+dN,Zu?u9%y">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow type="math_number" id="QujpfOq.d^A8_SMe`uvh">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="!7jq#O^~DP+j~efJv=eV">
                    <field name="VAR" id="nEd0DNw46KUsCywpkU0R" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="%6%m1;%94AYq9a7`g[u!">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="f4;y.Q47WJBWSp4}1|_k">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="_b//g0Q,2OW8MbY^`J3E" collapsed="true" x="0" y="216">
    <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 pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="5ph^#sJ_|cnLn{}e(%Z{">
        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="[)Nh?MH}TXeN]0n(Q?PP">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="Kj+o2HPe^1#-J*pl.VD9">
            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="=``}2YqGE51x5XO#O{A6">
            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="m9HUE{JvBzON.?`k.p0L">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number" id="Y445k*N9Y{3k^0nU:f/a">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_round" id="eOhznKTK*Yn[R~s!l7p;">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow type="math_number" id="NxI4W6P)%aS~YX^5:fm(">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block type="math_arithmetic" id="a52-x:2(jo3fN-]co/k]">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow type="math_number" id="1IiDMd{pA4I8#Jv5:v)F">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="djyZC:DVv!8AFfC.FoYS">
                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="QPp6Ex`FL}B)uWsSrQ*o">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id="qdaI}RV~2ic%D1==.15s">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id=";(PBMt(9fPe84P0`MRRO">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id=";)+n7kB.._k3n:rt!GvJ">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="5KFo!jX4/:fF7|O8_:AM">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="L[N5wU8U4Fj~q=JK3e*3">
                    <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="X!yLWFo.pnsN2p8.mhku">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="o|T}XF*xV|s^O[[T5-y_">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id=")A^KesPc24S7[#WdiUpC">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="RgAIb=eB,f|Iou[N!-8I">
                            <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="notify" id="_i^CFKP~e49;_EKp{u/`">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="u^Z8+w=IkvP+)w3`*lGO">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="xoNPU9oIK8J)B^%vr%^~">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="math_single" id="~h0K!.E)*v-|,9vGuFn1">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id="GleSn`9j7Cm7/dqg}FIA">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="variables_get" id="tj[WVE=J+4/Z:KIQ:g}v">
                                <field name="VAR" id="/:Zs/rk)]?r8T^UoDxm!" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="procedures_callnoreturn" id="RHC~X)8#c;n3tE`]u1*.">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="variables_get" id="[|xwly3+qnsyH8X40V0H">
                        <field name="VAR" id="*CR/0=iMw@7[xN]mq)rz" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="Cvi8%t{p9/_xm#+X]om(">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text_join" id="BJCQ#/4O0}z[^DR9GgkO">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="ijsv9!fxO*BB:8yHR`f|">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="Kc?RVUrXujr{1X[%y1sW">
                                <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="ix3Jwr;,l7NS%LeIjciS">
                            <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="Z;.teZof4syfkPW!mqo,">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="]Kv}Tw=x^zr6@I@D@S4q">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id=")|LQhZk*#Wi64TgP!Xa^">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="JIN._QaycDvYwCfcJGCM">
                                        <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="ca~g-NW_y(msxA`ID6uw">
                                        <field name="VAR" id="-QkV(EC_;8-QFA=aoT$R" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="fVNi_Cv-~iB/uc)2U.3u">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="+`bh%N2o{Y5P*([/ypeU">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="J~+vmLG#*!wX@7rgH_a9">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_single" id="ETDn1dh]F.b#8{zcD@+|">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow type="math_number" id="#4N:bIe?FzTA#rOZjMqo">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block type="variables_get" id="OovN9^AB=zF:sTh-=oGq">
                                                <field name="VAR" id="kvvov2Tuh:n|dwY:P=)i" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="y%eZ%16)YFB?;J!WT-/1">
                                        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="qt?z|=[ordjkFsa{CxlK">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_print" id="(!.##DU]KjPhy^tQC6YF">
                                        <value name="TEXT">
                                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="oX?Ia)5gqDMl[H*da_9g">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="ox|AU:{^KZm`Bk=piPeZ">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_single" id="bc,1cQ})F_fQN*9Fird^">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow type="math_number" id="pi;;Fh3#fMUD2s`W_UJZ">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block type="variables_get" id="=b`joCv5,]G3N=_{)2ND">
                                                    <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="text_print" id="RqQw_^5^@PdBOSiPMkW7">
                                    <value name="TEXT">
                                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="uNhAtc%n?rJat;igy.i;">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="+Fd!Q%aw=bq2)~qEmqt=">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="CxB@:}TG^Od;=yysk/#C">
                                            <field name="VAR" id=";wvvike[|t0~|v*pG5/Q" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="zEXck3l4zHs1m9JF0^g.">
        <field name="VAR" id="@e~W)ph!m42,T}Ak%$VN" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="trade" id="73vWdDagX-YhN)CtN.3D" x="0" y="269">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_100</field>
    <field name="TRADETYPECAT_LIST">callput</field>
    <field name="TRADETYPE_LIST">risefall</field>
    <field name="TYPE_LIST">both</field>
    <field name="CANDLEINTERVAL_LIST">60</field>
    <field name="TIME_MACHINE_ENABLED">FALSE</field>
    <field name="RESTARTONERROR">TRUE</field>
    <statement name="INITIALIZATION">
      <block type="variables_set" id="6v!@?*xZA~*U{SuB=T[N">
        <field name="VAR" id="g=(wV~*8oan6/5YX)%i?" variabletype="">Contract Type</field>
        <value name="VALUE">
          <block type="text" id="4^!Tx5_|Of5,0r})/9^d">
            <field name="TEXT">Call</field>
          </block>
        </value>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="mZ?PLC]mJp)H~?*vhB^9">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
            <field name="NUM">8</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="procedures_callreturn" id="(|S1WZx(~/P2bp{l]+nq">
            <mutation name="Martingale Trade Amount"></mutation>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="0" y="684">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="i^y1-),y7~|#4?F~nZ_|">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="logic_compare" id="!WkMU~7t-BaX/6mu`-0^">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="nFY.TxN+a_J`Np?^d:2c">
                <field name="VAR" id="g=(wV~*8oan6/5YX)%i?" variabletype="">Contract Type</field>
              </block>
            </value>
            <value name="B">
              <block type="text" id="2,4_9}MD6ZJ9Io([N~c;">
                <field name="TEXT">Call</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
            <field name="PURCHASE_LIST">CALL</field>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="purchase" id="@5$RB6|F?Ws{|s)a6(3k">
            <field name="PURCHASE_LIST">PUT</field>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="0" y="896">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="fhx(fO!cb|asgk(ay{hB">
        <value name="IF0">
          <block type="contract_check_result" id="AnEQFO/5OWIoC#=IddTD">
            <field name="CHECK_RESULT">loss</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="controls_if" id="1-c,VlN:,{n1.F271)z.">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="gxiH0*@=TH*=X8}I4~99">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="oJph;:)i1!I_WB0WcIXe">
                    <field name="VAR" id="g=(wV~*8oan6/5YX)%i?" variabletype="">Contract Type</field>
                  </block>
                </value>
                <value name="B">
                  <block type="text" id="8,_RxM0Mz5s4IB8=I|YI">
                    <field name="TEXT">Call</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="NqLuJB2Ie+-fc%JKw[9s">
                <field name="VAR" id="g=(wV~*8oan6/5YX)%i?" variabletype="">Contract Type</field>
                <value name="VALUE">
                  <block type="text" id="@?@7V9GA}$A%hK#uEmq|">
                    <field name="TEXT">Put</field>
                  </block>
                </value>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="variables_set" id="D7Gd;Qbdxw6C|V-UBB7?">
                <field name="VAR" id="g=(wV~*8oan6/5YX)%i?" variabletype="">Contract Type</field>
                <value name="VALUE">
                  <block type="text" id="QH4m()a)1|soCbiE]$wx">
                    <field name="TEXT">Call</field>
                  </block>
                </value>
              </block>
            </statement>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="#=yO.C1rn7n]Zw*%E1AI">
            <value name="IF0">
              <block type="procedures_callreturn" id="}fROgrB?r4DMBoqdL}=(">
                <mutation name="Martingale Trade Again After Purchase">
                  <arg name="martingale:profit"></arg>
                  <arg name="martingale:resultIsWin"></arg>
                </mutation>
                <value name="ARG0">
                  <block type="read_details" id="5J4Wvp4Y;^MBlr]Gdzsy">
                    <field name="DETAIL_INDEX">4</field>
                  </block>
                </value>
                <value name="ARG1">
                  <block type="contract_check_result" id=",]jTH6_rcBIF4Ug0.60_">
                    <field name="CHECK_RESULT">win</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="trade_again" id=",VG2~pX|wvNj6hMyw=%~"></block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>