<xml xmlns="http://www.w3.org/1999/xhtml" is_dbot="true" collection="false">
  <variables>
    <variable type="" id="x]b3MHpbtR?cJQDP@,eG" islocal="false" iscloud="false">martingale:resultIsWin</variable>
    <variable type="" id="[M$5RsD`g|8-P;C+mbf4" islocal="false" iscloud="false">martingale:profit</variable>
    <variable type="" id="Kb@{Vb{+5IqV=d~y*dcr" islocal="false" iscloud="false">martingale:totalProfit</variable>
    <variable type="" id="6G^6o^Ic@rjF|sHv*m.6" islocal="false" iscloud="false">martingale:tradeAgain</variable>
    <variable type="" id="*p5|Lkk9Q^ZuPBQ-48g2" islocal="false" iscloud="false">martingale:profitThreshold</variable>
    <variable type="" id="ipD5?_dQ1Zkvf%v|[?DQ" islocal="false" iscloud="false">martingale:size</variable>
    <variable type="" id="[$B]vBH,~wrN`PUt5m/f" islocal="false" iscloud="false">martingale:initialStake</variable>
    <variable type="" id="a1BTYNHC?_yR4sfvNJ7N" islocal="false" iscloud="false">martingale:lossThreshold</variable>
    <variable type="" id="_(;)ob:l.sc|#L7kv7Z6" islocal="false" iscloud="false">won</variable>
    <variable type="" id="p#@Pr/Y.sKueWX#oRSPl" islocal="false" iscloud="false">total profit</variable>
    <variable type="" id="5SwcMzq.f)VNUzjbKfrw" islocal="false" iscloud="false">max loss</variable>
    <variable type="" id="g-j|c!)nK2VN`qwryRs]" islocal="false" iscloud="false">loss</variable>
    <variable type="" id="I--KAm(C+#{d?~ip*23e" islocal="false" iscloud="false">expected profit</variable>
    <variable type="" id="FRbI:RhI/`[lrO`o;=P," islocal="false" iscloud="false">martingale:multiplier</variable>
    <variable type="" id="!X8jvlWV#bZY}.}Pl%,U" islocal="false" iscloud="false">bb</variable>
    <variable type="" id="aS,h/kG19]#y]@#/rHx(" islocal="false" iscloud="false">bb1</variable>
    <variable type="" id="JM|@t:[_~8:MC8ml:D7R" islocal="false" iscloud="false">bbmid</variable>
    <variable type="" id="SwUQi:XNdT#H[TgL?lJ3" islocal="false" iscloud="false">sma</variable>
    <variable type="" id="a5;bUM*2CSBc5i%j(nBy" islocal="false" iscloud="false">smaa</variable>
    <variable type="" id="NL~g[/*W7f(_VhSTtHrH" islocal="false" iscloud="false">rsi</variable>
    <variable type="" id="vXI,}oY!=r(hyO}:vk{N" islocal="false" iscloud="false">RSI OverBought</variable>
    <variable type="" id="VFu4_V`kAA:Z,F={Fj|L" islocal="false" iscloud="false">RSI Oversold</variable>
  </variables>
  <block type="trade_definition" id="i]`fLRZ]?mshi{9kS+fg" x="0" y="0">
    <statement name="TRADE_OPTIONS">
      <block type="trade_definition_market" id="w2tV#|N1PqTM)~5-6|An" deletable="false" movable="false">
        <field name="MARKET_LIST">synthetic_index</field>
        <field name="SUBMARKET_LIST">random_index</field>
        <field name="SYMBOL_LIST">R_100</field>
        <next>
          <block type="trade_definition_tradetype" id="4BIa?F@i2*Mlrd:{G,SF" deletable="false" movable="false">
            <field name="TRADETYPECAT_LIST">callput</field>
            <field name="TRADETYPE_LIST">callput</field>
            <next>
              <block type="trade_definition_contracttype" id="kujUv]]-mtF@Na3q/.(g" deletable="false" movable="false">
                <field name="TYPE_LIST">both</field>
                <next>
                  <block type="trade_definition_candleinterval" id="[DsSG;O7*n`fK%ed;aj5" deletable="false" movable="false">
                    <field name="CANDLEINTERVAL_LIST">60</field>
                    <next>
                      <block type="trade_definition_restartbuysell" id="]RX]Y0mfW-(HKGjkY]ly" deletable="false" movable="false">
                        <field name="TIME_MACHINE_ENABLED">FALSE</field>
                        <next>
                          <block type="trade_definition_restartonerror" id="il/#yt1#I,KbD:6BQx?#" deletable="false" movable="false">
                            <field name="RESTARTONERROR">TRUE</field>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="INITIALIZATION">
      <block type="text_print" id="C!3+Z!7ld)o.+r7:0I!{">
        <value name="TEXT">
          <shadow type="text" id="{+xCO2UVjW|aYSN$?cQ`">
            <field name="TEXT">Welcome to RSI + BB Strategi, input your deal.</field>
          </shadow>
        </value>
        <next>
          <block type="variables_set" id="0~7khKZExt+W$[||x!lL" collapsed="true">
            <field name="VAR" id="[$B]vBH,~wrN`PUt5m/f" variabletype="">martingale:initialStake</field>
            <value name="VALUE">
              <shadow type="math_number" id="*;O5W{sw%w1hwb3n@vTl">
                <field name="NUM">3</field>
              </shadow>
              <block type="text_prompt_ext" id="=M4u,Xb9D%VT2-8^g=+e">
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow type="text" id="1CO#OV?kOnjRF/W~Xa5Z">
                    <field name="TEXT">Stake</field>
                  </shadow>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id=";GodzQUHli1rY9f^m0!x" collapsed="true">
                <field name="VAR" id="*p5|Lkk9Q^ZuPBQ-48g2" variabletype="">martingale:profitThreshold</field>
                <value name="VALUE">
                  <shadow type="math_number" id="Irjq7dN@4sJr]0?P;m/f">
                    <field name="NUM">3</field>
                  </shadow>
                  <block type="text_prompt_ext" id="b2s.Wy-Y%;Thu}S||?|s">
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow type="text" id="B?u;]rV:*g!h)HoA}p#E">
                        <field name="TEXT">Profit</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="~.qkx~]%R8|zcM=`QQ(D" collapsed="true">
                    <field name="VAR" id="*p5|Lkk9Q^ZuPBQ-48g2" variabletype="">martingale:profitThreshold</field>
                    <value name="VALUE">
                      <shadow type="math_number" id="LT8T16ga-9rU_eO?]z{m">
                        <field name="NUM">3</field>
                      </shadow>
                      <block type="text_prompt_ext" id="IrO7QE=$%hN@.{o`Z{8p">
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow type="text" id="s#[i@L?Igg!JaoG^kvyb">
                            <field name="TEXT">Stop</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="f,}8qty99E.lgr^/=VC)">
                        <field name="VAR" id="vXI,}oY!=r(hyO}:vk{N" variabletype="">RSI OverBought</field>
                        <value name="VALUE">
                          <shadow type="math_number" id="gauk;RU?f?X[)/s*Aw5C">
                            <field name="NUM">80</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="variables_set" id="%l6XpDB.-Iz]LSZdQw3^">
                            <field name="VAR" id="VFu4_V`kAA:Z,F={Fj|L" variabletype="">RSI Oversold</field>
                            <value name="VALUE">
                              <shadow type="math_number" id="+LClj(0({p@`JVvKop.u">
                                <field name="NUM">20</field>
                              </shadow>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="trade_definition_tradeoptions" id="8=uN{72G(CSbw2LN=h?0">
        <mutation has_first_barrier="false" has_second_barrier="false" has_prediction="false"></mutation>
        <field name="DURATIONTYPE_LIST">t</field>
        <value name="DURATION">
          <shadow type="math_number" id="k`7z}jrl^[X.o1UBEw#m">
            <field name="NUM">3</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block type="procedures_callreturn" id="JKIgKdNnmR8J;^];~[kp">
            <mutation name="Martingale Trade Amount"></mutation>
            <data>x3TA)`V~gtD7?rqNj[.9</data>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="cb%w4#L|)A]1F1+)uk_u" collapsed="true" x="720" y="0">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="Y7vVfZ`@dP+KBKXW6C|a">
        <value name="IF0">
          <block type="procedures_callreturn" id="_ES]wQc*K9uQmJ1a:MA,">
            <mutation name="Martingale Trade Again After Purchase">
              <arg name="martingale:profit"></arg>
              <arg name="martingale:resultIsWin"></arg>
            </mutation>
            <data>N,_%hZ47`]!eOyc7%u8]</data>
            <value name="ARG0">
              <block type="read_details" id="6~ERQr:ogkONG,..Ooj+">
                <field name="DETAIL_INDEX">4</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="contract_check_result" id="N85;,Dl!TJMa_U[tgj6#">
                <field name="CHECK_RESULT">win</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="trade_again" id="(T~B6mBGK5D2unsjU25_"></block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="zwrLZ1+W,@?1ZL59xNk2" collapsed="true" x="720" y="248">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="bb_statement" id="O3h1a[C5Yy;+MWBbV[`g">
        <field name="VARIABLE" id="!X8jvlWV#bZY}.}Pl%,U" variabletype="">bb</field>
        <field name="BBRESULT_LIST">1</field>
        <statement name="STATEMENT">
          <block type="input_list" id="2*)1f._6=f7GQPbSDVhL" deletable="false" movable="false">
            <value name="INPUT_LIST">
              <block type="ticks" id="{_rwo-PAHQTqWWYZK4_:"></block>
            </value>
            <next>
              <block type="period" id="2@Sl9,~^rNu;/j[q=Jft" deletable="false" movable="false">
                <value name="PERIOD">
                  <shadow type="math_number" id="8tJNg%k#6$RitRRmh%LA">
                    <field name="NUM">20</field>
                  </shadow>
                </value>
                <next>
                  <block type="std_dev_multiplier_up" id="FZB_w7oC-jx4!}b[50yY" deletable="false" movable="false">
                    <value name="UPMULTIPLIER">
                      <shadow type="math_number" id="CEb~af)pm?jY2ERfyE@D">
                        <field name="NUM">2</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="std_dev_multiplier_down" id="?[4dESb1y4s.%;8_XKAw" deletable="false" movable="false">
                        <value name="DOWNMULTIPLIER">
                          <shadow type="math_number" id="xT/Lh~?#8[;:e^M(u`o!">
                            <field name="NUM">2</field>
                          </shadow>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="bb_statement" id="/:IC~R{8[RRG5+}~*GI[">
            <field name="VARIABLE" id="aS,h/kG19]#y]@#/rHx(" variabletype="">bb1</field>
            <field name="BBRESULT_LIST">2</field>
            <statement name="STATEMENT">
              <block type="input_list" id=")s],1$%lat#s.ZG|L0[B" deletable="false" movable="false">
                <value name="INPUT_LIST">
                  <block type="ticks" id="!`-m~bSKw.BI3LEEP;tv"></block>
                </value>
                <next>
                  <block type="period" id="X[k`!tr0B*ow0-JB.S^v" deletable="false" movable="false">
                    <value name="PERIOD">
                      <shadow type="math_number" id="Xa/q2!lurE6z5q^%t;}^">
                        <field name="NUM">20</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="std_dev_multiplier_up" id=")1_RZ-^XJGy3C?ENA?e0" deletable="false" movable="false">
                        <value name="UPMULTIPLIER">
                          <shadow type="math_number" id="!`sg?HNi3aBIr;j/mF*/">
                            <field name="NUM">2</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="std_dev_multiplier_down" id="!wodV}kY%b49A=}U#Q:Q" deletable="false" movable="false">
                            <value name="DOWNMULTIPLIER">
                              <shadow type="math_number" id="+3B|Z?Nc*+zB*:mdEwE6">
                                <field name="NUM">2</field>
                              </shadow>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="bb_statement" id="%v@iz@IQ1|pr,mG3z48w">
                <field name="VARIABLE" id="JM|@t:[_~8:MC8ml:D7R" variabletype="">bbmid</field>
                <field name="BBRESULT_LIST">0</field>
                <statement name="STATEMENT">
                  <block type="input_list" id="wk]_Qn6E!:|)mXp5h$Jr" deletable="false" movable="false">
                    <value name="INPUT_LIST">
                      <block type="ticks" id=":PnCLM6/)0?GNE9Dr;*A"></block>
                    </value>
                    <next>
                      <block type="period" id="vnUK9%5FoTFWOirJ~FDP" deletable="false" movable="false">
                        <value name="PERIOD">
                          <shadow type="math_number" id="HZ;]zUlU#cj{25G_B[^#">
                            <field name="NUM">20</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="std_dev_multiplier_up" id="22)%JEl0xW,u}ZmQcl6@" deletable="false" movable="false">
                            <value name="UPMULTIPLIER">
                              <shadow type="math_number" id="x1)}5T=k1D}/~ko{mt7c">
                                <field name="NUM">2</field>
                              </shadow>
                            </value>
                            <next>
                              <block type="std_dev_multiplier_down" id="{bvnUF95[4+HnM=DyPoX" deletable="false" movable="false">
                                <value name="DOWNMULTIPLIER">
                                  <shadow type="math_number" id="^pVBHA9XZ@E%G|${~91Z">
                                    <field name="NUM">2</field>
                                  </shadow>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="sma_statement" id="TyWXH@Kxz5+DW}]h(k[A">
                    <field name="VARIABLE" id="SwUQi:XNdT#H[TgL?lJ3" variabletype="">sma</field>
                    <statement name="STATEMENT">
                      <block type="input_list" id="}aRF|T!FUkLWp_XS}1.C" deletable="false" movable="false">
                        <value name="INPUT_LIST">
                          <block type="ticks" id="pF$139V]Ea//`PmiWV2x"></block>
                        </value>
                        <next>
                          <block type="period" id="u}%FyN{IuxV{;S`Y{HZ]" deletable="false" movable="false">
                            <value name="PERIOD">
                              <shadow type="math_number" id="94tb+0=[Iqu1N6CF^DG(">
                                <field name="NUM">20</field>
                              </shadow>
                            </value>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="smaa_statement" id="c{m6Yw;ooU/fxN#Bs`rM">
                        <field name="VARIABLE" id="a5;bUM*2CSBc5i%j(nBy" variabletype="">smaa</field>
                        <statement name="STATEMENT">
                          <block type="input_list" id="qiFo:#[7fc.8C{S@LUnG" deletable="false" movable="false">
                            <value name="INPUT_LIST">
                              <block type="ticks" id="-;jlrM.jY!d{,jfnR[p7"></block>
                            </value>
                            <next>
                              <block type="period" id="rQeU63sq)q,A{{Q4bK?2" deletable="false" movable="false">
                                <value name="PERIOD">
                                  <shadow type="math_number" id="Syh?*zEr4,.(Uy$we:4r">
                                    <field name="NUM">100</field>
                                  </shadow>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <next>
                          <block type="rsi_statement" id="Azv]?Q2+UF,y]ZuaGa.^">
                            <field name="VARIABLE" id="NL~g[/*W7f(_VhSTtHrH" variabletype="">rsi</field>
                            <statement name="STATEMENT">
                              <block type="input_list" id="S)OVo81rF6~B{dmaN{WD" deletable="false" movable="false">
                                <value name="INPUT_LIST">
                                  <block type="ticks" id="-eOm|TJhPGZJbqrF@.J:"></block>
                                </value>
                                <next>
                                  <block type="period" id=".u^l20Ei7EX9iVSeW(nq" deletable="false" movable="false">
                                    <value name="PERIOD">
                                      <shadow type="math_number" id=")gEE?Mnyki(?m=X@#Emk">
                                        <field name="NUM">20</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="QW~H^(MhwaGHF2[u/D|1">
                                <value name="IF0">
                                  <block type="logic_operation" id="FuE!U3H+]-8)d,o+M;k`">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="|whObKGA6Md!o~!%8zh(">
                                        <field name="OP">GTE</field>
                                        <value name="A">
                                          <block type="tick" id="(Xiv.s2QBx}mz}?Fs?b_"></block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="am*[_`*H1su}vh~+EO32">
                                            <field name="VAR" id="!X8jvlWV#bZY}.}Pl%,U" variabletype="">bb</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="KgJBcHu8D3I=oT,Rzz{6">
                                        <field name="OP">GTE</field>
                                        <value name="A">
                                          <block type="variables_get" id="J8!T`UZq~Ito,7Woky*1">
                                            <field name="VAR" id="NL~g[/*W7f(_VhSTtHrH" variabletype="">rsi</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="`xMa7WR=c:-4@n%alC#%">
                                            <field name="VAR" id="vXI,}oY!=r(hyO}:vk{N" variabletype="">RSI OverBought</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="purchase" id="K5egXps-3P%4:.vk!4)u">
                                    <field name="PURCHASE_LIST">PUT</field>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="Rt!:#2aRq|5HJ]qngzEl">
                                    <value name="IF0">
                                      <block type="logic_operation" id="L2,RgXDS+SLu?|7z[]?l">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="FD#V^wac;|Mr78.X|FRq">
                                            <field name="OP">LTE</field>
                                            <value name="A">
                                              <block type="tick" id="@mo?rt{[G!@y?dm?]kak"></block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="G,fruriKUh5]5QO?,%AF">
                                                <field name="VAR" id="aS,h/kG19]#y]@#/rHx(" variabletype="">bb1</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="iDnE5U.RT45l`bI5NsQO">
                                            <field name="OP">LTE</field>
                                            <value name="A">
                                              <block type="variables_get" id="yZ1V#CK3$32`|fQ$MA4:">
                                                <field name="VAR" id="NL~g[/*W7f(_VhSTtHrH" variabletype="">rsi</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="kxP+:%s2xJ~r0vh$6*RN">
                                                <field name="VAR" id="VFu4_V`kAA:Z,F={Fj|L" variabletype="">RSI Oversold</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="purchase" id="0yagR)r!2Kc9;gkkQM[+">
                                        <field name="PURCHASE_LIST">CALL</field>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="N,_%hZ47`]!eOyc7%u8]" collapsed="true" x="0" y="936">
    <mutation>
      <arg name="martingale:profit" varid="[M$5RsD`g|8-P;C+mbf4"></arg>
      <arg name="martingale:resultIsWin" varid="x]b3MHpbtR?cJQDP@,eG"></arg>
    </mutation>
    <field name="NAME">Martingale Trade Again After Purchase</field>
    <statement name="STACK">
      <block type="math_change" id="G)p)~Q+g*Hsak%Mg_PMd">
        <field name="VAR" id="Kb@{Vb{+5IqV=d~y*dcr" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="|xO6#sg$RRE9Ub8W6Oq=">
            <field name="VAR" id="[M$5RsD`g|8-P;C+mbf4" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="p?gdu**|cGlmOTw^G_D@">
            <field name="VAR" id="Kb@{Vb{+5IqV=d~y*dcr" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="lSSFZC-1xm}v~a9_Xw3@">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_round" id="qe@`Q7,j_0|sTdj`,F|B">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow type="math_number">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block type="math_arithmetic" id="9b({-h28~_/qs:s!*WkN">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="`n%c*E0(V,0.I[D%,s!j">
                            <field name="VAR" id="Kb@{Vb{+5IqV=d~y*dcr" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="9_(K(Vo5-U%*h=jJ]+oF">
                            <field name="NUM">100</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="bRV]-C*:i*}p+`XB_rv7">
                    <field name="NUM">100</field>
                  </shadow>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="tL`$g0dGy%%BvVTm_1jz">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="g]G^([873w2Sy-KNfM=*">
                    <field name="VAR" id="x]b3MHpbtR?cJQDP@,eG" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="text_join" id="?rk73D0v{~(M4/(R[Lmc">
                    <field name="VARIABLE" id="_(;)ob:l.sc|#L7kv7Z6" variabletype="">won</field>
                    <statement name="STACK">
                      <block type="text_statement" id="_M(ru.]A.sHO6]e9wdxc">
                        <value name="TEXT">
                          <shadow type="text" id="5V?Y$39nIWM%C?-~+1Sl">
                            <field name="TEXT">Won:</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="text_statement" id="M:J#e+!59Na=O|oZ:@ED">
                            <value name="TEXT">
                              <shadow type="text">
                                <field name="TEXT"></field>
                              </shadow>
                              <block type="variables_get" id="_,#nx*uk`Va%IdnU!ncY">
                                <field name="VAR" id="[M$5RsD`g|8-P;C+mbf4" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="notify" id="-yx:Cfy3D3l$_FL`![ST">
                        <field name="NOTIFICATION_TYPE">success</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <shadow type="text">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="variables_get" id="uIxzenNiZ!zsM+2}frO2">
                            <field name="VAR" id="_(;)ob:l.sc|#L7kv7Z6" variabletype="">won</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="text_join" id="URKO2,*`xc^5W?p-mc^1">
                    <field name="VARIABLE" id="g-j|c!)nK2VN`qwryRs]" variabletype="">loss</field>
                    <statement name="STACK">
                      <block type="text_statement" id="UaA!q2H,ujK%@@h!u]Ub">
                        <value name="TEXT">
                          <shadow type="text" id="|g1wewS-^2Nhzwy|J!#i">
                            <field name="TEXT">Lost:</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="text_statement" id=";HOs!f0V.BY7phrG0+a|">
                            <value name="TEXT">
                              <shadow type="text">
                                <field name="TEXT"></field>
                              </shadow>
                              <block type="math_single" id="s~WFuIrgCH]B8y{}ZivH">
                                <field name="OP">ABS</field>
                                <value name="NUM">
                                  <shadow type="math_number">
                                    <field name="NUM">9</field>
                                  </shadow>
                                  <block type="variables_get" id="$slnYQa{W;JbBe{e}C/P">
                                    <field name="VAR" id="[M$5RsD`g|8-P;C+mbf4" variabletype="">martingale:profit</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="notify" id="Sq-j)(B8Cbk[NzjRph/!">
                        <field name="NOTIFICATION_TYPE">warn</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <shadow type="text">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="variables_get" id="9^q`#ze=i%(F_}uh}8uh">
                            <field name="VAR" id="g-j|c!)nK2VN`qwryRs]" variabletype="">loss</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="procedures_callnoreturn" id=".HOK{2j(GR=qlV..gc}o">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <data>s`u(+vlS44fI;pul:nfW</data>
                    <value name="ARG0">
                      <block type="variables_get" id="pgjZvSeFe;B(ZL|$v(!:">
                        <field name="VAR" id="x]b3MHpbtR?cJQDP@,eG" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="text_join" id="jW!]JTxnzDnsTxu^+gT!">
                        <field name="VARIABLE" id="p#@Pr/Y.sKueWX#oRSPl" variabletype="">total profit</field>
                        <statement name="STACK">
                          <block type="text_statement" id="Y3$$Wh@Fr:}*_(hMrtvA">
                            <value name="TEXT">
                              <shadow type="text" id="Hm%lX3B[OAyV1OrSBqCn">
                                <field name="TEXT">Total Profit:</field>
                              </shadow>
                            </value>
                            <next>
                              <block type="text_statement" id="[(J[NV?+P0O}]:cG4cP}">
                                <value name="TEXT">
                                  <shadow type="text">
                                    <field name="TEXT"></field>
                                  </shadow>
                                  <block type="variables_get" id="FUazlkQi-clh,Vt%{Z2@">
                                    <field name="VAR" id="Kb@{Vb{+5IqV=d~y*dcr" variabletype="">martingale:totalProfit</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <next>
                          <block type="notify" id="e$Pci.r)?[2i9=/L]hI{">
                            <field name="NOTIFICATION_TYPE">info</field>
                            <field name="NOTIFICATION_SOUND">silent</field>
                            <value name="MESSAGE">
                              <shadow type="text">
                                <field name="TEXT">abc</field>
                              </shadow>
                              <block type="variables_get" id="!EEfy=FF,cmavRcMOd`9">
                                <field name="VAR" id="p#@Pr/Y.sKueWX#oRSPl" variabletype="">total profit</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="TPOGTMEqW41Wa{D|?]`V">
                                <field name="VAR" id="6G^6o^Ic@rjF|sHv*m.6" variabletype="">martingale:tradeAgain</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="WK=zt|fDEnw}@@bsZ+%v">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="controls_if" id="KTuC8HMyaDp6Q3xId0@A">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="7[;$pQigi:R:T3}s(G6^">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="{T)uCW@]IoOpTp7;JdSO">
                                            <field name="VAR" id="Kb@{Vb{+5IqV=d~y*dcr" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="5m`a=f+P*-wT*3b-Acg=">
                                            <field name="VAR" id="*p5|Lkk9Q^ZuPBQ-48g2" variabletype="">martingale:profitThreshold</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="controls_if" id=".O}[W@YXqN#zGd%ewXJ*">
                                        <mutation else="1"></mutation>
                                        <value name="IF0">
                                          <block type="logic_compare" id="%XaSru*P96b@:s~*f6/b">
                                            <field name="OP">GT</field>
                                            <value name="A">
                                              <block type="variables_get" id=".j^jS`B22${#0xP~J7;S">
                                                <field name="VAR" id="Kb@{Vb{+5IqV=d~y*dcr" variabletype="">martingale:totalProfit</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_single" id="K9$ftop.bUpkoibNkVQL">
                                                <field name="OP">NEG</field>
                                                <value name="NUM">
                                                  <shadow type="math_number">
                                                    <field name="NUM">9</field>
                                                  </shadow>
                                                  <block type="variables_get" id="`nfV$q=C}%gf{r$Jyt-#">
                                                    <field name="VAR" id="a1BTYNHC?_yR4sfvNJ7N" variabletype="">martingale:lossThreshold</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="variables_set" id="b_=Q.Dj-VBXKcWz33ioo">
                                            <field name="VAR" id="6G^6o^Ic@rjF|sHv*m.6" variabletype="">martingale:tradeAgain</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="v}*;H=73;[WKn2R,+.0P">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                        <statement name="ELSE">
                                          <block type="text_join" id="0Q-B~fTe|,QnY@(c,h@*">
                                            <field name="VARIABLE" id="5SwcMzq.f)VNUzjbKfrw" variabletype="">max loss</field>
                                            <statement name="STACK">
                                              <block type="text_statement" id="db1K?]^sdr=ocll68sJz">
                                                <value name="TEXT">
                                                  <shadow type="text" id="{lVc8F}w58h0szOx[bg;">
                                                    <field name="TEXT">Maximum Loss Occurred! Total Loss:</field>
                                                  </shadow>
                                                </value>
                                                <next>
                                                  <block type="text_statement" id="Wf^WII2`tL|r}@bNbN[o">
                                                    <value name="TEXT">
                                                      <shadow type="text">
                                                        <field name="TEXT"></field>
                                                      </shadow>
                                                      <block type="math_single" id="`6,2Jm!UJarPK~GWrlBz">
                                                        <field name="OP">NEG</field>
                                                        <value name="NUM">
                                                          <shadow type="math_number">
                                                            <field name="NUM">9</field>
                                                          </shadow>
                                                          <block type="variables_get" id="1(j3)T@W,~*yuT=FOi%.">
                                                            <field name="VAR" id="Kb@{Vb{+5IqV=d~y*dcr" variabletype="">martingale:totalProfit</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="text_print" id="7Hu/[~lR.t.}-Yj{1)Uz">
                                                <value name="TEXT">
                                                  <shadow type="text">
                                                    <field name="TEXT">abc</field>
                                                  </shadow>
                                                  <block type="variables_get" id="FovJWy:zEzG5q}JWeVtB">
                                                    <field name="VAR" id="5SwcMzq.f)VNUzjbKfrw" variabletype="">max loss</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_join" id="[A$i5JA+{nps8EN,kgnS">
                                        <field name="VARIABLE" id="I--KAm(C+#{d?~ip*23e" variabletype="">expected profit</field>
                                        <statement name="STACK">
                                          <block type="text_statement" id="*d%K,c1?SW4n,rFX.*li">
                                            <value name="TEXT">
                                              <shadow type="text" id="weGes?KSjTg7EPpK}{.2">
                                                <field name="TEXT">Expected Profit Made! Total Profit:</field>
                                              </shadow>
                                            </value>
                                            <next>
                                              <block type="text_statement" id="-:.y|:f5RYmLM+7|FWbi">
                                                <value name="TEXT">
                                                  <shadow type="text">
                                                    <field name="TEXT"></field>
                                                  </shadow>
                                                  <block type="variables_get" id="vkzm7ZsfkqpuUv[-mVlL">
                                                    <field name="VAR" id="Kb@{Vb{+5IqV=d~y*dcr" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="text_print" id="(3se7`318IM+E4L`y]h*">
                                            <value name="TEXT">
                                              <shadow type="text">
                                                <field name="TEXT">abc</field>
                                              </shadow>
                                              <block type="variables_get" id="fec1s;/PX|TlCC@)Yf{F">
                                                <field name="VAR" id="I--KAm(C+#{d?~ip*23e" variabletype="">expected profit</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="j?CldGzC$5jEF4LPS]9j">
        <field name="VAR" id="6G^6o^Ic@rjF|sHv*m.6" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="x3TA)`V~gtD7?rqNj[.9" collapsed="true" x="0" y="1032">
    <field name="NAME">Martingale Trade Amount</field>
    <statement name="STACK">
      <block type="controls_if" id="m|NvCXT=!Z{`Uz`r:m|$">
        <value name="IF0">
          <block type="logic_compare" id="PeeDP94E)V=#S~69%:Hk">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="f.km2[vh(%]*F2SuNU%G">
                <field name="VAR" id="*p5|Lkk9Q^ZuPBQ-48g2" variabletype="">martingale:profitThreshold</field>
              </block>
            </value>
            <value name="B">
              <block type="logic_null" id="[R@rhEZMD*U(Q~m#KCMh"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="{}-XA:3=]2W.Aq|zIiP(">
            <field name="VAR" id="*p5|Lkk9Q^ZuPBQ-48g2" variabletype="">martingale:profitThreshold</field>
            <value name="VALUE">
              <shadow type="math_number" id="gEs+F7`V_7z~@se=E@d!">
                <field name="NUM">3</field>
              </shadow>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="Usu?ety_d{DdqDPFw78m">
            <value name="IF0">
              <block type="logic_compare" id="e8qk^*j@H6ng{H8}Vv3R">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="EzMg)v,zllQlN8mb?5{h">
                    <field name="VAR" id="a1BTYNHC?_yR4sfvNJ7N" variabletype="">martingale:lossThreshold</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_null" id=")k{fUEt[/)H?^NgdHT*+"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id=":OS%IuonU;AkRO!H-SEF">
                <field name="VAR" id="a1BTYNHC?_yR4sfvNJ7N" variabletype="">martingale:lossThreshold</field>
                <value name="VALUE">
                  <shadow type="math_number" id="-~DOXL|A%dP7Wu#avtz;">
                    <field name="NUM">3</field>
                  </shadow>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="-XkmG`TcfQ120.%uPetQ">
                <value name="IF0">
                  <block type="logic_compare" id="N_[iwyYPZsj8rKmV:GTj">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="{:C[v0vezVot0F{#8z#C">
                        <field name="VAR" id="[$B]vBH,~wrN`PUt5m/f" variabletype="">martingale:initialStake</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_null" id="n{-TB11IDQw5O(9-=zIr"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="BEp45H17VcN)bNjaC13X">
                    <field name="VAR" id="[$B]vBH,~wrN`PUt5m/f" variabletype="">martingale:initialStake</field>
                    <value name="VALUE">
                      <shadow type="math_number" id="Re3LfLQj=.ibZKFp$^b=">
                        <field name="NUM">5</field>
                      </shadow>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="!_^Y3:=rFtL6aF0#~DFT">
                    <value name="IF0">
                      <block type="logic_compare" id="cmU^7GLDMN~++3mP^+$n">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="?:}:mXzQgsbYRfm~0C*H">
                            <field name="VAR" id="ipD5?_dQ1Zkvf%v|[?DQ" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_null" id="$fhp;`t^Ie,SzUO{y4qg"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="-93lGY=!6I#8sh)~z`3Z">
                        <field name="VAR" id="ipD5?_dQ1Zkvf%v|[?DQ" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <shadow type="math_number" id=",q;1Sv=EO~HSK9`S]m_M">
                            <field name="NUM">1</field>
                          </shadow>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="D?v;;-QQ=]k/%a8XK/RQ">
                        <value name="IF0">
                          <block type="logic_compare" id="@LNL@pA9b#8SJGe$4zur">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="Wc7riq/+8b5q+,f9@uR6">
                                <field name="VAR" id="FRbI:RhI/`[lrO`o;=P," variabletype="">martingale:multiplier</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_null" id="g^$2zUmo/#v.0SthN[lG"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="ZA0SX,/mZR=Q@Qs{0-nM">
                            <field name="VAR" id="FRbI:RhI/`[lrO`o;=P," variabletype="">martingale:multiplier</field>
                            <value name="VALUE">
                              <shadow type="math_number" id="y^=8[fZs0weMPlUMzJ0v">
                                <field name="NUM">1</field>
                              </shadow>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="$8xAQGgiV1U|3nDiZ0:X">
                            <value name="IF0">
                              <block type="logic_compare" id="]TOR9VFmHAS3vC~A20mf">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="variables_get" id="]esY#,FN9C}bbgG:As`K">
                                    <field name="VAR" id="Kb@{Vb{+5IqV=d~y*dcr" variabletype="">martingale:totalProfit</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_null" id="0NIH0U%Bk-4w*SgA+dX|"></block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="2s+YXTZv%VGRY=?APf^h">
                                <field name="VAR" id="Kb@{Vb{+5IqV=d~y*dcr" variabletype="">martingale:totalProfit</field>
                                <value name="VALUE">
                                  <shadow type="math_number" id="%JgI()#r0Zu#ruzKLXpj">
                                    <field name="NUM">0</field>
                                  </shadow>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="MR,#W3HBlh/CZGh.TF:m">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="R4Z!iYyAb9Kulr8/ZfKk">
            <field name="VAR" id="FRbI:RhI/`[lrO`o;=P," variabletype="">martingale:multiplier</field>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="w$Dd.MXXRvJmyJuC~XUu">
            <field name="VAR" id="[$B]vBH,~wrN`PUt5m/f" variabletype="">martingale:initialStake</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="s`u(+vlS44fI;pul:nfW" collapsed="true" x="0" y="1128">
    <mutation>
      <arg name="martingale:resultIsWin" varid="x]b3MHpbtR?cJQDP@,eG"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality</field>
    <statement name="STACK">
      <block type="controls_if" id="B-,mWt$U5Ox.^T5l[AU)">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="LKMXXjt~M8@Xs?F,2_mg">
            <field name="VAR" id="x]b3MHpbtR?cJQDP@,eG" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="=rZ(;^ome-(v}JVDqz4j">
            <field name="VAR" id="FRbI:RhI/`[lrO`o;=P," variabletype="">martingale:multiplier</field>
            <value name="VALUE">
              <shadow type="math_number" id="#{5k!r3Zgo@m8VSv[fPn">
                <field name="NUM">1</field>
              </shadow>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="ZZ6?R*I!}Kiqk*+1zUP6">
            <field name="VAR" id="FRbI:RhI/`[lrO`o;=P," variabletype="">martingale:multiplier</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="YzC3]lEc(!m8!NK/T/^0">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow type="math_number">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="tMd[sWxYt#QOuJY8YFI3">
                    <field name="VAR" id="FRbI:RhI/`[lrO`o;=P," variabletype="">martingale:multiplier</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="#Om$-j0C[l$EXD$2JdKl">
                    <field name="NUM">2</field>
                  </shadow>
                  <block type="variables_get" id="OIfB4l~Tv5_$I;ILt79^">
                    <field name="VAR" id="ipD5?_dQ1Zkvf%v|[?DQ" variabletype="">martingale:size</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
</xml>