﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="bVo=RyN07ovB=`TJ{c];">_targetProfit(ex:25)</variable>
    <variable type="" id="54}eqOTcHLPH6=,w[YfR">_stopLoss(ex:200)</variable>
    <variable type="" id="9Hl8t?^;B_hWUHV{8Zv5">_initialStake(ex:1)</variable>
    <variable type="" id="BO!1Xz3M$pFBYT3^Wrr,">_martingale(ex:1.06)</variable>
    <variable type="" id="Hy@,5ynJ]F.GXg;(j.xE">_profit(contract_detail:profit)</variable>
    <variable type="" id="8Le:ja3f,KfZP2#5@s?#">exMachina::targetProfit</variable>
    <variable type="" id="hL*~,^TJnyFQf=)OhNKf">exMachina::stake</variable>
    <variable type="" id="h9^7JcmQ%1I_#OBC|^(*">exMachina::totalProfit</variable>
    <variable type="" id="+2A@}k1o0GiPeEhz^K%`">exMachina::stopLoss</variable>
    <variable type="" id="fM:-x=pitdf$L8Iku9Ch">exMachina::initialStake</variable>
    <variable type="" id="l!j*Ab]OfC?@$n8/9*l*">exMachina::martingale</variable>
    <variable type="" id="JatCBseE8Zl~ePezSwtE">exMachina::lowestProfit</variable>
  </variables>
  <block type="trade" id="xgH69|xFn9=70w.*3Vo@" x="-16" y="-22">
    <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">higherlower</field>
    <field name="TYPE_LIST">PUT</field>
    <field name="CANDLEINTERVAL_LIST">60</field>
    <field name="TIME_MACHINE_ENABLED">FALSE</field>
    <field name="RESTARTONERROR">TRUE</field>
    <statement name="INITIALIZATION">
      <block type="procedures_callnoreturn" id="nt6i6,:q/MCSoaF-CCd$">
        <mutation name="exMachina::ConfigMartingale(1)">
          <arg name="_targetProfit(ex:25)"></arg>
          <arg name="_stopLoss(ex:200)"></arg>
          <arg name="_initialStake(ex:1)"></arg>
          <arg name="_martingale(ex:1.06)"></arg>
        </mutation>
        <value name="ARG0">
          <block type="math_number" id="T{i;kfy;w2~1@4^mjGIn">
            <field name="NUM">25</field>
          </block>
        </value>
        <value name="ARG1">
          <block type="math_number" id="3WE^Q:Q8chD=8U@JHE2]">
            <field name="NUM">200</field>
          </block>
        </value>
        <value name="ARG2">
          <block type="math_number" id="PH4ez+=~EJ:4EZ.z!+XH">
            <field name="NUM">0.35</field>
          </block>
        </value>
        <value name="ARG3">
          <block type="math_number" id=";wW[Z`Pm!`J{eDCwoX}=">
            <field name="NUM">3</field>
          </block>
        </value>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="HX42~`Q$Zy|^Of6t{!!,">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <field name="BARRIEROFFSETTYPE_LIST">+</field>
        <value name="DURATION">
          <shadow type="math_number" id="h7.f;jJU(=Wk5hNMW$Qm">
            <field name="NUM">5</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number" id="`AztU72={:8BRUYL75L_">
            <field name="NUM">0.35</field>
          </shadow>
          <block type="procedures_callreturn" id="kw`]{.;qv;627t#l#*m{">
            <mutation name="exMachina::Stake"></mutation>
          </block>
        </value>
        <value name="BARRIEROFFSET">
          <block type="math_number" id="]*5b0XkSH7y?,7@nP^r*">
            <field name="NUM">1.8</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="loader" id="l9;z(KA,X4wl}.C$%!6V" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/binary-ex-machina/53c01f08106c45d586e24a7deabb5b81/raw/5f40d4e90a5b43867c01656c2015278f389f1ea2/exmachina-martingale.xml</field>
  </block>
  <block type="procedures_defreturn" id="vv#f*S,YrKYJ#Gk7I?}a" collapsed="true" x="0" y="0">
    <field name="NAME">exMachina::Stake</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="variables_get" id="5aema1;$fe#U:g,m]n#S">
        <field name="VAR" id="hL*~,^TJnyFQf=)OhNKf" variabletype="">exMachina::stake</field>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="Er_!6W/3Kj%cSIj[eo2P" collapsed="true" x="0" y="0">
    <mutation>
      <arg name="_profit(contract_detail:profit)" varid="Hy@,5ynJ]F.GXg;(j.xE"></arg>
    </mutation>
    <field name="NAME">exMachina::Martingale(4)</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="YU%rJ0*8yr!,nf^jLYae">
        <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="o-,tJX2N+^a{XA)_B-Hd">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="8,qMmt3w4=fDGgN4(uT}">
            <field name="VAR" id="Hy@,5ynJ]F.GXg;(j.xE" variabletype="">_profit(contract_detail:profit)</field>
          </block>
        </value>
        <next>
          <block type="controls_if" id="fG1l1G#VHBw34-dWqRtq">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="VI=yr]ihEk{Ayze@fX/u">
                <field name="OP">LT</field>
                <value name="A">
                  <block type="variables_get" id="`u-jnc~*Dny7uuCd0eg)">
                    <field name="VAR" id="Hy@,5ynJ]F.GXg;(j.xE" variabletype="">_profit(contract_detail:profit)</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="EA~p}r}?W[i(`c;Ff1#T">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="math_change" id="wDh(cnHG%yftOt`1AGD|">
                <field name="VAR" id="hL*~,^TJnyFQf=)OhNKf" variabletype="">exMachina::stake</field>
                <value name="DELTA">
                  <shadow type="math_number" id="~v=hwzbZhsuC:af9Yho+">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="FK/9t:P%[@|jVr]=RD?$" inline="false">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="FfN)rFy{/Mk8.pNh|L(z">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="BwmgGZRS4T:M7fT%M/.z">
                        <field name="VAR" id="hL*~,^TJnyFQf=)OhNKf" variabletype="">exMachina::stake</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="FqW1m)~Ise/|7I(uQF_G">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="uUTc;F/t{1xa#q?LFFi#">
                        <field name="VAR" id="l!j*Ab]OfC?@$n8/9*l*" variabletype="">exMachina::martingale</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="variables_set" id="Fv!BDjY?9j|z`]b|T7)j">
                <field name="VAR" id="hL*~,^TJnyFQf=)OhNKf" variabletype="">exMachina::stake</field>
                <value name="VALUE">
                  <block type="variables_get" id="mMh:HM7wy{Zq``5{`69M">
                    <field name="VAR" id="fM:-x=pitdf$L8Iku9Ch" variabletype="">exMachina::initialStake</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="(26XS%rIIp:,[YAx|wLZ">
                <value name="IF0">
                  <block type="logic_compare" id="H!CUoXp~e5NfFE55~ZG?" inline="false">
                    <field name="OP">GT</field>
                    <value name="A">
                      <block type="variables_get" id="@#utkq-K=Reg]I:|{pJE">
                        <field name="VAR" id="JatCBseE8Zl~ePezSwtE" variabletype="">exMachina::lowestProfit</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="5+X6FBR-]9q@P%N(t{m!">
                        <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="gP;j(``}hE%l_@Z_Y]CW">
                    <field name="VAR" id="JatCBseE8Zl~ePezSwtE" variabletype="">exMachina::lowestProfit</field>
                    <value name="VALUE">
                      <block type="variables_get" id="vJgCsPmgws[7}?;d);5B">
                        <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="notify" id="@9V6eNXJMPqu_p3/TV+|">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <shadow type="text" id="1CPN3I!wX2/]+.LBbEIF">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text_join" id="7HmR%X,TJ(n{2|RfVR=l">
                        <mutation items="4"></mutation>
                        <value name="ADD0">
                          <block type="text" id="543hf/`z!5M|I06:]~3D">
                            <field name="TEXT">Total Profit: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="~7YKdVwLDU+ZFo?SKk^@">
                            <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                          </block>
                        </value>
                        <value name="ADD2">
                          <block type="text" id="%iq8o=!Qi?s]q;ga-=/M">
                            <field name="TEXT"> | Lowest Profit: </field>
                          </block>
                        </value>
                        <value name="ADD3">
                          <block type="variables_get" id="9fSBo8|{?j]pB~P?ilh?">
                            <field name="VAR" id="JatCBseE8Zl~ePezSwtE" variabletype="">exMachina::lowestProfit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="%c]q};;s~u-2b)7=w1W!" collapsed="true" x="0" y="0">
    <field name="NAME">exMachina::TradeAgain</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id=":DP]JnHEf=k8rFj^(2K/">
        <value name="IF0">
          <block type="logic_operation" id="1_DO.lmRbB(zP|.UJi=k" inline="false">
            <field name="OP">OR</field>
            <value name="A">
              <block type="logic_compare" id="^CYp.vbx)GFHSx}6v(j4" inline="false">
                <field name="OP">GTE</field>
                <value name="A">
                  <block type="variables_get" id="#j*Vtvp,2s/Q^-6+AWGw">
                    <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                  </block>
                </value>
                <value name="B">
                  <block type="variables_get" id="Xusd.6C8jK%@PF6SE/J*">
                    <field name="VAR" id="8Le:ja3f,KfZP2#5@s?#" variabletype="">exMachina::targetProfit</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="logic_compare" id="fPxQPF_Y*w%L{R~U472F" inline="false">
                <field name="OP">LTE</field>
                <value name="A">
                  <block type="variables_get" id="Li(|oTB},cgRv~C9y^hx">
                    <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                  </block>
                </value>
                <value name="B">
                  <block type="variables_get" id="+-=v6c4W7-EPb!Nv]c?#">
                    <field name="VAR" id="+2A@}k1o0GiPeEhz^K%`" variabletype="">exMachina::stopLoss</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="text_print" id="9WrrzRkR{z*f?ARHN9)$">
            <value name="TEXT">
              <shadow type="text" id="^`+|:^P$|PL1g8~W8a@m">
                <field name="TEXT">abc</field>
              </shadow>
              <block type="text_join" id="7k^4cYH,]g)A36EpE6Dw">
                <mutation items="4"></mutation>
                <value name="ADD0">
                  <block type="text" id="Cy,z1hy2O~^]?vbL0MI6">
                    <field name="TEXT">Total Profit: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="variables_get" id="d,Ji$QPdpb$!{=Mlb0co">
                    <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                  </block>
                </value>
                <value name="ADD2">
                  <block type="text" id="Yh#/aODjBt,2n_5,OTN#">
                    <field name="TEXT"> | Lowest Profit: </field>
                  </block>
                </value>
                <value name="ADD3">
                  <block type="variables_get" id="0xB}rI)|eUplp.axS/]9">
                    <field name="VAR" id="JatCBseE8Zl~ePezSwtE" variabletype="">exMachina::lowestProfit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
    <value name="RETURN">
      <block type="logic_operation" id="0GFgmx7MYl`KOBZj86$D" inline="false">
        <field name="OP">AND</field>
        <value name="A">
          <block type="logic_compare" id="H+Rjx*u^=Fh`}M_1%Ebc" inline="false">
            <field name="OP">LT</field>
            <value name="A">
              <block type="variables_get" id="1(7cZT|2ZE%ORxVI:Gr(">
                <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="variables_get" id="ep2rr)v^ZRu+XfS?!AY]">
                <field name="VAR" id="8Le:ja3f,KfZP2#5@s?#" variabletype="">exMachina::targetProfit</field>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <block type="logic_compare" id="fp,jtF#a:|br8r~D/,A(" inline="false">
            <field name="OP">GT</field>
            <value name="A">
              <block type="variables_get" id="^f+-/V0dcw([aYc[FF%g">
                <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="variables_get" id="tY%v(UnADJl$HeV6;D[6">
                <field name="VAR" id="+2A@}k1o0GiPeEhz^K%`" variabletype="">exMachina::stopLoss</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="Uz#y0VLK9o|e^#xS0-%F" collapsed="true" x="0" y="0">
    <field name="NAME">exMachina::TradeAgain2</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="bi090M!exX-(^^+(D;t+">
        <value name="IF0">
          <block type="logic_operation" id="=vp+8oc)jJuTt;7oprMd" inline="false">
            <field name="OP">OR</field>
            <value name="A">
              <block type="logic_compare" id="dCY7DL?c9+-.,n[]Y7$s" inline="false">
                <field name="OP">GTE</field>
                <value name="A">
                  <block type="variables_get" id="mnf4Kcpg@/a+0LU]F=GY">
                    <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                  </block>
                </value>
                <value name="B">
                  <block type="variables_get" id="i#5g{y0#qbHtf+NnK+-I">
                    <field name="VAR" id="8Le:ja3f,KfZP2#5@s?#" variabletype="">exMachina::targetProfit</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="logic_compare" id="caH9)uzC^{DH@h#Mhssb" inline="false">
                <field name="OP">LTE</field>
                <value name="A">
                  <block type="variables_get" id="QQoH^fnI(yU{vQA]p~XS">
                    <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                  </block>
                </value>
                <value name="B">
                  <block type="variables_get" id="M|TXlUn^QC1JXKLwbI[#">
                    <field name="VAR" id="+2A@}k1o0GiPeEhz^K%`" variabletype="">exMachina::stopLoss</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="text_print" id="B3exDHL5E`r,^VF1[`7I">
            <value name="TEXT">
              <shadow type="text" id="^`+|:^P$|PL1g8~W8a@m">
                <field name="TEXT">abc</field>
              </shadow>
              <block type="text_join" id="sH0I._hA}~Buv2+GwO(;">
                <mutation items="4"></mutation>
                <value name="ADD0">
                  <block type="text" id="yzW-IobTAk_#QOW(UjI%">
                    <field name="TEXT">Total Profit: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="variables_get" id="ph^0K7$TilZckHYiE.ce">
                    <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                  </block>
                </value>
                <value name="ADD2">
                  <block type="text" id="YRv98jS8d5X*k~6cxIFj">
                    <field name="TEXT"> | Lowest Profit: </field>
                  </block>
                </value>
                <value name="ADD3">
                  <block type="variables_get" id="YkM,Mn}d:e6CKeOcne;P">
                    <field name="VAR" id="JatCBseE8Zl~ePezSwtE" variabletype="">exMachina::lowestProfit</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
    <value name="RETURN">
      <block type="logic_operation" id="18O}C#[7B8bljFAW%0mG" inline="false">
        <field name="OP">AND</field>
        <value name="A">
          <block type="logic_compare" id="r3](kNw%8G?v*UNp18/]" inline="false">
            <field name="OP">LT</field>
            <value name="A">
              <block type="variables_get" id="{+4L1ZOL,2c)~WnnkvK#">
                <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="variables_get" id="RBzC|t/bqp92pk}:=!^~">
                <field name="VAR" id="8Le:ja3f,KfZP2#5@s?#" variabletype="">exMachina::targetProfit</field>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <block type="logic_compare" id=".RxT#)wc62S6^O0Px]=w" inline="false">
            <field name="OP">GT</field>
            <value name="A">
              <block type="variables_get" id="]Jr2,z9E3m-P~!wRNmAA">
                <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="variables_get" id="BdRGlZJ/G,@y1R4aaL4E">
                <field name="VAR" id="+2A@}k1o0GiPeEhz^K%`" variabletype="">exMachina::stopLoss</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="r$7w_/W{Q`wwWLyNkpd#" collapsed="true" x="0" y="0">
    <mutation>
      <arg name="_targetProfit(ex:25)" varid="bVo=RyN07ovB=`TJ{c];"></arg>
      <arg name="_stopLoss(ex:200)" varid="54}eqOTcHLPH6=,w[YfR"></arg>
      <arg name="_initialStake(ex:1)" varid="9Hl8t?^;B_hWUHV{8Zv5"></arg>
      <arg name="_martingale(ex:1.06)" varid="BO!1Xz3M$pFBYT3^Wrr,"></arg>
    </mutation>
    <field name="NAME">exMachina::ConfigMartingale(1)</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="^6W]9R$.H0@B808`7qGS">
        <field name="VAR" id="8Le:ja3f,KfZP2#5@s?#" variabletype="">exMachina::targetProfit</field>
        <value name="VALUE">
          <block type="logic_ternary" id="]RpAneS$RBo6%2DC#?ss" inline="false">
            <value name="IF">
              <block type="logic_compare" id="Hc%[eFyehg.9+j;sxiuR">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="variables_get" id="x!lY!J$5mpT5Ntzy|z0o">
                    <field name="VAR" id="bVo=RyN07ovB=`TJ{c];" variabletype="">_targetProfit(ex:25)</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="BrmD9fIGPS2TM3}n5D|6">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="THEN">
              <block type="variables_get" id="e2+omms)z^;f*e[IKQ-j">
                <field name="VAR" id="bVo=RyN07ovB=`TJ{c];" variabletype="">_targetProfit(ex:25)</field>
              </block>
            </value>
            <value name="ELSE">
              <block type="math_number" id="%![`H!7xdwE.B$+s,L:X">
                <field name="NUM">25</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="aHj7gneDI#r4.mtMzhT#">
            <field name="VAR" id="+2A@}k1o0GiPeEhz^K%`" variabletype="">exMachina::stopLoss</field>
            <value name="VALUE">
              <block type="logic_ternary" id="wV2v(cx*/FYQ3!=!gzNh" inline="false">
                <value name="IF">
                  <block type="logic_compare" id="7%fAtA$BN~R@b{KT5+w^">
                    <field name="OP">NEQ</field>
                    <value name="A">
                      <block type="variables_get" id="WOC@@A4FmL^1Jr=oGMGF">
                        <field name="VAR" id="54}eqOTcHLPH6=,w[YfR" variabletype="">_stopLoss(ex:200)</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="(gv%$.$G}_s$~og2DNQn">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="THEN">
                  <block type="math_arithmetic" id="%ug5?admL]Xj~Rn545,q">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="BiqQE++KQP)bGHSsNFTt">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_single" id="%Rg)_fSe!OMN~~II608(">
                        <field name="OP">ABS</field>
                        <value name="NUM">
                          <shadow type="math_number" id="=VS0FopVbqHkbRZoM~0!">
                            <field name="NUM">9</field>
                          </shadow>
                          <block type="variables_get" id="$@I2ut$||@%|Knt:lmhU">
                            <field name="VAR" id="54}eqOTcHLPH6=,w[YfR" variabletype="">_stopLoss(ex:200)</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="_(/1QaUHeN$QBwDUk9U!">
                        <field name="NUM">-1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="ELSE">
                  <block type="math_number" id="6Ede9IY-7]fG?)`!e:%4">
                    <field name="NUM">-200</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="yT6R65EGXWfXH$@4%hK~">
                <field name="VAR" id="fM:-x=pitdf$L8Iku9Ch" variabletype="">exMachina::initialStake</field>
                <value name="VALUE">
                  <block type="logic_ternary" id="2o0yNI-tO/{=J%yQFpd0" inline="false">
                    <value name="IF">
                      <block type="logic_compare" id="l{ci#JfwWskeU`+h}(W1">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="variables_get" id="0i_A8jBI;D2mpCQo}R1C">
                            <field name="VAR" id="9Hl8t?^;B_hWUHV{8Zv5" variabletype="">_initialStake(ex:1)</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="nJ@Ru=LcbN==sOpX|mx5">
                            <field name="NUM">0.35</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="THEN">
                      <block type="variables_get" id="wgPDt/fJ!K-u:^O_(^_+">
                        <field name="VAR" id="9Hl8t?^;B_hWUHV{8Zv5" variabletype="">_initialStake(ex:1)</field>
                      </block>
                    </value>
                    <value name="ELSE">
                      <block type="math_number" id="RO#=X5D`3(xlBasg7Z$d">
                        <field name="NUM">0.35</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="g9e;aEr?ATR=^i%n][LN">
                    <field name="VAR" id="l!j*Ab]OfC?@$n8/9*l*" variabletype="">exMachina::martingale</field>
                    <value name="VALUE">
                      <block type="logic_ternary" id="nWH~teezN,j*TAdelJ.*" inline="false">
                        <value name="IF">
                          <block type="logic_compare" id="k3N/wfVa5mceI_s%0Lp3">
                            <field name="OP">GT</field>
                            <value name="A">
                              <block type="variables_get" id="HP_7AEt+CKD~6]Xj#^r-">
                                <field name="VAR" id="BO!1Xz3M$pFBYT3^Wrr," variabletype="">_martingale(ex:1.06)</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="gAWsN=%0H/Eq/;1]TzBu">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="THEN">
                          <block type="variables_get" id="+3KN{L-k.cPd/q!V|X@0">
                            <field name="VAR" id="BO!1Xz3M$pFBYT3^Wrr," variabletype="">_martingale(ex:1.06)</field>
                          </block>
                        </value>
                        <value name="ELSE">
                          <block type="math_number" id="=h+C.|:tPTCoKa7B[*[)">
                            <field name="NUM">1.06</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="=2LnU(cCJ$Drn1V7(J$%">
                        <field name="VAR" id="hL*~,^TJnyFQf=)OhNKf" variabletype="">exMachina::stake</field>
                        <value name="VALUE">
                          <block type="variables_get" id="Nub:Kufc=Uq=Px3?c#Bs">
                            <field name="VAR" id="fM:-x=pitdf$L8Iku9Ch" variabletype="">exMachina::initialStake</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="K=FMp|t=`$hx1!pg#?{Z">
                            <field name="VAR" id="JatCBseE8Zl~ePezSwtE" variabletype="">exMachina::lowestProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="y]u^(;[D1;P8?c(IZc3L">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="sp]fIv$Y^djM^R~5@,5P">
                                <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                                <value name="VALUE">
                                  <block type="math_number" id="^G~ZZ/68OM13;7KV5diZ">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="notify" id="`NXnp6xZ/?|bsmqoj4y[">
                                    <field name="NOTIFICATION_TYPE">success</field>
                                    <field name="NOTIFICATION_SOUND">silent</field>
                                    <value name="MESSAGE">
                                      <shadow type="text" id="**:d)?fzcF~UIA4r9ahy">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="Ry~t{t_)71tO=4#bpGch">
                                        <mutation items="6"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="1f%u3d^heE(u3bqA6b`s">
                                            <field name="TEXT">Target Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="[xaa|UAJRh1Cs+Zrzm-e">
                                            <field name="VAR" id="8Le:ja3f,KfZP2#5@s?#" variabletype="">exMachina::targetProfit</field>
                                          </block>
                                        </value>
                                        <value name="ADD2">
                                          <block type="text" id="^_@uVyzb7MP{b1Ofp;:f">
                                            <field name="TEXT"> | Stop Loss: </field>
                                          </block>
                                        </value>
                                        <value name="ADD3">
                                          <block type="variables_get" id="O!JQkSqN7qMz#tD?:VT1">
                                            <field name="VAR" id="+2A@}k1o0GiPeEhz^K%`" variabletype="">exMachina::stopLoss</field>
                                          </block>
                                        </value>
                                        <value name="ADD4">
                                          <block type="text" id="tJ`4dFSG9e[]4eMH.Dg*">
                                            <field name="TEXT"> | Initial Stake: </field>
                                          </block>
                                        </value>
                                        <value name="ADD5">
                                          <block type="variables_get" id="[xzdf#?4RB:xrW63QpWA">
                                            <field name="VAR" id="fM:-x=pitdf$L8Iku9Ch" variabletype="">exMachina::initialStake</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defnoreturn" id="/8qT~YQYK-w2H6Z6]`m8" collapsed="true" x="0" y="0">
    <mutation>
      <arg name="_profit(contract_detail:profit)" varid="Hy@,5ynJ]F.GXg;(j.xE"></arg>
    </mutation>
    <field name="NAME">exMachina::Martingale(4)2</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="1M]!uJ.5.XD.ON.JIW@`">
        <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="o-,tJX2N+^a{XA)_B-Hd">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="S!~$IfvI@NZHvr_n(3-I">
            <field name="VAR" id="Hy@,5ynJ]F.GXg;(j.xE" variabletype="">_profit(contract_detail:profit)</field>
          </block>
        </value>
        <next>
          <block type="controls_if" id=":FVPdu4IdONkK6{AELjF">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="a002zs_suu^BRzbnkNZU">
                <field name="OP">LT</field>
                <value name="A">
                  <block type="variables_get" id="Gt[oHi$,V#pYXYZk+{a[">
                    <field name="VAR" id="Hy@,5ynJ]F.GXg;(j.xE" variabletype="">_profit(contract_detail:profit)</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="[;VAZFkpJdEQ?,H?n}sY">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="math_change" id="[W=2gapw3bfaK[TLaZjb">
                <field name="VAR" id="hL*~,^TJnyFQf=)OhNKf" variabletype="">exMachina::stake</field>
                <value name="DELTA">
                  <shadow type="math_number" id="~v=hwzbZhsuC:af9Yho+">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="U=0z?+=7h.KRA8O,ky;+" inline="false">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="FfN)rFy{/Mk8.pNh|L(z">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="U^/$8``/),d2@vW:UvDs">
                        <field name="VAR" id="hL*~,^TJnyFQf=)OhNKf" variabletype="">exMachina::stake</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="FqW1m)~Ise/|7I(uQF_G">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="|6V$A#1v3?PQ^==;?/F3">
                        <field name="VAR" id="l!j*Ab]OfC?@$n8/9*l*" variabletype="">exMachina::martingale</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="variables_set" id="z]/O{/{KX[D9rqau6jrY">
                <field name="VAR" id="hL*~,^TJnyFQf=)OhNKf" variabletype="">exMachina::stake</field>
                <value name="VALUE">
                  <block type="variables_get" id="b-rud@yVK?r=8tdGU+oS">
                    <field name="VAR" id="fM:-x=pitdf$L8Iku9Ch" variabletype="">exMachina::initialStake</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="{GJW}1+1|ht,zxN(=%3@">
                <value name="IF0">
                  <block type="logic_compare" id="92#Ra9)3!^t4ufr,c}N%" inline="false">
                    <field name="OP">GT</field>
                    <value name="A">
                      <block type="variables_get" id="8nKAy{N5lU#_*7(3AhW$">
                        <field name="VAR" id="JatCBseE8Zl~ePezSwtE" variabletype="">exMachina::lowestProfit</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="@NHDRcgc}:D**6,jCmWW">
                        <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="`,]/C4EDvi1P4W53MAo*">
                    <field name="VAR" id="JatCBseE8Zl~ePezSwtE" variabletype="">exMachina::lowestProfit</field>
                    <value name="VALUE">
                      <block type="variables_get" id="|Z1ucs1eCWv+.Do@rz`z">
                        <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="notify" id="Tq_X?Ou,:Gw]Nkc#C7N)">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <shadow type="text" id="1CPN3I!wX2/]+.LBbEIF">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text_join" id="cw0XL*#{VZ{tT08BV24~">
                        <mutation items="4"></mutation>
                        <value name="ADD0">
                          <block type="text" id="dMGP=,Uhy$)KcI!%+~84">
                            <field name="TEXT">Total Profit: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="75JUlU4:3G$[k|ntP)%T">
                            <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                          </block>
                        </value>
                        <value name="ADD2">
                          <block type="text" id="wm_F__vthidSJ7vLUJjv">
                            <field name="TEXT"> | Lowest Profit: </field>
                          </block>
                        </value>
                        <value name="ADD3">
                          <block type="variables_get" id="eKm^FR]aZ,JF5z#Yw=y8">
                            <field name="VAR" id="JatCBseE8Zl~ePezSwtE" variabletype="">exMachina::lowestProfit</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="loader" id="u~f)U+9pg_kQE9z)#3Fj" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/binary-ex-machina/53c01f08106c45d586e24a7deabb5b81/raw/5f40d4e90a5b43867c01656c2015278f389f1ea2/exmachina-martingale.xml</field>
  </block>
  <block type="procedures_defnoreturn" id="Ft[bu^DF#WM6jEC3lKiZ" collapsed="true" x="0" y="0">
    <mutation>
      <arg name="_targetProfit(ex:25)" varid="bVo=RyN07ovB=`TJ{c];"></arg>
      <arg name="_stopLoss(ex:200)" varid="54}eqOTcHLPH6=,w[YfR"></arg>
      <arg name="_initialStake(ex:1)" varid="9Hl8t?^;B_hWUHV{8Zv5"></arg>
      <arg name="_martingale(ex:1.06)" varid="BO!1Xz3M$pFBYT3^Wrr,"></arg>
    </mutation>
    <field name="NAME">exMachina::ConfigMartingale(1)2</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="1SlTQT+1e/^$APJTl=-=">
        <field name="VAR" id="8Le:ja3f,KfZP2#5@s?#" variabletype="">exMachina::targetProfit</field>
        <value name="VALUE">
          <block type="logic_ternary" id="L#yKh,8xvooT4?2PMC%L" inline="false">
            <value name="IF">
              <block type="logic_compare" id="U/)KFmFOSwK4vY.5~x|Q">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="variables_get" id="vFVP0oHM$|fg^lRTio9{">
                    <field name="VAR" id="bVo=RyN07ovB=`TJ{c];" variabletype="">_targetProfit(ex:25)</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="W^$H!v1/4jtA,cXG=26^">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="THEN">
              <block type="variables_get" id="+jw5%3@-Y+8x(=!ZXAf^">
                <field name="VAR" id="bVo=RyN07ovB=`TJ{c];" variabletype="">_targetProfit(ex:25)</field>
              </block>
            </value>
            <value name="ELSE">
              <block type="math_number" id="P5-GATK`68?z=Nu83Pow">
                <field name="NUM">25</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="*]Czhr7NpG^my:6tl.YN">
            <field name="VAR" id="+2A@}k1o0GiPeEhz^K%`" variabletype="">exMachina::stopLoss</field>
            <value name="VALUE">
              <block type="logic_ternary" id="NPAg_KXgD$($*-(Rt{9!" inline="false">
                <value name="IF">
                  <block type="logic_compare" id="DG+Qj^8lc/(Eu[CVA$9c">
                    <field name="OP">NEQ</field>
                    <value name="A">
                      <block type="variables_get" id="pouC8/^3h`Q1u-mSTm$:">
                        <field name="VAR" id="54}eqOTcHLPH6=,w[YfR" variabletype="">_stopLoss(ex:200)</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="zKi_ha%{]]b@dhl_CynI">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="THEN">
                  <block type="math_arithmetic" id="Z,Qch9.EG--~cNmO-4_/">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="BiqQE++KQP)bGHSsNFTt">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_single" id="YfH2@O*13Lz#(,,Y6qX9">
                        <field name="OP">ABS</field>
                        <value name="NUM">
                          <shadow type="math_number" id="=VS0FopVbqHkbRZoM~0!">
                            <field name="NUM">9</field>
                          </shadow>
                          <block type="variables_get" id="XylYwh5d0o|6vby{EnVK">
                            <field name="VAR" id="54}eqOTcHLPH6=,w[YfR" variabletype="">_stopLoss(ex:200)</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="LKpfN28,rp!V%.ePcO,O">
                        <field name="NUM">-1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="ELSE">
                  <block type="math_number" id="+?7sFdx2U/%bQ--[F.%i">
                    <field name="NUM">-200</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="Os:iM:5-(0RyW!Ec_]o#">
                <field name="VAR" id="fM:-x=pitdf$L8Iku9Ch" variabletype="">exMachina::initialStake</field>
                <value name="VALUE">
                  <block type="logic_ternary" id="0;RQXf`46qKt$B_y(uB3" inline="false">
                    <value name="IF">
                      <block type="logic_compare" id="PysnGBVeg!7LK||0XaMc">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="variables_get" id="hnV^G=nSQx[!#A3H2k.N">
                            <field name="VAR" id="9Hl8t?^;B_hWUHV{8Zv5" variabletype="">_initialStake(ex:1)</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="9M$Cs^45]KA5mR2k|orh">
                            <field name="NUM">0.35</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="THEN">
                      <block type="variables_get" id="iDkgjD([Xr8r?7U;[kn]">
                        <field name="VAR" id="9Hl8t?^;B_hWUHV{8Zv5" variabletype="">_initialStake(ex:1)</field>
                      </block>
                    </value>
                    <value name="ELSE">
                      <block type="math_number" id="]:bJjV88=K?WJ%g($(KL">
                        <field name="NUM">0.35</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="^g7.eGwo$+y[9xf{m)+;">
                    <field name="VAR" id="l!j*Ab]OfC?@$n8/9*l*" variabletype="">exMachina::martingale</field>
                    <value name="VALUE">
                      <block type="logic_ternary" id="~qerG:EySSJ6~(Fu@.*q" inline="false">
                        <value name="IF">
                          <block type="logic_compare" id="#$h*y@vd]P!tlJo)BW,$">
                            <field name="OP">GT</field>
                            <value name="A">
                              <block type="variables_get" id="K!gB:R2.k(u%vR4R#ES3">
                                <field name="VAR" id="BO!1Xz3M$pFBYT3^Wrr," variabletype="">_martingale(ex:1.06)</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="o[b*HtDv_wmHozL-VlVn">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="THEN">
                          <block type="variables_get" id="/wps{`HbVsq,38!o(m7E">
                            <field name="VAR" id="BO!1Xz3M$pFBYT3^Wrr," variabletype="">_martingale(ex:1.06)</field>
                          </block>
                        </value>
                        <value name="ELSE">
                          <block type="math_number" id="Tr#18p@KWJ2LEbN+Kn!R">
                            <field name="NUM">1.06</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="QEsye5,_{g(,Sc@zxQ:2">
                        <field name="VAR" id="hL*~,^TJnyFQf=)OhNKf" variabletype="">exMachina::stake</field>
                        <value name="VALUE">
                          <block type="variables_get" id="2$Vy}x/{E9XM[6ZTo=$m">
                            <field name="VAR" id="fM:-x=pitdf$L8Iku9Ch" variabletype="">exMachina::initialStake</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="Tga1k^c%M;|.Tb.m*n-d">
                            <field name="VAR" id="JatCBseE8Zl~ePezSwtE" variabletype="">exMachina::lowestProfit</field>
                            <value name="VALUE">
                              <block type="math_number" id="gye.m^#/Wux?nN3DCs*B">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="`:oT^i(bNqFTN?Hx0s63">
                                <field name="VAR" id="h9^7JcmQ%1I_#OBC|^(*" variabletype="">exMachina::totalProfit</field>
                                <value name="VALUE">
                                  <block type="math_number" id="K}j~/;CgXxwX7F4c^c%D">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="notify" id="C?G!qVCgcTm@o?ujy#V|">
                                    <field name="NOTIFICATION_TYPE">success</field>
                                    <field name="NOTIFICATION_SOUND">silent</field>
                                    <value name="MESSAGE">
                                      <shadow type="text" id="**:d)?fzcF~UIA4r9ahy">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="text_join" id="%w6``BzAYf`zv3/={gG:">
                                        <mutation items="6"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="}/|#P?|l_6DmfJPAy4aU">
                                            <field name="TEXT">Target Profit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="x+4|B}4T?sqd*ni(|(GW">
                                            <field name="VAR" id="8Le:ja3f,KfZP2#5@s?#" variabletype="">exMachina::targetProfit</field>
                                          </block>
                                        </value>
                                        <value name="ADD2">
                                          <block type="text" id="R.8IsFiR:riDy@7d[]@$">
                                            <field name="TEXT"> | Stop Loss: </field>
                                          </block>
                                        </value>
                                        <value name="ADD3">
                                          <block type="variables_get" id="4r~IfB%!w8)zaPSNV044">
                                            <field name="VAR" id="+2A@}k1o0GiPeEhz^K%`" variabletype="">exMachina::stopLoss</field>
                                          </block>
                                        </value>
                                        <value name="ADD4">
                                          <block type="text" id="G,%=4LRKLn0r(h3C%/.[">
                                            <field name="TEXT"> | Initial Stake: </field>
                                          </block>
                                        </value>
                                        <value name="ADD5">
                                          <block type="variables_get" id="+A0(Yh%E|04r6sG2g}u?">
                                            <field name="VAR" id="fM:-x=pitdf$L8Iku9Ch" variabletype="">exMachina::initialStake</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="N$+5+!Jw_taBwvt[LVZo" collapsed="true" x="0" y="0">
    <field name="NAME">exMachina::Stake2</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="variables_get" id="wmfH5v:PD[@2ZP-Z-K(9">
        <field name="VAR" id="hL*~,^TJnyFQf=)OhNKf" variabletype="">exMachina::stake</field>
      </block>
    </value>
  </block>
  <block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" collapsed="true" x="-11" y="599">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="QKy:u-ys-yI+]Yo5g|6.">
        <value name="IF0">
          <block type="logic_compare" id="?pPi#6a5fd~-}VJLVa$J">
            <field name="OP">GT</field>
            <value name="A">
              <block type="ema" id="LA_:e]EcE#KAr1_1`}SH">
                <value name="INPUT">
                  <block type="ticks" id="xiH)K,Nmfo*LbUNjux~)"></block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="ZeF{ck6G9zCE=OwEoS|j">
                    <field name="NUM">13</field>
                  </shadow>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="ema" id="9mDJl+s@=zyv2$~.]IR8">
                <value name="INPUT">
                  <block type="ticks" id="8s%IN_K]CwW8Dv+q(DC%"></block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="%3q0MOYBv(gAMxy?WW?3">
                    <field name="NUM">34</field>
                  </shadow>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="purchase" id="W6q#Z-I3q3d[d3-`S[dS">
            <field name="PURCHASE_LIST">PUT</field>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="D^Jz1^n=2vtZku1vBN@;" collapsed="true" x="-12" y="639">
    <statement name="AFTERPURCHASE_STACK">
      <block type="procedures_callnoreturn" id="laf4`9g2qF%;];=gQ)5K">
        <mutation name="exMachina::Martingale(4)">
          <arg name="_profit(contract_detail:profit)"></arg>
        </mutation>
        <value name="ARG0">
          <block type="read_details" id="6N[3_u_G]6yqA_=Xg8fr">
            <field name="DETAIL_INDEX">4</field>
          </block>
        </value>
        <next>
          <block type="controls_if" id="bL.2FF.%TgtUtAi%Kv@#">
            <value name="IF0">
              <block type="procedures_callreturn" id="?@u6AQ4)LkP{qgo4okdv">
                <mutation name="exMachina::TradeAgain"></mutation>
              </block>
            </value>
            <statement name="DO0">
              <block type="trade_again" id="c)S|KjoQdXc8l#J@5z3P"></block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>