<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="jw[aaKXeEYD?@QcfBpB/">martingale:profit</variable>
    <variable type="" id=")NCus3yUMuz0F?N]/5IC">martingale:resultIsWin</variable>
    <variable type="" id="H@PoxSWG]qD5jZD(,W#^">martingale:totalProfit</variable>
    <variable type="" id=".SuANyJb:?l9QwL{n)9]">martingale:tradeAgain</variable>
    <variable type="" id="Az|!Jt;XK((8i#PeNh|[">Tick08</variable>
    <variable type="" id="y2nV[ak;p)td~7X[v+b%">martingale:expectedProfit</variable>
    <variable type="" id="CwEE|cxi]j@S2TqQrg:?">martingale:size</variable>
    <variable type="" id="x,HnAn6cNAh+{e8nyzmv">martingale:amount</variable>
    <variable type="" id="2R1YIgSD#Q3sc#mbFwu,">Tick07</variable>
    <variable type="" id="@wIeyM.]Jd{b;:/^vnPw">martingale:maximumLoss</variable>
    <variable type="" id="8yagqn]T`[~1lL{Hw2nV">Tick06</variable>
    <variable type="" id="3=9]nG,HReV,Dt+2qXu]">Tick01</variable>
    <variable type="" id="ko2ahTZHu)nyfiQ|;?B*">Tick02</variable>
    <variable type="" id="w(27p`F(O6E61Yd6ic8.">Pattern[UUUUUD]</variable>
    <variable type="" id="C7-GrpO5a$2E`EQ;R6iq">martingale:multiplierSize</variable>
    <variable type="" id=",`Jzv6?Sf[3FwKvlx*#A">Tick05</variable>
    <variable type="" id="sp}nIP(9x08vwRHo6y`c">Pattern[DDDDDU]</variable>
    <variable type="" id="8upWHjD53+hK7K^]Kb+X">Tick04</variable>
    <variable type="" id="@Yy21]eCjh=X}IP-hwo+">Tick03</variable>
  </variables>
  <block type="procedures_defreturn" id="_b//g0Q,2OW8MbY^`J3E" collapsed="true" x="-462" y="-491">
    <mutation>
      <arg name="martingale:profit" varid="jw[aaKXeEYD?@QcfBpB/"></arg>
      <arg name="martingale:resultIsWin" varid=")NCus3yUMuz0F?N]/5IC"></arg>
    </mutation>
    <field name="NAME">Martingale System</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="H@PoxSWG]qD5jZD(,W#^" variabletype="">martingale:totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="[)Nh?MH}TXeN]0n(Q?PP">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="Kj+o2HPe^1#-J*pl.VD9">
            <field name="VAR" id="jw[aaKXeEYD?@QcfBpB/" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="=``}2YqGE51x5XO#O{A6">
            <field name="VAR" id="H@PoxSWG]qD5jZD(,W#^" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="m9HUE{JvBzON.?`k.p0L">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number" id="Y445k*N9Y{3k^0nU:f/a">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_round" id="eOhznKTK*Yn[R~s!l7p;">
                    <field name="OP">ROUND</field>
                    <value name="NUM">
                      <shadow type="math_number" id="NxI4W6P)%aS~YX^5:fm(">
                        <field name="NUM">3.1</field>
                      </shadow>
                      <block type="math_arithmetic" id="a52-x:2(jo3fN-]co/k]">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow type="math_number" id="1IiDMd{pA4I8#Jv5:v)F">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="djyZC:DVv!8AFfC.FoYS">
                            <field name="VAR" id="H@PoxSWG]qD5jZD(,W#^" variabletype="">martingale:totalProfit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="QPp6Ex`FL}B)uWsSrQ*o">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id="qdaI}RV~2ic%D1==.15s">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id=";(PBMt(9fPe84P0`MRRO">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id=";)+n7kB.._k3n:rt!GvJ">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="5KFo!jX4/:fF7|O8_:AM">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="L[N5wU8U4Fj~q=JK3e*3">
                    <field name="VAR" id=")NCus3yUMuz0F?N]/5IC" 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">Lucro :</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="RgAIb=eB,f|Iou[N!-8I">
                            <field name="VAR" id="jw[aaKXeEYD?@QcfBpB/" 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">Perdas:</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="jw[aaKXeEYD?@QcfBpB/" 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 System Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="variables_get" id="[|xwly3+qnsyH8X40V0H">
                        <field name="VAR" id=")NCus3yUMuz0F?N]/5IC" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="Cvi8%t{p9/_xm#+X]om(">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text_join" id="BJCQ#/4O0}z[^DR9GgkO">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="ijsv9!fxO*BB:8yHR`f|">
                                <field name="TEXT">Ganho totals:</field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="Kc?RVUrXujr{1X[%y1sW">
                                <field name="VAR" id="H@PoxSWG]qD5jZD(,W#^" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="ix3Jwr;,l7NS%LeIjciS">
                            <field name="VAR" id=".SuANyJb:?l9QwL{n)9]" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="Z;.teZof4syfkPW!mqo,">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="]Kv}Tw=x^zr6@I@D@S4q">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id=")|LQhZk*#Wi64TgP!Xa^">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="JIN._QaycDvYwCfcJGCM">
                                        <field name="VAR" id="H@PoxSWG]qD5jZD(,W#^" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="ca~g-NW_y(msxA`ID6uw">
                                        <field name="VAR" id="y2nV[ak;p)td~7X[v+b%" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="fVNi_Cv-~iB/uc)2U.3u">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="+`bh%N2o{Y5P*([/ypeU">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="J~+vmLG#*!wX@7rgH_a9">
                                            <field name="VAR" id="H@PoxSWG]qD5jZD(,W#^" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_single" id="ETDn1dh]F.b#8{zcD@+|">
                                            <field name="OP">NEG</field>
                                            <value name="NUM">
                                              <shadow type="math_number" id="#4N:bIe?FzTA#rOZjMqo">
                                                <field name="NUM">9</field>
                                              </shadow>
                                              <block type="variables_get" id="OovN9^AB=zF:sTh-=oGq">
                                                <field name="VAR" id="@wIeyM.]Jd{b;:/^vnPw" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="y%eZ%16)YFB?;J!WT-/1">
                                        <field name="VAR" id=".SuANyJb:?l9QwL{n)9]" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="qt?z|=[ordjkFsa{CxlK">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_print" id="(!.##DU]KjPhy^tQC6YF">
                                        <value name="TEXT">
                                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="oX?Ia)5gqDMl[H*da_9g">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="ox|AU:{^KZm`Bk=piPeZ">
                                                <field name="TEXT">atingiu o limite de perda máxima !! Sua perda total:</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="H@PoxSWG]qD5jZD(,W#^" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="text_print" id="RqQw_^5^@PdBOSiPMkW7">
                                    <value name="TEXT">
                                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="uNhAtc%n?rJat;igy.i;">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="+Fd!Q%aw=bq2)~qEmqt=">
                                            <field name="TEXT">A meta de lucro foi alcançada !!! Seus benefícios totais:</field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="CxB@:}TG^Od;=yysk/#C">
                                            <field name="VAR" id="H@PoxSWG]qD5jZD(,W#^" variabletype="">martingale:totalProfit</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="zEXck3l4zHs1m9JF0^g.">
        <field name="VAR" id=".SuANyJb:?l9QwL{n)9]" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" collapsed="true" x="-574" y="-465">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="{r)m(@*Ta#`[*B(,3D+t">
        <value name="IF0">
          <block type="logic_compare" id="fsaP8uP@z[3v75%77:!v">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="eZ8%(^=Ml[e1vG=Q#Qmr">
                <field name="VAR" id="w(27p`F(O6E61Yd6ic8." variabletype="">Pattern[UUUUUD]</field>
              </block>
            </value>
            <value name="B">
              <block type="logic_boolean" id="[NblYO@5`u8bP.nC/*OG">
                <field name="BOOL">TRUE</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="purchase" id="T%k,?y+gB0JD5hQ@`=tm">
            <field name="PURCHASE_LIST">CALL</field>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="*Drb_k1%ntQq}7K,g+bB">
            <value name="IF0">
              <block type="logic_compare" id="8_^95okUZ|;!r@?l+;Yb">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="4c0zWD%jGE.#Q9C#]soD">
                    <field name="VAR" id="sp}nIP(9x08vwRHo6y`c" variabletype="">Pattern[DDDDDU]</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_boolean" id="k?jg}.WZquY]UU2k(T?s">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="purchase" id="BV+N+wONF:3B^STZdRNS">
                <field name="PURCHASE_LIST">CALL</field>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="D^Jz1^n=2vtZku1vBN@;" collapsed="true" x="-322" y="-466">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="=KbO,-HqtVsGwXTFQu;A">
        <value name="IF0">
          <block type="procedures_callreturn" id="#:Mg|GlkP@A6U0TvjHaG">
            <mutation name="Martingale System">
              <arg name="martingale:profit"></arg>
              <arg name="martingale:resultIsWin"></arg>
            </mutation>
            <value name="ARG0">
              <block type="read_details" id="(E,!25pd^Ev`yMmr[z*_">
                <field name="DETAIL_INDEX">4</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="contract_check_result" id="^ShXafO+N,gqVXtl^w)e">
                <field name="CHECK_RESULT">win</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="trade_again" id="wK(XN;iOhw^@0?^z74gG"></block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="qq2xGirc*Byb/P/HE^]H" collapsed="true" x="-579" y="-435">
    <field name="NAME">Initial 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="y2nV[ak;p)td~7X[v+b%" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="logic_null" id="Tp8pr^]@7PA~eGl`XK?b"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="p8_@*8We560p~d]XEj-I">
            <field name="VAR" id="y2nV[ak;p)td~7X[v+b%" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block type="text_prompt_ext" id="%r0#U,KXY;)S1-I},GCs">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text" id="AlB(yFhIT1/FZu-ZEpqQ">
                    <field name="TEXT">Defina sua meta de lucro !!! Usa cerca de 3% da banca</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="@wIeyM.]Jd{b;:/^vnPw" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_null" id="!X8^fykpJtsH#Il8+Wh9"></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="t3Gw#E]HVqIM/6J-t-2Y">
                <field name="VAR" id="@wIeyM.]Jd{b;:/^vnPw" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block type="text_prompt_ext" id="K[Cz2)F(1ny#Zw!j7j!V">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text" id="dfNPxr:VpC%uF[yz%xk[">
                        <field name="TEXT">Limite de perda máxima !!!</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="x,HnAn6cNAh+{e8nyzmv" variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_null" id="qTK#~^WMVK;Wyz1LJ/@d"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="ZxKDnNw2?MsznEZQtR6`">
                    <field name="VAR" id="x,HnAn6cNAh+{e8nyzmv" variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block type="text_prompt_ext" id="^4peSz1pJ=`,CaD#@6Jd">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text" id="=6eX{Eblptb4BBlz7?U[">
                            <field name="TEXT">Determine a stake da aposta inicial !!! minimo 0.35</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="CwEE|cxi]j@S2TqQrg:?" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_null" id="CA@kQ}mQ:c8NW0=5Ed[."></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="i6f6Qwj?2nLE;^KlN:Z@">
                        <field name="VAR" id="C7-GrpO5a$2E`EQ;R6iq" variabletype="">martingale:multiplierSize</field>
                        <value name="VALUE">
                          <block type="text_prompt_ext" id="gHWIH5Fo4=j=J*,-~q??">
                            <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="|k}XGZZ}Z7RUCb!Tpg=+">
                                <field name="TEXT">O multiplicador de Martingale!!! se nao mexer na barreira use 5</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="^xOi2|SaRE2S4sk8(u74">
                            <field name="VAR" id="CwEE|cxi]j@S2TqQrg:?" variabletype="">martingale:size</field>
                            <value name="VALUE">
                              <block type="math_number" id="V^QkcFsonsJWZ0pgI8IU">
                                <field name="NUM">1</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </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="H@PoxSWG]qD5jZD(,W#^" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_null" id=";,X}K#n`DxM#4`t;d~Cc"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="MmEFyqc*]VjjlJZzlNt[">
                            <field name="VAR" id="H@PoxSWG]qD5jZD(,W#^" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="DcgRnz]nVdJyT*eH=v!;">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="!BlRd)C:TXj@_wErj#qz">
        <field name="OP">MULTIPLY</field>
        <value name="A">
          <shadow type="math_number" id="F/^.gR-k|dBg*ZMQ,E?v">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="4;YLe/OL#s08%Fg6}T[#">
            <field name="VAR" id="CwEE|cxi]j@S2TqQrg:?" 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="x,HnAn6cNAh+{e8nyzmv" variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="TY/(qs?1mzi0doraNq_[" collapsed="true" x="-344" y="-439">
    <mutation>
      <arg name="martingale:resultIsWin" varid=")NCus3yUMuz0F?N]/5IC"></arg>
    </mutation>
    <field name="NAME">Martingale System Core Functionality</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="wcQS%xc8=!!#P52Kt:1x">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id="P]*Fp7~p#Lj1S#`(3rAr">
            <field name="VAR" id=")NCus3yUMuz0F?N]/5IC" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id=",*SKPEhPmhmsq#tq`G*9">
            <field name="VAR" id="CwEE|cxi]j@S2TqQrg:?" 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="CwEE|cxi]j@S2TqQrg:?" 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="CwEE|cxi]j@S2TqQrg:?" 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="variables_get" id="bBj-mlXoO%KT)k(p0Rkq">
                    <field name="VAR" id="C7-GrpO5a$2E`EQ;R6iq" variabletype="">martingale:multiplierSize</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="tick_analysis" id="tsj:Ji3R?hG$!?Ka~~fX" collapsed="true" x="-583" y="-408">
    <statement name="TICKANALYSIS_STACK">
      <block type="variables_set" id="L#,st!94qhW-6lxNPLF;">
        <field name="VAR" id="Az|!Jt;XK((8i#PeNh|[" variabletype="">Tick08</field>
        <value name="VALUE">
          <block type="variables_get" id="er,skEkqs6[6djD_=-e@">
            <field name="VAR" id="2R1YIgSD#Q3sc#mbFwu," variabletype="">Tick07</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="=?XH+mY#@Xcm]+V2;8fR">
            <field name="VAR" id="2R1YIgSD#Q3sc#mbFwu," variabletype="">Tick07</field>
            <value name="VALUE">
              <block type="variables_get" id="$Al#W:.%9?;P6`?2[y[U">
                <field name="VAR" id="8yagqn]T`[~1lL{Hw2nV" variabletype="">Tick06</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="6/.!1+DLWY;c_g{6v.mB">
                <field name="VAR" id="8yagqn]T`[~1lL{Hw2nV" variabletype="">Tick06</field>
                <value name="VALUE">
                  <block type="variables_get" id="{~co(G5~OgsCS|J@1KHR">
                    <field name="VAR" id=",`Jzv6?Sf[3FwKvlx*#A" variabletype="">Tick05</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="Z99:OYEYJgI%$7N_XrxC">
                    <field name="VAR" id=",`Jzv6?Sf[3FwKvlx*#A" variabletype="">Tick05</field>
                    <value name="VALUE">
                      <block type="variables_get" id="~EsWZzQJuqhuvitm6.#x">
                        <field name="VAR" id="8upWHjD53+hK7K^]Kb+X" variabletype="">Tick04</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="l.qX[Q|f^vMLMpU#bc~n">
                        <field name="VAR" id="8upWHjD53+hK7K^]Kb+X" variabletype="">Tick04</field>
                        <value name="VALUE">
                          <block type="variables_get" id="`iL8^,Um;PnU0BS-l~8P">
                            <field name="VAR" id="@Yy21]eCjh=X}IP-hwo+" variabletype="">Tick03</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id=":RCKjlBd*l]u/~:8a*TH">
                            <field name="VAR" id="@Yy21]eCjh=X}IP-hwo+" variabletype="">Tick03</field>
                            <value name="VALUE">
                              <block type="variables_get" id="+0;tS4KYYJayv@b2=_u:">
                                <field name="VAR" id="ko2ahTZHu)nyfiQ|;?B*" variabletype="">Tick02</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="ZfL%4crNT/sTI|L?!H#t">
                                <field name="VAR" id="ko2ahTZHu)nyfiQ|;?B*" variabletype="">Tick02</field>
                                <value name="VALUE">
                                  <block type="variables_get" id="kR5V!!=^Ba^.}Da1EO_E">
                                    <field name="VAR" id="3=9]nG,HReV,Dt+2qXu]" variabletype="">Tick01</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id="@?f}3IV+x{FC/+GuLi,]">
                                    <field name="VAR" id="3=9]nG,HReV,Dt+2qXu]" variabletype="">Tick01</field>
                                    <value name="VALUE">
                                      <block type="tick" id="q!Ie}mVg0oC/oQs;MVc9"></block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="tick_analysis" id="Cb`t4xY$lnHCOA?^KluM" collapsed="true" x="-338" y="-407">
    <statement name="TICKANALYSIS_STACK">
      <block type="controls_if" id="#t$Yj[3c;+V7|00$ViU?">
        <value name="IF0">
          <block type="logic_compare" id="cs2ClSr)rT6_kSL-Tq,5">
            <field name="OP">GT</field>
            <value name="A">
              <block type="variables_get" id=")zfu*hALu8//nUR5#2k$">
                <field name="VAR" id="3=9]nG,HReV,Dt+2qXu]" variabletype="">Tick01</field>
              </block>
            </value>
            <value name="B">
              <block type="variables_get" id="af0j+?~Xz4[NHPxNsgjJ">
                <field name="VAR" id="ko2ahTZHu)nyfiQ|;?B*" variabletype="">Tick02</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="notify" id="5:{2o`banZ9Y!ZDXx`Vh">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <shadow type="text" id="5c|qz/=O9q0Rx^qt!6EW">
                <field name="TEXT">Subiu</field>
              </shadow>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="d{=N[[qFZyB3RMT`OZEX">
            <value name="IF0">
              <block type="logic_compare" id="Ime;x9hg(x),5rk;Z0)t">
                <field name="OP">LT</field>
                <value name="A">
                  <block type="variables_get" id="U:*KlhIlQd1;,Du`5Z`x">
                    <field name="VAR" id="3=9]nG,HReV,Dt+2qXu]" variabletype="">Tick01</field>
                  </block>
                </value>
                <value name="B">
                  <block type="variables_get" id=":k:D*8fA*uuKc~*d6.K}">
                    <field name="VAR" id="ko2ahTZHu)nyfiQ|;?B*" variabletype="">Tick02</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="notify" id="!~SF~FWKTY]fy:AXFX#p">
                <field name="NOTIFICATION_TYPE">error</field>
                <field name="NOTIFICATION_SOUND">silent</field>
                <value name="MESSAGE">
                  <shadow type="text" id="S-.v#@(sM*[U`YV%g^-g">
                    <field name="TEXT">Desceu</field>
                  </shadow>
                </value>
              </block>
            </statement>
            <next>
              <block type="variables_set" id="wb^DhlMGZW7NrLj27S*[">
                <field name="VAR" id="w(27p`F(O6E61Yd6ic8." variabletype="">Pattern[UUUUUD]</field>
                <value name="VALUE">
                  <block type="logic_operation" id="2+.L~^Qc,Yw%`aI?]9v:">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_operation" id="+KuB{jcA{DB}P@dC*Idh">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_operation" id="3bPTNgHx7Z+kE$_Y`^Nl">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="~`=z6YavWTqHQ!B,)X/7">
                                <field name="OP">GT</field>
                                <value name="A">
                                  <block type="variables_get" id=".M%c3t`A]b.M}4}o5R*3">
                                    <field name="VAR" id="8yagqn]T`[~1lL{Hw2nV" variabletype="">Tick06</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="%JCD)K@6t@aq[=)CZR8U">
                                    <field name="VAR" id="2R1YIgSD#Q3sc#mbFwu," variabletype="">Tick07</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_operation" id="~E7[f?G:)iKsgS6hHx5]">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="GuH^;Gw4)uTV.)+/cJC/">
                                    <field name="OP">GT</field>
                                    <value name="A">
                                      <block type="variables_get" id="g6lB4pBW%!rQ_|xV/OxE">
                                        <field name="VAR" id=",`Jzv6?Sf[3FwKvlx*#A" variabletype="">Tick05</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="srcBMEzwA)tAuho6{JCo">
                                        <field name="VAR" id="8yagqn]T`[~1lL{Hw2nV" variabletype="">Tick06</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="J]M@{@unKkGYFeeho[Zf">
                                    <field name="OP">GT</field>
                                    <value name="A">
                                      <block type="variables_get" id="]r^U$yOf%T3}FBAcKL4[">
                                        <field name="VAR" id="8upWHjD53+hK7K^]Kb+X" variabletype="">Tick04</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="ge1sLdez1_:uf=nLb9-%">
                                        <field name="VAR" id=",`Jzv6?Sf[3FwKvlx*#A" variabletype="">Tick05</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_operation" id=";%t`!l.B:IUp+n]HDLV+">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="DCiZzxFB;#u;KJ_uxka^">
                                <field name="OP">GT</field>
                                <value name="A">
                                  <block type="variables_get" id="4ED-G6GwcST_m9oSW}Y/">
                                    <field name="VAR" id="@Yy21]eCjh=X}IP-hwo+" variabletype="">Tick03</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="8kCQ)0n5_P]SdUU:bkEx">
                                    <field name="VAR" id="8upWHjD53+hK7K^]Kb+X" variabletype="">Tick04</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="1n5Q+76f;Ls(WQvywQ;|">
                                <field name="OP">GT</field>
                                <value name="A">
                                  <block type="variables_get" id="^js:ZOg(:{qFz%Dic=`D">
                                    <field name="VAR" id="ko2ahTZHu)nyfiQ|;?B*" variabletype="">Tick02</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="Mz!+V#7+,asAEEX8Ge_}">
                                    <field name="VAR" id="@Yy21]eCjh=X}IP-hwo+" variabletype="">Tick03</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="WDizJSe?(c1m*!Z`_a;Z">
                        <field name="OP">LT</field>
                        <value name="A">
                          <block type="variables_get" id="y2VNr#zO]A6-.S,b(%iz">
                            <field name="VAR" id="3=9]nG,HReV,Dt+2qXu]" variabletype="">Tick01</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="eXcv)!+rfWb/LG^E)]{N">
                            <field name="VAR" id="ko2ahTZHu)nyfiQ|;?B*" variabletype="">Tick02</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id=",SR4__v*(GT#{wCgT[Ax">
                    <field name="VAR" id="sp}nIP(9x08vwRHo6y`c" variabletype="">Pattern[DDDDDU]</field>
                    <value name="VALUE">
                      <block type="logic_operation" id="5#bX$h2v,:!P:_r53$~K">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_operation" id="ajAV%?uruN=j[VXe|K5n">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_operation" id="Jd%e$mwjhE~*s~y=hBi$">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="kdrei7Azf].%yF0mLZ5m">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="+|M9Ua:(*G%1AJNQMc,u">
                                        <field name="VAR" id="8yagqn]T`[~1lL{Hw2nV" variabletype="">Tick06</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="^q,^P(QGwf-fuU8*r7,+">
                                        <field name="VAR" id="2R1YIgSD#Q3sc#mbFwu," variabletype="">Tick07</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_operation" id="EP:Psqpph7dLaqXMhwVW">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="Kyq].%Vk,J${}-6J}.;{">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="ebwv2wfrXcLEJH.KWluZ">
                                            <field name="VAR" id=",`Jzv6?Sf[3FwKvlx*#A" variabletype="">Tick05</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="Z[sLv,n$}RVvwT(=#7sf">
                                            <field name="VAR" id="8yagqn]T`[~1lL{Hw2nV" variabletype="">Tick06</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="6{A;.$3s?=x-qrPGQs1b">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="Ul.Z#wP/gKs]lHZeAv$U">
                                            <field name="VAR" id="8upWHjD53+hK7K^]Kb+X" variabletype="">Tick04</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="]{tG!9[8IkZHMLaO5c2R">
                                            <field name="VAR" id=",`Jzv6?Sf[3FwKvlx*#A" variabletype="">Tick05</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_operation" id="*jRASc[{f.^TA|Q/AOxz">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id=")jRhBdSd4B])gi7Lj2qX">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="7qdSXj@*yTj;+M8:W=+4">
                                        <field name="VAR" id="@Yy21]eCjh=X}IP-hwo+" variabletype="">Tick03</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="MzE:~C}Up~4?Xc!U-L!j">
                                        <field name="VAR" id="8upWHjD53+hK7K^]Kb+X" variabletype="">Tick04</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="ni(rPok4@7b/!K@+Vydy">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="!h@aHZ,6Hna)q+#MUqfv">
                                        <field name="VAR" id="ko2ahTZHu)nyfiQ|;?B*" variabletype="">Tick02</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="kYK{RQD/+QJg%$[[9tP.">
                                        <field name="VAR" id="@Yy21]eCjh=X}IP-hwo+" variabletype="">Tick03</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="3}4rm1+]Z%l``Uw|A:j6">
                            <field name="OP">GT</field>
                            <value name="A">
                              <block type="variables_get" id="Adh|f%6~y5Kot:fB(@V9">
                                <field name="VAR" id="3=9]nG,HReV,Dt+2qXu]" variabletype="">Tick01</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="Hn$5d^bI9V167?U1ge:!">
                                <field name="VAR" id="ko2ahTZHu)nyfiQ|;?B*" variabletype="">Tick02</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="trade" id="xgH69|xFn9=70w.*3Vo@" x="-624" y="-371">
    <field name="MARKET_LIST">synthetic_index</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_10</field>
    <field name="TRADETYPECAT_LIST">callput</field>
    <field name="TRADETYPE_LIST">higherlower</field>
    <field name="TYPE_LIST">CALL</field>
    <field name="CANDLEINTERVAL_LIST">60</field>
    <field name="TIME_MACHINE_ENABLED">FALSE</field>
    <field name="RESTARTONERROR">TRUE</field>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="x=V33~4Lb|(sLv`J[:Eb">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <field name="BARRIEROFFSETTYPE_LIST">-</field>
        <field name="SECONDBARRIEROFFSETTYPE_LIST">-</field>
        <value name="DURATION">
          <shadow type="math_number" id="O*@58sDc=!cOO}*b2vf9">
            <field name="NUM">5</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number" id="ml)25~7^q}3I9}vjf:%K">
            <field name="NUM">0.5</field>
          </shadow>
          <block type="procedures_callreturn" id="I4a=wNsD7.L2{Z2I_/yz">
            <mutation name="Initial Amount"></mutation>
          </block>
        </value>
        <value name="BARRIEROFFSET">
          <shadow type="math_number" id="?DgA$0#3j)a8,IZEnxOu">
            <field name="NUM">0.4</field>
          </shadow>
        </value>
      </block>
    </statement>
  </block>
</xml>