﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id=".f)LS]%[=3S]6T[[-_#L">src1</variable>
    <variable type="" id="6j#|be=^a~^QAd*-JD21">src2</variable>
    <variable type="" id=";oq;6v*oUP;UCM.Js.~;">Next Trade Condition</variable>
    <variable type="" id="DrJn!v0?$X~tC^0)/fT#">RSI</variable>
    <variable type="" id="KZMMh?1tHLQW5`!8|+5Z">Max Acceptable Loss</variable>
    <variable type="" id="?-2Eb_#Ko{x0cU76KVo]">Initial Amount</variable>
    <variable type="" id="-A!V+_Odvq^cj:##7?~,">Expected Profit</variable>
    <variable type="" id="I#?!L_Sd|sBeWfU?X@k~">Win Amount</variable>
  </variables>
  <block type="trade" id="trade" x="0" y="0">
    <field name="MARKET_LIST">volidx</field>
    <field name="SUBMARKET_LIST">random_index</field>
    <field name="SYMBOL_LIST">R_100</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="+A)~k9b-b}h/X0I?GMvY">
        <field name="VAR" id=";oq;6v*oUP;UCM.Js.~;" variabletype="">Next Trade Condition</field>
        <value name="VALUE">
          <block type="text" id="J=Gbg,4]j[9C!H_/zR0u">
            <field name="TEXT">Even</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="p4B^7$~0mO]d12RLJ/Q%">
            <field name="VAR" id="KZMMh?1tHLQW5`!8|+5Z" variabletype="">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" id="-A!V+_Odvq^cj:##7?~," variabletype="">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" id="I#?!L_Sd|sBeWfU?X@k~" variabletype="">Win Amount</field>
                    <value name="VALUE">
                      <block type="math_number" id="AJ:.kvYm*t{7#fXq0%gR">
                        <field name="NUM">5</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="Ti5S97_j^l#q#;c7g;Mi">
                        <field name="VAR" id="?-2Eb_#Ko{x0cU76KVo]" variabletype="">Initial Amount</field>
                        <value name="VALUE">
                          <block type="math_number" id="p{myer39j9ZRj-B-_fKm">
                            <field name="NUM">5</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id=".B~ZLcvQbW%iy+p~Y-(6">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block type="math_number" id="[0?XZ[+#_aQxGgU9}E:b">
            <field name="NUM">7</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="variables_get" id="uwlRl)V$5[#wo;eha77|">
            <field name="VAR" id="?-2Eb_#Ko{x0cU76KVo]" variabletype="">Initial Amount</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="I((1.v^Q{?~S;U1G{7|1" collapsed="true" x="1207" y="38">
    <mutation>
      <arg name="src1" varid=".f)LS]%[=3S]6T[[-_#L"></arg>
      <arg name="src2" varid="6j#|be=^a~^QAd*-JD21"></arg>
    </mutation>
    <field name="NAME">CrossUp</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="logic_operation" id="GijiJV90@J:]%HrJcqq-" inline="false">
        <field name="OP">AND</field>
        <value name="A">
          <block type="logic_compare" id="M6,tYMR{K3AYcl4^D{P1" inline="false">
            <field name="OP">LT</field>
            <value name="A">
              <block type="lists_getIndex" id="~C%1u0zps]$_mt:P)L:|">
                <mutation statement="false" at="true"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FROM_END</field>
                <value name="VALUE">
                  <block type="variables_get" id="@R(TX{6T{Uch?ly.htj.">
                    <field name="VAR" id=".f)LS]%[=3S]6T[[-_#L" variabletype="">src1</field>
                  </block>
                </value>
                <value name="AT">
                  <block type="math_number" id=",c*08jlHf%CF{zH}Ce.B">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="lists_getIndex" id="zyw?fsXpy]az0x$vl0yx">
                <mutation statement="false" at="true"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FROM_END</field>
                <value name="VALUE">
                  <block type="variables_get" id="t[Oau_4!Z)rol8JdCxy^">
                    <field name="VAR" id="6j#|be=^a~^QAd*-JD21" variabletype="">src2</field>
                  </block>
                </value>
                <value name="AT">
                  <block type="math_number" id="^#8%kSKfkWyQo{L.+^??">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <block type="logic_compare" id="j;o8Go9s)wHo,RO#1b*q" inline="false">
            <field name="OP">GT</field>
            <value name="A">
              <block type="lists_getIndex" id="GTC_nbC3PF;]$?OO6E:_">
                <mutation statement="false" at="true"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FROM_END</field>
                <value name="VALUE">
                  <block type="variables_get" id=",M(6rZC]m],mFgm_)O9.">
                    <field name="VAR" id=".f)LS]%[=3S]6T[[-_#L" variabletype="">src1</field>
                  </block>
                </value>
                <value name="AT">
                  <block type="math_number" id=")pwr$-*6ZrjI#C+`^+6(">
                    <field name="NUM">1</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="lists_getIndex" id="h,$k}Pt0W1ww`F72K{sn">
                <mutation statement="false" at="true"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FROM_END</field>
                <value name="VALUE">
                  <block type="variables_get" id="3bXDRN)ets2).l:}Ne5f">
                    <field name="VAR" id="6j#|be=^a~^QAd*-JD21" variabletype="">src2</field>
                  </block>
                </value>
                <value name="AT">
                  <block type="math_number" id=".c;}Ds;!MpJa=,9GK.8)">
                    <field name="NUM">1</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="CUCU,EWL=1kFSY[8Tm-~" collapsed="true" x="1201" y="84">
    <mutation>
      <arg name="src1" varid=".f)LS]%[=3S]6T[[-_#L"></arg>
      <arg name="src2" varid="6j#|be=^a~^QAd*-JD21"></arg>
    </mutation>
    <field name="NAME">CrossDown</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="logic_operation" id="n@,]Y1Iv{jZfzgPTeJN%" inline="false">
        <field name="OP">AND</field>
        <value name="A">
          <block type="logic_compare" id="6fHKe0bFT,v=w[F-kMSy" inline="false">
            <field name="OP">GT</field>
            <value name="A">
              <block type="lists_getIndex" id="7o[C18M{rWlE!FW$WzHA">
                <mutation statement="false" at="true"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FROM_END</field>
                <value name="VALUE">
                  <block type="variables_get" id="]=%bka*ANb#T1DU2qfqR">
                    <field name="VAR" id=".f)LS]%[=3S]6T[[-_#L" variabletype="">src1</field>
                  </block>
                </value>
                <value name="AT">
                  <block type="math_number" id="?rGPIK;=)@-IG#Fcq.8B">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="lists_getIndex" id="{vF.XRWtesv4TLE|@Wjx">
                <mutation statement="false" at="true"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FROM_END</field>
                <value name="VALUE">
                  <block type="variables_get" id="()vvJ$H@ZFnAsJQg,u]A">
                    <field name="VAR" id="6j#|be=^a~^QAd*-JD21" variabletype="">src2</field>
                  </block>
                </value>
                <value name="AT">
                  <block type="math_number" id="VN|~{?-(B3.ZHttlu9Ic">
                    <field name="NUM">2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <block type="logic_compare" id="sFA|Vhl+m%dpIY71muq)" inline="false">
            <field name="OP">LT</field>
            <value name="A">
              <block type="lists_getIndex" id="D62rM!J,$3^GQ2-}M!Vn">
                <mutation statement="false" at="true"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FROM_END</field>
                <value name="VALUE">
                  <block type="variables_get" id="5gjU(mL,Y`;/nUV5RJN-">
                    <field name="VAR" id=".f)LS]%[=3S]6T[[-_#L" variabletype="">src1</field>
                  </block>
                </value>
                <value name="AT">
                  <block type="math_number" id="~JG5Z{G8aRwM=Tnxn6@_">
                    <field name="NUM">1</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="lists_getIndex" id=":FTg~dr?B(=xHz;6kpsF">
                <mutation statement="false" at="true"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">FROM_END</field>
                <value name="VALUE">
                  <block type="variables_get" id="]!UcQ?Kp+Hju!.Qq(rvp">
                    <field name="VAR" id="6j#|be=^a~^QAd*-JD21" variabletype="">src2</field>
                  </block>
                </value>
                <value name="AT">
                  <block type="math_number" id="gSv8oidz{xN]An55Fo6,">
                    <field name="NUM">1</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="during_purchase" id="(4;NieXd}j|Bn!c-YiC|" x="1199" y="315">
    <statement name="DURING_PURCHASE_STACK">
      <block type="controls_if" id="8?eYKAW%VczmRXQ-ou3r">
        <value name="IF0">
          <block type="logic_operation" id="g}-!m!R~-+cBKRk(j7JB">
            <field name="OP">AND</field>
            <value name="A">
              <block type="check_sell" id="M=:_KpEeRAJY_}XTU^8~"></block>
            </value>
            <value name="B">
              <block type="logic_compare" id="NCzjn){9_MpN[xPBm.v+">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="sell_price" id="H+h`m)66rD`,@7pVl|9b"></block>
                </value>
                <value name="B">
                  <block type="math_number" id="|V:i.Tn7i]pma(Bi7WMy">
                    <field name="NUM">5</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="sell_at_market" id="*n!q1Rw@hC)PRyEn70.?"></block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="strategy" x="0" y="846">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="variables_set" id="*uB]Q|nFNF+Fl%J1IoHh">
        <field name="VAR" id="DrJn!v0?$X~tC^0)/fT#" variabletype="">RSI</field>
        <value name="VALUE">
          <block type="rsi" id="Oa]Jf72)=EqGVb4EQ+w{">
            <value name="INPUT">
              <block type="ohlc_values" id="exvE}]0c%G]BJM[[[.bv">
                <field name="OHLCFIELD_LIST">close</field>
                <field name="CANDLEINTERVAL_LIST">default</field>
              </block>
            </value>
            <value name="PERIOD">
              <block type="math_number" id="HvD7/0[!,5g~OI;4|m[D">
                <field name="NUM">5</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="notify" id="``8ZknkdrG03z$^goci_">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="/28UpDpYX`fFPls-a);7">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="B%TD]]+EAq:!`C|iu}ua">
                    <field name="TEXT">RSI</field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="variables_get" id="T%5l8JixJ~9i]}Df-1nL">
                    <field name="VAR" id="DrJn!v0?$X~tC^0)/fT#" variabletype="">RSI</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="X!)??Il,+{4ayMHSbiFD">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="#QoENBi]~FGVy?8IoOpw">
                    <field name="OP">GTE</field>
                    <value name="A">
                      <block type="variables_get" id="bknTR0Q}mjD,UsL}Cb+K">
                        <field name="VAR" id="DrJn!v0?$X~tC^0)/fT#" variabletype="">RSI</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="_?Sv`-QJd+(#|(t/uQ@N">
                        <field name="NUM">75</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="purchase" id="xrZ;STRFNJ1Y-MXbye*=">
                    <field name="PURCHASE_LIST">PUT</field>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="controls_if" id="/Zzo`!`FCNUM])1_rv|u">
                    <value name="IF0">
                      <block type="logic_compare" id="^Tvvp*1}Mwiq4*LIeL[2">
                        <field name="OP">LTE</field>
                        <value name="A">
                          <block type="variables_get" id="A!s6F?{t);vY3.b,]*8`">
                            <field name="VAR" id="DrJn!v0?$X~tC^0)/fT#" variabletype="">RSI</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="`Km=SsS#^$A[6!o?xAKQ">
                            <field name="NUM">25</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="purchase" id="dFmsGtA{oS)/z99$.N`)">
                        <field name="PURCHASE_LIST">CALL</field>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="finish" x="0" y="1275">
    <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="variables_set" id="x`A=~-52#-FUPy[|C(V6">
            <field name="VAR" id="?-2Eb_#Ko{x0cU76KVo]" variabletype="">Initial Amount</field>
            <value name="VALUE">
              <block type="variables_get" id="_.Jqv/)N_*x8QH^H^Z7y">
                <field name="VAR" id="I#?!L_Sd|sBeWfU?X@k~" variabletype="">Win Amount</field>
              </block>
            </value>
            <next>
              <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>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="math_change" id="6vOR14z]_ZmR3JMgL7+r">
            <field name="VAR" id="?-2Eb_#Ko{x0cU76KVo]" variabletype="">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.041</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>
</xml>