Skip to content

ketus it 1#31

Open
mainabarnabas254-ui wants to merge 1 commit intotoptraderke:mainfrom
mainabarnabas254-ui:patch-1
Open

ketus it 1#31
mainabarnabas254-ui wants to merge 1 commit intotoptraderke:mainfrom
mainabarnabas254-ui:patch-1

Conversation

@mainabarnabas254-ui
Copy link

currentPrediction predictionList Stake winCount lossCount winRate total_trades maxConsecutiveLosses dailyProfitTarget dailyLossLimit initialBalance synthetic_index random_index 1HZ100V digits overunder both 60 FALSE TRUE
<!-- INITIALIZATION -->
<statement name="INITIALIZATION">
  <block type="text_print" id="p/.,vRPU$1XGgf@o1^VV">
    <value name="TEXT">
      <shadow type="text">
        <field name="TEXT">Smart Digit Hunter Activated</field>
      </shadow>
    </value>
    <next>
      <!-- Initialize Prediction List -->
      <block type="lists_create_with" id="4ha4x,Fv:ImACq_]|1V_">
        <field name="VARIABLE" id=";h?C)H/tmAqNwKqb=^ov">predictionList</field>
        <statement name="STACK">
          <block type="lists_statement" id="RwhGv2psOyyOv1VJ38wA" movable="false">
            <value name="VALUE">
              <block type="math_number"><field name="NUM">0</field></block>
            </value>
            <next>
              <block type="lists_statement" id="oMS1j}|Nhhsl#H{C=o-A">
                <value name="VALUE">
                  <block type="math_number"><field name="NUM">5</field></block>
                </value>
                <next>
                  <block type="lists_statement" id="#8J8Yd.j5T(rX9c5y**b">
                    <value name="VALUE">
                      <block type="math_number"><field name="NUM">6</field></block>
                    </value>
                    <next>
                      <block type="lists_statement" id="|[@!]8(!53cP;BT{nu3X">
                        <value name="VALUE">
                          <block type="math_number"><field name="NUM">7</field></block>
                        </value>
                        <next>
                          <block type="lists_statement" id="^^_8k`iFtD*gfUG)i!5u">
                            <value name="VALUE">
                              <block type="math_number"><field name="NUM">8</field></block>
                            </value>
                            <next>
                              <block type="lists_statement" id="0^+yh5zQOVw=Pb[;D]F^">
                                <value name="VALUE">
                                  <block type="math_number"><field name="NUM">4</field></block>
                                </value>
                                <next>
                                  <block type="lists_statement" id="IXm5,S-O3/h-}Vt0]dQ.">
                                    <value name="VALUE">
                                      <block type="math_number"><field name="NUM">3</field></block>
                                    </value>
                                    <next>
                                      <block type="lists_statement" id="PRj~lg--U0%p9wQFH2w5">
                                        <value name="VALUE">
                                          <block type="math_number"><field name="NUM">2</field></block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <!-- Initialize Stake -->
          <block type="variables_set" id="(rxlO-s8zdAkJ#3J3Jym">
            <field name="VAR" id="rP]rJTAeSthDOPA8=l%8">Stake</field>
            <value name="VALUE">
              <block type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
            <next>
              <!-- Initialize Counters -->
              <block type="variables_set" id="set_winCount">
                <field name="VAR" id="winCount">winCount</field>
                <value name="VALUE">
                  <block type="math_number"><field name="NUM">0</field></block>
                </value>
                <next>
                  <block type="variables_set" id="set_lossCount">
                    <field name="VAR" id="lossCount">lossCount</field>
                    <value name="VALUE">
                      <block type="math_number"><field name="NUM">0</field></block>
                    </value>
                    <next>
                      <block type="variables_set" id="set_currentPred">
                        <field name="VAR" id="%w)b[:t0iEA{Kzy$1[P9">currentPrediction</field>
                        <value name="VALUE">
                          <block type="math_number"><field name="NUM">0</field></block>
                        </value>
                        <next>
                          <!-- Set Limits -->
                          <block type="variables_set" id="set_loss_limit">
                            <field name="VAR" id="maxConsecutiveLosses">maxConsecutiveLosses</field>
                            <value name="VALUE">
                              <block type="math_number"><field name="NUM">5</field></block>
                            </value>
                            <next>
                              <block type="variables_set" id="set_profit_target">
                                <field name="VAR" id="dailyProfitTarget">dailyProfitTarget</field>
                                <value name="VALUE">
                                  <block type="math_number"><field name="NUM">10</field></block>
                                </value>
                                <next>
                                  <block type="variables_set" id="set_loss_limit_daily">
                                    <field name="VAR" id="dailyLossLimit">dailyLossLimit</field>
                                    <value name="VALUE">
                                      <block type="math_number"><field name="NUM">5</field></block>
                                    </value>
                                    <next>
                                      <block type="variables_set" id="save_balance">
                                        <field name="VAR" id="initialBalance">initialBalance</field>
                                        <value name="VALUE">
                                          <block type="account_balance"></block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </next>
  </block>
</statement>

<!-- SUBMARKET: Set Trade Parameters -->
<statement name="SUBMARKET">
  <block type="math_change" id="E==7~)BZm5:ZQ6c5Df;1">
    <field name="VAR" id="%w)b[:t0iEA{Kzy$1[P9">currentPrediction</field>
    <value name="DELTA">
      <shadow type="math_number">
        <field name="NUM">1</field>
      </shadow>
    </value>
    <next>
      <block type="trade_definition_tradeoptions" id="8!MPM@_Y!(*EXABIfB3+">
        <mutation 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_positive">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number_positive">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get">
            <field name="VAR" id="rP]rJTAeSthDOPA8=l%8">Stake</field>
          </block>
        </value>
        <value name="PREDICTION">
          <shadow type="math_number_positive">
            <field name="NUM">1</field>
          </shadow>
          <block type="lists_getIndex">
            <mutation statement="false" at="true"></mutation>
            <field name="MODE">GET</field>
            <field name="WHERE">FROM_START</field>
            <value name="VALUE">
              <block type="variables_get">
                <field name="VAR" id=";h?C)H/tmAqNwKqb=^ov">predictionList</field>
              </block>
            </value>
            <value name="AT">
              <block type="math_modulo">
                <value name="DIVIDEND">
                  <block type="variables_get">
                    <field name="VAR" id="%w)b[:t0iEA{Kzy$1[P9">currentPrediction</field>
                  </block>
                </value>
                <value name="DIVISOR">
                  <block type="lists_length">
                    <value name="VALUE">
                      <block type="variables_get">
                        <field name="VAR" id=";h?C)H/tmAqNwKqb=^ov">predictionList</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
      </block>
    </next>
  </block>
</statement>
GT currentPrediction 4 DIGITUNDER DIGITOVER win winCount ADD winCount 1 Stake 1 lossCount ADD lossCount 1 Stake MULTIPLY Stake 2 OR LTE true dailyLossLimit GTE true dailyProfitTarget Daily target/loss reached. Stopping. total_trades ADD winCount lossCount winRate NEQ total_trades 0 DIVIDE winCount total_trades 0 Trades: total_trades | Win Rate: ROUND MULTIPLY winRate 100 %

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant