﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="6vtqawoDOFA,(wcV-5T0">martingale:profit</variable>
    <variable type="" id="nq@FKzL9MU:/Oz^v%V5!">martingale:resultIsWin</variable>
    <variable type="" id="GoHxV!,*.du#$oe[D5Cz">RSI</variable>
    <variable type="" id="68Ca!ADlAGGZFqKmigEv">SMA 25</variable>
    <variable type="" id="%YQj.I)J|QdS(]u+;1B8">UPTREND</variable>
    <variable type="" id="agqnu@|LMaCC@tuH;{,8">martingale:totalProfit</variable>
    <variable type="" id="a/3zFys.5qe;=O)s{J]a">martingale:tradeAgain</variable>
    <variable type="" id="CH.XS?c*Uh(#SiyShmpe">UPPER</variable>
    <variable type="" id="Q=#K!]E*!m[u8a,h)?87">Buy Higher</variable>
    <variable type="" id="B}f-GMyG;~[lB8:Tv*8)">martingale:expectedProfit</variable>
    <variable type="" id="W,UJTDw)#-$_3SN9Mhjn">martingale:size</variable>
    <variable type="" id="84:-Dsn;4aAS(^JoQiB.">martingale:amount</variable>
    <variable type="" id="l,?7`7(hEu8C(f*6MrNA">SMA 30</variable>
    <variable type="" id=":fKr0g8T5q1Nw~0T@pd8">DOWNTREND</variable>
    <variable type="" id=",{^9eE+1P7L@hZ;5qe{(">MIDDLE</variable>
    <variable type="" id="k8G:T|4hU8cIi2WvZOlo">Buy Lower</variable>
    <variable type="" id="bc5#ReyRD@d@=gc5bLkD">martingale:maximumLoss</variable>
    <variable type="" id="ilB~iTyNZj1xy/,;/)EE">SMA 35</variable>
    <variable type="" id="~eX~gKCaOz[.zr=.Lw^:">SIDEWAY</variable>
    <variable type="" id="axHiK+|;xavt0l.Ihje.">LOWER</variable>
    <variable type="" id="!0H/xdi#tRS/Dn@.Y#}}">SMA 40</variable>
    <variable type="" id="#dU7g-dv18=aqB-TMn!]">EMA</variable>
    <variable type="" id="8XNXC7,G=3}N6Ng+|+[a">SMA 45</variable>
    <variable type="" id="E}LCL3#}W0r6pa!2zsWP">histo1</variable>
    <variable type="" id=")AMs%h46.9[iF=TFDTHk">SMA 50</variable>
    <variable type="" id="WT7.1KR$09d~y$V-e1s}">histo2</variable>
    <variable type="" id="]UJr(qLAx?s*JsY;t9`#">histo3</variable>
    <variable type="" id="*@RRl`@7(1BL-eKO5VGI">macd</variable>
    <variable type="" id="dz)N8~HS!~)34k@@=17%">signal</variable>
  </variables>
  <block type="trade" id=")inu*9KBx=?O=ZEkmjl_" x="1102" y="-639">
    <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">both</field>
    <field name="CANDLEINTERVAL_LIST">60</field>
    <field name="TIME_MACHINE_ENABLED">FALSE</field>
    <field name="RESTARTONERROR">TRUE</field>
    <statement name="SUBMARKET">
      <block type="controls_if" id="w2}8NC:(wP?UWAaO(FwQ">
        <value name="IF0">
          <block type="logic_compare" id=".FIe~8IkJ|]H$Hr3Z!-2">
            <field name="OP">GT</field>
            <value name="A">
              <block type="tick" id="gN]C]4lC;qypGG![Q1Li"></block>
            </value>
            <value name="B">
              <block type="variables_get" id="fj+:^,y))ibr=wT~ymip">
                <field name="VAR" id=",{^9eE+1P7L@hZ;5qe{(" variabletype="">MIDDLE</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="_T,.8OE(PeH0*JQ8@@Cb">
            <field name="VAR" id="Q=#K!]E*!m[u8a,h)?87" variabletype="">Buy Higher</field>
            <value name="VALUE">
              <block type="text" id=",3?tszy#4#]ZX?~c,qRf">
                <field name="TEXT">Green</field>
              </block>
            </value>
            <next>
              <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.35</field>
                  </shadow>
                  <block type="procedures_callreturn" id="K]4cHydn_|0{n%$:Z{2N">
                    <mutation name="Martingale Trade Amount"></mutation>
                  </block>
                </value>
                <value name="BARRIEROFFSET">
                  <shadow type="math_number" id="Dc~t60F,zWX4/yAl+:#z">
                    <field name="NUM">0.425</field>
                  </shadow>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="G[z86roMwoq|@zAndm8l">
            <value name="IF0">
              <block type="logic_compare" id="^8971Esq{@4j8le;JQvu">
                <field name="OP">LT</field>
                <value name="A">
                  <block type="tick" id="ZMuk55!gjK]7ZtTdGtQN"></block>
                </value>
                <value name="B">
                  <block type="variables_get" id="nD|qGUKx3Ay=%}fgrLOu">
                    <field name="VAR" id=",{^9eE+1P7L@hZ;5qe{(" variabletype="">MIDDLE</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="%bDHH@hfkyO8/=ppY.hP">
                <field name="VAR" id="k8G:T|4hU8cIi2WvZOlo" variabletype="">Buy Lower</field>
                <value name="VALUE">
                  <block type="text" id="!Eh,gG!C+:RA7BQEwo%2">
                    <field name="TEXT">Red</field>
                  </block>
                </value>
                <next>
                  <block type="tradeOptions" id="F}`[MSLzBL@1V5swugwL">
                    <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="/Xx{z2I{+!~MmloOf.*7">
                        <field name="NUM">5</field>
                      </shadow>
                    </value>
                    <value name="AMOUNT">
                      <shadow type="math_number" id="JZv7{{4-z=Y5]mVkDOEm">
                        <field name="NUM">0.35</field>
                      </shadow>
                      <block type="procedures_callreturn" id="[2ui+B}8uV6LT^#[fJ+G">
                        <mutation name="Martingale Trade Amount"></mutation>
                      </block>
                    </value>
                    <value name="BARRIEROFFSET">
                      <shadow type="math_number" id="3Ol|O?M;%T7Gag}Em)W4">
                        <field name="NUM">0.425</field>
                      </shadow>
                    </value>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" x="1040" y="101">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="variables_set" id="7or.[Lbg!{2_X2vT=()_">
        <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
        <value name="VALUE">
          <block type="lists_getIndex" id="|Zp(hQ`{o9(By?tjG^ti">
            <mutation statement="false" at="true"></mutation>
            <field name="MODE">GET</field>
            <field name="WHERE">FROM_END</field>
            <value name="VALUE">
              <block type="rsia" id="ktpYY@:L;),Qrt+K2uaF">
                <value name="INPUT">
                  <block type="ticks" id="g3%vZ:Jqw~Ep-xq7Ye{y"></block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="`vze$pr|vtA*bw$W@{:3">
                    <field name="NUM">10</field>
                  </shadow>
                </value>
              </block>
            </value>
            <value name="AT">
              <block type="math_number" id="`B}cWKdT_k)([_5mqytS">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="controls_if" id="n@BIBS@+1HPd+EE%jwhh">
            <value name="IF0">
              <block type="logic_operation" id="{aN}])y`{f32EH=vQyMn">
                <field name="OP">AND</field>
                <value name="A">
                  <block type="logic_compare" id="DCoTqnecI_jZ{]OpAdNQ">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="(~mVq[7K(SQ3q1L`30K6">
                        <field name="VAR" id="Q=#K!]E*!m[u8a,h)?87" variabletype="">Buy Higher</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="text" id="x]pV6uhO$6$q*U`20K?6">
                        <field name="TEXT">Green</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_operation" id="xF@v6[SU+DQclPya^5UY" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="x*g3VQ4L9O7;yz|kc{5N">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="}Z`,h?K-ewPU)2AD$wu3">
                            <field name="VAR" id="%YQj.I)J|QdS(]u+;1B8" variabletype="">UPTREND</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="vOl[u0!5K~Q%:?_Z?3*K">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_operation" id="k8Rnvmh3,?;lwLf#w[@b" inline="false">
                        <field name="OP">OR</field>
                        <value name="A">
                          <block type="logic_operation" id="Q!1[a$r3i|`,.(.7ui|/">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_operation" id="0=E,k#0q}`?h(/Oo^V1t">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="1{,!4~L]sn@?!V.nBIC?">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="8CROHKD2}76XW#hA|_FN">
                                        <field name="VAR" id="*@RRl`@7(1BL-eKO5VGI" variabletype="">macd</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="3EcKMTV|1.m?`z2LZRvo">
                                        <field name="VAR" id="dz)N8~HS!~)34k@@=17%" variabletype="">signal</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_operation" id="+pBTF?Gf_DW=:.V{tiLL">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="i$QEmDE|OqPdFs!Ib0(]">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="I:2o}|=J+$lRoq!sk)(H">
                                            <field name="VAR" id="E}LCL3#}W0r6pa!2zsWP" variabletype="">histo1</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="xVVR$?tVP6r(%1z8S8)c">
                                            <field name="VAR" id="WT7.1KR$09d~y$V-e1s}" variabletype="">histo2</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="vAsa3S.y72f{CC}Rl]$+">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="PpBf5MgB|hWYCWwW.//~">
                                            <field name="VAR" id="WT7.1KR$09d~y$V-e1s}" variabletype="">histo2</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="z#R)-i|*O9:[j[e_V:.m">
                                            <field name="VAR" id="]UJr(qLAx?s*JsY;t9`#" variabletype="">histo3</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_operation" id="]B+a;z;^n^:k@Nq-:pMk">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="7F$%Zqh%Rs/kPF$nM|/k">
                                    <field name="OP">GT</field>
                                    <value name="A">
                                      <block type="variables_get" id="mnN;kAS6sHIK:[$,M*{[">
                                        <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="BH.{SGPk!:$O~+g)W(H5">
                                        <field name="NUM">65</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="KdVlUnDS$Ec,YpI3HwB8">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="l+~An[)*=H!!1hSD}oDe">
                                        <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="cEZ#bSnT/A9#N33U_(q^">
                                        <field name="NUM">85</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_operation" id="byNLn0(LtA`:T_k)k{f^" inline="false">
                            <field name="OP">OR</field>
                            <value name="A">
                              <block type="logic_operation" id="gUPR0!Stt`+;9(i^Pyg)">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_operation" id="0R6;hXdw(v3owJij!mAx">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="N~.R@J9se-L24RU%7_gh">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="P3k_yS8K8~_lQID*R|Mv">
                                            <field name="VAR" id="*@RRl`@7(1BL-eKO5VGI" variabletype="">macd</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="UJV4V2*p9Nbi@YKz^;LW">
                                            <field name="VAR" id="dz)N8~HS!~)34k@@=17%" variabletype="">signal</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_operation" id="j]F[;m=De7.AiXJQT^W?">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="MxvoEUvh2CXQhTjN,H%:">
                                            <field name="OP">GT</field>
                                            <value name="A">
                                              <block type="variables_get" id="sd3vDK_$ngE(`U7u29^5">
                                                <field name="VAR" id="E}LCL3#}W0r6pa!2zsWP" variabletype="">histo1</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="oeXWYMK.],rG-;vc8[5|">
                                                <field name="VAR" id="WT7.1KR$09d~y$V-e1s}" variabletype="">histo2</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="evVC~tl`D.Qs(]9K_@i%">
                                            <field name="OP">GT</field>
                                            <value name="A">
                                              <block type="variables_get" id="PH{2aTjGAyWJD/]pru9G">
                                                <field name="VAR" id="WT7.1KR$09d~y$V-e1s}" variabletype="">histo2</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="|,}l@9Vt*(ktJyELyR)(">
                                                <field name="VAR" id="]UJr(qLAx?s*JsY;t9`#" variabletype="">histo3</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_operation" id="*+N%`0ucRdHPJ#qvh4p/">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="8#7X^ZvWfh^n5R3~mYAo">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="2~^Cz-i[SKLL$qjnxp4P">
                                            <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="w/Vod1=mxG_io/OxrE1:">
                                            <field name="NUM">65</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="UDa{@:_QwV]1F3Bhi=.`">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="lYOu7JyB+0iQQ`m}|G;4">
                                            <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="yngNMXAk@6E~m`jT.z~4">
                                            <field name="NUM">85</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_operation" id="tHeM{g-.#zFvqM772n%7" inline="false">
                                <field name="OP">OR</field>
                                <value name="A">
                                  <block type="logic_operation" id="y(,dM?~gSNxz0,I.9tG/">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="nhZy^TWl%p5t~aMOZXUu">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="$+sw[4z^tu-BJ9/M2faV">
                                            <field name="VAR" id="#dU7g-dv18=aqB-TMn!]" variabletype="">EMA</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="c8Yq:NsDqx52J=9mMDsR">
                                            <field name="VAR" id="CH.XS?c*Uh(#SiyShmpe" variabletype="">UPPER</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_operation" id="_?`)pHn[#DYW7kJ4d%sK">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="i**GPjsA@^6ljk:QC-62">
                                            <field name="OP">GT</field>
                                            <value name="A">
                                              <block type="variables_get" id="LIqxj6JrtzSAK=1`N9Qh">
                                                <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="?gs$FP*pVnAwKvc*:s-!">
                                                <field name="NUM">65</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="pF:,2@AwDTTzj*gSe2$S">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id="%W==g%4{O4b*?S,_gf5m">
                                                <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="BT4(fzH)BR;lGj?tb;F:">
                                                <field name="NUM">85</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_operation" id="RP||a4oDQ^`YzKDfN?i^">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="V)H{q]I9|dH{{C9}3lQ#">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id=".wzVH4*$^c[RaDO@#f{f">
                                            <field name="VAR" id="#dU7g-dv18=aqB-TMn!]" variabletype="">EMA</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="EG(L@bl}sx2]9xh]uCIj">
                                            <field name="VAR" id="CH.XS?c*Uh(#SiyShmpe" variabletype="">UPPER</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_operation" id="AfIGejsxvor5|{qH^A%o">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="Vz./,4vQujLg9sl]*=dZ">
                                            <field name="OP">GT</field>
                                            <value name="A">
                                              <block type="variables_get" id="6sVN;z)Hr{%=(,m9iZ8K">
                                                <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="rF9a|+YZpc2Hb@`$RZo(">
                                                <field name="NUM">65</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="%)NE.j/mT_bFP/LiK]Pr">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id=")kLiE,`ljPXnCQxY)pn_">
                                                <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="Gio(,[_YE6QlCVRFT1B]">
                                                <field name="NUM">85</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="notify" id="ItkC:yl8x92]l4yG_8_H">
                <field name="NOTIFICATION_TYPE">success</field>
                <field name="NOTIFICATION_SOUND">silent</field>
                <value name="MESSAGE">
                  <shadow type="text" id="a!^!:(@k~bzsLwP2Lv1;">
                    <field name="TEXT">EMA &gt; UPPER</field>
                  </shadow>
                </value>
                <next>
                  <block type="purchase" id="4Cn^W4YZ36V#={b`l*SB">
                    <field name="PURCHASE_LIST">CALL</field>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="(X=A;FqY|OU-Co/Tw^2o">
                <value name="IF0">
                  <block type="logic_operation" id="#`tqGophhODx?euoq:y{">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="-|B??952)tR2L%V{{#iR">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="*IgMHHe@NDZ7IQ|2E@vZ">
                            <field name="VAR" id="k8G:T|4hU8cIi2WvZOlo" variabletype="">Buy Lower</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="text" id="3+a$pF)1Vs#lbksv/?wt">
                            <field name="TEXT">Red</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_operation" id="VP#@gJ4wj(6g`w$H}C!|" inline="false">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_compare" id="gPr9%7ezt[~KQQs}3Hhq">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="Y;Y/*..kHtyi@X6O$i[f">
                                <field name="VAR" id=":fKr0g8T5q1Nw~0T@pd8" variabletype="">DOWNTREND</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="L[8H9sdT[bu9l#1^Dfln">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_operation" id="8#_Wm/Qg4Nhu9`F3E-aq" inline="false">
                            <field name="OP">OR</field>
                            <value name="A">
                              <block type="logic_operation" id="(us21Kd-|[J60.rjgZli">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_operation" id="iF7(CKlEl3O`Pxqq_+gp">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="Ef$Iw~|yuJmtcP-e#H.I">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="!@7CTtA5`C11G2qY1jUw">
                                            <field name="VAR" id="*@RRl`@7(1BL-eKO5VGI" variabletype="">macd</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="variables_get" id="dl*0bg2p{X:$R9A~jGu`">
                                            <field name="VAR" id="dz)N8~HS!~)34k@@=17%" variabletype="">signal</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_operation" id=")$NwrZx!Z4ruKK)`WD6M">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="Fn6BY(oNGV{Zh[rTkQAY">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id="*YPo_Z3sXaJg%PR;bWrk">
                                                <field name="VAR" id="E}LCL3#}W0r6pa!2zsWP" variabletype="">histo1</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="lLdhg_7Nwt[`3x=/lKS;">
                                                <field name="VAR" id="WT7.1KR$09d~y$V-e1s}" variabletype="">histo2</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="%_@E%gN:rntz%(zX}:+U">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id="HIRF)TAL26W-siRGphZF">
                                                <field name="VAR" id="WT7.1KR$09d~y$V-e1s}" variabletype="">histo2</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="h!4)[h,j#{f5uel9sR#%">
                                                <field name="VAR" id="]UJr(qLAx?s*JsY;t9`#" variabletype="">histo3</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_operation" id="z`{?vF3;=e^JeHuu=nxy">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="^-DGj/_H|4/Dk%E73.YY">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="ly5oe6cu.kkaha2j9!6/">
                                            <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="!5:R@,|ru6_Pi%uqVgsL">
                                            <field name="NUM">15</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id=";6UhC.!-SP=k.jqY-^/2">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="@;=aorPA06:yVUDH7RqH">
                                            <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="Y$ymcs4:!Us8..d72Sgv">
                                            <field name="NUM">35</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_operation" id="}@t*PGWg?#n9)#4;,%[~" inline="false">
                                <field name="OP">OR</field>
                                <value name="A">
                                  <block type="logic_operation" id="U~r2b|YIOAfQK9sZCevO" inline="false">
                                    <field name="OP">OR</field>
                                    <value name="A">
                                      <block type="logic_operation" id="zJ.tq0H}({os_W`+V5Xq">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="2j0wsV[K3L;SnkG:1]3;">
                                            <field name="OP">GT</field>
                                            <value name="A">
                                              <block type="variables_get" id="ha|E.xVk]J5HR#lf^;qS">
                                                <field name="VAR" id="#dU7g-dv18=aqB-TMn!]" variabletype="">EMA</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="?:#q%MTZD!NGyLe;~/(T">
                                                <field name="VAR" id="axHiK+|;xavt0l.Ihje." variabletype="">LOWER</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_operation" id="nsg1eyA.$6bpP,kGX{Qm">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="HT;x8!R?xL_{/pk!h=yW">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block type="variables_get" id="p=u9JODT!GF7/M0P0?Cu">
                                                    <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="L/%b{iPhm#R/)XHDEGu$">
                                                    <field name="NUM">15</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="{{YZ/o5c*MJ+y3A*qt$#">
                                                <field name="OP">LT</field>
                                                <value name="A">
                                                  <block type="variables_get" id="@|SO._cbey+fG(*.G8`w">
                                                    <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="QF`WK,![zmp/{peo=2wD">
                                                    <field name="NUM">35</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_operation" id="D0?p|615,U@,I@uZy~K]">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="gGcE;Q%YSRt)`y]=Y4V%">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id="D#1iE[9O=EO(A,%~`**u">
                                                <field name="VAR" id="#dU7g-dv18=aqB-TMn!]" variabletype="">EMA</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="?}ucTk)a2?xY:SY`2i/=">
                                                <field name="VAR" id="axHiK+|;xavt0l.Ihje." variabletype="">LOWER</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_operation" id="9UBJS%t^?0(2zX@9.H~p">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="-B[.Nv=zmE|y4rPLishA">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block type="variables_get" id="J$r-kk/L#t]czpPJl_Ya">
                                                    <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="WN$jrOGb#?A$7hnN98Fc">
                                                    <field name="NUM">15</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="9+pXRyBB!6YgYII,HSsu">
                                                <field name="OP">LT</field>
                                                <value name="A">
                                                  <block type="variables_get" id="9jg8JJ07OrK{7;Gi^f.!">
                                                    <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="*v3H.-GSTY4(b-Bl]c=#">
                                                    <field name="NUM">35</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_operation" id="[kZ547FXr^qHfSJ,b9O]">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_operation" id="n?W2p3=?g[+0G*A6rWB?">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="R[bNBGC-C+Xtt4Ql3SPu">
                                            <field name="OP">GT</field>
                                            <value name="A">
                                              <block type="variables_get" id=";DE*i#iei1k9M`gASf^m">
                                                <field name="VAR" id="*@RRl`@7(1BL-eKO5VGI" variabletype="">macd</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="YyZ:r|ym3#wlg/T0G5:C">
                                                <field name="VAR" id="dz)N8~HS!~)34k@@=17%" variabletype="">signal</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_operation" id="kLNzX`[Il6?kE,;(gw*r">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="zcm!KdxZkJ5Ib~uVU6Wg">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block type="variables_get" id="^3WvFSu5_zU__!oo*sSK">
                                                    <field name="VAR" id="E}LCL3#}W0r6pa!2zsWP" variabletype="">histo1</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="variables_get" id="elHYyf@)~A.^*NHWwP4^">
                                                    <field name="VAR" id="WT7.1KR$09d~y$V-e1s}" variabletype="">histo2</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="DopADHxw-{$N9]u+:Ow=">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block type="variables_get" id="EQZ4A}O(m:D-aV?.AU95">
                                                    <field name="VAR" id="WT7.1KR$09d~y$V-e1s}" variabletype="">histo2</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="variables_get" id="PNGTO*eyh_0Ma?PJD#ey">
                                                    <field name="VAR" id="]UJr(qLAx?s*JsY;t9`#" variabletype="">histo3</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_operation" id="mNEtbc:Y{}?O8|bY]8.u">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="+Ee!t.a_ltMVlYJ8*HRM">
                                            <field name="OP">GT</field>
                                            <value name="A">
                                              <block type="variables_get" id="K!$uAqo.k`VYKA8$oy@m">
                                                <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="W(2:yu~Z%Y0|0qnfb6+|">
                                                <field name="NUM">15</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="#DQu?@W]EPomv*TjRS91">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id="(f1$mW2{Kz8I$nriTpV7">
                                                <field name="VAR" id="GoHxV!,*.du#$oe[D5Cz" variabletype="">RSI</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="O~bQAMr3P(-hot/f^*zX">
                                                <field name="NUM">35</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="+Rcfx[jnJ#R%^$!|}QN8">
                    <field name="NOTIFICATION_TYPE">error</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <shadow type="text" id="Mg#*`JO8?H:I[D_`s6-y">
                        <field name="TEXT">EMA &lt; UPPER</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="purchase" id="#S[g|W8Ay9;UI]50J-@0">
                        <field name="PURCHASE_LIST">PUT</field>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="#~F%oMqDXYh;b))W=3OQ" collapsed="true" x="-196" y="341">
    <field name="NAME">Martingale Trade Amount</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="G3}r1:CY9=mGVy^WpSHQ">
        <value name="IF0">
          <block type="logic_compare" id="w]D4W|WZ=k!u)vw@v*oX">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="dp=c^V5G.v~e_Fq.WY5(">
                <field name="VAR" id="B}f-GMyG;~[lB8:Tv*8)" variabletype="">martingale:expectedProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="logic_null" id="YWTU}k6E?e%H`I8M@ilT"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="C--Kz%?tA5sLD=)gNF=?">
            <field name="VAR" id="B}f-GMyG;~[lB8:Tv*8)" variabletype="">martingale:expectedProfit</field>
            <value name="VALUE">
              <block type="text_prompt_ext" id="EY1WY]Zo!_@C4x7Glj6u">
                <mutation type="NUMBER"></mutation>
                <field name="TYPE">NUMBER</field>
                <value name="TEXT">
                  <shadow type="text" id="mh~sSMi|RLxeY*LH?d_!">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text" id="3;=v)Ck:QB~#]Pl]}Zvz">
                    <field name="TEXT">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="dn8*q3[.^)+*NF5*DeLU">
            <value name="IF0">
              <block type="logic_compare" id="06JjRs(:Y=UnR_[O0Uas">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="6UGhY3_+F*rXm/iT5}2%">
                    <field name="VAR" id="bc5#ReyRD@d@=gc5bLkD" variabletype="">martingale:maximumLoss</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_null" id="/PHi!KeT[2y0ad6$1*i="></block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="*zkl$p2)r:-9@ei3(Xjz">
                <field name="VAR" id="bc5#ReyRD@d@=gc5bLkD" variabletype="">martingale:maximumLoss</field>
                <value name="VALUE">
                  <block type="text_prompt_ext" id="1-:~`vAtzm}/C0b(gmqA">
                    <mutation type="NUMBER"></mutation>
                    <field name="TYPE">NUMBER</field>
                    <value name="TEXT">
                      <shadow type="text" id="gch3Mfa@O={LT-@-M=sC">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text" id="dqy:A;sz[r|xkxRxXpsp">
                        <field name="TEXT">Maximum Loss Amount</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="oTScFu5@qO5Tq6rX_~_q">
                <value name="IF0">
                  <block type="logic_compare" id="Hrw2-:cqpOk[~i!hjd.{">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="DyzrYnUv:2_sl@n$6}7y">
                        <field name="VAR" id="84:-Dsn;4aAS(^JoQiB." variabletype="">martingale:amount</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_null" id="+JnQfRIUz_M,G0p$o=Zg"></block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="L{JOHbZ?,IO-zV,0.|G8">
                    <field name="VAR" id="84:-Dsn;4aAS(^JoQiB." variabletype="">martingale:amount</field>
                    <value name="VALUE">
                      <block type="text_prompt_ext" id="FNj]:X0P@u?)-qZ{M$aP">
                        <mutation type="NUMBER"></mutation>
                        <field name="TYPE">NUMBER</field>
                        <value name="TEXT">
                          <shadow type="text" id="mh~sSMi|RLxeY*LH?d_!">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text" id="[_JN!Jrn6G`@~n]ir%u)">
                            <field name="TEXT">Trade Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="No6nhl:q1D.pwK;r0})J">
                    <value name="IF0">
                      <block type="logic_compare" id="*e|xQmt:(pFptLy:X9XB">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="]j~z@{*DoQsurp0hRo,*">
                            <field name="VAR" id="W,UJTDw)#-$_3SN9Mhjn" variabletype="">martingale:size</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_null" id="7;Sc)8HAmXZ!V~MXPb%f"></block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="kiYwO#b)N[Fu2(4s@{.0">
                        <field name="VAR" id="W,UJTDw)#-$_3SN9Mhjn" variabletype="">martingale:size</field>
                        <value name="VALUE">
                          <block type="math_number" id="Pv5XB*G#D]m*/O%p4@+7">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="?WM^1;kGNc+~JX#o5ug.">
                        <value name="IF0">
                          <block type="logic_compare" id="xwQUv6{M3z+1ZQq(I9mA">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="7HlFxa5pfb.jIUR@fDjl">
                                <field name="VAR" id="agqnu@|LMaCC@tuH;{,8" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_null" id="mECo((RgCof[BNQ8LNtF"></block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="f=(9[,29g^CwUdD#L1[u">
                            <field name="VAR" id="agqnu@|LMaCC@tuH;{,8" variabletype="">martingale:totalProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="{*FSn/$(rhIiLVSoUK!U">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="JjiFzh*LfR3=PHXm{8J@">
        <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="%L}q)@g_(Xtt!/#p,y-|">
            <field name="VAR" id="W,UJTDw)#-$_3SN9Mhjn" 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="Lv}xYU^Po$#w=;tS/vEc">
            <field name="VAR" id="84:-Dsn;4aAS(^JoQiB." variabletype="">martingale:amount</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="tick_analysis" id="Ll{Nxnt8p9^vPOay?~jv" collapsed="true" x="98" y="340">
    <statement name="TICKANALYSIS_STACK">
      <block type="variables_set" id="4P8C*XV4QQ1*1)K^^1YP">
        <field name="VAR" id="68Ca!ADlAGGZFqKmigEv" variabletype="">SMA 25</field>
        <value name="VALUE">
          <block type="sma" id="1T1c:7T.XTQ95FHKNjxJ">
            <value name="INPUT">
              <block type="ticks" id="r^fZ/aRGEFq~a4eo@`rQ"></block>
            </value>
            <value name="PERIOD">
              <shadow type="math_number" id="FEvz.7mT|:G^|8YP%}(|">
                <field name="NUM">25</field>
              </shadow>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="7qlQ3-X:Ifp7]rMU6d0b">
            <field name="VAR" id="l,?7`7(hEu8C(f*6MrNA" variabletype="">SMA 30</field>
            <value name="VALUE">
              <block type="sma" id="hZ/w)gtpG)I1].MyJdj,">
                <value name="INPUT">
                  <block type="ticks" id="uFsm+3@ZXK/qmt(7f}J)"></block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="bt`]W#pO2=:;-]_)q@S:">
                    <field name="NUM">30</field>
                  </shadow>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="0+tuxX{Y`]MK`/Yt+J9V">
                <field name="VAR" id="ilB~iTyNZj1xy/,;/)EE" variabletype="">SMA 35</field>
                <value name="VALUE">
                  <block type="sma" id=":2b8UK:D3ETx:T!0%O`i">
                    <value name="INPUT">
                      <block type="ticks" id="t1^V$SAx4}_BM;Cg4!?_"></block>
                    </value>
                    <value name="PERIOD">
                      <shadow type="math_number" id="P4uC-?]go=!OR?3z,(FB">
                        <field name="NUM">35</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="~W/%ygiAwfnAl[Mx5sJj">
                    <field name="VAR" id="!0H/xdi#tRS/Dn@.Y#}}" variabletype="">SMA 40</field>
                    <value name="VALUE">
                      <block type="sma" id="z=kf*fNc}gK|bL)-,a;c">
                        <value name="INPUT">
                          <block type="ticks" id="I2^33$y7$@cZ9^eqR`k="></block>
                        </value>
                        <value name="PERIOD">
                          <shadow type="math_number" id="KYs?oene6z8iy.lCr4J{">
                            <field name="NUM">40</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="aFC{2dg0UF5[7Iza-fZB">
                        <field name="VAR" id="8XNXC7,G=3}N6Ng+|+[a" variabletype="">SMA 45</field>
                        <value name="VALUE">
                          <block type="sma" id="Ks;SmA~gH%Dn}VF3oSK4">
                            <value name="INPUT">
                              <block type="ticks" id="x]m[*FmEGnhk{S5qMYRo"></block>
                            </value>
                            <value name="PERIOD">
                              <shadow type="math_number" id="52xS.xwM4fO!t}P70ulI">
                                <field name="NUM">45</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="]}r9VR-*x`1.y+s2:%|n">
                            <field name="VAR" id=")AMs%h46.9[iF=TFDTHk" variabletype="">SMA 50</field>
                            <value name="VALUE">
                              <block type="sma" id="WSN7UJZ3c!vt%r|j:ro4">
                                <value name="INPUT">
                                  <block type="ticks" id="KWKw0@.~RQSe!Il8%u;B"></block>
                                </value>
                                <value name="PERIOD">
                                  <shadow type="math_number" id="c6O96(T{QsR2N@Q]eX1Y">
                                    <field name="NUM">50</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="X[gun7Sx6Shn3kldC}mZ" collapsed="true" x="-198" y="397">
    <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 Trade Again After Purchase">
              <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="64kCOboN,m?aZaa+7(,?"></block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="tick_analysis" id="%Tc-BTe;B2?Fr,ajxC9f" collapsed="true" x="109" y="403">
    <statement name="TICKANALYSIS_STACK">
      <block type="variables_set" id="`--/oK%|-y:^;]ccrhvc">
        <field name="VAR" id="%YQj.I)J|QdS(]u+;1B8" variabletype="">UPTREND</field>
        <value name="VALUE">
          <block type="logic_operation" id="QfX}mF,$]5oFB}YQIu$7" inline="false">
            <field name="OP">AND</field>
            <value name="A">
              <block type="logic_operation" id="yE}D$h5ZyCv$ey8L~7||" inline="false">
                <field name="OP">AND</field>
                <value name="A">
                  <block type="logic_compare" id="5P]Fj+2PWZ5987C7PS{{">
                    <field name="OP">GT</field>
                    <value name="A">
                      <block type="tick" id="*oO*Yfl2ST*@{(+jn7rM"></block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="DZxzLzqdfuNIulDp.Q5X">
                        <field name="VAR" id="68Ca!ADlAGGZFqKmigEv" variabletype="">SMA 25</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_compare" id="Q:i,BlKjZPWsh:Q8hu7}">
                    <field name="OP">GT</field>
                    <value name="A">
                      <block type="variables_get" id="cNr(=-|nkvKj]8I6F_~g">
                        <field name="VAR" id="68Ca!ADlAGGZFqKmigEv" variabletype="">SMA 25</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="#HUF`..0Uc2=e;M+A;En">
                        <field name="VAR" id="l,?7`7(hEu8C(f*6MrNA" variabletype="">SMA 30</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="logic_operation" id="(5en?zc;Z_fn,+ps;Ih2" inline="false">
                <field name="OP">AND</field>
                <value name="A">
                  <block type="logic_operation" id="|goIa%H~mV1Lc71{{Xg4" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="Y7AZw%~c!/EnF.kN~ilL">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="variables_get" id="gJAc+BYC}$=q-Oo#a,hv">
                            <field name="VAR" id="l,?7`7(hEu8C(f*6MrNA" variabletype="">SMA 30</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="MoOUHCIUJ.si,}8e6=pn">
                            <field name="VAR" id="ilB~iTyNZj1xy/,;/)EE" variabletype="">SMA 35</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="VsFDlyZrcCv5[7utDSYG">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="variables_get" id="m@5h$.WqX@D5,L=P:{;Q">
                            <field name="VAR" id="ilB~iTyNZj1xy/,;/)EE" variabletype="">SMA 35</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="eKb%I?Jmrv9tSEM~W)jy">
                            <field name="VAR" id="!0H/xdi#tRS/Dn@.Y#}}" variabletype="">SMA 40</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_operation" id="qT1$Hr6COjiWYyp`Y%~0" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="7Eb?i*bp1W5R{pV%t(DD">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="variables_get" id="|QXx$2Y8{q})JY#Tc(LJ">
                            <field name="VAR" id="!0H/xdi#tRS/Dn@.Y#}}" variabletype="">SMA 40</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="tcBulBn03FyyyZXHKV2c">
                            <field name="VAR" id="8XNXC7,G=3}N6Ng+|+[a" variabletype="">SMA 45</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="HH^-Ltfna9Zl$qTJc0yR">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="variables_get" id="|W0_x.Tc*T/|7GUvn^lD">
                            <field name="VAR" id="8XNXC7,G=3}N6Ng+|+[a" variabletype="">SMA 45</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="/}$~Iy*0{YL|IH(aBKS;">
                            <field name="VAR" id=")AMs%h46.9[iF=TFDTHk" variabletype="">SMA 50</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="J4E;UY_bk;3c..7bta2A">
            <field name="VAR" id=":fKr0g8T5q1Nw~0T@pd8" variabletype="">DOWNTREND</field>
            <value name="VALUE">
              <block type="logic_operation" id="+O)0-UNkLB7bs{-RrzPt" inline="false">
                <field name="OP">AND</field>
                <value name="A">
                  <block type="logic_operation" id="KR](4fw5/s7CaH)TP`}$" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="JrdONdwi5c9dET[D)B/f">
                        <field name="OP">LT</field>
                        <value name="A">
                          <block type="tick" id="cMYm25Omq-WSd,./Z72c"></block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="P57BW+bapXpY}H3X/y!i">
                            <field name="VAR" id="68Ca!ADlAGGZFqKmigEv" variabletype="">SMA 25</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="^,UTC[`4qqYWVg`$1TPS">
                        <field name="OP">LT</field>
                        <value name="A">
                          <block type="variables_get" id="hR4PvvuBT#4AB*7v}s#M">
                            <field name="VAR" id="68Ca!ADlAGGZFqKmigEv" variabletype="">SMA 25</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="d$.@!av_@gJ2@g}08J:#">
                            <field name="VAR" id="l,?7`7(hEu8C(f*6MrNA" variabletype="">SMA 30</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_operation" id="xN6Svj9~fL2.%Q-|)gR." inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_operation" id="l8X(a.pz!Zu_ndQQNE1R" inline="false">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_compare" id="znZl)T!hr^$jMibC~+x-">
                            <field name="OP">LT</field>
                            <value name="A">
                              <block type="variables_get" id="K8;w*y5r/g#C;}zxQ[ri">
                                <field name="VAR" id="l,?7`7(hEu8C(f*6MrNA" variabletype="">SMA 30</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="q{|/IDY5!hL029}d[`qN">
                                <field name="VAR" id="ilB~iTyNZj1xy/,;/)EE" variabletype="">SMA 35</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="]k=9KQ*gI8mPxfx[1NqS">
                            <field name="OP">LT</field>
                            <value name="A">
                              <block type="variables_get" id="`,QdH.IZ@iymC0mH$]))">
                                <field name="VAR" id="ilB~iTyNZj1xy/,;/)EE" variabletype="">SMA 35</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="iGb3v_3x6q|m9%3yqQE1">
                                <field name="VAR" id="!0H/xdi#tRS/Dn@.Y#}}" variabletype="">SMA 40</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_operation" id="-`L]9Z0]EY/zJbW2T$Ze" inline="false">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_compare" id="H+9F9o=a9_f?EfeS[kP|">
                            <field name="OP">LT</field>
                            <value name="A">
                              <block type="variables_get" id="h3sC:Z{PEJP31T+1^5Oc">
                                <field name="VAR" id="!0H/xdi#tRS/Dn@.Y#}}" variabletype="">SMA 40</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="%)=w[zd]-.w9Pm:^zzUQ">
                                <field name="VAR" id="8XNXC7,G=3}N6Ng+|+[a" variabletype="">SMA 45</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="Mp!,.9t(VDx*.~2=VLv]">
                            <field name="OP">LT</field>
                            <value name="A">
                              <block type="variables_get" id="Rshe~@?_eoC4}RWVi^A6">
                                <field name="VAR" id="8XNXC7,G=3}N6Ng+|+[a" variabletype="">SMA 45</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="fQPcFR{WgOY`1IHZ-{xt">
                                <field name="VAR" id=")AMs%h46.9[iF=TFDTHk" variabletype="">SMA 50</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="nj~Ot?b/Pl^LrUUu5a@1">
                <field name="VAR" id="~eX~gKCaOz[.zr=.Lw^:" variabletype="">SIDEWAY</field>
                <value name="VALUE">
                  <block type="logic_operation" id="PLSHW[neYL({Tcv_Qs2X" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id=",D|E?@@wUXU*^!7./k68">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="PRXF8bT#{w:ot89?=%8r">
                            <field name="VAR" id="%YQj.I)J|QdS(]u+;1B8" variabletype="">UPTREND</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="u=LTP.LMT~d+5?G*25JH">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="xG#B=gUMi+T0](@r0rpk">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="`x?{no9?[w}gInl?V!_3">
                            <field name="VAR" id=":fKr0g8T5q1Nw~0T@pd8" variabletype="">DOWNTREND</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="Hm0-a2CJLFH30{Y?gD1;">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id=":Jnxg*orfSiD,8gO)Mu," collapsed="true" x="-201" y="542">
    <mutation>
      <arg name="martingale:profit" varid="6vtqawoDOFA,(wcV-5T0"></arg>
      <arg name="martingale:resultIsWin" varid="nq@FKzL9MU:/Oz^v%V5!"></arg>
    </mutation>
    <field name="NAME">Martingale Trade Again After Purchase</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="w8m?%]rcr3:Y|Nn,1^Z[">
        <field name="VAR" id="agqnu@|LMaCC@tuH;{,8" 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="J^9ZV@S)H@eG1[saltpB">
            <field name="VAR" id="6vtqawoDOFA,(wcV-5T0" variabletype="">martingale:profit</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="bBy!Va{pMwFR~#gzcOnF">
            <field name="VAR" id="agqnu@|LMaCC@tuH;{,8" variabletype="">martingale:totalProfit</field>
            <value name="VALUE">
              <block type="math_arithmetic" id=",~[[RyMi5)wHnglpxJ|`">
                <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="Lv4::.y^ZoMZ/ifjJAHK">
                    <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="@1RfFzXgQ{l{hGf99[BA">
                        <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="`%2@PIu}=O~W?qdQB1DY">
                            <field name="VAR" id="agqnu@|LMaCC@tuH;{,8" 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="f@YcY14hZd:!xPbo83o6">
                            <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="-$jO=d1e]*O6xVf$rqnn">
                    <field name="NUM">100</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="?k8RE:qgW!ih=[G4LT=D">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="3)^**LJVy5sw2hz1CEyh">
                    <field name="VAR" id="nq@FKzL9MU:/Oz^v%V5!" variabletype="">martingale:resultIsWin</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="notify" id="=_NfnCX/t:mE+vYe?[IU">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="{pUrTp[^e(zd}nw|jxm)">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="m)v[uf.o?4YPLT_O8LAG">
                            <field name="TEXT">VITÃ“RIA :)    </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="R$+UjPG?TjjHM#HXeyU%">
                            <field name="VAR" id="6vtqawoDOFA,(wcV-5T0" variabletype="">martingale:profit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="notify" id="XiB39jFv3|MjB|@^1~32">
                    <field name="NOTIFICATION_TYPE">warn</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="M2W?L8MKT(E6mtu3VO|Q">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="D;T#P$vHkgRi0yYn+1ZE">
                            <field name="TEXT">Loss... VAMOS RECUPERAR!</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="math_single" id="V;g${iOl4lE(JVQmI`{s">
                            <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="eEu6ALRm,[5:JpmCLP!m">
                                <field name="VAR" id="6vtqawoDOFA,(wcV-5T0" variabletype="">martingale:profit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="procedures_callnoreturn" id="A;=@`WVb?f=O^)aMM1Ed">
                    <mutation name="Martingale Core Functionality">
                      <arg name="martingale:resultIsWin"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="variables_get" id="lFg+$mqODk[9cG%$%X1G">
                        <field name="VAR" id="nq@FKzL9MU:/Oz^v%V5!" variabletype="">martingale:resultIsWin</field>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="Rit_8X,/(SEUTw^1;Qo@">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <block type="text_join" id="UEe{[r5/~gO^4=xx3]+k">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="g*mi*vas~!hmQWykSxzp">
                                <field name="TEXT">LUCRO:   </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="45X/HJAJ)Z9#G-Yp*2eU">
                                <field name="VAR" id="agqnu@|LMaCC@tuH;{,8" variabletype="">martingale:totalProfit</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="0uY1t%#Tnwq@VC-6:/~2">
                            <field name="VAR" id="a/3zFys.5qe;=O)s{J]a" variabletype="">martingale:tradeAgain</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="uu!LbG~~,O5tdd{yt^yF">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="v_N)=P}7.5$KwR8/XpxD">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="cuS]*LwpLfY3EG{c*7WL">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="M:~~/VCV?j6nxNv=WJ70">
                                        <field name="VAR" id="agqnu@|LMaCC@tuH;{,8" variabletype="">martingale:totalProfit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="mI1T^$Qx-NM,jf##F3Z#">
                                        <field name="VAR" id="B}f-GMyG;~[lB8:Tv*8)" variabletype="">martingale:expectedProfit</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="Dx?/:^.gei~g0Vt;;Ivt">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="aKJzDHc_Rj!gDL8qbMQ#">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="l@}.NP2~ObYcsxC[1av{">
                                            <field name="VAR" id="6vtqawoDOFA,(wcV-5T0" variabletype="">martingale:profit</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_single" id="Popzhghh#8c)a#md*wjn">
                                            <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="x)0hFM5?*/ND{B*n^~)D">
                                                <field name="VAR" id="bc5#ReyRD@d@=gc5bLkD" variabletype="">martingale:maximumLoss</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="IG*zBxr74Moo~cO3Q!4L">
                                        <field name="VAR" id="a/3zFys.5qe;=O)s{J]a" variabletype="">martingale:tradeAgain</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="tKOG#([u8qz^yh_bGPDS">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="text_print" id=";Bihq63F3AVD:CtUQsOX">
                                        <value name="TEXT">
                                          <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text_join" id="vY1Xhwi?)I06|[aXxxX!">
                                            <mutation items="2"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="|3r(o3.2ubp;1(ou=UHa">
                                                <field name="TEXT">MÃ¡ximo de loss atingido '_'</field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_single" id="wm_Uxshs(qGCSmcbw/nW">
                                                <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="V.{K6Ni7w9F@W^r@(CQf">
                                                    <field name="VAR" id="agqnu@|LMaCC@tuH;{,8" variabletype="">martingale:totalProfit</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="text_print" id="sUkz.CSm;fqpHhm$dg?f">
                                    <value name="TEXT">
                                      <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id=":aS65A8fPkhvq4,gVS+Y">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="KRcdLn^^#MYmGx.I0PmS">
                                            <field name="TEXT">PARABÃ‰NS! VOCÃŠ ATINGIU SUA META! ;)</field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="z-tez-;6O}2akXqOgr`n">
                                            <field name="VAR" id="agqnu@|LMaCC@tuH;{,8" 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="mx;9[FJ=t8qQfl{yER8|">
        <field name="VAR" id="a/3zFys.5qe;=O)s{J]a" variabletype="">martingale:tradeAgain</field>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="o))pP3]Qpw7bh(@cfkhP" collapsed="true" x="-201" y="590">
    <mutation>
      <arg name="martingale:resultIsWin" varid="nq@FKzL9MU:/Oz^v%V5!"></arg>
    </mutation>
    <field name="NAME">Martingale Core Functionality</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="@UP`EUup?@+}KMYj]Hb.">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="variables_get" id=",wa#Evjdl,(qtmy[pA?B">
            <field name="VAR" id="nq@FKzL9MU:/Oz^v%V5!" variabletype="">martingale:resultIsWin</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="[OjS}},20rQ^,YE^TpK6">
            <field name="VAR" id="W,UJTDw)#-$_3SN9Mhjn" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_number" id="G)Z$WOmx)KuyV?|Zw337">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="OBKOgi040Kb;K~#:20Dm">
            <field name="VAR" id="W,UJTDw)#-$_3SN9Mhjn" variabletype="">martingale:size</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="D*U^-%@ou+}G6:LJzw-C">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow type="math_number" id="QujpfOq.d^A8_SMe`uvh">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="Ig@(]]q:?`RZ:oQ=[N1i">
                    <field name="VAR" id="W,UJTDw)#-$_3SN9Mhjn" variabletype="">martingale:size</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="%6%m1;%94AYq9a7`g[u!">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_number" id="%O4AYql6Gp){[q.{Vtg7">
                    <field name="NUM">6.5</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="tick_analysis" id="SL[|PB#JjzvOi!a_l#y6" x="-565" y="669">
    <statement name="TICKANALYSIS_STACK">
      <block type="variables_set" id="pHXS+=c/OAs@9iTbVBO8">
        <field name="VAR" id="CH.XS?c*Uh(#SiyShmpe" variabletype="">UPPER</field>
        <value name="VALUE">
          <block type="bb" id="O}P6B7I16?n}}pL3F#D!">
            <field name="BBRESULT_LIST">1</field>
            <value name="INPUT">
              <block type="ohlc_values" id="eOy5/vZ_++W~}cWv}NtA">
                <field name="OHLCFIELD_LIST">close</field>
                <field name="CANDLEINTERVAL_LIST">60</field>
              </block>
            </value>
            <value name="PERIOD">
              <shadow type="math_number" id="NV2N|F.z72gDyhdwvne)">
                <field name="NUM">10</field>
              </shadow>
            </value>
            <value name="UPMULTIPLIER">
              <shadow type="math_number" id="b~S(YKsMY8j*hPb2HflQ">
                <field name="NUM">1</field>
              </shadow>
            </value>
            <value name="DOWNMULTIPLIER">
              <shadow type="math_number" id="LbyS,YP|Avd0*h+yQgr3">
                <field name="NUM">1</field>
              </shadow>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="Y7W,=%`IY;7TX*B19bnR">
            <field name="VAR" id=",{^9eE+1P7L@hZ;5qe{(" variabletype="">MIDDLE</field>
            <value name="VALUE">
              <block type="bb" id="gsTXv:,=+w{0mpuJtB(S">
                <field name="BBRESULT_LIST">0</field>
                <value name="INPUT">
                  <block type="ohlc_values" id="kzs=wgh,Zj}8F0-nBU1A">
                    <field name="OHLCFIELD_LIST">close</field>
                    <field name="CANDLEINTERVAL_LIST">60</field>
                  </block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="qI2htM`,Hcm=4eo1Y@Xj">
                    <field name="NUM">14</field>
                  </shadow>
                </value>
                <value name="UPMULTIPLIER">
                  <shadow type="math_number" id="4+(UV`+**}G|~h8qNv;j">
                    <field name="NUM">1</field>
                  </shadow>
                </value>
                <value name="DOWNMULTIPLIER">
                  <shadow type="math_number" id="Y`,.2!VFh0K(9*,Uh,h%">
                    <field name="NUM">1</field>
                  </shadow>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="e)QEwHm%WLGWBT|`S{|I">
                <field name="VAR" id="axHiK+|;xavt0l.Ihje." variabletype="">LOWER</field>
                <value name="VALUE">
                  <block type="bb" id="Ljqk;WuMrb}fOk783)mU">
                    <field name="BBRESULT_LIST">2</field>
                    <value name="INPUT">
                      <block type="ohlc_values" id="mHu(;.Ix0~FI,4`{{}m?">
                        <field name="OHLCFIELD_LIST">close</field>
                        <field name="CANDLEINTERVAL_LIST">60</field>
                      </block>
                    </value>
                    <value name="PERIOD">
                      <shadow type="math_number" id="?[PROTECTED EMAIL]{1^@Yx@`E1">
                        <field name="NUM">10</field>
                      </shadow>
                    </value>
                    <value name="UPMULTIPLIER">
                      <shadow type="math_number" id="NUsW.IV$f9}2OIRsN6[C">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                    <value name="DOWNMULTIPLIER">
                      <shadow type="math_number" id="8?Oo:45)2d2S^9yFX]I6">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="yh8r:)NqpilI3ItP{CsG">
                    <field name="VAR" id="#dU7g-dv18=aqB-TMn!]" variabletype="">EMA</field>
                    <value name="VALUE">
                      <block type="ema" id="%Iu@!RNc+D)Kq7uMrQQY">
                        <value name="INPUT">
                          <block type="ohlc_values" id="76%E4}i]O,dc$IJ,46~4">
                            <field name="OHLCFIELD_LIST">close</field>
                            <field name="CANDLEINTERVAL_LIST">60</field>
                          </block>
                        </value>
                        <value name="PERIOD">
                          <shadow type="math_number" id="YO@K9?z7)Td8b];/:?%}">
                            <field name="NUM">3</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="jqL9Wz5VW{x2RjV9)K#K">
                        <field name="VAR" id="E}LCL3#}W0r6pa!2zsWP" variabletype="">histo1</field>
                        <value name="VALUE">
                          <block type="lists_getIndex" id="gP~WFAS+tdnHkJR-+%mW">
                            <mutation statement="false" at="true"></mutation>
                            <field name="MODE">GET</field>
                            <field name="WHERE">FROM_START</field>
                            <value name="VALUE">
                              <block type="macda" id="xq^l`^DijoqVRS.=h{K~">
                                <field name="MACDFIELDS_LIST">0</field>
                                <value name="INPUT">
                                  <block type="ohlc_values" id="(mG.$|rA}1u|=Xbqa]b)">
                                    <field name="OHLCFIELD_LIST">close</field>
                                    <field name="CANDLEINTERVAL_LIST">60</field>
                                  </block>
                                </value>
                                <value name="FAST_EMA_PERIOD">
                                  <shadow type="math_number" id="wIEB5Z4I?d5}U/3jFhe*">
                                    <field name="NUM">12</field>
                                  </shadow>
                                </value>
                                <value name="SLOW_EMA_PERIOD">
                                  <shadow type="math_number" id="8!j@aduOXz06fbAR60|a">
                                    <field name="NUM">26</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                            <value name="AT">
                              <block type="math_number" id="ckPj2|Csiy0v?(6qnyus">
                                <field name="NUM">1</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="1M#47xL|gO/5?rpqOtef">
                            <field name="VAR" id="WT7.1KR$09d~y$V-e1s}" variabletype="">histo2</field>
                            <value name="VALUE">
                              <block type="lists_getIndex" id="hj~61,Ki,97@+A9u[LIT">
                                <mutation statement="false" at="true"></mutation>
                                <field name="MODE">GET</field>
                                <field name="WHERE">FROM_START</field>
                                <value name="VALUE">
                                  <block type="macda" id="KJ53wH9|7%7k95$2;8`8">
                                    <field name="MACDFIELDS_LIST">0</field>
                                    <value name="INPUT">
                                      <block type="ohlc_values" id="~meJ+g/:$4,Ci;jL3oMk">
                                        <field name="OHLCFIELD_LIST">close</field>
                                        <field name="CANDLEINTERVAL_LIST">60</field>
                                      </block>
                                    </value>
                                    <value name="FAST_EMA_PERIOD">
                                      <shadow type="math_number" id=",!%URB6:X#mi6Zo1lhik">
                                        <field name="NUM">12</field>
                                      </shadow>
                                    </value>
                                    <value name="SLOW_EMA_PERIOD">
                                      <shadow type="math_number" id="m)KZ(b|e])Y.)|=F-w*?">
                                        <field name="NUM">26</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                                <value name="AT">
                                  <block type="math_number" id="gi#ZYJq{el/_(o5@7ISO">
                                    <field name="NUM">2</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="_NY6R2b-gY;0!rYy6c`g">
                                <field name="VAR" id="]UJr(qLAx?s*JsY;t9`#" variabletype="">histo3</field>
                                <value name="VALUE">
                                  <block type="lists_getIndex" id="{ojE~7QZi)AOr9`hH8g;">
                                    <mutation statement="false" at="true"></mutation>
                                    <field name="MODE">GET</field>
                                    <field name="WHERE">FROM_START</field>
                                    <value name="VALUE">
                                      <block type="macda" id="*3_?_.R?c)+Xc2{@a2@/">
                                        <field name="MACDFIELDS_LIST">0</field>
                                        <value name="INPUT">
                                          <block type="ohlc_values" id="JSpqaN)dr%y#k-0TDWeh">
                                            <field name="OHLCFIELD_LIST">close</field>
                                            <field name="CANDLEINTERVAL_LIST">60</field>
                                          </block>
                                        </value>
                                        <value name="FAST_EMA_PERIOD">
                                          <shadow type="math_number" id=":,b~sz1%iG/32%?($)rh">
                                            <field name="NUM">12</field>
                                          </shadow>
                                        </value>
                                        <value name="SLOW_EMA_PERIOD">
                                          <shadow type="math_number" id="bzD1g[I+(7Pc=wvrFS[s">
                                            <field name="NUM">26</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="AT">
                                      <block type="math_number" id="co]@WFq;;^9A-gVmPemx">
                                        <field name="NUM">3</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id="%R3,67:[1eT*fB7J4$e8">
                                    <field name="VAR" id="*@RRl`@7(1BL-eKO5VGI" variabletype="">macd</field>
                                    <value name="VALUE">
                                      <block type="lists_getIndex" id="xkh0QwX,(Ac72!9^=#yz">
                                        <mutation statement="false" at="true"></mutation>
                                        <field name="MODE">GET</field>
                                        <field name="WHERE">FROM_START</field>
                                        <value name="VALUE">
                                          <block type="macda" id="SR.ut]CW)_)u38yCJ9HG">
                                            <field name="MACDFIELDS_LIST">1</field>
                                            <value name="INPUT">
                                              <block type="ohlc_values" id="q0MtSrBtkkq!su|K94Hj">
                                                <field name="OHLCFIELD_LIST">close</field>
                                                <field name="CANDLEINTERVAL_LIST">60</field>
                                              </block>
                                            </value>
                                            <value name="FAST_EMA_PERIOD">
                                              <shadow type="math_number" id="BQg5]2.#Vi4V8hDB}wZX">
                                                <field name="NUM">12</field>
                                              </shadow>
                                            </value>
                                            <value name="SLOW_EMA_PERIOD">
                                              <shadow type="math_number" id="a(_Jj}~^MH*QY#$Po8p3">
                                                <field name="NUM">26</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="AT">
                                          <block type="math_number" id="3`-s:?3@0W;|,F!hA[tq">
                                            <field name="NUM">1</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="variables_set" id="vy1VqH[VYT[Avc_MV*}h">
                                        <field name="VAR" id="dz)N8~HS!~)34k@@=17%" variabletype="">signal</field>
                                        <value name="VALUE">
                                          <block type="lists_getIndex" id="J.gvcME;:f;PPWbiyBxn">
                                            <mutation statement="false" at="true"></mutation>
                                            <field name="MODE">GET</field>
                                            <field name="WHERE">FROM_START</field>
                                            <value name="VALUE">
                                              <block type="macda" id="b/zN73?J,R|k]hV_nKk3">
                                                <field name="MACDFIELDS_LIST">2</field>
                                                <value name="INPUT">
                                                  <block type="ohlc_values" id="*COH43eho!bD7}b7U^1)">
                                                    <field name="OHLCFIELD_LIST">close</field>
                                                    <field name="CANDLEINTERVAL_LIST">60</field>
                                                  </block>
                                                </value>
                                                <value name="FAST_EMA_PERIOD">
                                                  <shadow type="math_number" id=")k5qbbqr^n.4%tPgXcT`">
                                                    <field name="NUM">12</field>
                                                  </shadow>
                                                </value>
                                                <value name="SLOW_EMA_PERIOD">
                                                  <shadow type="math_number" id="Rxn-On8@fgWTL|5K+;yI">
                                                    <field name="NUM">26</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="AT">
                                              <block type="math_number" id="~IG|4+2u$8Ov*u|(=vpG">
                                                <field name="NUM">1</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>
