﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <block type="loader" id="G8*bH0yYOiK7:XhZ-!pX" x="-1" y="-41">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block type="trade" id="73vWdDagX-YhN)CtN.3D" x="0" y="0">
    <statement name="SUBMARKET">
      <block type="variables_set" id="U49^X@IPGHKty@k!tC).">
        <field name="VAR">RSI_MAX</field>
        <value name="VALUE">
          <block type="math_number" id="YAx2l!LzPCq})9iG#lp;">
            <field name="NUM">0</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="8FNMpDIs.+5Pt$VL@M:s">
            <field name="VAR">RSI_MIN</field>
            <value name="VALUE">
              <block type="math_number" id="X-(_,J,@B%PHCY|mt3X]">
                <field name="NUM">100</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="#2)TjfNB:ZB)Njqnyt%h">
                <field name="VAR">LOST_MAX_LAST</field>
                <value name="VALUE">
                  <block type="math_number" id="(PA+^yMipeS[f0X%mKGP">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="rjtt4=ZKk#_QWOZ5e`R#">
                    <field name="VAR">LOST_MAX</field>
                    <value name="VALUE">
                      <block type="math_number" id="HVR7dQ%xG%4)t})]-~A8">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="yD%qRjVo!n(yAX$t;7nj">
                        <field name="VAR">ESTRATEGIA</field>
                        <value name="VALUE">
                          <block type="text" id="e[(cx;yE#Izw/Zri^7GY">
                            <field name="TEXT">TENDENCIA</field>
                          </block>
                        </value>
                        <next>
                          <block type="market" id="~T:?7-`j{)c/H5e]d.H9">
                            <field name="MARKET_LIST">volidx</field>
                            <field name="SUBMARKET_LIST">random_index</field>
                            <field name="SYMBOL_LIST">R_100</field>
                            <field name="TRADETYPECAT_LIST">callput</field>
                            <field name="TRADETYPE_LIST">risefall</field>
                            <field name="TYPE_LIST">both</field>
                            <field name="CANDLEINTERVAL_LIST">60</field>
                            <field name="DURATIONTYPE_LIST">t</field>
                            <field name="PAYOUTTYPE_LIST">stake</field>
                            <field name="CURRENCY_LIST">USD</field>
                            <field name="RESTARTONERROR">FALSE</field>
                            <value name="DURATION">
                              <block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
                                <field name="NUM">5</field>
                              </block>
                            </value>
                            <value name="AMOUNT">
                              <block type="procedures_callreturn" id="(;[5M6PB~p9#}Z2%R`--">
                                <mutation name="Martingale Trade Amount"></mutation>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="0" y="398">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="variables_set" id=",k3e|97Q#zy~St|},FIw">
        <field name="VAR">RSI</field>
        <value name="VALUE">
          <block type="rsi" id="L`@9^C8dP8t_eY~kc`z@">
            <value name="INPUT">
              <block type="ohlc_values" id="zfL;*8=+xY4c;D.a+BNG">
                <field name="OHLCFIELD_LIST">close</field>
              </block>
            </value>
            <value name="PERIOD">
              <block type="math_number" id="M`iwUevPD`7AM;@a_lxL">
                <field name="NUM">14</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="controls_if" id="u*UZGZW8~$oj}gN3#vNT">
            <value name="IF0">
              <block type="logic_compare" id="X)};r*Pb}2t=b^I}eC}r">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="variables_get" id="GwpeyM:@ZG$}Tb4W=Euu">
                    <field name="VAR">RSI</field>
                  </block>
                </value>
                <value name="B">
                  <block type="variables_get" id="8v(SZ2v_|ZuoIkf2~o3U">
                    <field name="VAR">RSI_MAX</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="QY+A]vxBvuOU*~G:YIIy">
                <field name="VAR">RSI_MAX</field>
                <value name="VALUE">
                  <block type="variables_get" id="!YFwZ$:*Q{O+Pk8P[oNA">
                    <field name="VAR">RSI</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="r367;PZJ632dkJ7l;_Cw">
                <value name="IF0">
                  <block type="logic_compare" id="5wdlJ@m;hATfNib[wvm/">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="variables_get" id="N`OV/I?iv7hIJ#W~G)pX">
                        <field name="VAR">RSI</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="C-GhMr@Zv#|GkpV20u#Y">
                        <field name="VAR">RSI_MIN</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="90I;l^9}$4rAtdGY:w]c">
                    <field name="VAR">RSI_MIN</field>
                    <value name="VALUE">
                      <block type="variables_get" id="7DSD6xSQ~cOmtRSgR{X1">
                        <field name="VAR">RSI</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="notify" id="4j*WE#o_NNx~IV15b)c!">
                    <field name="NOTIFICATION_TYPE">info</field>
                    <value name="MESSAGE">
                      <block type="text_join" id="Swd-H|7RNv8joS-*cj@@">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="xc4ms#,Qcg5cG*$ZhgUR">
                            <field name="TEXT">Estrategia:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="D$A1n,+gyJN}Zg`a`htg">
                            <field name="VAR">ESTRATEGIA</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="notify" id="d6hoYghe$|5gGM!Uw4^E">
                        <field name="NOTIFICATION_TYPE">info</field>
                        <value name="MESSAGE">
                          <block type="text_join" id="0}QaY20UMMh`;6uUyJJV">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="rycoAM.71-1g2W0KNs9N">
                                <field name="TEXT">RSI: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="@6r^:%J(M%u/C:m.1,np">
                                <field name="VAR">RSI</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="notify" id="Iy8380lK`fUF(om%c_+~">
                            <field name="NOTIFICATION_TYPE">success</field>
                            <value name="MESSAGE">
                              <block type="text_join" id=")/8W9)La+#y48Ml!U_O-">
                                <mutation items="2"></mutation>
                                <value name="ADD0">
                                  <block type="text" id="Lu.i6w#l=l=hlu.)mRZs">
                                    <field name="TEXT">RSI_MAX: </field>
                                  </block>
                                </value>
                                <value name="ADD1">
                                  <block type="variables_get" id="btV(*i,{EBS]irTT!=xI">
                                    <field name="VAR">RSI_MAX</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="notify" id="F^P5l4aH0yk{T32_NB{_">
                                <field name="NOTIFICATION_TYPE">error</field>
                                <value name="MESSAGE">
                                  <block type="text_join" id="QdJHHetXJI7ndwSR4{T_">
                                    <mutation items="2"></mutation>
                                    <value name="ADD0">
                                      <block type="text" id="nY5@#6^@Z(d2V%(NBQwy">
                                        <field name="TEXT">RSI_MIN: </field>
                                      </block>
                                    </value>
                                    <value name="ADD1">
                                      <block type="variables_get" id="b#@!(yCt4P8,E{Nl)O{B">
                                        <field name="VAR">RSI_MIN</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="notify" id="Okq`Z6xI~nT?O!cCKv)t">
                                    <field name="NOTIFICATION_TYPE">warn</field>
                                    <value name="MESSAGE">
                                      <block type="text_join" id="rKk@PtVd[]M+3iD8NDPu">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="F*@5lw{B(-Cpy@k/swoV">
                                            <field name="TEXT">LOST_MAX:</field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="|ec-wk0O?}!f~BB036[y">
                                            <field name="VAR">LOST_MAX</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="controls_if" id="OR/7e8}uBnt!z_N{@C[b">
                                        <mutation elseif="1" else="1"></mutation>
                                        <value name="IF0">
                                          <block type="logic_compare" id="mWTRy5OIQd%fjt5Q=74r">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="variables_get" id="lJ?uJ-JC6/GcOHeoZ?DJ">
                                                <field name="VAR">ESTRATEGIA</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="text" id="SMJP`vH1^vAbU${{p@7v">
                                                <field name="TEXT">RSI</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="controls_if" id="s{kS1BqXYXkG~l9wQ|Ed">
                                            <mutation else="1"></mutation>
                                            <value name="IF0">
                                              <block type="logic_compare" id="}[99+Ny4yVf;!J=sZqZK">
                                                <field name="OP">GTE</field>
                                                <value name="A">
                                                  <block type="variables_get" id="ul@Ju8.3^:D(c;@fpL8Y">
                                                    <field name="VAR">RSI</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="variables_get" id="p:QWN;Joe|C:$dxAa|q0">
                                                    <field name="VAR">RSI_MAX</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
                                                <field name="PURCHASE_LIST">PUT</field>
                                              </block>
                                            </statement>
                                            <statement name="ELSE">
                                              <block type="controls_if" id=".w6#:3YN02iJYEn~*zeO">
                                                <value name="IF0">
                                                  <block type="logic_compare" id="J8fPxAVJ=pJRsvb2*/,2">
                                                    <field name="OP">LTE</field>
                                                    <value name="A">
                                                      <block type="variables_get" id="j/)Z{xC~w:%S~.$tPFcW">
                                                        <field name="VAR">RSI</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="variables_get" id="w/Z|qUt=o^Q1ACAkf1j,">
                                                        <field name="VAR">RSI_MIN</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="purchase" id=")5}r:1X[+$9M7t|Yj`#$">
                                                    <field name="PURCHASE_LIST">CALL</field>
                                                  </block>
                                                </statement>
                                              </block>
                                            </statement>
                                          </block>
                                        </statement>
                                        <value name="IF1">
                                          <block type="logic_compare" id="![h(Qt6Nj?K%:|ocg/TH">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="variables_get" id="{.N-I`aQ[7HIcCry.)z?">
                                                <field name="VAR">ESTRATEGIA</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="text" id="ZjtMMEymfeN[%[KX0+vl">
                                                <field name="TEXT">TENDENCIA</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO1">
                                          <block type="controls_if" id="i^y1-),y7~|#4?F~nZ_|">
                                            <mutation else="1"></mutation>
                                            <value name="IF0">
                                              <block type="logic_compare" id="!WkMU~7t-BaX/6mu`-0^">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="variables_get" id="nFY.TxN+a_J`Np?^d:2c">
                                                    <field name="VAR">UP_DOWN</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="text" id="+b{$akN|O+G6jWK%I;^P">
                                                    <field name="TEXT">UP</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="purchase" id="iEC?XKkjr/}y*U+60I,N">
                                                <field name="PURCHASE_LIST">CALL</field>
                                              </block>
                                            </statement>
                                            <statement name="ELSE">
                                              <block type="purchase" id="@5$RB6|F?Ws{|s)a6(3k">
                                                <field name="PURCHASE_LIST">PUT</field>
                                              </block>
                                            </statement>
                                          </block>
                                        </statement>
                                        <statement name="ELSE">
                                          <block type="controls_if" id="|LS?zQ5rX5$8=-5^!0!a">
                                            <mutation else="1"></mutation>
                                            <value name="IF0">
                                              <block type="logic_compare" id="E:zwvRtvW62L*!?-@?6I">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="variables_get" id="jx[c`r_~`XrtEq_A,GNZ">
                                                    <field name="VAR">UP_DOWN</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="text" id="2)`5e[cW3db1c,$;2*ze">
                                                    <field name="TEXT">UP</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="purchase" id="I=;5DIr@oq0=*K,R%tKb">
                                                <field name="PURCHASE_LIST">PUT</field>
                                              </block>
                                            </statement>
                                            <statement name="ELSE">
                                              <block type="purchase" id="vN#vWYcC:/TcIja[mU[$">
                                                <field name="PURCHASE_LIST">CALL</field>
                                              </block>
                                            </statement>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="variables_set" id="zz|aW3F3{dp_i{0@{Fhm">
                                            <field name="VAR">RSI_MIN</field>
                                            <value name="VALUE">
                                              <block type="math_arithmetic" id="$^lmksKi-lIsZWYDDy`W">
                                                <field name="OP">ADD</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="Y$=Lg+0xm0a2/A).=KZ#">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id="I|3Zlv?9OTUin$?^h9-7">
                                                    <field name="VAR">RSI_MIN</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="hH2{,f,AN2}s|@{}w+l.">
                                                    <field name="NUM">0.1</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id="BNDow*G/$)36jCP2w##m">
                                                <field name="VAR">RSI_MAX</field>
                                                <value name="VALUE">
                                                  <block type="math_arithmetic" id=";S|]9U3Bm*oY)pD3cGKB">
                                                    <field name="OP">MINUS</field>
                                                    <value name="A">
                                                      <shadow type="math_number" id="Y$=Lg+0xm0a2/A).=KZ#">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="variables_get" id="weYrvn=xR+CUr~F[^Lz5">
                                                        <field name="VAR">RSI_MAX</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id="xR=};SA(^gV|l+9M^-Zt">
                                                        <field name="NUM">0.1</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="0" y="1517">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="77OBGUl!VF6.]JG)(mq|">
        <value name="IF0">
          <block type="contract_check_result" id="Z!P8r8f7r6jhvKb/P2RY">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="controls_if" id="sI2KvTx:|#0|`=92ky^9">
            <mutation elseif="1" else="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="%.U!fG;%Ol9m3rW)zK?~">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="D!@rDnxy0K2RVp;^7$$I">
                    <field name="VAR">ESTRATEGIA</field>
                  </block>
                </value>
                <value name="B">
                  <block type="text" id="X7{C}7`@-[ddwj6Y=1|/">
                    <field name="TEXT">RSI</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="controls_if" id="0jtD6JZt`UdW5#0O.J~$">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="e]@a~Uzm1BGsW?WqcK6-">
                    <field name="OP">NEQ</field>
                    <value name="A">
                      <block type="variables_get" id="Trb?*|}wA5sxh*j4!b@o">
                        <field name="VAR">UP_DOWN</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="text" id="Q{.CG@h4},m*,tku89bf">
                        <field name="TEXT">UP</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="M{cVTrhheG*zOirnbq][">
                    <field name="VAR">UP_DOWN</field>
                    <value name="VALUE">
                      <block type="text" id="rk_wmn)^f|v`GkC_-/7T">
                        <field name="TEXT">UP</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="variables_set" id="spI%;cMgCkR}xjZ)S$X$">
                    <field name="VAR">UP_DOWN</field>
                    <value name="VALUE">
                      <block type="text" id="6h-$_]eM;(J[S?]:S=+F">
                        <field name="TEXT">DOWN</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </statement>
            <value name="IF1">
              <block type="logic_compare" id="mTE|Ff?0vsc*Z5|5~Lxc">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="5Iee!z{tFQe(Mlpsq94K">
                    <field name="VAR">ESTRATEGIA</field>
                  </block>
                </value>
                <value name="B">
                  <block type="text" id="zxM_Pm%/yas68Z=i(/zA">
                    <field name="TEXT">TENDENCIA</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO1">
              <block type="controls_if" id="@V^]p;xp2FZ#-`1w%yab">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="jBjDC0Ux{4;K$ji=l22I">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id=".n`/02U3.7+E(6SQJh(+">
                        <field name="VAR">UP_DOWN</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="text" id="@:jjB-!3NhtK#)fUHBVq">
                        <field name="TEXT">UP</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="#c][8cBMKHz(aF-WWcU[">
                    <field name="VAR">UP_DOWN</field>
                    <value name="VALUE">
                      <block type="text" id="}6aQ]vo7I2~YC0kf8L]t">
                        <field name="TEXT">UP</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="variables_set" id="qvepsZGiv-l]1,I-D}#x">
                    <field name="VAR">UP_DOWN</field>
                    <value name="VALUE">
                      <block type="text" id="zze4$w4V`45+/@!HpK%j">
                        <field name="TEXT">DOWN</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="variables_set" id="X_2$O33GFPoq*YVX,.`b">
                    <field name="VAR">LOST_MAX_LAST</field>
                    <value name="VALUE">
                      <block type="math_number" id="K2HpEwAegm+/p,srop--">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="controls_if" id="e8{`1l8;qW*^7;ExsyKJ">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="?pe}^0f91m]QOc|gQxC$">
                    <field name="OP">NEQ</field>
                    <value name="A">
                      <block type="variables_get" id="$LTn([Fk0Cx6ve:C;+8U">
                        <field name="VAR">UP_DOWN</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="text" id="T$L5/k;]K0Uwg{oX[RtK">
                        <field name="TEXT">UP</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="E7g!PkAZWPwfs$*HjxCY">
                    <field name="VAR">UP_DOWN</field>
                    <value name="VALUE">
                      <block type="text" id="*`K])(BnD-xzH]9;9Tm%">
                        <field name="TEXT">UP</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="variables_set" id=")geTwI)J3kkV,U.)Z^Sq">
                    <field name="VAR">UP_DOWN</field>
                    <value name="VALUE">
                      <block type="text" id="NKVilqCfm+5^txEP+_^L">
                        <field name="TEXT">DOWN</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="@6w_!NzrD(Lsn-z?=`GB">
            <value name="IF0">
              <block type="contract_check_result" id="zm87}U/~V5eGvDdVk0rN">
                <field name="CHECK_RESULT">loss</field>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="T`nH,`h%4`Obj`TCG0uw">
                <field name="VAR">LOST_MAX_LAST</field>
                <value name="VALUE">
                  <block type="math_arithmetic" id="t(@Zja5TStCX$44Msz?}">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="Y$=Lg+0xm0a2/A).=KZ#">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="]U!`X_w,5=+i7N6g|4jG">
                        <field name="VAR">LOST_MAX_LAST</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="G@-~{.7VG;U-*fk;@{_@">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="*S0Hk7wOF6i)5`hqE};h">
                    <value name="IF0">
                      <block type="logic_compare" id="ZYIxLL;m%8ML0d]Ct83n">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="variables_get" id=":2,Ki.GH-fE_|)#${lme">
                            <field name="VAR">LOST_MAX_LAST</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="%U=K`VHP:h0))O!o/+0L">
                            <field name="VAR">LOST_MAX</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="+lDOWjSF?%Y$n*~pXIci">
                        <field name="VAR">LOST_MAX</field>
                        <value name="VALUE">
                          <block type="variables_get" id="ywRdYj!|41az.2fS-|.$">
                            <field name="VAR">LOST_MAX_LAST</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="Zno:mO!kX$E-![Z*u|}W">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="~fksIXq06[br4iPOE4{H">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="RpCEu3[B:?nbI~ak|kOf">
                                <field name="VAR">ESTRATEGIA</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="text" id="oOFH^cg)y.p{i1v,e*b:">
                                <field name="TEXT">RSI</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="controls_if" id="B#c~VQS9p`N65kR43el)">
                            <mutation else="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="_|X`S!N2!+._!oDj1v:K">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="variables_get" id="u$F1oJo`Co]AYELm_)@9">
                                    <field name="VAR">UP_DOWN</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="F46XX{xd[e0]pI=jYIE7">
                                    <field name="TEXT">UP</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="r?nC8J4)t4`1{;/1S@D%">
                                <field name="VAR">UP_DOWN</field>
                                <value name="VALUE">
                                  <block type="text" id="_`S0MFv!ber}6Qt(_.{{">
                                    <field name="TEXT">UP</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <statement name="ELSE">
                              <block type="variables_set" id="drOs:WC!Cm_=NjBvjR^S">
                                <field name="VAR">UP_DOWN</field>
                                <value name="VALUE">
                                  <block type="text" id="nAegYr+.9~H-m`..E5B_">
                                    <field name="TEXT">DOWN</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <statement name="ELSE">
                          <block type="controls_if" id="bK41)qm7f1Drf2u-)$=[">
                            <mutation else="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="zc4sA5t+V-z:nl](iyS=">
                                <field name="OP">NEQ</field>
                                <value name="A">
                                  <block type="variables_get" id="%%/Ud(zsod:{wZ!]|1@H">
                                    <field name="VAR">UP_DOWN</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="l5~H/FC^2Pt^-G}q],cp">
                                    <field name="TEXT">UP</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="kpr5vY)|M)aPr#;ScG]e">
                                <field name="VAR">UP_DOWN</field>
                                <value name="VALUE">
                                  <block type="text" id="AhAyrS,kk_mTEM7ClW1~">
                                    <field name="TEXT">UP</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <statement name="ELSE">
                              <block type="variables_set" id="Lx|0(XQF[bD25cP}r6fZ">
                                <field name="VAR">UP_DOWN</field>
                                <value name="VALUE">
                                  <block type="text" id="XyNO8oBGF*)%IU%/nXfP">
                                    <field name="TEXT">DOWN</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="}`mp(@E0ut!*_mAv=?2#">
                            <mutation elseif="1" else="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="Egd}!{9${Hi,R;mt*mIX">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="variables_get" id="?L`q,KzQ]IX~Xo_8k6,y">
                                    <field name="VAR">ESTRATEGIA</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id=".0ew=LsvExnrsAxvd$z,">
                                    <field name="TEXT">TENDENCIA</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="ySfwv{#HdjF]i(^92qif">
                                <field name="VAR">ESTRATEGIA</field>
                                <value name="VALUE">
                                  <block type="text" id="XQblXWgSz%I4N)MT#XY`">
                                    <field name="TEXT">RSI</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <value name="IF1">
                              <block type="logic_compare" id="^7I8s@I8,qmX~a!b):lN">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="variables_get" id="D!D^:yLBpDHn|c/*mwy]">
                                    <field name="VAR">ESTRATEGIA</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="p(`Ukg`5h);I3qxCpV.Q">
                                    <field name="TEXT">RSI</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO1">
                              <block type="variables_set" id="m|N2S1SGg-Em-MsA2ek,">
                                <field name="VAR">ESTRATEGIA</field>
                                <value name="VALUE">
                                  <block type="text" id="m4PZ+2xX1r^rU9}s59##">
                                    <field name="TEXT">INVERTIDA</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <statement name="ELSE">
                              <block type="variables_set" id="9Jmt`2)O|_yLV!Pv}s7o">
                                <field name="VAR">ESTRATEGIA</field>
                                <value name="VALUE">
                                  <block type="text" id="7{b1_WJ)@J397R)w~HIu">
                                    <field name="TEXT">TENDENCIA</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="#=yO.C1rn7n]Zw*%E1AI">
                <value name="IF0">
                  <block type="procedures_callreturn" id=")5H0+av/lasc#QI6to2^">
                    <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="75pm)W(P#O~lD+G,KU0p"></block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>