﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <block type="loader" id="G8*bH0yYOiK7:XhZ-!pX" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
  </block>
  <block type="trade" id=")inu*9KBx=?O=ZEkmjl_" x="0" y="53">
    <statement name="SUBMARKET">
      <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="iyM|fokS,yn8jsIPH{qN">
            <field name="VAR">LOST_MAX</field>
            <value name="VALUE">
              <block type="math_number" id="WSu=C=8TG1t=DKhUWAyH">
                <field name="NUM">0</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="!mCqh{.@3?8[fm1.7~^{">
                <field name="VAR">martingale:amount</field>
                <value name="VALUE">
                  <block type="math_number" id=":9@NS[@zkeEc=|:ku-bc">
                    <field name="NUM">0.76</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="P}t6g|yXib=?s2H@j/|*">
                    <field name="VAR">martingale:expectedProfit</field>
                    <value name="VALUE">
                      <block type="math_number" id="Jo)!/%Fn|V.Iffxsf46q">
                        <field name="NUM">5</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="g|kno2P@iV`90kB3v$l?">
                        <field name="VAR">martingale:maximumLoss</field>
                        <value name="VALUE">
                          <block type="math_number" id="NcNd@}S:|Uli}v_4T4V2">
                            <field name="NUM">10</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="fOyoc/SNnXVY8u#4[pi_">
                            <field name="VAR">Contract Type</field>
                            <value name="VALUE">
                              <block type="text" id="h-u-=h}7F%^PJ^:Yb6h$">
                                <field name="TEXT">DOWN</field>
                              </block>
                            </value>
                            <next>
                              <block type="market" id="kuvDky08AB9p$:4j-FW9">
                                <field name="MARKET_LIST">volidx</field>
                                <field name="SUBMARKET_LIST">random_index</field>
                                <field name="SYMBOL_LIST">R_100</field>
                                <field name="TRADETYPECAT_LIST">asian</field>
                                <field name="TRADETYPE_LIST">asians</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="jFf?/QhNYU(`5|8/[[N2">
                                    <field name="NUM">5</field>
                                  </block>
                                </value>
                                <value name="AMOUNT">
                                  <block type="procedures_callreturn" id="@uXod$$=Tt$}6Vt`!$vo">
                                    <mutation name="Martingale Trade Amount"></mutation>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="X[gun7Sx6Shn3kldC}mZ" x="893" y="60">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="1-c,VlN:,{n1.F271)z.">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="}I,%h*R43lliT%QzYNqC">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="controls_if" id="P?.YnyyBGB,!js~P,TsJ">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="%2*J-BW6[ktl,NW=z?.t">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="D%Du/lf^JVp#]AC5{W.F">
                    <field name="VAR">Contract Type</field>
                  </block>
                </value>
                <value name="B">
                  <block type="text" id="rGedI3B,0Kd]7[O{@4Ps">
                    <field name="TEXT">DOWN</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="~.@s#y{,D8S:2|?[NAfo">
                <field name="VAR">Contract Type</field>
                <value name="VALUE">
                  <block type="text" id="cw|7IQ];h,G:TuKNu@7L">
                    <field name="TEXT">UP</field>
                  </block>
                </value>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="variables_set" id="J:f@Gx4jV?m3b+2z)7lI">
                <field name="VAR">Contract Type</field>
                <value name="VALUE">
                  <block type="text" id="|UzX[fs*xRK@Jq?Y9w7d">
                    <field name="TEXT">DOWN</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="variables_set" id="Iz}km[F%zc/La:[r2*qo">
                <field name="VAR">LOST_MAX_LAST</field>
                <value name="VALUE">
                  <block type="math_number" id="ZG7O6ihEEm_OW7bdv^N,">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <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">Contract Type</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">Contract Type</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">Contract Type</field>
                <value name="VALUE">
                  <block type="text" id="zze4$w4V`45+/@!HpK%j">
                    <field name="TEXT">DOWN</field>
                  </block>
                </value>
              </block>
            </statement>
          </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=",VG2~pX|wvNj6hMyw=%~"></block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="*Q[~K|v:Sg)bHrl+VA1N" x="0" y="467">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="i^y1-),y7~|#4?F~nZ_|">
        <mutation elseif="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">Contract Type</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="Q;`vp48|v7pG%t@W6`uQ">
            <field name="PURCHASE_LIST">ASIANU</field>
          </block>
        </statement>
        <value name="IF1">
          <block type="logic_compare" id="%yhN~3:_V+xTdF)Bn#c#">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="#=mn$^(PB+EUJ#cFj_Y6">
                <field name="VAR">Contract Type</field>
              </block>
            </value>
            <value name="B">
              <block type="text" id="[?dp[FgN%8c-qc`yEB#H">
                <field name="TEXT">DOWN</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO1">
          <block type="purchase" id="@5$RB6|F?Ws{|s)a6(3k">
            <field name="PURCHASE_LIST">ASIAND</field>
          </block>
        </statement>
      </block>
    </statement>
  </block>
</xml>