﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <block type="loader" id="8*/J|~pCeu@4+@nfT{I1" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/aminmarashi/7cd7be9f3ce9004de767f4d4f6a6c5a0/raw/is%2520candle%2520new.xml</field>
  </block>
  <block type="trade" id="Yt52~)Nf#vNGlE+qP/vI" x="0" y="53">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_75</field>
    <field name="TRADETYPECAT_LIST">callput</field>
    <field name="TRADETYPE_LIST">higherlower</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="LIU}~GJH]d]Hd}L~?M7a">
        <field name="VAR">binary::current candle time</field>
        <value name="VALUE">
          <block type="math_number" id="J/jBS$9!qHGB*hNSBFS=">
            <field name="NUM">5</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="$XdCC5b%S^}39[IsudDC">
            <field name="VAR">Max Loss Amount</field>
            <value name="VALUE">
              <block type="math_number" id="+VOc!-|*UHq)rCCqVD3p">
                <field name="NUM">1000</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="Q^|Ep;W#@U*Fh7)Hf#Pv">
                <field name="VAR">Expected Profit</field>
                <value name="VALUE">
                  <block type="math_number" id="9iov@QD]=yAG}6@LXK/r">
                    <field name="NUM">100</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="/bI|P[JS!PqSB+BN=otN">
                    <field name="VAR">Win Amount</field>
                    <value name="VALUE">
                      <block type="math_number" id="d_+[3YLxkZ5_x{|J7por">
                        <field name="NUM">10</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="HW![F%]g]Kp7S2v!D_31">
                        <field name="VAR">Initial Amount</field>
                        <value name="VALUE">
                          <block type="math_number" id="CS+6bg8|C2}o%F#Gq9]H">
                            <field name="NUM">10</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="controls_if" id="v=27u+wync%ZDF:qO9_e">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="check_direction" id="TR7tT+hGPgM8+[cNdtCg">
            <field name="CHECK_DIRECTION">rise</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="^,6{g8VV*Vvmx+hyJ7;E">
            <field name="VAR">last result</field>
            <value name="VALUE">
              <block type="text" id="b]taGYeu*sGSJ3^g|d~k">
                <field name="TEXT">OP RISE</field>
              </block>
            </value>
            <next>
              <block type="tradeOptions" id="lc-G%xO1SceCHLTzFx=O">
                <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="2TaRxO4{(1PwX~aQv`cO">
                    <field name="NUM">5</field>
                  </shadow>
                </value>
                <value name="AMOUNT">
                  <shadow type="math_number" id="/.?J=$rs57K!^iEo]7+d">
                    <field name="NUM">5</field>
                  </shadow>
                  <block type="variables_get" id="{~uz2x$ln@#pXRSiYPge">
                    <field name="VAR">Initial Amount</field>
                  </block>
                </value>
                <value name="BARRIEROFFSET">
                  <block type="math_number" id="tlB2d~)vuJJ)QOE;UHDI">
                    <field name="NUM">18.4</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id=")%E!Mt/XTA9OwNKWtfdz">
            <field name="VAR">last result</field>
            <value name="VALUE">
              <block type="text" id="o{am}-o?O-]Lta?[GciB">
                <field name="TEXT">OP FALL</field>
              </block>
            </value>
            <next>
              <block type="tradeOptions" id="uihr%9*R8B~V`ASWkU=.">
                <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="Vv(uNE1So6YooD0}KF(z">
                    <field name="NUM">5</field>
                  </shadow>
                </value>
                <value name="AMOUNT">
                  <shadow type="math_number" id="Y#Rx`Om)@VKV*B:EP8~?">
                    <field name="NUM">5</field>
                  </shadow>
                  <block type="variables_get" id="T`o6-!WAX+|dZPQ{)Yza">
                    <field name="VAR">Initial Amount</field>
                  </block>
                </value>
                <value name="BARRIEROFFSET">
                  <block type="math_number" id="w2sUJ)A%ihMPBr7It94Y">
                    <field name="NUM">18.4</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="KN1,f]4$QK5.HU-x8z.a" x="0" y="670">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="t?2jI7h:=XjftkjKUjtZ">
        <value name="IF0">
          <block type="procedures_callreturn" id="}top{jr,tQPmr|T3YZg1">
            <mutation name="binary::is new candle"></mutation>
          </block>
        </value>
        <statement name="DO0">
          <block type="notify" id="C3q*CMRjq=LfKF)?(@ro">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="hu#to(QpRxu^vY=PW4hs">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="L!h|jB/(Bz*jFetxDqd^">
                    <field name="TEXT">awal candle</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="timeout" id="]4[d*.aE+_2j!ak=RQ{P">
                <statement name="TIMEOUTSTACK">
                  <block type="controls_if" id="mYMaY=Zj!bi*qF3wQkwH">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="xI@r]{36B*aN39Ga/o6$">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="8oz}@MllhxY4Es9ewC}F">
                            <field name="VAR">last result</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="text" id="mjFcfxkaAAE:5E#l]H3+">
                            <field name="TEXT">OP RISE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="purchase" id="a[eV./hmXC:;dr*VbM/f">
                        <field name="PURCHASE_LIST">CALL</field>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="purchase" id="[g*(L+c;gzig+_u??cCH">
                        <field name="PURCHASE_LIST">PUT</field>
                      </block>
                    </statement>
                  </block>
                </statement>
                <value name="SECONDS">
                  <block type="math_number" id="%rtz1u-RRtMp-Jck3O*l">
                    <field name="NUM">10</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="si+/*VwS7HpjJ^2f}|3g" x="0" y="975">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="T:OB#jhbbKiBj!OvW~R*">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="}I,%h*R43lliT%QzYNqC">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="3g?QZ{:x;.jUsf;Y1W0N">
            <field name="VAR">last result</field>
            <value name="VALUE">
              <block type="text" id="P1-ZmcHdW~{cbvuUb^~M">
                <field name="TEXT">WIN</field>
              </block>
            </value>
            <next>
              <block type="notify" id="IYA`JgCo~x0F!,GKfOyR">
                <field name="NOTIFICATION_TYPE">success</field>
                <field name="NOTIFICATION_SOUND">silent</field>
                <value name="MESSAGE">
                  <block type="text_join" id="uab+=^I%g)(#4m_YF?Uo">
                    <mutation items="2"></mutation>
                    <value name="ADD0">
                      <block type="text" id="5K~~^XL80+Tq*o7!y1g)">
                        <field name="TEXT">Untung:</field>
                      </block>
                    </value>
                    <value name="ADD1">
                      <block type="read_details" id="bfOgvi-%8hz99oTI87v3">
                        <field name="DETAIL_INDEX">4</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="~z;x-}b4l,?GCQuEHH#J">
                    <field name="VAR">Initial Amount</field>
                    <value name="VALUE">
                      <block type="variables_get" id="Yi`e;KzZ*T|?X4$L)$R6">
                        <field name="VAR">Win Amount</field>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="variables_set" id="lF@.DB2qAr83B:P-q=%X">
            <field name="VAR">last result</field>
            <value name="VALUE">
              <block type="text" id="^D._oSE15y,lkqoJ#Mn#">
                <field name="TEXT">LOSS</field>
              </block>
            </value>
            <next>
              <block type="math_change" id="a[N.%@bo-WZw=W@{|YV2">
                <field name="VAR">Initial Amount</field>
                <value name="DELTA">
                  <shadow type="math_number" id="N=Vo^MVz~/^(xt7Ag@8E">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="t?#{EZ~6[xbnG1LHv#wM">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="ka8n8|Dugz,q5FkUjs`7">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_single" id=":6t9oykv:l^F=vc#rk:V">
                        <field name="OP">ABS</field>
                        <value name="NUM">
                          <shadow type="math_number" id="GleSn`9j7Cm7/dqg}FIA">
                            <field name="NUM">9</field>
                          </shadow>
                          <block type="read_details" id="ItN-brw?kPkAZpT]BiJ#">
                            <field name="DETAIL_INDEX">4</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="{JXdZCp2%s=sfO@yN:n}">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_number" id="Y+#OmklRXHD${oNu~f?@">
                        <field name="NUM">11</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="^:jG{~!]F$a#J}SDLMle">
                    <value name="IF0">
                      <block type="logic_compare" id="u_Itj{YuK$wjG;Mh;J_z">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="math_single" id="ntC{UgnMbxz9K@%MU@F;">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id="ft^DVzOH^GlSjzUC}@3c">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="read_details" id=",qAgo8`(Xi91u~$s@!Ds">
                                <field name="DETAIL_INDEX">4</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="L0#m^pKKuBaY9v]#3c6}">
                            <field name="VAR">Max Loss Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="Zl;Z9cF(FP3IBxRvmUV?">
                        <field name="VAR">Initial Amount</field>
                        <value name="VALUE">
                          <block type="variables_get" id="P8GB4C%[;p6JulB)JyFZ">
                            <field name="VAR">Win Amount</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="3geRKU!3G{bnpoS5ismd">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="9+o^[PROTECTED EMAIL]9BpL)Z">
                <field name="OP">LT</field>
                <value name="A">
                  <block type="total_profit" id="_ZDZp%rKE!tfWi0^W~pV"></block>
                </value>
                <value name="B">
                  <block type="variables_get" id="ZH!$U6}h,G-9ARgNrp2P">
                    <field name="VAR">Expected Profit</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="trade_again" id="iXCMv$JK{@T!v!bZnlj:"></block>
            </statement>
            <statement name="ELSE">
              <block type="text_print" id="Zi()jxnsjnW$hz%-QO?d">
                <value name="TEXT">
                  <shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
                    <field name="TEXT">abc</field>
                  </shadow>
                  <block type="text_join" id="O!@_gxhU6L2nnwmHxQWq">
                    <mutation items="2"></mutation>
                    <value name="ADD0">
                      <block type="text" id="]zXU:,0}qF$A%[P^Nu]$">
                        <field name="TEXT">Alhamdulillah untung:</field>
                      </block>
                    </value>
                    <value name="ADD1">
                      <block type="total_profit" id=",,XZ*l8ZAiN~b(,yW^gk"></block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>
