﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="eiW=-j54)EWL,!s5YnL0">dalembert:resultIsWin</variable>
    <variable type="" id="?mhk,YREx}P4_JiunmSO">dalembert:profit</variable>
    <variable type="" id=")u]IQ;p0(|5)O.0=E_(4">martingale:resultIsWin</variable>
    <variable type="" id="IjHFLw,{Yu#)]xuGjH)=">martingale:profit</variable>
    <variable type="" id="mL_AKK{)oz;4#lI6uau1">oscarsGrind:resultIsWin</variable>
    <variable type="" id="M0CAa?!k2*Ax=#9omFp7">oscarsGrind:profit</variable>
    <variable type="" id="%VZv(4k9iddAG`4.A}s9">dalembert:totalProfit</variable>
    <variable type="" id="n*o4UJ%bGz%njU./1M*7">dalembert:tradeAgain</variable>
    <variable type="" id="fjP=_{^_8)ka40=D3X2T">martingale:totalProfit</variable>
    <variable type="" id="t=NC~~Ypx|Xj=eCxM#Sa">martingale:tradeAgain</variable>
    <variable type="" id="z71kT9yofse{Pjn+~J5V">oscarsGrind:totalProfit</variable>
    <variable type="" id="N?t|]/n1j#Potoeh%o.U">oscarsGrind:tradeAgain</variable>
    <variable type="" id="-e0o4JM-MWHbt$-@6Pbq">dalembert:expectedProfit</variable>
    <variable type="" id="dU8%gLCxSXkl7ja:w2In">dalembert:size</variable>
    <variable type="" id="Vk@gD4x95T%lsI~c(_|6">dalembert:amount</variable>
    <variable type="" id="#v9N;zMB0#WRiKnIuk{c">dalembert:profitUnits</variable>
    <variable type="" id="A]Rfy.u1w^^9(%@I7JY_">martingale:expectedProfit</variable>
    <variable type="" id="i)90U-7e~IxJwPkgS`,8">martingale:size</variable>
    <variable type="" id=",LiJb}WhC8HSh{!)y(:[">martingale:amount</variable>
    <variable type="" id="MWUpW8krrwHE*R0/}_~E">oscarsGrind:expectedProfit</variable>
    <variable type="" id="QDIBHQDR1|Z9vMhd8V2,">oscarsGrind:size</variable>
    <variable type="" id=";7ZKc^o:qt,TUlwEHD^r">oscarsGrind:amount</variable>
    <variable type="" id=";6P9uW0icqi|+Pp).eSr">oscarsGrind:profitUnits</variable>
    <variable type="" id="K)meEw?Wi,NGmj1PN0,_">dalembert:maximumLoss</variable>
    <variable type="" id="h}:pIYap|uB|MN$Mu*0B">martingale:maximumLoss</variable>
    <variable type="" id="6k}C#]@Cup!x4Xr*BROm">oscarsGrind:maximumLoss</variable>
  </variables>
  <block type="trade" id="73vWdDagX-YhN)CtN.3D" x="0" y="0">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_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="controls_if" id="-Z{XTm@jb%tL01E`)wsw">
        <value name="IF0">
          <block type="logic_compare" id="j.XzizhYCs|~!Jfa8I6u">
            <field name="OP">EQ</field>
            <value name="B">
              <block type="text" id="{Qm3qVEW3Pf-vWd$Ytkt">
                <field name="TEXT">Bot- Bollinger Bands - Normal_Loss Tiến 1_OK</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="sVAt-eej]|yvovD66S(6">
        <field name="DURATIONTYPE_LIST">m</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block type="math_number" id="|tIC~6lHx]cKt9rf1jFk">
            <field name="NUM">1</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="math_number" id="bVRH9FH/nmsl$9_#ACEH">
            <field name="NUM">1</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="loader" id="9VBKAu]k3ui$6e92%@2]" x="0" y="403">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/dalembert.xml</field>
  </block>
  <block type="loader" id="0}M1y1~OPjV0-J~8]lQ0" x="0" y="458">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/oscars_grind.xml</field>
  </block>
  <block type="loader" id="{3(k7IY)[Ep{]qj`@Lxc" x="0" y="513">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block type="loader" id="-WFES@_+R#W/UA{F4cog" x="0" y="568">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/dalembert.xml</field>
  </block>
  <block type="loader" id="^.8/*ILhIp=?W2}M9nN]" x="0" y="623">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/oscars_grind.xml</field>
  </block>
  <block type="loader" id="iYtB4?Rs0B~^!fiQ5amn" x="0" y="678">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block type="procedures_defreturn" id="qq2xGirc*Byb/P/HE^]H" x="0" y="733">
    <field name="NAME">D'Alembert 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="-e0o4JM-MWHbt$-@6Pbq" variabletype="">dalembert:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="math_number" id="+YjU4cEL!}OngU@%Vfg9">
                <field name="NUM">5</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="p8_@*8We560p~d]XEj-I">
            <field name="VAR" id="-e0o4JM-MWHbt$-@6Pbq" variabletype="">dalembert: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="K)meEw?Wi,NGmj1PN0,_" variabletype="">dalembert:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="r11q)Cj7J1ML0W{8u9@O">
                    <field name="NUM">5</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="t3Gw#E]HVqIM/6J-t-2Y">
                <field name="VAR" id="K)meEw?Wi,NGmj1PN0,_" variabletype="">dalembert: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="Vk@gD4x95T%lsI~c(_|6" variabletype="">dalembert:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="D$mCc-?Fu#cdB6:HpwT~">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="ZxKDnNw2?MsznEZQtR6`">
                    <field name="VAR" id="Vk@gD4x95T%lsI~c(_|6" variabletype="">dalembert: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="dU8%gLCxSXkl7ja:w2In" variabletype="">dalembert:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="%@}4-}=uD3,v9FnvBx),">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="^xOi2|SaRE2S4sk8(u74">
                        <field name="VAR" id="dU8%gLCxSXkl7ja:w2In" variabletype="">dalembert:size</field>
                        <value name="VALUE">
                          <block type="math_number" id="v]w4MInl_BA/~uV5yCK3">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="h,Nbdz7YuKUY`Gfbpf|m">
                        <value name="IF0">
                          <block type="logic_compare" id="sb^6?GtDqE1.gRR,o^6w">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="Af?3G/kU#Zr*:F:)!TXF">
                                <field name="VAR" id="#v9N;zMB0#WRiKnIuk{c" variabletype="">dalembert:profitUnits</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="{`^Py.|KFWoxqEr~:Lr3">
                                <field name="NUM">1</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="lw``#pLseumYH8FC2--~">
                            <field name="VAR" id="#v9N;zMB0#WRiKnIuk{c" variabletype="">dalembert:profitUnits</field>
                            <value name="VALUE">
                              <block type="math_number" id="pOIB*s(LL2r5s}F#_Fs1">
                                <field name="NUM">0</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="%VZv(4k9iddAG`4.A}s9" variabletype="">dalembert:totalProfit</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="7XV8[iCpq(8aMF#.#Eg$">
                                    <field name="NUM">1</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="MmEFyqc*]VjjlJZzlNt[">
                                <field name="VAR" id="%VZv(4k9iddAG`4.A}s9" variabletype="">dalembert: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>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="9oY.1lAF`%[xoFKW!Vak">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number" id="!N5Q!/XB/Zq(Yh8GZNXa">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="Zb1gI0smw}o}MYn(O2z7">
            <field name="VAR" id="dU8%gLCxSXkl7ja:w2In" variabletype="">dalembert:size</field>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="_MIi~6{+puJoIPRIyX8S">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="dZh,rVm,Z,HL;@*{;ZGS">
            <field name="VAR" id="Vk@gD4x95T%lsI~c(_|6" variabletype="">dalembert:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="yNTO_g~CmG;eLIF(#(Fq" x="0" y="1398">
    <mutation>
      <arg name="dalembert:resultIsWin" varid="eiW=-j54)EWL,!s5YnL0"></arg>
    </mutation>
    <field name="NAME">D'Alembert Core Functionality</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="du_v/n9L4`|ArT@vt^u(">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="P]*Fp7~p#Lj1S#`(3rAr">
            <field name="VAR" id="eiW=-j54)EWL,!s5YnL0" variabletype="">dalembert:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="!=lcrD.j^lG@TEIG!Wt+">
            <field name="VAR" id="#v9N;zMB0#WRiKnIuk{c" variabletype="">dalembert:profitUnits</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="TdC9Atw|9KH;~yI[5d-{">
                <field name="OP">ADD</field>
                <value name="A">
                  <shadow type="math_number" id="ZI-r}kzT8Y=p.GdTq7lH">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="X7ro_Db;}l{v^YAzQBbu">
                    <field name="VAR" id="#v9N;zMB0#WRiKnIuk{c" variabletype="">dalembert:profitUnits</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="{Y2dS`Z1{(w6k%yQoR~m">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="^KQ1@hKbpC)EO-!1Vkh(">
                    <field name="VAR" id="dU8%gLCxSXkl7ja:w2In" variabletype="">dalembert:size</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="T+LMuBa?y@W4es3Z}sjZ">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="~dgK]Iz*%C46;r+~8#}!">
                    <field name="OP">GT</field>
                    <value name="A">
                      <block type="variables_get" id="W2eGOw^LKa45XEtku6}W">
                        <field name="VAR" id="dU8%gLCxSXkl7ja:w2In" variabletype="">dalembert:size</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="#s1ADC9}k|_{6N3I*+|Y">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="LUJS=P2(!/IWCRY:IsTl">
                    <field name="VAR" id="dU8%gLCxSXkl7ja:w2In" variabletype="">dalembert:size</field>
                    <value name="VALUE">
                      <block type="math_arithmetic" id="7#hL./MNVEX(Gb#D`~EC">
                        <field name="OP">MINUS</field>
                        <value name="A">
                          <shadow type="math_number" id="yo:WX(YXv,7m)@[dD*T6">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="%:^P@RJGx^xUN2aftCd@">
                            <field name="VAR" id="dU8%gLCxSXkl7ja:w2In" variabletype="">dalembert:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="xWP@Cne~D[-/%I4}kMHm">
                            <field name="NUM">1</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="variables_set" id="}HweP{]-KGldbObsN5ja">
                    <field name="VAR" id="#v9N;zMB0#WRiKnIuk{c" variabletype="">dalembert:profitUnits</field>
                    <value name="VALUE">
                      <block type="math_number" id="~]Eyf+@,^R0aIZf`g2Cx">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="#sbO?-oLMKqQZk(C3=v?">
                        <field name="NOTIFICATION_TYPE">success</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text" id="N0Ms_cA_dls{(fg4o]rE">
                            <field name="TEXT">One DAlembert session finished successfully.</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="/-d0;K+{pd79q%;p^o6!">
            <field name="VAR" id="#v9N;zMB0#WRiKnIuk{c" variabletype="">dalembert:profitUnits</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="^1(jnI}%J5*f^qdE~e%!">
                <field name="OP">MINUS</field>
                <value name="A">
                  <shadow type="math_number" id="ZI-r}kzT8Y=p.GdTq7lH">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="uI[tG5Ijf_[ihid2hC0t">
                    <field name="VAR" id="#v9N;zMB0#WRiKnIuk{c" variabletype="">dalembert:profitUnits</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="{Y2dS`Z1{(w6k%yQoR~m">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id=":yC#6A!Y3xuMNiwm-fdB">
                    <field name="VAR" id="dU8%gLCxSXkl7ja:w2In" variabletype="">dalembert:size</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="?QPU}PR2doaiC^[4f2(d">
                <field name="VAR" id="dU8%gLCxSXkl7ja:w2In" variabletype="">dalembert:size</field>
                <value name="VALUE">
                  <block type="math_arithmetic" id="{p%YL?+Yk3!+=*tM_dR/">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="yo:WX(YXv,7m)@[dD*T6">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="cp=ul.-FT,41`IF2Gzix">
                        <field name="VAR" id="dU8%gLCxSXkl7ja:w2In" variabletype="">dalembert:size</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="X@amaJRGiwc^;5j.8f4T">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="_b//g0Q,2OW8MbY^`J3E" collapsed="true" x="0" y="1858">
    <mutation>
      <arg name="dalembert:profit" varid="?mhk,YREx}P4_JiunmSO"></arg>
      <arg name="dalembert:resultIsWin" varid="eiW=-j54)EWL,!s5YnL0"></arg>
    </mutation>
    <field name="NAME">D'Alembert 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="%VZv(4k9iddAG`4.A}s9" variabletype="">dalembert: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="?mhk,YREx}P4_JiunmSO" variabletype="">dalembert:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="=``}2YqGE51x5XO#O{A6">
            <field name="VAR" id="%VZv(4k9iddAG`4.A}s9" variabletype="">dalembert: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="%VZv(4k9iddAG`4.A}s9" variabletype="">dalembert: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="P/L5q|aftSE^KsctnA}E">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="IE(_]mU,GAeY}*bDjQY@">
                    <field name="VAR" id="eiW=-j54)EWL,!s5YnL0" variabletype="">dalembert:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="Y+/B?@*,K~?KRM!)/fmK">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="4{*#BHVCa/!8W=WM7Kz8">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="I-e_UTV7xCYiDFI})Q=(">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="k4nklyFK@UB@/FR9Lp|s">
                            <field name="VAR" id="?mhk,YREx}P4_JiunmSO" variabletype="">dalembert:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="notify" id=",llDyR^DXy%PU^4]}f./">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="/HOAuftQSV1A*1Bigv8-">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="gF}3UoFAC]sxWV/nw%ei">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="math_single" id="1SW+cz/lMmWY)ms^lqaZ">
                            <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="`]%tyAnT!{u4,M%!D1bd">
                                <field name="VAR" id="?mhk,YREx}P4_JiunmSO" variabletype="">dalembert:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="procedures_callnoreturn" id="sDq[vcSX3kB!@W09lkSI">
                    <mutation name="D'Alembert Core Functionality">
                      <arg name="dalembert:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="variables_get" id=",gx.@YSp(M2f-koK!twT">
                        <field name="VAR" id="eiW=-j54)EWL,!s5YnL0" variabletype="">dalembert: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="%VZv(4k9iddAG`4.A}s9" variabletype="">dalembert:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="ix3Jwr;,l7NS%LeIjciS">
                            <field name="VAR" id="n*o4UJ%bGz%njU./1M*7" variabletype="">dalembert: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="%VZv(4k9iddAG`4.A}s9" variabletype="">dalembert:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="ca~g-NW_y(msxA`ID6uw">
                                        <field name="VAR" id="-e0o4JM-MWHbt$-@6Pbq" variabletype="">dalembert: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="%VZv(4k9iddAG`4.A}s9" variabletype="">dalembert: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="K)meEw?Wi,NGmj1PN0,_" variabletype="">dalembert: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="n*o4UJ%bGz%njU./1M*7" variabletype="">dalembert: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="%VZv(4k9iddAG`4.A}s9" variabletype="">dalembert: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="%VZv(4k9iddAG`4.A}s9" variabletype="">dalembert: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="n*o4UJ%bGz%njU./1M*7" variabletype="">dalembert:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="j5RTSloi,X-FbK7|BhuW" x="0" y="1911">
    <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="hz?(n8XMOVR)+:,`y:ng">
        <value name="IF0">
          <block type="logic_compare" id="2[MksjDG;U;U47+I`YK%">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id=";N5E.,)^QtbrtxkE~cqn">
                <field name="VAR" id="A]Rfy.u1w^^9(%@I7JY_" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="math_number" id="EY5`EfBc$j3^8vb|W*f@">
                <field name="NUM">5</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="nyE5{S:]wJgg$$LP9Btj">
            <field name="VAR" id="A]Rfy.u1w^^9(%@I7JY_" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block type="text_prompt_ext" id="{{}|x$HJK#=7tccH?DYo">
                <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="0#=jx8;iPNY*!KDw;,/5">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="KZ]4S:0pjzPVC1D7Ynf^">
            <value name="IF0">
              <block type="logic_compare" id="j*J:Yrs@v2z1PzZQ(_Yc">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="#x(M+]INP=BKjG?;bIiX">
                    <field name="VAR" id="h}:pIYap|uB|MN$Mu*0B" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id=")H{b^kzHE-qs-^-A?R[o">
                    <field name="NUM">5</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="2)(NV`0j^0LT7d$9$N5S">
                <field name="VAR" id="h}:pIYap|uB|MN$Mu*0B" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block type="text_prompt_ext" id="Rl*?I2XB1QS@h!)qAH)D">
                    <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="5QYdY{WKbQ#L#2!3-ku@">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="h3q?|[NDE!K}3m|1rj6s">
                <value name="IF0">
                  <block type="logic_compare" id="k2:t{@C_XX.#55p`4X76">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="=_LM:TEd|O.%L;bft8b}">
                        <field name="VAR" id=",LiJb}WhC8HSh{!)y(:[" variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="pud[P^igi%{!MZXUm[,a">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="1jwpnyU5pj)U~a.N{FZ.">
                    <field name="VAR" id=",LiJb}WhC8HSh{!)y(:[" variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block type="text_prompt_ext" id="HcM}6Jp@W;I9F%?h~|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="(F36~42-IyQ/Z1qGJV4:">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="Uj0|lQz98h;BOvB:Os!|">
                    <value name="IF0">
                      <block type="logic_compare" id="_F9m_Dh[AtdTATCsri2m">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="7Z#zUVj_)+WO,3MgMl=S">
                            <field name="VAR" id="i)90U-7e~IxJwPkgS`,8" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="n|uf0=6DF+]eC?np7Q$[">
                            <field name="NUM">5</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="8hM7,@D]Rg4Q+%hd%G+T">
                        <field name="VAR" id="i)90U-7e~IxJwPkgS`,8" 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="Oe6pOB{`,J.JY34a2hsD">
                        <value name="IF0">
                          <block type="logic_compare" id="MH|P+)9i89Roz?P+KW2+">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="~XIl(uu]HVKfgr~-WfAC">
                                <field name="VAR" id="fjP=_{^_8)ka40=D3X2T" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="Ug+@%]ZB`~8c-FL;v$}d">
                                <field name="NUM">5</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="6z`2k:!:e9Y)vC2I#I)+">
                            <field name="VAR" id="fjP=_{^_8)ka40=D3X2T" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="rThhg.dMYA%{F=mv=J/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="!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="i)90U-7e~IxJwPkgS`,8" 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=",LiJb}WhC8HSh{!)y(:[" variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="TY/(qs?1mzi0doraNq_[" collapsed="true" x="0" y="2484">
    <mutation>
      <arg name="martingale:resultIsWin" varid=")u]IQ;p0(|5)O.0=E_(4"></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="GlM:;V#z*4A(y3?M[uG]">
            <field name="VAR" id=")u]IQ;p0(|5)O.0=E_(4" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id=",*SKPEhPmhmsq#tq`G*9">
            <field name="VAR" id="i)90U-7e~IxJwPkgS`,8" 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="i)90U-7e~IxJwPkgS`,8" 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="i)90U-7e~IxJwPkgS`,8" 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="ev3woVoP,Yu@%]R-:zh7" collapsed="true" x="0" y="2537">
    <mutation>
      <arg name="martingale:profit" varid="IjHFLw,{Yu#)]xuGjH)="></arg>
      <arg name="martingale:resultIsWin" varid=")u]IQ;p0(|5)O.0=E_(4"></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="5aR(J.yW[U3~k*6aC/y-">
        <field name="VAR" id="fjP=_{^_8)ka40=D3X2T" 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="A.K=Q_NhN--ikrln/:9}">
            <field name="VAR" id="IjHFLw,{Yu#)]xuGjH)=" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="5OTF,jf#jLik.By1o,=t">
            <field name="VAR" id="fjP=_{^_8)ka40=D3X2T" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="r0P4}Q7Q(b+YC#yIgDpS">
                <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="]xQUZ,9]WPCv%Q2?5~Us">
                    <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="tm_#Am6`5|b}jtz=e=(O">
                        <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="`yift(aZPQ}(,f3@Xm7s">
                            <field name="VAR" id="fjP=_{^_8)ka40=D3X2T" 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="x}wcio[r}||-?G`u_g6t">
                            <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="A;yg#bvnZyaCk6|u=DZ^">
                    <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=")u]IQ;p0(|5)O.0=E_(4" 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="IjHFLw,{Yu#)]xuGjH)=" 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="IjHFLw,{Yu#)]xuGjH)=" 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=")u]IQ;p0(|5)O.0=E_(4" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="-,4s,@5p*Je:t}tdq:V_">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text_join" id="|@0Q]Z@(kf1@!#BBAX}h">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="nUFX*T6lDqH.}UKmT%XH">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="PoS4O],6.[b%re.vSMM#">
                                <field name="VAR" id="fjP=_{^_8)ka40=D3X2T" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="j(H*[I{A(#B-jVY+%9?u">
                            <field name="VAR" id="t=NC~~Ypx|Xj=eCxM#Sa" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="V#Lw`D+vA%YznO~mH*J2">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="1kZ-Oh7N{8@!FCQvebTR">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="`$?eHn.gSG!t]]P^9[dN">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="dgA3Cqv#l{hN:edDsJRW">
                                        <field name="VAR" id="fjP=_{^_8)ka40=D3X2T" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="DUxFYN5o;F70oju2L-d=">
                                        <field name="VAR" id="A]Rfy.u1w^^9(%@I7JY_" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="NuL6[-8PK.2b(w1W87t)">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="5AM+[eYUD9oP5gx{b!01">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="8SP@el-{M-cjAL0Q}N%5">
                                            <field name="VAR" id="fjP=_{^_8)ka40=D3X2T" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_single" id="a:NTm4RDs5`){}SAaSjF">
                                            <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="sDtjjizS;sn(Xf}bS(:*">
                                                <field name="VAR" id="h}:pIYap|uB|MN$Mu*0B" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="@E1H-eptSs{G-.4aee3w">
                                        <field name="VAR" id="t=NC~~Ypx|Xj=eCxM#Sa" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="WOjMJR0r3!6r6;W#kon}">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_print" id="Hg)w.xW4i5nsAjg.J9Of">
                                        <value name="TEXT">
                                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="LH7WOVv~nn8E*[~FY8j1">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="p8)~7r1ZG;gxtP5oRA,$">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_single" id="!(:@_B[?rwR}_;Sf2QYZ">
                                                <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="*N^)U(JLfnLk[.hJ+%|}">
                                                    <field name="VAR" id="fjP=_{^_8)ka40=D3X2T" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="text_print" id="@*:,V1|/-*kO+f?!fHYi">
                                    <value name="TEXT">
                                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="NZ;GgBS;0lZMGW6BN[`/">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="gm?~H$lJT7Huc3u?=-gQ">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="if@?5E!v%BO]HzfBumb0">
                                            <field name="VAR" id="fjP=_{^_8)ka40=D3X2T" 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="tjI`:zE+;m[ldPnK8cAS">
        <field name="VAR" id="t=NC~~Ypx|Xj=eCxM#Sa" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="Akrrner7|{z$TdHx9DNU" x="0" y="2590">
    <field name="NAME">Oscar's Grind Trade Amount</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="-f4y=FkkDa#P1vaZ+Dk9">
        <value name="IF0">
          <block type="logic_compare" id="5VJICanS,tCBF+tJS^N5">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="4M*E1_tp]F|j0}F10bGR">
                <field name="VAR" id="MWUpW8krrwHE*R0/}_~E" variabletype="">oscarsGrind:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="math_number" id="?r:A=6o.o9P|Reytig~w">
                <field name="NUM">5</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="0:g`EyP(::0EySUORX=L">
            <field name="VAR" id="MWUpW8krrwHE*R0/}_~E" variabletype="">oscarsGrind:expectedProfit</field>
            <value name="VALUE">
              <block type="text_prompt_ext" id="{n@QsFS+ER{eux4wF;yK">
                <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=";*lop[:j-:7:t~|F|b8~">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="/.`m|,JO}m[V}u,P`X0Q">
            <value name="IF0">
              <block type="logic_compare" id="Um4iJUhcl[L-gN?7r2xK">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="vMR!)%Dt-#+T[[?:~0{z">
                    <field name="VAR" id="6k}C#]@Cup!x4Xr*BROm" variabletype="">oscarsGrind:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="85zWzpOvsi(yf;E^m/EQ">
                    <field name="NUM">5</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="p6JpQXAJ_^$4`](/YfDw">
                <field name="VAR" id="6k}C#]@Cup!x4Xr*BROm" variabletype="">oscarsGrind:maximumLoss</field>
                <value name="VALUE">
                  <block type="text_prompt_ext" id="?B,BL/yB$-+M.$[uPKmt">
                    <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=";w{TtT,azq7soW4Q[(Fb">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="ExPE3!+;94D~tfUwI~Fj">
                <value name="IF0">
                  <block type="logic_compare" id="HOR.hXjP#3Ni)?At$Al%">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="E;5]b*?sw~/sY#0F~AiE">
                        <field name="VAR" id=";7ZKc^o:qt,TUlwEHD^r" variabletype="">oscarsGrind:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="TIv(hEOKM_AX)wMy?I:k">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="Uk*,(=u/$1D@T#jGadd$">
                    <field name="VAR" id=";7ZKc^o:qt,TUlwEHD^r" variabletype="">oscarsGrind:amount</field>
                    <value name="VALUE">
                      <block type="text_prompt_ext" id="ryMA*~f,4Y1*QPgu1/_*">
                        <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="b62mw^L*)sH3vbwd8S*x">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="I^sqMc;XD]hcS%,c?bp9">
                    <value name="IF0">
                      <block type="logic_compare" id="[XOK8x4Hi$IzY)V:L5;(">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="+KIBy)Z``7a?hruskN,4">
                            <field name="VAR" id="QDIBHQDR1|Z9vMhd8V2," variabletype="">oscarsGrind:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="ZNbyux-Z~SHN?u0GZVx1">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="Ma`W-JTf$M.K7kv(pHj5">
                        <field name="VAR" id="QDIBHQDR1|Z9vMhd8V2," variabletype="">oscarsGrind:size</field>
                        <value name="VALUE">
                          <block type="math_number" id="L;5X@z$Q@yI!9t*TU-{{">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="XPk.3DI*q+h[B@LDaV].">
                        <value name="IF0">
                          <block type="logic_compare" id="^G)$=R}@KZ!(w}Rpq7~J">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="xP7$|+-e,=1ccqD$)0cs">
                                <field name="VAR" id=";6P9uW0icqi|+Pp).eSr" variabletype="">oscarsGrind:profitUnits</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="2]p$`3c(Nm3-W+JC4F08">
                                <field name="NUM">1</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="x^8J9g@6C3RHj()4hj.M">
                            <field name="VAR" id=";6P9uW0icqi|+Pp).eSr" variabletype="">oscarsGrind:profitUnits</field>
                            <value name="VALUE">
                              <block type="math_number" id="k.{Hd#ETd%cP*KTB43{B">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="*1P8!F,SO8:y2ln0m*7m">
                            <value name="IF0">
                              <block type="logic_compare" id="]iD#r;`.Wy5Fh0eh!o_I">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="variables_get" id="nVbZEGh@Stu(]%Pl5^P!">
                                    <field name="VAR" id="z71kT9yofse{Pjn+~J5V" variabletype="">oscarsGrind:totalProfit</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="7rd)daUl:G@KyZIp:;S6">
                                    <field name="NUM">1</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="1v`SV`EjW+W}+5D9{NWP">
                                <field name="VAR" id="z71kT9yofse{Pjn+~J5V" variabletype="">oscarsGrind:totalProfit</field>
                                <value name="VALUE">
                                  <block type="math_number" id="u8}H7{5Hq92?l:KE_b0B">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="3ekZ*8Y..^ZLm5}o_Yqa">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number" id="!N5Q!/XB/Zq(Yh8GZNXa">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="b{^Yk|ngJ@T+MPT}b[5r">
            <field name="VAR" id="QDIBHQDR1|Z9vMhd8V2," variabletype="">oscarsGrind:size</field>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="_MIi~6{+puJoIPRIyX8S">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="SI}_w8=ZhwY(_!lt)r(S">
            <field name="VAR" id=";7ZKc^o:qt,TUlwEHD^r" variabletype="">oscarsGrind:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="E#:E$ZW-xX9{?y?ww{/t" collapsed="true" x="0" y="3255">
    <mutation>
      <arg name="oscarsGrind:resultIsWin" varid="mL_AKK{)oz;4#lI6uau1"></arg>
    </mutation>
    <field name="NAME">Oscar's Grind Core Functionality</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="]B{31{/[mTQH?tl(Qa6.">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="ld]MnlG1_-a{Ncl$AyI-">
            <field name="VAR" id="mL_AKK{)oz;4#lI6uau1" variabletype="">oscarsGrind:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="G=2Vn,Hjuvkb1m8r,cQ]">
            <field name="VAR" id=";6P9uW0icqi|+Pp).eSr" variabletype="">oscarsGrind:profitUnits</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="-`r@+_Tq,I8p]hHo+jis">
                <field name="OP">ADD</field>
                <value name="A">
                  <shadow type="math_number" id="ZI-r}kzT8Y=p.GdTq7lH">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id=";UOd6FI%/#3`UilqCcI~">
                    <field name="VAR" id=";6P9uW0icqi|+Pp).eSr" variabletype="">oscarsGrind:profitUnits</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="{Y2dS`Z1{(w6k%yQoR~m">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="SL].0nV_Q^F9po~,oI8b">
                    <field name="VAR" id="QDIBHQDR1|Z9vMhd8V2," variabletype="">oscarsGrind:size</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="hFjP)+L{rd,uPP.;Su5(">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="GOU`{,E#y,|.2G94L5`m">
                    <field name="OP">LTE</field>
                    <value name="A">
                      <block type="variables_get" id="=GsYqRX]!cM-HZCE{u/I">
                        <field name="VAR" id=";6P9uW0icqi|+Pp).eSr" variabletype="">oscarsGrind:profitUnits</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="%4(ZLfkx5C2i:z)U(t19">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="%R^Y5n#F0uS5bjKTR`YS">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="GgIB]ot0k))~xZ*}@|iX">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="math_arithmetic" id="q^*gs=a2yo9@Y9+@5:mL">
                            <field name="OP">ADD</field>
                            <value name="A">
                              <shadow type="math_number" id="sohh*eS%efio;1ayg;?`">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="variables_get" id="jnW/xc?wk+*Q!63?{=^P">
                                <field name="VAR" id="QDIBHQDR1|Z9vMhd8V2," variabletype="">oscarsGrind:size</field>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="`t?Ry!jpRKOF]!ZJ%OS)">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="variables_get" id="*v[73li^sM#wwLAit/-2">
                                <field name="VAR" id=";6P9uW0icqi|+Pp).eSr" variabletype="">oscarsGrind:profitUnits</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="Y#!kB9@}af?CQkK!=DwH">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="XhPaSj%SsXBqvM392tqJ">
                        <field name="VAR" id="QDIBHQDR1|Z9vMhd8V2," variabletype="">oscarsGrind:size</field>
                        <value name="VALUE">
                          <block type="math_arithmetic" id="Yd^m-Qf0^1SjK*R_VaED">
                            <field name="OP">MINUS</field>
                            <value name="A">
                              <shadow type="math_number" id="Qmfsb!.+j7%)CW=+PZsu">
                                <field name="NUM">1</field>
                              </shadow>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="(Hvo[b1GMG;v[HG7[Jg-">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="variables_get" id="Mhw;c[3pqxZ4gHqrr8#4">
                                <field name="VAR" id=";6P9uW0icqi|+Pp).eSr" variabletype="">oscarsGrind:profitUnits</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="variables_set" id="[b+U{M4Y2AJ=njU^`7ru">
                        <field name="VAR" id="QDIBHQDR1|Z9vMhd8V2," variabletype="">oscarsGrind:size</field>
                        <value name="VALUE">
                          <block type="math_arithmetic" id="GLy^hHZGXmicVl}/g_(t">
                            <field name="OP">ADD</field>
                            <value name="A">
                              <shadow type="math_number" id="evfUWhPROHbWi0naLt1L">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="variables_get" id="{U41a8~qlwKgiU*LMYw4">
                                <field name="VAR" id="QDIBHQDR1|Z9vMhd8V2," variabletype="">oscarsGrind:size</field>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="(Hvo[b1GMG;v[HG7[Jg-">
                                <field name="NUM">1</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="variables_set" id="t)`%j[)g4(t}ou%!2U6q">
                    <field name="VAR" id=";6P9uW0icqi|+Pp).eSr" variabletype="">oscarsGrind:profitUnits</field>
                    <value name="VALUE">
                      <block type="math_number" id="sLEZfclLqv;F7zF_k6by">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="vaR[|HIKB[iABlR:8yZI">
                        <field name="VAR" id="QDIBHQDR1|Z9vMhd8V2," variabletype="">oscarsGrind:size</field>
                        <value name="VALUE">
                          <block type="math_number" id="@92amY/G3f%dz-n4^c5*">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                        <next>
                          <block type="notify" id="K/JViv@3;W2huM/vFm5L">
                            <field name="NOTIFICATION_TYPE">success</field>
                            <field name="NOTIFICATION_SOUND">silent</field>
                            <value name="MESSAGE">
                              <block type="text" id="Vl|CU{Wkk{g=p*w#A_wv">
                                <field name="TEXT">One Oscar's Grind session finished successfully.</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="BeTk7Nt4|Q-BEd5G{Y2M">
            <field name="VAR" id=";6P9uW0icqi|+Pp).eSr" variabletype="">oscarsGrind:profitUnits</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="S79=0FUtBb/GRp?TEanB">
                <field name="OP">MINUS</field>
                <value name="A">
                  <shadow type="math_number" id="-|vHu48UtYqh3:OT_CZA">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="WY{Z{fse1w8NacCakJT(">
                    <field name="VAR" id=";6P9uW0icqi|+Pp).eSr" variabletype="">oscarsGrind:profitUnits</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="{xO.TqYE@w2I)oVPo*zh">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="gb/uKZ!4tY4R@fK(]ON|">
                    <field name="VAR" id="QDIBHQDR1|Z9vMhd8V2," variabletype="">oscarsGrind:size</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="^d.D=[cP=RCTJG,(Nfzp" collapsed="true" x="0" y="3308">
    <mutation>
      <arg name="oscarsGrind:profit" varid="M0CAa?!k2*Ax=#9omFp7"></arg>
      <arg name="oscarsGrind:resultIsWin" varid="mL_AKK{)oz;4#lI6uau1"></arg>
    </mutation>
    <field name="NAME">Oscar's Grind Trade Again After Purchase</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="3Wxx:OQY$]yG]DPTSGbg">
        <field name="VAR" id="z71kT9yofse{Pjn+~J5V" variabletype="">oscarsGrind: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="y(q,P+1)@=7O{)q[DHYr">
            <field name="VAR" id="M0CAa?!k2*Ax=#9omFp7" variabletype="">oscarsGrind:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="9ZE=?E*wxLG-]==7(L2S">
            <field name="VAR" id="z71kT9yofse{Pjn+~J5V" variabletype="">oscarsGrind:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="26TI@CLhQMx,8+J]Z:U?">
                <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="i@mVPmp,lE:;CnTrP1r5">
                    <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="eiay3#GdWUJR*?)1Krv:">
                        <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="VZ~0#|T%CEvV+:=?E6pQ">
                            <field name="VAR" id="z71kT9yofse{Pjn+~J5V" variabletype="">oscarsGrind: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="#!h=}@Ky1KxogsAF^W=q">
                            <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="^BK.UZP;xTDstMNO%U%X">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="wJjy.c!-VUNNfsmL+7H0">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="Rb]w9])#EKuX,le7w62L">
                    <field name="VAR" id="mL_AKK{)oz;4#lI6uau1" variabletype="">oscarsGrind:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="Cg0U}L)R(5YWTmv+iWfq">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="iO9ODyH!l.pDoYV`Y3A*">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="AmV$N3L2+Bd!BhdcShuT">
                            <field name="TEXT">Won:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="l1?QaZhg[U-WqPPdxk`P">
                            <field name="VAR" id="M0CAa?!k2*Ax=#9omFp7" variabletype="">oscarsGrind:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="notify" id="TiBaWg2D0^T8E1SX@3=_">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="TbB_9?Kh}o9k4s/Vk6b6">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="uLWi1EGZAHBd{]_zKR_.">
                            <field name="TEXT">Lost: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="math_single" id="DA.!0i^Au{/Na0X4T9Ce">
                            <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="vcPcnTNSHIJz=j1oR!|g">
                                <field name="VAR" id="M0CAa?!k2*Ax=#9omFp7" variabletype="">oscarsGrind:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="procedures_callnoreturn" id="3r(HF{yc?rn0%EU9l4k%">
                    <mutation name="Oscar's Grind Core Functionality">
                      <arg name="oscarsGrind:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="variables_get" id="Y=djr[+tuY9GY:%p-}@S">
                        <field name="VAR" id="mL_AKK{)oz;4#lI6uau1" variabletype="">oscarsGrind:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="7z.gQBitL+Db81[]udm0">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text_join" id=",$y}SQreXRlja:i_DxPV">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="]SE)c;3}gw]#C:9;1cjk">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="mH.l}AU-Ggb]4Sn].ATX">
                                <field name="VAR" id="z71kT9yofse{Pjn+~J5V" variabletype="">oscarsGrind:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="ELe90v{K4OFRE;epy4O)">
                            <field name="VAR" id="N?t|]/n1j#Potoeh%o.U" variabletype="">oscarsGrind:tradeAgain</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="E`Va60}DUjP9}K0+OLi?">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="R=FhF$adJYc}yBtmt_!=">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="3VedB1[oX}gP6x*m]joL">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="9oH;d3Qk?A@zo{K9V]vt">
                                        <field name="VAR" id="z71kT9yofse{Pjn+~J5V" variabletype="">oscarsGrind:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="$0F)C}rSE;t[UjqA_wwc">
                                        <field name="VAR" id="MWUpW8krrwHE*R0/}_~E" variabletype="">oscarsGrind:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="azq[hHF;49p+S@c]$UBZ">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="g{byPyrf1$H30G)R`I~k">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="591+_JLZ_xVkx%eSx%$E">
                                            <field name="VAR" id="z71kT9yofse{Pjn+~J5V" variabletype="">oscarsGrind:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_single" id="[(D%6wR$8rW1Sb.Dev`{">
                                            <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=":Rkz!TO1,PS.*T-JD8;0">
                                                <field name="VAR" id="6k}C#]@Cup!x4Xr*BROm" variabletype="">oscarsGrind:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="M6Aq,p(!!cG|1Cj}mCG^">
                                        <field name="VAR" id="N?t|]/n1j#Potoeh%o.U" variabletype="">oscarsGrind:tradeAgain</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="1J+P@B:?(hG*2L[}CiP1">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_print" id="wABNUk:gj3U/3]Ep?^yA">
                                        <value name="TEXT">
                                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="$7,FZ^ABjpH5?Sb+XsUp">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="-Tu}Tg)vmbiM3V.l$=)t">
                                                <field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_single" id="$+8BjcZ6HK3RG;nZ$t8C">
                                                <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="tyxD75K+)#h+DBlnZ{Pg">
                                                    <field name="VAR" id="z71kT9yofse{Pjn+~J5V" variabletype="">oscarsGrind:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="text_print" id="efy~OY|py18@O_!#V^G[">
                                    <value name="TEXT">
                                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="CKO.}br~)c@DMwvXTdH7">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="PUXc.EbEKxI/tmrDL.:)">
                                            <field name="TEXT">Expected Profit Made! Total Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="kCK3p6qSqoS3pN!sHMEE">
                                            <field name="VAR" id="z71kT9yofse{Pjn+~J5V" variabletype="">oscarsGrind: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="RDQ,Ot/|j.cCsC$6@4LK">
        <field name="VAR" id="N?t|]/n1j#Potoeh%o.U" variabletype="">oscarsGrind:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="0" y="3361">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="TW3LTMLK@CZAM[rc;~qE">
        <value name="IF0">
          <block type="logic_compare" id="GLfe]?M`x.HoBWP#v7Br">
            <field name="OP">GT</field>
            <value name="A">
              <block type="tick" id="h[bh.s]b(odG6@k].j]f"></block>
            </value>
            <value name="B">
              <block type="bb" id="*Ti5@R*k@6`B95)k~r}L">
                <field name="BBRESULT_LIST">1</field>
                <value name="INPUT">
                  <block type="ticks" id="-jDW~M~!4Kdm#tt{S|PR"></block>
                </value>
                <value name="PERIOD">
                  <block type="math_number" id="zY/#?F/-2D|S{rT^34$e">
                    <field name="NUM">20</field>
                  </block>
                </value>
                <value name="UPMULTIPLIER">
                  <block type="math_number" id="lfn,cl=MjDf}NzHaF/?+">
                    <field name="NUM">2</field>
                  </block>
                </value>
                <value name="DOWNMULTIPLIER">
                  <block type="math_number" id="Yxo0^d{iJs.IZ;aODj^R">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="purchase" id="~vMt4:wc3op[a@[K/9?`">
            <field name="PURCHASE_LIST">PUT</field>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="j3oXwp)78GuSvE8#y/-Z">
            <value name="IF0">
              <block type="logic_compare" id="IkPM]pR5drY@k1#:~W7(">
                <field name="OP">LT</field>
                <value name="A">
                  <block type="tick" id="Ne.WQs((Lb9HW`2Raem6"></block>
                </value>
                <value name="B">
                  <block type="bb" id="syn`HanP}dxGwdIzSNx+">
                    <field name="BBRESULT_LIST">2</field>
                    <value name="INPUT">
                      <block type="ticks" id="|D?eJd,^K$.@/QdxzT}v"></block>
                    </value>
                    <value name="PERIOD">
                      <block type="math_number" id="J3hdO-Fg}u9=ZJ1svZkh">
                        <field name="NUM">20</field>
                      </block>
                    </value>
                    <value name="UPMULTIPLIER">
                      <block type="math_number" id="vOuRCclQjOujmS?+jU7b">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                    <value name="DOWNMULTIPLIER">
                      <block type="math_number" id="#~jiJ%*T)bnL0Xa-%=OZ">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="purchase" id="m$^30rnU5!G[6u?6O[:-">
                <field name="PURCHASE_LIST">CALL</field>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="]|jqrexe1(h~O8M)wH,j" x="0" y="3837">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="Tj46PSu#U(w,4q,1XKXB">
        <statement name="DO0">
          <block type="trade_again" id="EZO23q7@j0uddd^Ks`bj"></block>
        </statement>
      </block>
    </statement>
  </block>
</xml>