﻿<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/33e78094ac35d947fe94664d2fbd88419fef4a7c/exmachina-martingale.xml</field>
  </block>
  <block type="loader" id="PCludxM`Bj;_4Ri]F`6@" x="0" y="53">
    <field name="URL">https://gist.githubusercontent.com/binary-ex-machina/28c34ed498d7d578ec22581e03517c5c/raw/4e780a0e02c2e313a29b76a3311277ca0ba985c3/exmachina-indicator-chop.xml</field>
  </block>
  <block type="trade" id="xgH69|xFn9=70w.*3Vo@" x="0" y="106">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_100</field>
    <field name="TRADETYPECAT_LIST">digits</field>
    <field name="TRADETYPE_LIST">overunder</field>
    <field name="TYPE_LIST">both</field>
    <field name="CANDLEINTERVAL_LIST">60</field>
    <field name="TIME_MACHINE_ENABLED">FALSE</field>
    <field name="RESTARTONERROR">TRUE</field>
    <statement name="INITIALIZATION">
      <block type="variables_set" id="dtRX[ce55,`%Wo~#F-1]">
        <field name="VAR">predict</field>
        <value name="VALUE">
          <block type="math_number" id="-`y1`}~]r-kJYOVcP5yh">
            <field name="NUM">1</field>
          </block>
        </value>
        <next>
          <block type="procedures_callnoreturn" id="tTXo[i?mmh+3`G0Y]ty-">
            <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="bysqyu!A?bGmccIhz`]b">
                <field name="NUM">25</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="math_number" id="{!24E${8K8hE=sf_sZUN">
                <field name="NUM">200</field>
              </block>
            </value>
            <value name="ARG2">
              <block type="math_number" id="hlOlKHzIqMbUF5CVW%$.">
                <field name="NUM">0.35</field>
              </block>
            </value>
            <value name="ARG3">
              <block type="math_number" id="_greVwx7FR0Ode2wy3)#">
                <field name="NUM">6</field>
              </block>
            </value>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="x=V33~4Lb|(sLv`J[:Eb">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <shadow type="math_number" id="O*@58sDc=!cOO}*b2vf9">
            <field name="NUM">5</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number" id="ml)25~7^q}3I9}vjf:%K">
            <field name="NUM">1</field>
          </shadow>
          <block type="procedures_callreturn" id="mre[n$9XQ]`_bS(`f^QO">
            <mutation name="exMachina::Stake"></mutation>
          </block>
        </value>
        <value name="PREDICTION">
          <block type="variables_get" id="34_iq?=m(hH~2YTETS~.">
            <field name="VAR">predict</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" x="0" y="566">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="purchase" id="nS}MJDv4}c3?vF^9Dy}@">
        <field name="PURCHASE_LIST">DIGITOVER</field>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="D^Jz1^n=2vtZku1vBN@;" x="0" y="656">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="fxSDL5U4J(9azk+6X!s*">
        <mutation elseif="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="cJdp6(dUQs/R`rmREs[4">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="controls_if" id="{Be:#Tw6v)#lf11w:.A)">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_operation" id="Vtg{l5$IJ4#*2$.r:aT." inline="false" collapsed="true">
                <field name="OP">AND</field>
                <value name="A">
                  <block type="logic_compare" id="wSh%7e(4%`[0{5t@gd|C">
                    <field name="OP">GT</field>
                    <value name="A">
                      <block type="procedures_callreturn" id="TktsX?k1K@v9TyZi.,iM">
                        <mutation name="getCHOP">
                          <arg name="_period"></arg>
                          <arg name="_candles"></arg>
                        </mutation>
                        <value name="ARG0">
                          <block type="math_number" id="!AXiGvz*cuxGfwY.-J(9">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                        <value name="ARG1">
                          <block type="ohlc" id="lC3!*DUlTDio+MeIuI=]">
                            <field name="CANDLEINTERVAL_LIST">default</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="s!zWOy4R1)7%y=]4ZV^[">
                        <field name="NUM">62</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_compare" id="l+e*|fXUzOm+P~x/8Sy^">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="procedures_callreturn" id="gNE/E$wA;?#1C=kwMRtH">
                        <mutation name="getCHOP">
                          <arg name="_period"></arg>
                          <arg name="_candles"></arg>
                        </mutation>
                        <value name="ARG0">
                          <block type="math_number" id="(8?O(I)G[63mN`IZt09s">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                        <value name="ARG1">
                          <block type="ohlc" id="KqGX1VjjDmqgZ~?pMA.?">
                            <field name="CANDLEINTERVAL_LIST">default</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="gD97Sc{EUfI!Y5cp=gqG">
                        <field name="NUM">38</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="math_change" id="9jJ3rx%^9]-]v9[9|{L;">
                <field name="VAR">predict</field>
                <value name="DELTA">
                  <shadow type="math_number" id="?gh[kq}HE=j=^%*VlVrt">
                    <field name="NUM">2</field>
                  </shadow>
                </value>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="math_change" id="LRXY}bZTrtu:jz}m{hvj">
                <field name="VAR">predict</field>
                <value name="DELTA">
                  <shadow type="math_number" id="]I/^MMOCU=Iaj.1gy/Io">
                    <field name="NUM">1</field>
                  </shadow>
                </value>
              </block>
            </statement>
            <next>
              <block type="variables_set" id="-wYNdzu3=iy1D_Om4Wz?">
                <field name="VAR">exMachina::martingale</field>
                <value name="VALUE">
                  <block type="math_number" id="eQUffX4;K4Dnq:*3W]Gg">
                    <field name="NUM">7</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <value name="IF1">
          <block type="contract_check_result" id="r_=DVkc*X0:!=ku`N~.W">
            <field name="CHECK_RESULT">loss</field>
          </block>
        </value>
        <statement name="DO1">
          <block type="variables_set" id="gvIJ+*t?w^,ENXu0OlDO">
            <field name="VAR">predict</field>
            <value name="VALUE">
              <block type="math_number" id="x9K5~*e3xKwQ6pt]f/,t">
                <field name="NUM">1</field>
              </block>
            </value>
            <next>
              <block type="math_change" id="lP#.XA=|y{.`SJE##0%p">
                <field name="VAR">exMachina::martingale</field>
                <value name="DELTA">
                  <shadow type="math_number" id="U0@CkfJ8uFPc3oCuc+Mx">
                    <field name="NUM">-1</field>
                  </shadow>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="controls_if" id=";^`Qe*3eMDu.zSDTJoDK">
            <value name="IF0">
              <block type="logic_compare" id="?x@!^y,ymU^/rAy.w`qn">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="variables_get" id="APr+FkqMOdP6lb/{#@0F">
                    <field name="VAR">predict</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="l}oYzBkcgD$O~(Fk$N!*">
                    <field name="NUM">8</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="EI4+aF(A{2@)Xr1Et])]">
                <field name="VAR">predict</field>
                <value name="VALUE">
                  <block type="math_number" id="KBeXnKSB7,Mo2^rD[IA$">
                    <field name="NUM">8</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="procedures_callnoreturn" id="27~`J**4hH`GKBy$;QZ4">
                <mutation name="exMachina::Martingale (4)">
                  <arg name="_profit(contract detail: profit)"></arg>
                </mutation>
                <value name="ARG0">
                  <block type="read_details" id="il)[x9xkh_;bXGwnb{U0">
                    <field name="DETAIL_INDEX">4</field>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="~6Ft46jqh*NpUOLS;:hL">
                    <value name="IF0">
                      <block type="procedures_callreturn" id="U;SDh`_P1`%5uV(BIGch">
                        <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>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>