﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="wHH`kwCIIH~i8z:$u1yM">TP:sellIsAvailable</variable>
    <variable type="" id="l~c%P=abW_4NC-.IibT-">TP:profit</variable>
    <variable type="" id="tBb%!RnLZ0;bFQ8qz)M;">TP:takeProfit</variable>
    <variable type="" id="g^488-z-Ht.{|=,FHJaP">TPSL:sellIsAvailable</variable>
    <variable type="" id="1}76|rC[;UcmT0(ut]**">TPSL:profit</variable>
    <variable type="" id="rqhf4DWENF{Av^X5Gbu[">TPSL:stopLoss</variable>
    <variable type="" id="gY!Z(hAoUO?)8c=Pz/*6">TPSL:takeProfit</variable>
    <variable type="" id="RS5O(O2OBXmXc7!t(i8o">_candleCloses</variable>
    <variable type="" id="ax-Pu;G1ve3)|$H20[-D">_period</variable>
    <variable type="" id="vMcu.*wybRyD:h`9chG1">TP:sell</variable>
    <variable type="" id=",v+6$u%|o`J$IVK$rt%H">TPSL:sell</variable>
    <variable type="" id="TI,H(+i7[c/(G4Eb?R=#">Initial Amount</variable>
    <variable type="" id="hbm1t_{o/@g[Y#x-gyY`">EMA</variable>
    <variable type="" id="`-@K[])A00tLnw?iz1OG">TEMA:ema1</variable>
    <variable type="" id="e}SvfkW53S$6g7xA3z,C">Win Amount</variable>
    <variable type="" id="]]?YU/%:(e1`:/pug*|x">TEMA</variable>
    <variable type="" id="7@r9$758OTd+1Tod@4!G">TEMA:ema2</variable>
    <variable type="" id="PA8]*w2/[PROTECTED EMAIL]">TEMA:ema3</variable>
    <variable type="" id="3!04wBS#F}FXXXQ1JaP`">Expected Profit</variable>
    <variable type="" id="/Y{UDAYF./_K6LNjVvhw">RSI</variable>
    <variable type="" id="OS?qcNi=SM-2)Kh+|HMA">Maximum Loss</variable>
    <variable type="" id="#1nvvzeHDuOZUBj|Esbr">martingale::multiplier</variable>
    <variable type="" id="himwqBlrRy(D=UJR|T})">Max Loss Amount</variable>
  </variables>
  <block type="procedures_defreturn" id=";KywW+o|o}s3|s,apK;n" collapsed="true" x="-40" y="-142">
    <mutation>
      <arg name="TP:sellIsAvailable" varid="wHH`kwCIIH~i8z:$u1yM"></arg>
      <arg name="TP:profit" varid="l~c%P=abW_4NC-.IibT-"></arg>
      <arg name="TP:takeProfit" varid="tBb%!RnLZ0;bFQ8qz)M;"></arg>
    </mutation>
    <field name="NAME">take profit</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="+H^hU^F[Oi*TWeKL|uf0">
        <field name="VAR" id="vMcu.*wybRyD:h`9chG1" variabletype="">TP:sell</field>
        <value name="VALUE">
          <block type="logic_boolean" id="V7vl}-Fv4+D!I^3~e?f;">
            <field name="BOOL">FALSE</field>
          </block>
        </value>
        <next>
          <block type="controls_if" id="e}?TB@5xE}2+a7BETiC0">
            <value name="IF0">
              <block type="variables_get" id="fm`tc$iKIN2c;$X97=_M">
                <field name="VAR" id="wHH`kwCIIH~i8z:$u1yM" variabletype="">TP:sellIsAvailable</field>
              </block>
            </value>
            <statement name="DO0">
              <block type="controls_if" id="`|9/E?9z+?4k6oq+KK^P">
                <value name="IF0">
                  <block type="logic_compare" id="3)U}GWq)?uZ`*l_H~:r?">
                    <field name="OP">GTE</field>
                    <value name="A">
                      <block type="variables_get" id="ur-`ypnybzo}mF~:Jtzt">
                        <field name="VAR" id="l~c%P=abW_4NC-.IibT-" variabletype="">TP:profit</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="!}iVFact4!xeO{NhHy2G">
                        <field name="VAR" id="tBb%!RnLZ0;bFQ8qz)M;" variabletype="">TP:takeProfit</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="2u#}_?!NNSG|(!`1E,{L">
                    <field name="VAR" id="vMcu.*wybRyD:h`9chG1" variabletype="">TP:sell</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="@5e5vMsQ(K1lGR,a9::o">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="}z4R-~};?(Yvd?s^70wc">
        <field name="VAR" id="vMcu.*wybRyD:h`9chG1" variabletype="">TP:sell</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="[!.o}WDt*`sg4fXs5nKd" collapsed="true" x="215" y="-146">
    <mutation>
      <arg name="TPSL:sellIsAvailable" varid="g^488-z-Ht.{|=,FHJaP"></arg>
      <arg name="TPSL:profit" varid="1}76|rC[;UcmT0(ut]**"></arg>
      <arg name="TPSL:stopLoss" varid="rqhf4DWENF{Av^X5Gbu["></arg>
      <arg name="TPSL:takeProfit" varid="gY!Z(hAoUO?)8c=Pz/*6"></arg>
    </mutation>
    <field name="NAME">take profit/stop loss</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="JSpS-j^Aw2H!L1DE_QKP">
        <field name="VAR" id=",v+6$u%|o`J$IVK$rt%H" variabletype="">TPSL:sell</field>
        <value name="VALUE">
          <block type="logic_boolean" id="@~MmbC)mDt|H)f8V/b8%">
            <field name="BOOL">FALSE</field>
          </block>
        </value>
        <next>
          <block type="controls_if" id="b-uEY6Mj^+SI)F8#O4@^">
            <value name="IF0">
              <block type="variables_get" id="AeoHt,LIb8eXOHSs)9eK">
                <field name="VAR" id="g^488-z-Ht.{|=,FHJaP" variabletype="">TPSL:sellIsAvailable</field>
              </block>
            </value>
            <statement name="DO0">
              <block type="controls_if" id="Pr9E;H{96`PE]d(mj#V5">
                <value name="IF0">
                  <block type="logic_compare" id="gugPmpS{Yy7-F%Vm~Y%r">
                    <field name="OP">GTE</field>
                    <value name="A">
                      <block type="variables_get" id="jJGnoVyfg(1KrhW^OSDn">
                        <field name="VAR" id="1}76|rC[;UcmT0(ut]**" variabletype="">TPSL:profit</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="U%2Z0ZQUSde3UTbG~;O-">
                        <field name="VAR" id="gY!Z(hAoUO?)8c=Pz/*6" variabletype="">TPSL:takeProfit</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="}c:.J+yV=pu=/01(i1td">
                    <field name="VAR" id=",v+6$u%|o`J$IVK$rt%H" variabletype="">TPSL:sell</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="i6N_F23):4TQO,:OJm9d">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="6)-A?80DnmBXUi.qN,=h">
                    <value name="IF0">
                      <block type="logic_compare" id="KTuQbli^}_~Y)eo(TM`I">
                        <field name="OP">LTE</field>
                        <value name="A">
                          <block type="variables_get" id="e)LZrRg(h0tK0pXk*Z-{">
                            <field name="VAR" id="1}76|rC[;UcmT0(ut]**" variabletype="">TPSL:profit</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_single" id="[*Yn!#VIc`ACMA@K;~JF">
                            <field name="OP">NEG</field>
                            <value name="NUM">
                              <shadow type="math_number" id="59:vDM3^HPS.E.i0lW;m">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="variables_get" id="JtINoV6(|q`#r=s].f4D">
                                <field name="VAR" id="rqhf4DWENF{Av^X5Gbu[" variabletype="">TPSL:stopLoss</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="XhcfbZmxG}c;)4`xH!%_">
                        <field name="VAR" id=",v+6$u%|o`J$IVK$rt%H" variabletype="">TPSL:sell</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="52F8L{?`O9]8}oW3IpUJ">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="KXnRZMcsN+{|cVtKsx`P">
        <field name="VAR" id=",v+6$u%|o`J$IVK$rt%H" variabletype="">TPSL:sell</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="u4Om8UeXOrGzmgG]W?`4" collapsed="true" x="466" y="-148">
    <mutation>
      <arg name="_candleCloses" varid="RS5O(O2OBXmXc7!t(i8o"></arg>
      <arg name="_period" varid="ax-Pu;G1ve3)|$H20[-D"></arg>
    </mutation>
    <field name="NAME">indicator::GetTEMA</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="_|*O=L]yp0~H(Z{d$^?[">
        <field name="VAR" id="`-@K[])A00tLnw?iz1OG" variabletype="">TEMA:ema1</field>
        <value name="VALUE">
          <block type="emaa" id="(xYt5=1k53W_%i.$xVka">
            <value name="INPUT">
              <block type="variables_get" id="ri5Mbj-F6eH.[f+1X@^h">
                <field name="VAR" id="RS5O(O2OBXmXc7!t(i8o" variabletype="">_candleCloses</field>
              </block>
            </value>
            <value name="PERIOD">
              <shadow type="math_number" id="GZomI`IJuf4/Sx?85F0b">
                <field name="NUM">9</field>
              </shadow>
              <block type="variables_get" id="nY4IPz38ATK;U_A.[W}O">
                <field name="VAR" id="ax-Pu;G1ve3)|$H20[-D" variabletype="">_period</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="U6SdR|~4C_`O~J(kBX*5">
            <field name="VAR" id="7@r9$758OTd+1Tod@4!G" variabletype="">TEMA:ema2</field>
            <value name="VALUE">
              <block type="emaa" id="n,N}tOF95I4~DJ]T(d|!">
                <value name="INPUT">
                  <block type="variables_get" id="$0a?uC~$ZM~/;O*Qq5[)">
                    <field name="VAR" id="`-@K[])A00tLnw?iz1OG" variabletype="">TEMA:ema1</field>
                  </block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="kdulOttUlD7*LSG!Ez(U">
                    <field name="NUM">9</field>
                  </shadow>
                  <block type="variables_get" id="P]E?eWtrhc@ok/jsV3qF">
                    <field name="VAR" id="ax-Pu;G1ve3)|$H20[-D" variabletype="">_period</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="r1XRE_krvAYL)=(0WG|_">
                <field name="VAR" id="PA8]*w2/[PROTECTED EMAIL]" variabletype="">TEMA:ema3</field>
                <value name="VALUE">
                  <block type="emaa" id="h*M5iTW[F,r%.`~/P*Hh">
                    <value name="INPUT">
                      <block type="variables_get" id="Bf]RCkL}xh{1AK]/,zF*">
                        <field name="VAR" id="7@r9$758OTd+1Tod@4!G" variabletype="">TEMA:ema2</field>
                      </block>
                    </value>
                    <value name="PERIOD">
                      <shadow type="math_number" id="o$`K=eO=2V/b}Qlwg=!t">
                        <field name="NUM">9</field>
                      </shadow>
                      <block type="variables_get" id="%1%#)X^i%(;~m@kaP7ps">
                        <field name="VAR" id="ax-Pu;G1ve3)|$H20[-D" variabletype="">_period</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id=".`jX3Qka7K%xd8kZ^ag?">
                    <field name="VAR" id="`-@K[])A00tLnw?iz1OG" variabletype="">TEMA:ema1</field>
                    <value name="VALUE">
                      <block type="lists_getIndex" id="Lu/+,e$GwGKvZEF=(fEe">
                        <mutation statement="false" at="false"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">LAST</field>
                        <value name="VALUE">
                          <block type="variables_get" id="|FD3lyYQL6J@e+x(_s_2">
                            <field name="VAR" id="`-@K[])A00tLnw?iz1OG" variabletype="">TEMA:ema1</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="wPopg9|8?9AHLJ)q:3=f">
                        <field name="VAR" id="7@r9$758OTd+1Tod@4!G" variabletype="">TEMA:ema2</field>
                        <value name="VALUE">
                          <block type="lists_getIndex" id="JGBJ%+IE-QyUTH_psl5/">
                            <mutation statement="false" at="false"></mutation>
                            <field name="MODE">GET</field>
                            <field name="WHERE">LAST</field>
                            <value name="VALUE">
                              <block type="variables_get" id="EM8Lm$I0L8GRt[/?!96/">
                                <field name="VAR" id="7@r9$758OTd+1Tod@4!G" variabletype="">TEMA:ema2</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="]y~*RUkBHMI}LY5p=)Cf">
                            <field name="VAR" id="PA8]*w2/[PROTECTED EMAIL]" variabletype="">TEMA:ema3</field>
                            <value name="VALUE">
                              <block type="lists_getIndex" id="m+*1QdSp.HRe59Esi8X|">
                                <mutation statement="false" at="false"></mutation>
                                <field name="MODE">GET</field>
                                <field name="WHERE">LAST</field>
                                <value name="VALUE">
                                  <block type="variables_get" id="J0iQl(Kpo?Mc!Li_twy7">
                                    <field name="VAR" id="PA8]*w2/[PROTECTED EMAIL]" variabletype="">TEMA:ema3</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="qH$[)JbmVY%PXiHpyJ-Z">
        <field name="OP">ADD</field>
        <value name="A">
          <shadow type="math_number" id="tIqxm]72BgG|W4cQ_/(V">
            <field name="NUM">1</field>
          </shadow>
          <block type="math_arithmetic" id=",3Ge~@,}O1cv,D$ggPD:">
            <field name="OP">MULTIPLY</field>
            <value name="A">
              <shadow type="math_number" id="*@2$EEQuqrE5k9h$Zkt{">
                <field name="NUM">3</field>
              </shadow>
            </value>
            <value name="B">
              <shadow type="math_number" id="~I4.77a|!V=A@RR$%pGo">
                <field name="NUM">1</field>
              </shadow>
              <block type="math_arithmetic" id="%NIn95C!|Zw*Q(mTHSz|">
                <field name="OP">MINUS</field>
                <value name="A">
                  <shadow type="math_number" id="!W{d-~.+^XG2Y^El=QpZ">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="BMXDB3`$.ZeW`sd%S)O4">
                    <field name="VAR" id="`-@K[])A00tLnw?iz1OG" variabletype="">TEMA:ema1</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="vh4]R~FY$HVbEwJ2TjaB">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="g;b)*rk^0,knTxPzZzT=">
                    <field name="VAR" id="7@r9$758OTd+1Tod@4!G" variabletype="">TEMA:ema2</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="bH/@CDZ|:ebrY[eP+ykq">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="]r8M}8w0w+b0)D%$0r0/">
            <field name="VAR" id="PA8]*w2/[PROTECTED EMAIL]" variabletype="">TEMA:ema3</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="trade" id="73vWdDagX-YhN)CtN.3D" x="-63" y="-77">
    <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="fk@,(+CuZJNV`#*`ky#%">
        <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
        <value name="VALUE">
          <block type="math_number" id="rtkxF8CMmhgny:2p;eOV">
            <field name="NUM">1</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="Ps5^a$rKb6jsFeOO6=A8">
            <field name="VAR" id="e}SvfkW53S$6g7xA3z,C" variabletype="">Win Amount</field>
            <value name="VALUE">
              <block type="math_number" id="@^[b(J!JsZ|WI~xnL5uY">
                <field name="NUM">1</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id=":ic-?7`7^OubjY6^no0Y">
                <field name="VAR" id="3!04wBS#F}FXXXQ1JaP`" variabletype="">Expected Profit</field>
                <value name="VALUE">
                  <block type="math_number" id="%K/sZcPzVQs!3x$|p(KB">
                    <field name="NUM">3</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="~YVxuU@5uj,5`woX9)ff">
                    <field name="VAR" id="OS?qcNi=SM-2)Kh+|HMA" variabletype="">Maximum Loss</field>
                    <value name="VALUE">
                      <block type="math_number" id="PDUSY2iA}B0K#:2M1%3_">
                        <field name="NUM">10</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="0LIEun,Noj#Lg}UfAX3F">
                        <field name="VAR" id="#1nvvzeHDuOZUBj|Esbr" variabletype="">martingale::multiplier</field>
                        <value name="VALUE">
                          <block type="math_number" id="0:zo9rUh=q:DA[fOmXGs">
                            <field name="NUM">0.2</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="UbB%}tL%qr#v|f=Huw3e">
        <field name="DURATIONTYPE_LIST">m</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <block type="math_number" id="D5lOhG~Gz?;Ooipb_Xe@">
            <field name="NUM">3</field>
          </block>
        </value>
        <value name="AMOUNT">
          <block type="variables_get" id="YApx@j:|I.(PMGYVi`UE">
            <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" collapsed="true" x="734" y="-56">
    <statement name="AFTERPURCHASE_STACK">
      <block type="controls_if" id="lXx[u)])DplI5tNJCX#E">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="contract_check_result" id="f`.9rMI;|4i^FZ9y12zT">
            <field name="CHECK_RESULT">win</field>
          </block>
        </value>
        <statement name="DO0">
          <block type="notify" id="4YfK{W[2OoWl^*}:`-~%">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">earned-money</field>
            <value name="MESSAGE">
              <block type="text_join" id="NI6_z2cNjwq/t2B^h`{=">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="5%$!H}8?@4$/?s+Piv_+">
                    <field name="TEXT">Win: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="read_details" id="rm)(g3DL.ASYfcDYc913">
                    <field name="DETAIL_INDEX">4</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="RHjB4R=uQ`(l+$;WvdmJ">
                <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
                <value name="VALUE">
                  <block type="variables_get" id="@f`s#/,Qh+L1siQ%@LZu">
                    <field name="VAR" id="e}SvfkW53S$6g7xA3z,C" variabletype="">Win Amount</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="notify" id="=%CD;.rm0YSeX3^NARv{">
            <field name="NOTIFICATION_TYPE">error</field>
            <field name="NOTIFICATION_SOUND">job-done</field>
            <value name="MESSAGE">
              <block type="text_join" id="`~I~AJSjE5P*6+$e,}D8">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="CrG9@.tREViPIC`9}[=i">
                    <field name="TEXT">Loss: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="math_single" id="nlr^LH9]K.,!~{!S_Q*6">
                    <field name="OP">ABS</field>
                    <value name="NUM">
                      <shadow type="math_number" id="pe:l,[yfpPuE-)d3*.,%">
                        <field name="NUM">9</field>
                      </shadow>
                      <block type="read_details" id="[:48l.owbE2cBTmqoyO1">
                        <field name="DETAIL_INDEX">4</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="math_change" id="fZr!9v0GJno]2?#^f:],">
                <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
                <value name="DELTA">
                  <shadow type="math_number" id="(]GS)V@8Ctdg3v2E@jlY">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="z/WaQqeZuv/Zm?rK6V,8">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="Z@8CJ%w{vP|HSGrX6_|R">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_single" id="_jH,FeYPHFM7tmj.CVso">
                        <field name="OP">ABS</field>
                        <value name="NUM">
                          <shadow type="math_number" id="]whX,`:RR{}94Il[LH_E">
                            <field name="NUM">9</field>
                          </shadow>
                          <block type="read_details" id="bKxhF?]DA_i*QVe-yb_X">
                            <field name="DETAIL_INDEX">4</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="aJV]c6a38`GC_S]Yryu^">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="sk4Ntk[-cj^OW~=BUtV]">
                        <field name="VAR" id="#1nvvzeHDuOZUBj|Esbr" variabletype="">martingale::multiplier</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="X)8ln$MDH0FqTVSB{OuF">
                    <value name="IF0">
                      <block type="logic_compare" id="4Oc$~[[wtRu=wws9Lmt(">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="math_single" id="`Gjie|Z~7{OVFZ1cRy*=">
                            <field name="OP">ABS</field>
                            <value name="NUM">
                              <shadow type="math_number" id=",N`k%BQ|bfznfjP*JUe+">
                                <field name="NUM">9</field>
                              </shadow>
                              <block type="read_details" id="!eXzvhZHl#ED^IYC%f64">
                                <field name="DETAIL_INDEX">4</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="}C8o9bUH`nB$Cx0l0Zo$">
                            <field name="VAR" id="himwqBlrRy(D=UJR|T})" variabletype="">Max Loss Amount</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id=".|dn+LQd#)hRw5m1Q4:@">
                        <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
                        <value name="VALUE">
                          <block type="variables_get" id="5C|=Rc8Zg}mhG?7.}I=5">
                            <field name="VAR" id="e}SvfkW53S$6g7xA3z,C" variabletype="">Win Amount</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="notify" id="+22zCiPYK`7t/0,(j^hu">
            <field name="NOTIFICATION_TYPE">info</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <block type="text_join" id="13ZNjx,;FBn{xq;;T~L4">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="I(n.3v{gwNKj!b4UK-TV">
                    <field name="TEXT">Total Profit: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="total_profit" id="?=%:cTu{h@KWwZoev4|t"></block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="(#7D~2Va0l51${Pu!yW;">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="Qtsk$6Qd[X~o1wD~hfOt">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="total_profit" id="5]xuiqe3-INE?#f@Y=fu"></block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="_9Hf(nmF~1H_+_d`Hazz">
                        <field name="VAR" id="3!04wBS#F}FXXXQ1JaP`" variabletype="">Expected Profit</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="[^X~=j0--A~:d7R9rZ}w">
                    <value name="IF0">
                      <block type="contract_check_result" id="b=[:uhX3@/~}a$2[Xwxs">
                        <field name="CHECK_RESULT">loss</field>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="controls_if" id="~AF%1bVa3b;nkX-V3Q#_">
                        <value name="IF0">
                          <block type="logic_compare" id=":p*F7Z/7,hw4:V$%UKj4">
                            <field name="OP">LTE</field>
                            <value name="A">
                              <block type="variables_get" id="zxXT;a-C*?r(v.R@:u[!">
                                <field name="VAR" id="TI,H(+i7[c/(G4Eb?R=#" variabletype="">Initial Amount</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="F=jpj6Sa4lXj=_*U6UD-">
                                <field name="VAR" id="OS?qcNi=SM-2)Kh+|HMA" variabletype="">Maximum Loss</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="trade_again" id=")o8,}Q?0FkGk)-%mn3C;"></block>
                        </statement>
                      </block>
                    </statement>
                    <next>
                      <block type="trade_again" id="1P(yqTf0n(m!F{Ri4gxk"></block>
                    </next>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="text_print" id="-)Qjpn/c$W_)gB%MdIir">
                    <value name="TEXT">
                      <shadow type="text" id="]XR@@VL{)*ZI)WlTipd_">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text_join" id="t;s[5Z2J?n5$VabcYdow">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="H$7i.%r.PFeQh_Soc[||">
                            <field name="TEXT">I Earned !!! </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="total_profit" id="cgi0g($gg7bzWm^};+`4"></block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="loader" id="`LWY%aQ]68]bVGaLjD~{" x="0" y="0">
    <field name="URL">https://gist.githubusercontent.com/binary-ex-machina/3aa05dee6a7f7874ad0e214222f0532c/raw/9b0549a8332bf5ee613c522db06518744dc333d0/exmachina-indicator-tema.xml</field>
  </block>
  <block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" collapsed="true" x="-79" y="495">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="variables_set" id=")SL80Ix4-8dr:;9kRX`4">
        <field name="VAR" id="hbm1t_{o/@g[Y#x-gyY`" variabletype="">EMA</field>
        <value name="VALUE">
          <block type="lists_getIndex" id="LFqsv7N[WC3v8*Bx%,T(" collapsed="true">
            <mutation statement="false" at="false"></mutation>
            <field name="MODE">GET</field>
            <field name="WHERE">LAST</field>
            <value name="VALUE">
              <block type="emaa" id="D9NZW#Cz!Z)k!~4WsoT,">
                <value name="INPUT">
                  <block type="ohlc_values" id="uUw)y.)8BuTK-t.YqgF{">
                    <field name="OHLCFIELD_LIST">close</field>
                    <field name="CANDLEINTERVAL_LIST">default</field>
                  </block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="M]w)B04ikC[h?mQHP.8o">
                    <field name="NUM">9</field>
                  </shadow>
                </value>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="X!F:xF#l7Er%so-:|%p1">
            <field name="VAR" id="]]?YU/%:(e1`:/pug*|x" variabletype="">TEMA</field>
            <value name="VALUE">
              <block type="procedures_callreturn" id="|;KDx3E_?sihSH2eg_gZ" collapsed="true">
                <mutation name="indicator::GetTEMA">
                  <arg name="_candleCloses"></arg>
                  <arg name="_period"></arg>
                </mutation>
                <value name="ARG0">
                  <block type="lists_getSublist" id="MmG4N=z),WuM_{|WxJJ(">
                    <mutation at1="true" at2="false"></mutation>
                    <field name="WHERE1">FROM_START</field>
                    <field name="WHERE2">LAST</field>
                    <value name="LIST">
                      <block type="ohlc_values" id="sY@7$3HODIn@26QScj5u">
                        <field name="OHLCFIELD_LIST">close</field>
                        <field name="CANDLEINTERVAL_LIST">default</field>
                      </block>
                    </value>
                    <value name="AT1">
                      <block type="math_number" id="=WUsson+0S4[d-vav4~m">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="ARG1">
                  <block type="math_number" id="1|/mr)M^gyEMDbB*c88~">
                    <field name="NUM">9</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="^b[gUGmS*G2iHsM}/zY|">
                <field name="VAR" id="/Y{UDAYF./_K6LNjVvhw" variabletype="">RSI</field>
                <value name="VALUE">
                  <block type="rsi" id="r;?=8`A4a*Vw~3],VIwF" collapsed="true">
                    <value name="INPUT">
                      <block type="ohlc_values" id="C2*v#ofV0Up*^zpWyoQd">
                        <field name="OHLCFIELD_LIST">close</field>
                        <field name="CANDLEINTERVAL_LIST">default</field>
                      </block>
                    </value>
                    <value name="PERIOD">
                      <shadow type="math_number" id="iLi||@TIbtEhw5w1):en">
                        <field name="NUM">9</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="%n%5/CB1df{vz2#(lCq^">
                    <value name="IF0">
                      <block type="logic_operation" id="*i=Na/+kmc9pedW2/0}Q">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_compare" id="Eee?A!i(%oPn;UDMp#r[">
                            <field name="OP">GT</field>
                            <value name="A">
                              <block type="variables_get" id="_s;M2^10VmK}l[2YP3j3">
                                <field name="VAR" id="/Y{UDAYF./_K6LNjVvhw" variabletype="">RSI</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="GV0}3}HLQ8o-b=o`_|Dz">
                                <field name="NUM">57</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="9Y=*s3X{L7,G9-|/7gQv">
                            <field name="OP">LT</field>
                            <value name="A">
                              <block type="variables_get" id="iquq[o)lXsXrOoQpGOMC">
                                <field name="VAR" id="/Y{UDAYF./_K6LNjVvhw" variabletype="">RSI</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="nRt9mZKKt8U#8Rg[~Mcv">
                                <field name="NUM">65</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="controls_if" id="h2Es#k9NDjKnMRkLgBn~">
                        <value name="IF0">
                          <block type="logic_operation" id="DqNf^=+;^)*Xts7_#SXw">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="check_direction" id="z]SHyk.]xPC0,K=aZ=Kz">
                                <field name="CHECK_DIRECTION">rise</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id=",b8=/o3BTz@P*DhQ:5y,">
                                <field name="OP">GT</field>
                                <value name="A">
                                  <block type="variables_get" id="ZS_iF$Gv+wON6?Gq[ld0">
                                    <field name="VAR" id="]]?YU/%:(e1`:/pug*|x" variabletype="">TEMA</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="v{xcE=q=[asyoXhzVo1g">
                                    <field name="VAR" id="hbm1t_{o/@g[Y#x-gyY`" variabletype="">EMA</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
                            <field name="PURCHASE_LIST">CALL</field>
                          </block>
                        </statement>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="fWwY:r57_yTvKD%qq!S8">
                        <value name="IF0">
                          <block type="logic_operation" id="0c,WC$0R!kH-].E6d9Hk">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="{2!o(ol.84waEgd~+c~N">
                                <field name="OP">LT</field>
                                <value name="A">
                                  <block type="variables_get" id="!Ip%_fWAQNXw!Zuh$.il">
                                    <field name="VAR" id="/Y{UDAYF./_K6LNjVvhw" variabletype="">RSI</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="DIE*{DOw`?Z}7;xE,6Vi">
                                    <field name="NUM">43</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="M%78cqy[~Zk0h4?Vctm?">
                                <field name="OP">GT</field>
                                <value name="A">
                                  <block type="variables_get" id="hw.LAOeK?k2UbVXP,*xK">
                                    <field name="VAR" id="/Y{UDAYF./_K6LNjVvhw" variabletype="">RSI</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="-}H,KR$!I2EV6(dT:KA.">
                                    <field name="NUM">35</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="controls_if" id="2[w3H/f+19oM;wus6wwX">
                            <value name="IF0">
                              <block type="logic_operation" id="8Us;NRZW^$uQY`^XYHU*">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="check_direction" id="xvAM{V4ARQ`f];6c?=rA">
                                    <field name="CHECK_DIRECTION">fall</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="7|0cL~@nWxh9,o3]Jfg1">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="#Xaq[Rw4b9Nm9T:S*-%R">
                                        <field name="VAR" id="]]?YU/%:(e1`:/pug*|x" variabletype="">TEMA</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="CZpF3Bdcu(T+JvvD,XdR">
                                        <field name="VAR" id="hbm1t_{o/@g[Y#x-gyY`" variabletype="">EMA</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="purchase" id="jO8z*`7jZ}d,;HN+cg4=">
                                <field name="PURCHASE_LIST">PUT</field>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <next>
                          <block type="notify" id="Hn/(1otR}2hfU[Tgq=,t">
                            <field name="NOTIFICATION_TYPE">success</field>
                            <field name="NOTIFICATION_SOUND">silent</field>
                            <value name="MESSAGE">
                              <shadow type="text" id="hm@+x@VvOG+*$eC-[],7">
                                <field name="TEXT">abc</field>
                              </shadow>
                              <block type="text" id="TB_OzPOZ=6~#KXkwj32.">
                                <field name="TEXT">Waiting for the signal...</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="during_purchase" id="aSJ1qO*t=e!MO)`UDe={" collapsed="true" x="494" y="486">
    <statement name="DURING_PURCHASE_STACK">
      <block type="controls_if" id="sk?)cQ2OlzNn?~zpwqRx">
        <value name="IF0">
          <block type="procedures_callreturn" id="KC~snDbI)v[:/WoPEAk{">
            <mutation name="take profit/stop loss">
              <arg name="TPSL:sellIsAvailable"></arg>
              <arg name="TPSL:profit"></arg>
              <arg name="TPSL:stopLoss"></arg>
              <arg name="TPSL:takeProfit"></arg>
            </mutation>
            <value name="ARG0">
              <block type="check_sell" id="T5(?k]G;TJ%bdxOn@kp9"></block>
            </value>
            <value name="ARG1">
              <block type="sell_price" id=";RfL/=bE47)l|Tmd!]8$"></block>
            </value>
            <value name="ARG2">
              <block type="math_number" id="!yJQ7fjOv_kMo`Vi=k{Q">
                <field name="NUM">0.4</field>
              </block>
            </value>
            <value name="ARG3">
              <block type="math_number" id="G[I-^.caj*#V]#%*+TY|">
                <field name="NUM">0.8</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="sell_at_market" id="E6sB:h?(G?;G__ygnphN"></block>
        </statement>
      </block>
    </statement>
  </block>
</xml>
