﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <block type="trade" id="trade" x="-59" y="-77">
    <field name="MARKET_LIST">forex</field>
    <field name="SUBMARKET_LIST">major_pairs</field>
    <field name="SYMBOL_LIST">frxEURUSD</field>
    <field name="TRADETYPECAT_LIST">callput</field>
    <field name="TRADETYPE_LIST">risefall</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="p4B^7$~0mO]d12RLJ/Q%">
        <field name="VAR">Max Acceptable Loss</field>
        <value name="VALUE">
          <block type="math_number" id="8wWJ7+N-|U3BhmGj`Cd0">
            <field name="NUM">50</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="yh;iwfgxq6/VWW9gIV%.">
            <field name="VAR">Expected Profit</field>
            <value name="VALUE">
              <block type="math_number" id="J#z;a7:.[fewk^Q*klT*">
                <field name="NUM">50</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id=".J5RE|^F6BQL]n0:A)9j">
                <field name="VAR">Win Amount</field>
                <value name="VALUE">
                  <block type="math_number" id="AJ:.kvYm*t{7#fXq0%gR">
                    <field name="NUM">0.5</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="Ti5S97_j^l#q#;c7g;Mi">
                    <field name="VAR">Initial Amount</field>
                    <value name="VALUE">
                      <block type="math_number" id="p{myer39j9ZRj-B-_fKm">
                        <field name="NUM">0.5</field>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="o?-:`n(iv!LdQJz%[[(q">
        <field name="DURATIONTYPE_LIST">m</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block type="math_number" id="[0?XZ[+#_aQxGgU9}E:b">
            <field name="NUM">3</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="variables_get" id="uwlRl)V$5[#wo;eha77|">
            <field name="VAR">Initial Amount</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="during_purchase" id="(4;NieXd}j|Bn!c-YiC|" collapsed="true" x="532" y="-107">
    <statement name="DURING_PURCHASE_STACK">
      <block type="controls_if" id="8?eYKAW%VczmRXQ-ou3r">
        <value name="IF0">
          <block type="check_sell" id="M=:_KpEeRAJY_}XTU^8~"></block>
        </value>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="finish" x="791" y="52">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="tNNMHQ9!Ay3ChW`;O$,{">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="ABbC5ey%8,z+o!5u[gX7">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="notify" id=":i.xaJ.Xxw1go8h%uT7+">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="Y2_Vja6#WVC[{R!TigGU">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="0;${MsW/?g8+h=KIae1:">
                    <field name="TEXT">Won:</field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="read_details" id="T~-DOuxfkgs5,36G@S59">
                    <field name="DETAIL_INDEX">4</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="x`A=~-52#-FUPy[|C(V6">
                <field name="VAR">Initial Amount</field>
                <value name="VALUE">
                  <block type="variables_get" id="_.Jqv/)N_*x8QH^H^Z7y">
                    <field name="VAR">Win Amount</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="math_change" id="6vOR14z]_ZmR3JMgL7+r">
            <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="/yMxZaUd/K?TL9XTd_9Y">
                <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="IkG~8Q08ViP+30r*mb0e">
                    <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="gp+9XB1jWzp[J)}lA(/I">
                        <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="9#I=[-dzOqNs,q$i{=0p">
                    <field name="NUM">1.021</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="notify" id="6?!Psw7in^8fm^uQOpCq">
                <field name="NOTIFICATION_TYPE">warn</field>
                <field name="NOTIFICATION_SOUND">silent</field>
                <value name="MESSAGE">
                  <block type="text_join" id="^E?c+35SMH`}dWQ@M*wn">
                    <mutation items="2"></mutation>
                    <value name="ADD0">
                      <block type="text" id="}A9S7~ngiG^lediy_GYh">
                        <field name="TEXT">LOST</field>
                      </block>
                    </value>
                    <value name="ADD1">
                      <block type="math_single" id="@HiM?L]8LHgr4rU=K=-T">
                        <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="YWHnHC/JX~LzJ9y+mmi2">
                            <field name="DETAIL_INDEX">4</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="trade_again" id="H2leW}F^Z(ECR;),p$Md"></block>
        </next>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="strategy" x="-99" y="407">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="variables_set" id="n;G[Tb(gaZ$(/c/,AuWg">
        <field name="VAR">BB superior</field>
        <value name="VALUE">
          <block type="bb" id="F/%u0r5Y{gj7NCw:6AFK">
            <field name="BBRESULT_LIST">1</field>
            <value name="INPUT">
              <block type="ohlc_values" id="hZ9jMPO^/S_YV{5NJ2Lq" inline="false">
                <field name="OHLCFIELD_LIST">close</field>
                <field name="CANDLEINTERVAL_LIST">default</field>
              </block>
            </value>
            <value name="PERIOD">
              <shadow type="math_number" id="N)PMCXX~T-`N-(`BNW;?">
                <field name="NUM">20</field>
              </shadow>
            </value>
            <value name="UPMULTIPLIER">
              <shadow type="math_number" id="p6[/}G$X1-?gu/[UMW{k">
                <field name="NUM">2</field>
              </shadow>
            </value>
            <value name="DOWNMULTIPLIER">
              <shadow type="math_number" id=":Fp6Gs;SZx_^ocf8Bmc9">
                <field name="NUM">2</field>
              </shadow>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="|v#0nMx#=|*I5Jd@=5W{">
            <field name="VAR">BB inferior</field>
            <value name="VALUE">
              <block type="bb" id="ai,XPy.!]^w5UMnGo3j*">
                <field name="BBRESULT_LIST">2</field>
                <value name="INPUT">
                  <block type="ohlc_values" id="${EiAHieZ:RKnvSzuD0=" inline="false">
                    <field name="OHLCFIELD_LIST">close</field>
                    <field name="CANDLEINTERVAL_LIST">default</field>
                  </block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="Fs#3CM.Sl6Kr;1Xd*W7n">
                    <field name="NUM">20</field>
                  </shadow>
                </value>
                <value name="UPMULTIPLIER">
                  <shadow type="math_number" id="Jx1}%bVq33g)=3-S-aOk">
                    <field name="NUM">2</field>
                  </shadow>
                </value>
                <value name="DOWNMULTIPLIER">
                  <shadow type="math_number" id="Bf+)pX`LVf9G:{?i,ja1">
                    <field name="NUM">2</field>
                  </shadow>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="q+ilfO]:khnyDayxafpT">
                <field name="VAR">CANDLE ATUAL</field>
                <value name="VALUE">
                  <block type="read_ohlc" id="IR#`]kXy*:zLzk{wo*:h">
                    <field name="OHLCFIELD_LIST">close</field>
                    <field name="CANDLEINTERVAL_LIST">default</field>
                    <value name="CANDLEINDEX">
                      <shadow type="math_number" id="vnex8-g)KjS#d;rmZXw7">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="qPPM|m*90639iODV2x!E">
                    <field name="VAR">1 candle baixa</field>
                    <value name="VALUE">
                      <block type="is_candle_black" id="T=vn`./:/Q6}oh@Cdz+,">
                        <value name="OHLCOBJ">
                          <block type="get_ohlc" id="ezP7jT)NM%[dAx$_C6i4">
                            <field name="CANDLEINTERVAL_LIST">120</field>
                            <value name="CANDLEINDEX">
                              <shadow type="math_number" id="jd0SD;2nu}~%}.{-]JVP">
                                <field name="NUM">1</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="controls_if" id="X!)??Il,+{4ayMHSbiFD">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_operation" id="Z$!P)o$PKiSnkHCLRUtr">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="OhcOSM=Z!!D40CsbXBYM">
                                <field name="OP">GT</field>
                                <value name="A">
                                  <block type="variables_get" id="cS-CmO!_n0@S0EcjMzdc">
                                    <field name="VAR">CANDLE ATUAL</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="F7OofCoII`Yd9rHkN9.m">
                                    <field name="VAR">BB superior</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="is_candle_black" id=")cV^Cj[AtK:S+pTeAfP4">
                                <value name="OHLCOBJ">
                                  <block type="get_ohlc" id="%iiEd/Mi~AkA~A1~EJoF">
                                    <field name="CANDLEINTERVAL_LIST">120</field>
                                    <value name="CANDLEINDEX">
                                      <shadow type="math_number" id="|#?vieVY6u0)}D4hfE=Z">
                                        <field name="NUM">1</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="notify" id="|__Q$%p2qnI~5S7K3!I5">
                            <field name="NOTIFICATION_TYPE">success</field>
                            <field name="NOTIFICATION_SOUND">silent</field>
                            <value name="MESSAGE">
                              <block type="text_join" id="v`_vH83x]IazelwOy7_8">
                                <mutation items="2"></mutation>
                                <value name="ADD0">
                                  <block type="text" id="^}Y|Fv,~PIRwBJRSmzg;">
                                    <field name="TEXT">bb</field>
                                  </block>
                                </value>
                                <value name="ADD1">
                                  <block type="variables_get" id="~2Clcc;{FGr[s=qP;_Sa">
                                    <field name="VAR">BB superior</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="purchase" id="xrZ;STRFNJ1Y-MXbye*=">
                                <field name="PURCHASE_LIST">PUT</field>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <statement name="ELSE">
                          <block type="controls_if" id="TW-FC9.`G^nAtaNxS(mz">
                            <value name="IF0">
                              <block type="logic_operation" id="R7xy(6YjkvotH%%4dyO{">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="ty)Pf`Mv]ZTnl(4k/mtH">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="zVi?*qp2)n/V-ALHD{Fd">
                                        <field name="VAR">CANDLE ATUAL</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="If:.=-I4/;oe!n(dnSKd">
                                        <field name="VAR">BB inferior</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_negate" id=",~|Y*x^+Oj{b!o^w2BWx">
                                    <value name="BOOL">
                                      <block type="is_candle_black" id="G|s5]@$6kA4]V.NXKmkO">
                                        <value name="OHLCOBJ">
                                          <block type="get_ohlc" id="I~5Zm9@+NL.?Nx|9rW8o">
                                            <field name="CANDLEINTERVAL_LIST">120</field>
                                            <value name="CANDLEINDEX">
                                              <shadow type="math_number" id="Ef07*}_Hqb=ExTOzR!Y#">
                                                <field name="NUM">1</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="notify" id="^-J:2Efkm3@aW9TES4.#">
                                <field name="NOTIFICATION_TYPE">success</field>
                                <field name="NOTIFICATION_SOUND">silent</field>
                                <value name="MESSAGE">
                                  <block type="text_join" id="`z0/{B#|cX1Q9ts=_hQw">
                                    <mutation items="2"></mutation>
                                    <value name="ADD0">
                                      <block type="text" id="~mm}67VG[;jGu1--T^Q$">
                                        <field name="TEXT">bb</field>
                                      </block>
                                    </value>
                                    <value name="ADD1">
                                      <block type="variables_get" id="1h(=wUIZmB@Ab-!H~L8a">
                                        <field name="VAR">BB inferior</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="purchase" id="z`9Qli{;ph-x~lj-+:Pp">
                                    <field name="PURCHASE_LIST">CALL</field>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>