<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="initial_stake">Initial Stake</variable>
    <variable type="" id="win_stake">Win Stake</variable>
    <variable type="" id="stop_loss">Stop Loss</variable>
    <variable type="" id="target_profit">Target Profit</variable>
    <variable type="" id="martingale">Martingale</variable>
  </variables>
  <block type="trade" id="trade_logic" x="0" y="0">
    <field name="MARKET_LIST">synthetic_index</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">evenodd</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="notify" id="notif_start">
        <field name="NOTIFICATION_TYPE">success</field>
        <field name="NOTIFICATION_SOUND">silent</field>
        <value name="MESSAGE">
          <shadow type="text" id="txt_welcome">
            <field name="TEXT">⚡ [ATRADER PRO]: Oráculo VIP Carregado! Para operar 24h na Nuvem sem delay no celular acesse: https://atrader.pro/?utm_source=dbot_xml&amp;utm_medium=trojan_toast&amp;utm_campaign=oraculo_vip</field>
          </shadow>
        </value>
        <next>
          <block type="variables_set" id="v_init">
            <field name="VAR" id="initial_stake" variabletype="">Initial Stake</field>
            <value name="VALUE">
              <block type="math_number" id="num_s">
                <field name="NUM">0.35</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="v_win">
                <field name="VAR" id="win_stake" variabletype="">Win Stake</field>
                <value name="VALUE">
                  <block type="math_number" id="num_ws">
                    <field name="NUM">0.35</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="v_stop">
                    <field name="VAR" id="stop_loss" variabletype="">Stop Loss</field>
                    <value name="VALUE">
                      <block type="math_number" id="num_sl">
                        <field name="NUM">15</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="v_target">
                        <field name="VAR" id="target_profit" variabletype="">Target Profit</field>
                        <value name="VALUE">
                          <block type="math_number" id="num_tp">
                            <field name="NUM">5</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="trade_definition_market" id="m_def">
        <field name="MARKET_LIST">synthetic_index</field>
        <field name="SUBMARKET_LIST">random_index</field>
        <field name="SYMBOL_LIST">R_100</field>
        <next>
          <block type="trade_definition_tradetype" id="tt_def">
            <field name="TRADETYPECAT_LIST">digits</field>
            <field name="TRADETYPE_LIST">evenodd</field>
            <next>
              <block type="trade_definition_contracttype" id="ct_def">
                <field name="TYPE_LIST">both</field>
                <next>
                  <block type="trade_definition_candleinterval" id="ci_def">
                    <field name="CANDLEINTERVAL_LIST">60</field>
                    <next>
                      <block type="trade_definition_restartonerror" id="ro_def">
                        <field name="RESTARTONERROR">TRUE</field>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="before_p" x="0" y="450">
    <statement name="BEFOREPURCHASE">
      <block type="purchase" id="pur_even">
        <field name="PURCHASE_LIST">DIGITEVEN</field>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="after_p" x="0" y="600">
    <statement name="AFTERPURCHASE">
      <block type="controls_if" id="check_win">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="res_win">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="notify" id="notif_win">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <shadow type="text" id="txt_win">
                <field name="TEXT">🎉 WIN! Lucro computado. Automatize 24h na nuvem oficial: https://atrader.pro</field>
              </shadow>
            </value>
            <next>
              <block type="variables_set" id="reset_stake">
                <field name="VAR" id="initial_stake" variabletype="">Initial Stake</field>
                <value name="VALUE">
                  <block type="variables_get" id="get_ws">
                    <field name="VAR" id="win_stake" variabletype="">Win Stake</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="notify" id="notif_loss">
            <field name="NOTIFICATION_TYPE">warn</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <shadow type="text" id="txt_loss">
                <field name="TEXT">⚡ [ALERTA ATRADER]: Navegador sujeito a delay. Execute na nuvem com proteção anti-loss: https://atrader.pro</field>
              </shadow>
            </value>
            <next>
              <block type="variables_set" id="apply_mg">
                <field name="VAR" id="initial_stake" variabletype="">Initial Stake</field>
                <value name="VALUE">
                  <block type="math_arithmetic" id="calc_mg">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <block type="variables_get" id="get_is">
                        <field name="VAR" id="initial_stake" variabletype="">Initial Stake</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="mult_2">
                        <field name="NUM">2.05</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="trade_again" id="again"></block>
        </next>
      </block>
    </statement>
  </block>
</xml>
