﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="MPE$id2J3D}J+sA8m^c~">_profit</variable>
    <variable type="" id="=[Q.i4*v!tea-*+5y9Da">_src</variable>
    <variable type="" id="K}XeHO`tQc@v^x!{ERj0">ExMachina:initialStake</variable>
    <variable type="" id="p40Oz1rdxn|earwF26^w">ExMachina:running</variable>
    <variable type="" id="UA}sAUHkT6DwYyELY}xR">closeCandles</variable>
    <variable type="" id=".:$cwo0M`)h$W!PPd4+0">ExMachina:stake</variable>
    <variable type="" id=",*|p!yh+(`U7(4(3/+l1">ExMachina:rising</variable>
    <variable type="" id="rz[MA4Gn;/}{3,d]Y]nH">ExMachina:falling</variable>
    <variable type="" id="4h@f_cK]:A5i~L!X_Bda">ExMachina:total</variable>
  </variables>
  <block type="procedures_defnoreturn" id="i/O$W#,n(9tNWql:r^|2" collapsed="true" x="0" y="0">
    <mutation>
      <arg name="_src" varid="=[Q.i4*v!tea-*+5y9Da"></arg>
    </mutation>
    <field name="NAME">ExMachina::SetCandles(5)</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="#u!LA2BP)0|u,DeiuW#n">
        <field name="VAR" id="UA}sAUHkT6DwYyELY}xR" variabletype="">closeCandles</field>
        <value name="VALUE">
          <block type="variables_get" id="{!H%^oJyZS#MvIWJ:q0|">
            <field name="VAR" id="=[Q.i4*v!tea-*+5y9Da" variabletype="">_src</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="loader" id="z.mb[j~ezwa:]5_4NY^`" collapsed="true" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/binary-ex-machina/e5660582478169e87fa24cd463817820/raw/3ef409c7e967debfa59dcf0f7ae984eea17fcbb1/exmachina-rsirisefall.xml</field>
  </block>
  <block type="procedures_defreturn" id="pv6n]5(S$zd?5TzO6v8," collapsed="true" x="0" y="0">
    <field name="NAME">ExMachina::Rising(2)</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="logic_ternary" id="|ZU;mYF}n80XKnVNBILE">
        <value name="IF">
          <block type="variables_get" id="*)oNQ,mX2IC!qAM@OYM-">
            <field name="VAR" id="p40Oz1rdxn|earwF26^w" variabletype="">ExMachina:running</field>
          </block>
        </value>
        <value name="THEN">
          <block type="variables_get" id="zqMh{_UDhHbw,D|!YyG*">
            <field name="VAR" id=",*|p!yh+(`U7(4(3/+l1" variabletype="">ExMachina:rising</field>
          </block>
        </value>
        <value name="ELSE">
          <block type="logic_compare" id="flZV6O9s8Z%,iGha5F4D">
            <field name="OP">LT</field>
            <value name="A">
              <block type="rsi" id="8BAY(rq)TpL3:*bFU0yQ">
                <value name="INPUT">
                  <block type="variables_get" id="Bj!?aB{CjOT4*=9Y}@GZ">
                    <field name="VAR" id="UA}sAUHkT6DwYyELY}xR" variabletype="">closeCandles</field>
                  </block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="!:*x{/Bh;gM$F65BGwx*">
                    <field name="NUM">3</field>
                  </shadow>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="math_number" id="DPl/mWmnB/eyFjAvl:5D">
                <field name="NUM">70</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="Lh$n|gozwGDzCGc-$U-y" collapsed="true" x="0" y="0">
    <field name="NAME">ExMachina::Falling(2)</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="logic_ternary" id="*;CN/t!orGaAnsC9+(v-">
        <value name="IF">
          <block type="variables_get" id="GLv$Vs(j9b1u|pT}pr}p">
            <field name="VAR" id="p40Oz1rdxn|earwF26^w" variabletype="">ExMachina:running</field>
          </block>
        </value>
        <value name="THEN">
          <block type="variables_get" id="q^K]Wv$+Wncm,orS0DBb">
            <field name="VAR" id="rz[MA4Gn;/}{3,d]Y]nH" variabletype="">ExMachina:falling</field>
          </block>
        </value>
        <value name="ELSE">
          <block type="logic_compare" id="EWn)d]5{(B,8QVV*(O7h">
            <field name="OP">LT</field>
            <value name="A">
              <block type="rsi" id="QFd;$(jc~U}B54SlsHf9">
                <value name="INPUT">
                  <block type="variables_get" id="/,?,inbi]=WBsb;*Z:qj">
                    <field name="VAR" id="UA}sAUHkT6DwYyELY}xR" variabletype="">closeCandles</field>
                  </block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="j{wNN}`_GBmqY-b@gUY$">
                    <field name="NUM">3</field>
                  </shadow>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="math_number" id="(WzV(p}k,PofDyTjY@A,">
                <field name="NUM">30</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="-F4((S!ejVm;X}x|lyuH" collapsed="true" x="0" y="0">
    <mutation>
      <arg name="_profit" varid="MPE$id2J3D}J+sA8m^c~"></arg>
    </mutation>
    <field name="NAME">ExMachina::TradeAgain(4)</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="7UW}1`:@acLcF61m8;[u">
        <field name="VAR" id="p40Oz1rdxn|earwF26^w" variabletype="">ExMachina:running</field>
        <value name="VALUE">
          <block type="logic_boolean" id="V5ui`gi}GZCpPcf//NY`">
            <field name="BOOL">TRUE</field>
          </block>
        </value>
        <next>
          <block type="math_change" id="9sZh.#FmH)oqrGi}0g,+">
            <field name="VAR" id="4h@f_cK]:A5i~L!X_Bda" variabletype="">ExMachina:total</field>
            <value name="DELTA">
              <shadow type="math_number" id="2gm`G;c:%:~V{bO53x)Z">
                <field name="NUM">1</field>
              </shadow>
              <block type="variables_get" id="^e.u|?XpdJQ|/2ihs3)x">
                <field name="VAR" id="MPE$id2J3D}J+sA8m^c~" variabletype="">_profit</field>
              </block>
            </value>
            <next>
              <block type="controls_if" id="_U?FOv~1wCYgr?.{0L^E">
                <mutation elseif="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="]IZ)5j|wB.qAI(jX@iSH">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="rsi" id="~jNFF7B9spa744^x8Kl_">
                        <value name="INPUT">
                          <block type="variables_get" id="Q`|3MW:oz[(=I]wSR{}:">
                            <field name="VAR" id="UA}sAUHkT6DwYyELY}xR" variabletype="">closeCandles</field>
                          </block>
                        </value>
                        <value name="PERIOD">
                          <shadow type="math_number" id="xoyQZFMcL3q|-koM(*qw">
                            <field name="NUM">3</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="%ndP^q7aMH:wf)X$;-%t">
                        <field name="NUM">70</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="@y0SV|#VxP$x5j[5!iM3">
                    <field name="VAR" id=",*|p!yh+(`U7(4(3/+l1" variabletype="">ExMachina:rising</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="Zj)o3+u(z.{I@+IF,ncI">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="l.z!NQgo,6M*SykKnJM/">
                        <field name="VAR" id="rz[MA4Gn;/}{3,d]Y]nH" variabletype="">ExMachina:falling</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="u8F1h;AmM6Fdl|v3$hPB">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
                <value name="IF1">
                  <block type="logic_compare" id="-k.2!.#$[+jO7HsU:J!g">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="rsi" id="!nj4Dxn#fFX`-4,YN:rE">
                        <value name="INPUT">
                          <block type="variables_get" id="Sbmr{oDT~)^7Y45;7!cp">
                            <field name="VAR" id="UA}sAUHkT6DwYyELY}xR" variabletype="">closeCandles</field>
                          </block>
                        </value>
                        <value name="PERIOD">
                          <shadow type="math_number" id="N[Saz)`Ex{%y_4b,4ajC">
                            <field name="NUM">3</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="7^2P*t_IZUDF50,iZNbL">
                        <field name="NUM">30</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO1">
                  <block type="variables_set" id="8D{Di==orab}GC.6{0bI">
                    <field name="VAR" id="rz[MA4Gn;/}{3,d]Y]nH" variabletype="">ExMachina:falling</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="pO`L@D3^MCzA)jA0*Tzz">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="3zW_yrQXn2epf7[zqqxo">
                        <field name="VAR" id=",*|p!yh+(`U7(4(3/+l1" variabletype="">ExMachina:rising</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="0=r=_XJ?d$U!{4O1vDJV">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id=".;+%k/zk(u=Li{VuJ4+E">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="/)@A9~fKU)-$YC]0~fox">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="variables_get" id="42{fSOZ!I`r^p@JM1DH8">
                            <field name="VAR" id="MPE$id2J3D}J+sA8m^c~" variabletype="">_profit</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="_|y}@(qY0*;*s/n;Ly4^">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="y#VTr*qUN:vEXb4B@!JV">
                        <field name="VAR" id=".:$cwo0M`)h$W!PPd4+0" variabletype="">ExMachina:stake</field>
                        <value name="VALUE">
                          <block type="variables_get" id="#Zmi_2t/O15I$Hg5Z{yb">
                            <field name="VAR" id="K}XeHO`tQc@v^x!{ERj0" variabletype="">ExMachina:initialStake</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="variables_set" id="6botch6Er)rp/*8E=k93">
                        <field name="VAR" id=".:$cwo0M`)h$W!PPd4+0" variabletype="">ExMachina:stake</field>
                        <value name="VALUE">
                          <block type="math_arithmetic" id="]yFI~mrh$zJudJ??W2g;">
                            <field name="OP">MULTIPLY</field>
                            <value name="A">
                              <shadow type="math_number" id="Et@.w0a;/:ko{7cElp*~">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="variables_get" id="(yM6|@se4HERO6x{L-K2">
                                <field name="VAR" id=".:$cwo0M`)h$W!PPd4+0" variabletype="">ExMachina:stake</field>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="(@JoF/;{a##*y;}4-{3.">
                                <field name="NUM">1.9</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="B!f$7}#jXbXKjT:f3#dY">
                            <field name="VAR" id=",*|p!yh+(`U7(4(3/+l1" variabletype="">ExMachina:rising</field>
                            <value name="VALUE">
                              <block type="logic_ternary" id="*a;hUxW}QPh`R:x]i=46">
                                <value name="IF">
                                  <block type="variables_get" id="@_59]xIJV5IB!ixeiH2e">
                                    <field name="VAR" id=",*|p!yh+(`U7(4(3/+l1" variabletype="">ExMachina:rising</field>
                                  </block>
                                </value>
                                <value name="THEN">
                                  <block type="logic_boolean" id="y?348YX5S8J[s_3{o:JJ">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <value name="ELSE">
                                  <block type="logic_boolean" id="WO`?KjMso5.I~7Wqda5v">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="x*93g!33BCfcp{0vhip_">
                                <field name="VAR" id="rz[MA4Gn;/}{3,d]Y]nH" variabletype="">ExMachina:falling</field>
                                <value name="VALUE">
                                  <block type="logic_ternary" id="JS{P#,7t|U@[AZ=n76wv">
                                    <value name="IF">
                                      <block type="variables_get" id="K`T9iR-jC-n!1fCnanJ0">
                                        <field name="VAR" id="rz[MA4Gn;/}{3,d]Y]nH" variabletype="">ExMachina:falling</field>
                                      </block>
                                    </value>
                                    <value name="THEN">
                                      <block type="logic_boolean" id="sE1f)L|$NNS4Ve[tlqb%">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                    <value name="ELSE">
                                      <block type="logic_boolean" id="t2Kf4z%{8=(]B|CUC0~!">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="notify" id="V92XHCGXGepMwd12:uLR">
                        <field name="NOTIFICATION_TYPE">success</field>
                        <field name="NOTIFICATION_SOUND">silent</field>
                        <value name="MESSAGE">
                          <shadow type="text" id="Gro]wTZ+5=p2oOv!1^;t">
                            <field name="TEXT">abc</field>
                          </shadow>
                          <block type="text_join" id="n^k9|K2M}j1y;oLx.4wt">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="]d2_SG{2kchy[?]6c6|+">
                                <field name="TEXT">Total Profit: </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="mg1P{UyP!IG|{,G*HR%(">
                                <field name="VAR" id="4h@f_cK]:A5i~L!X_Bda" variabletype="">ExMachina:total</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defnoreturn" id="_~IC{+r%x:iecF6w{F6Y" collapsed="true" x="0" y="0">
    <field name="NAME">ExMachina::Config(1)</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="N]$t^eAZ2G*4oP7a9yG,">
        <field name="VAR" id="K}XeHO`tQc@v^x!{ERj0" variabletype="">ExMachina:initialStake</field>
        <value name="VALUE">
          <block type="math_number" id="!(jLN2Ovb8-%m;!]/$dX">
            <field name="NUM">0.35</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id=".I}:P_K7MU.GH4sMuz(i">
            <field name="VAR" id=".:$cwo0M`)h$W!PPd4+0" variabletype="">ExMachina:stake</field>
            <value name="VALUE">
              <block type="math_number" id="Pz)h,q)bF!Cx2jD*H{7F">
                <field name="NUM">0.35</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="I3`xocr$r*;V5`d*NU%Y">
                <field name="VAR" id="4h@f_cK]:A5i~L!X_Bda" variabletype="">ExMachina:total</field>
                <value name="VALUE">
                  <block type="math_number" id="`}~fCTj$HGOEXm/it=g{">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="(NaZh+bO+`8EW1tVyX(X">
                    <field name="VAR" id="p40Oz1rdxn|earwF26^w" variabletype="">ExMachina:running</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="v#b[N(5;U-jXgD#@-U)n">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="OB6P2.VPALGzF}JiX4Ip" collapsed="true" x="0" y="0">
    <field name="NAME">ExMachina::GetStake</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="variables_get" id="Q%WNFU5w_s*]m0i^g]j)">
        <field name="VAR" id=".:$cwo0M`)h$W!PPd4+0" variabletype="">ExMachina:stake</field>
      </block>
    </value>
  </block>
  <block type="trade" id="xgH69|xFn9=70w.*3Vo@" x="0" y="53">
    <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="procedures_callnoreturn" id="=tO)6=pdH]P/y:QC]j[X">
        <mutation name="ExMachina::Config(1)"></mutation>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="x=V33~4Lb|(sLv`J[:Eb">
        <field name="DURATIONTYPE_LIST">s</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <shadow type="math_number" id="O*@58sDc=!cOO}*b2vf9">
            <field name="NUM">30</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number" id="ml)25~7^q}3I9}vjf:%K">
            <field name="NUM">1</field>
          </shadow>
          <block type="procedures_callreturn" id="#~u=Gc={)cN?;#WLfIfn">
            <mutation name="ExMachina::GetStake"></mutation>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" collapsed="true" x="0" y="358">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="Um=ga;Y^!nR|]}p?t.gQ">
        <mutation elseif="1"></mutation>
        <value name="IF0">
          <block type="procedures_callreturn" id="Q.P%JO%+k%:0(/I0F7OB">
            <mutation name="ExMachina::Rising(2)"></mutation>
          </block>
        </value>
        <statement name="DO0">
          <block type="purchase" id="W6q#Z-I3q3d[d3-`S[dS">
            <field name="PURCHASE_LIST">CALL</field>
          </block>
        </statement>
        <value name="IF1">
          <block type="procedures_callreturn" id="vbwPWfbRA;YHW4?/jAhv">
            <mutation name="ExMachina::Falling(2)"></mutation>
          </block>
        </value>
        <statement name="DO1">
          <block type="purchase" id="O.368Jg,u9aSx^AJWa5Q">
            <field name="PURCHASE_LIST">PUT</field>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="D^Jz1^n=2vtZku1vBN@;" collapsed="true" x="0" y="410">
    <statement name="AFTERPURCHASE_STACK">
      <block type="procedures_callnoreturn" id="s=HMND1?NEhpwp+~-jv2">
        <mutation name="ExMachina::TradeAgain(4)">
          <arg name="_profit"></arg>
        </mutation>
        <value name="ARG0">
          <block type="read_details" id="^ZV3m@w{sjJsW!3.XO,U">
            <field name="DETAIL_INDEX">4</field>
          </block>
        </value>
        <next>
          <block type="trade_again" id="c)S|KjoQdXc8l#J@5z3P"></block>
        </next>
      </block>
    </statement>
  </block>
  <block type="tick_analysis" id="ky6o$HLo):l6U4$jD.$l" collapsed="true" x="0" y="462">
    <statement name="TICKANALYSIS_STACK">
      <block type="procedures_callnoreturn" id="U4Netn1,JWM:X62x3DVb">
        <mutation name="ExMachina::SetCandles(5)">
          <arg name="_src"></arg>
        </mutation>
        <value name="ARG0">
          <block type="ohlc_values" id="DJepU~|.ItnJE.*?zoD{" inline="false">
            <field name="OHLCFIELD_LIST">close</field>
            <field name="CANDLEINTERVAL_LIST">default</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
</xml>
