﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <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="trade" id="xgH69|xFn9=70w.*3Vo@" x="0" y="53">
    <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">CALL</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">0.125</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">3.5</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" x="0" y="487">
    <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">CALL</field>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="D^Jz1^n=2vtZku1vBN@;" x="0" y="677">
    <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>