<xml xmlns="https://developers.google.com/blockly/xml" is_dbot="true" collection="false">
  <block type="trade_definition" id="tsv2_trade_def" deletable="false" x="0" y="50">
    <statement name="TRADE_OPTIONS">
      <block type="trade_definition_market" id="tsv2_market" deletable="false" movable="false">
        <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="tsv2_tradetype" deletable="false" movable="false">
            <field name="TRADETYPECAT_LIST">digits</field>
            <field name="TRADETYPE_LIST">overunder</field>
            <next>
              <block type="trade_definition_contracttype" id="tsv2_contracttype" deletable="false" movable="false">
                <field name="TYPE_LIST">both</field>
                <next>
                  <block type="trade_definition_candleinterval" id="tsv2_candle" deletable="false" movable="false">
                    <field name="CANDLEINTERVAL_LIST">60</field>
                    <next>
                      <block type="trade_definition_restartbuysell" id="tsv2_restart_bs" deletable="false" movable="false">
                        <field name="TIME_MACHINE_ENABLED">FALSE</field>
                        <next>
                          <block type="trade_definition_restartonerror" id="tsv2_restart_err" deletable="false" movable="false">
                            <field name="RESTARTONERROR">TRUE</field>
                            <next>
                              <block type="trade_definition_speedtrading" id="tsv2_speed">
                                <field name="SPEED_TRADING">TRUE</field>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="INITIALIZATION">
      <block type="text_print" id="tsv2_init_print">
        <value name="TEXT">
          <shadow type="text" id="tsv2_init_text_shadow">
            <field name="TEXT">Tradescript V2 ready — Diff 0→Over1→2→Diff9→Under8→7, rotate, Over 3 + martingale</field>
          </shadow>
          <block type="text" id="tsv2_init_text">
            <field name="TEXT">Tradescript V2 ready — Diff 0→Over1→2→Diff9→Under8→7, rotate, Over 3 + martingale</field>
          </block>
        </value>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="trade_definition_tradeoptions" id="tsv2_tradeoptions">
        <mutation xmlns="http://www.w3.org/1999/xhtml" has_first_barrier="false" has_second_barrier="false" has_prediction="true"></mutation>
        <field name="DURATIONTYPE_LIST">t</field>
        <value name="DURATION">
          <shadow type="math_number" id="tsv2_dur_shadow">
            <field name="NUM">1</field>
          </shadow>
          <block type="math_number" id="tsv2_duration">
            <field name="NUM">1</field>
          </block>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number" id="tsv2_amt_shadow">
            <field name="NUM">0.35</field>
          </shadow>
          <block type="math_number" id="tsv2_amount">
            <field name="NUM">0.35</field>
          </block>
        </value>
        <value name="PREDICTION">
          <shadow type="math_number_positive" id="tsv2_pred_shadow">
            <field name="NUM">0</field>
          </shadow>
          <block type="math_number_positive" id="tsv2_prediction">
            <field name="NUM">0</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="tsv2_before" deletable="false" x="0" y="520">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="strategy_contract_sequence_diff_over_under_apply" id="tsv2_sequence">
        <next>
          <block type="purchase" id="tsv2_purchase">
            <field name="PURCHASE_LIST">DIGITOVER</field>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="during_purchase" id="tsv2_during" deletable="false" x="520" y="520">
  </block>
  <block type="after_purchase" id="tsv2_after" deletable="false" x="0" y="720">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="tsv2_if_win">
        <value name="IF0">
          <block type="contract_check_result" id="tsv2_check_win">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="strategy_rotate_market" id="tsv2_rotate"></block>
        </statement>
        <next>
          <block type="trade_again" id="tsv2_trade_again"></block>
        </next>
      </block>
    </statement>
  </block>
</xml>
