﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <block type="trade" id="xgH69|xFn9=70w.*3Vo@" 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="CewoDHC=|5ZHN~nI`Bp8">
        <field name="VAR">initialStake</field>
        <value name="VALUE">
          <block type="math_number" id="$ula=f3|_9f[*n{%|*p8">
            <field name="NUM">1</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="|/@^wEQO|H,(i^AJ_9n0">
            <field name="VAR">martingale</field>
            <value name="VALUE">
              <block type="math_number" id="x/_V75h#uCjK^N;.FY1)">
                <field name="NUM">1.06</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="KU[,?f92Nw6d=9A{1WP$">
                <field name="VAR">stopLoss</field>
                <value name="VALUE">
                  <block type="math_number" id="L]1fXOWa#70-zE_NcX_7">
                    <field name="NUM">300</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="U5_?456+wCHW;yd?M~s.">
                    <field name="VAR">maxLoss</field>
                    <value name="VALUE">
                      <block type="math_number" id=";`cabYi/4mWwuF~-tl5{">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id=".2;V1G2#UMoq/#7|#:gT">
                        <field name="VAR">targetProfit</field>
                        <value name="VALUE">
                          <block type="math_number" id="o(z%#Yv9]L$a48UYCYJX">
                            <field name="NUM">0.1</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="h)48`7Z)f]6i~;t5n/eP">
                            <field name="VAR">stake</field>
                            <value name="VALUE">
                              <block type="variables_get" id="aSW@|7r=f0)ob$|:4U!p">
                                <field name="VAR">initialStake</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <statement name="SUBMARKET">
      <block type="tradeOptions" id="x=V33~4Lb|(sLv`J[:Eb">
        <field name="DURATIONTYPE_LIST">t</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <shadow type="math_number" id="O*@58sDc=!cOO}*b2vf9">
            <field name="NUM">5</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="p[Exr9%C}gEi,h2U8;Gv">
            <mutation name="stake"></mutation>
          </block>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" collapsed="true" x="-5" y="443">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="vDL66c]3wHTRyPi0Qgt?">
        <value name="IF0">
          <block type="logic_operation" id="KQsm3At}7WsS!AWu]s_y">
            <field name="OP">AND</field>
            <value name="A">
              <block type="procedures_callreturn" id="n[a,AQlNccp!z4LLSl78">
                <mutation name="isBelowSMMA"></mutation>
              </block>
            </value>
            <value name="B">
              <block type="procedures_callreturn" id="yiv~{X3PH7IoB.I.nk6w" inline="false">
                <mutation name="isTEMABelowWMA">
                  <arg name="_TEMALength"></arg>
                  <arg name="_WMALength"></arg>
                </mutation>
                <value name="ARG0">
                  <block type="math_number" id="VnNPMY~RcT2BeN]nO,KS">
                    <field name="NUM">4</field>
                  </block>
                </value>
                <value name="ARG1">
                  <block type="math_number" id=":_t`iIOq_SnsZ5YfWt)-">
                    <field name="NUM">12</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="purchase" id="W6q#Z-I3q3d[d3-`S[dS">
            <field name="PURCHASE_LIST">PUT</field>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="4rX)^uC-uQ^U3K:Q5YJg">
            <value name="IF0">
              <block type="logic_operation" id="d;I{}3m7ImZJht|Ioi=~">
                <field name="OP">AND</field>
                <value name="A">
                  <block type="procedures_callreturn" id="8[Z!zBMVig)-*/9TgxH1">
                    <mutation name="isBelowSMMA"></mutation>
                  </block>
                </value>
                <value name="B">
                  <block type="procedures_callreturn" id="4^CG7oN{aK_q-D2.{=K!">
                    <mutation name="isTEMAFalling">
                      <arg name="_length"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="math_number" id="fAniN4Q9}gP=5VFxg*9H">
                        <field name="NUM">4</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="purchase" id="Ms=x}(k}9{)S5FA)GX]5">
                <field name="PURCHASE_LIST">PUT</field>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="Q~AKj-0MAeG{{Y3R)/:?">
                <value name="IF0">
                  <block type="procedures_callreturn" id="=b`F/P=sd_D7/x4KFqP]">
                    <mutation name="isOpenHighest"></mutation>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="purchase" id="^V!L#*,9h-b7TT7@UIrW">
                    <field name="PURCHASE_LIST">PUT</field>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="i-:/2.){QT(W$sx4-`jD">
                    <value name="IF0">
                      <block type="logic_operation" id="Df`f?%}fr`AmwZ_yJ],+">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="procedures_callreturn" id="kKt{5(?jRcR4^*TZcV6j">
                            <mutation name="isAboveSMMA"></mutation>
                          </block>
                        </value>
                        <value name="B">
                          <block type="procedures_callreturn" id="u!:BWDYumW00h8CyIo:$">
                            <mutation name="isTEMAFalling">
                              <arg name="_length"></arg>
                            </mutation>
                            <value name="ARG0">
                              <block type="math_number" id="hY,M3DNu7)r1dMoe-ZdB">
                                <field name="NUM">4</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="purchase" id="e5,?0j_9FS8J[3KHyYeR">
                        <field name="PURCHASE_LIST">PUT</field>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="(IxQfYg2ScQ:3ZXE.Wt:">
                        <value name="IF0">
                          <block type="logic_operation" id="Jj6C!R1_8eft;,efS{n]">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="procedures_callreturn" id="j#8yUl#[6Zy8`yH(xFif">
                                <mutation name="isAboveSMMA"></mutation>
                              </block>
                            </value>
                            <value name="B">
                              <block type="procedures_callreturn" id="78E_YolpP~j-eii8lOcI">
                                <mutation name="isTEMAAboveWMA">
                                  <arg name="_TEMALength"></arg>
                                  <arg name="_WMALength"></arg>
                                </mutation>
                                <value name="ARG0">
                                  <block type="math_number" id="1[nQl|@B`O%jEA8o`C|~">
                                    <field name="NUM">4</field>
                                  </block>
                                </value>
                                <value name="ARG1">
                                  <block type="math_number" id="jJ+eiI{j3C5F-`_)LU5#">
                                    <field name="NUM">12</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="purchase" id="5hxiZu2U~XFy9GOEi*7p">
                            <field name="PURCHASE_LIST">CALL</field>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="e0X~H5I}h%HFF~kXwU6$">
                            <value name="IF0">
                              <block type="logic_operation" id="FSGYnhcI{w[$rEjpF_d3">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="procedures_callreturn" id="{!}WX#_Ztdz-KK%lmxO4">
                                    <mutation name="isAboveSMMA"></mutation>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="procedures_callreturn" id="E%z5law`RDO;eP}{8COi">
                                    <mutation name="isTEMARising">
                                      <arg name="_length"></arg>
                                    </mutation>
                                    <value name="ARG0">
                                      <block type="math_number" id="=l?oz=+Q7:CQ[a-T~Osx">
                                        <field name="NUM">4</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="purchase" id="z?F;5bVaL0]B9_ek2VX?">
                                <field name="PURCHASE_LIST">CALL</field>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="21!x:/o@w2ler+~YI)E.">
                                <value name="IF0">
                                  <block type="procedures_callreturn" id="_aMHuwFxvK^p?kMx}OPo">
                                    <mutation name="isOpenLowest"></mutation>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="purchase" id="MZPte{rGm$=JzkuyVFsM">
                                    <field name="PURCHASE_LIST">CALL</field>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="V~W;169=b_I-k=-li|`m">
                                    <value name="IF0">
                                      <block type="logic_operation" id="p7VkPx4K~*Aco,/-]LAv">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="procedures_callreturn" id="dNHA+_+v0^/G8Szc:.q9">
                                            <mutation name="isBelowSMMA"></mutation>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="procedures_callreturn" id="bdAQYvHB4}^g=.;(eGWd">
                                            <mutation name="isTEMARising">
                                              <arg name="_length"></arg>
                                            </mutation>
                                            <value name="ARG0">
                                              <block type="math_number" id="KiZU43ZF+PYW.?6Fu,Jk">
                                                <field name="NUM">4</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="purchase" id="i:/pPmz4fW/Xbs4,[7WL">
                                        <field name="PURCHASE_LIST">CALL</field>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="D^Jz1^n=2vtZku1vBN@;" collapsed="true" x="0" y="488">
    <statement name="AFTERPURCHASE_STACK">
      <block type="procedures_callnoreturn" id="^$[iAg#?f{siOH%i#~()">
        <mutation name="martingale">
          <arg name="_profit"></arg>
        </mutation>
        <value name="ARG0">
          <block type="read_details" id="il)[x9xkh_;bXGwnb{U0">
            <field name="DETAIL_INDEX">4</field>
          </block>
        </value>
        <next>
          <block type="controls_if" id="~6Ft46jqh*NpUOLS;:hL">
            <value name="IF0">
              <block type="procedures_callreturn" id="}:f{Sq3N`Z:X`w2D=0pZ">
                <mutation name="checkLimits"></mutation>
              </block>
            </value>
            <statement name="DO0">
              <block type="trade_again" id="c)S|KjoQdXc8l#J@5z3P"></block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="tick_analysis" id="PTX9Vvxruy}RZ{Zt=vsX" collapsed="true" x="0" y="540">
    <statement name="TICKANALYSIS_STACK">
      <block type="variables_set" id=";o8B|swaI2^X)j3m%r:T">
        <field name="VAR">lastTick</field>
        <value name="VALUE">
          <block type="tick" id="Yf3/?F1DxwHVHM2[BC%J"></block>
        </value>
        <next>
          <block type="variables_set" id="Ay$BV|L1XwodJJb_#(}x">
            <field name="VAR">lastCandle</field>
            <value name="VALUE">
              <block type="lists_getIndex" id="L_g;+03,~%!O9_fIa@=U">
                <mutation statement="false" at="false"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">LAST</field>
                <value name="VALUE">
                  <block type="ohlc" id="CYe.{Sd8VP3-:M3(`Myx">
                    <field name="CANDLEINTERVAL_LIST">default</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="p+,Gva?ySon0zY[~`4]a">
                <field name="VAR">closeCandles</field>
                <value name="VALUE">
                  <block type="ohlc_values" id="aWp^$I!B(n=_L5=R4|~6">
                    <field name="OHLCFIELD_LIST">close</field>
                    <field name="CANDLEINTERVAL_LIST">default</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="5J1:?2uAfh(M1%dDX;_7" collapsed="true" x="0" y="592">
    <field name="NAME">stake</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="variables_get" id="/|7]`LvG_35.;R`!eIF#">
        <field name="VAR">stake</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id=",T%t}=mq.h91`zJkE!cF" collapsed="true" x="0" y="644">
    <mutation>
      <arg name="_length"></arg>
    </mutation>
    <field name="NAME">getSMMA</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id=":Hwot|g~TFvo7d^fg3?Q">
        <field name="VAR">sma</field>
        <value name="VALUE">
          <block type="sma" id="{m$:z3%3t[@-asP/FC*?" inline="true">
            <value name="INPUT">
              <block type="variables_get" id="/vvgfO_{iW9GF+wx[:Sd">
                <field name="VAR">closeCandles</field>
              </block>
            </value>
            <value name="PERIOD">
              <shadow type="math_number" id=".AGUNCVUI7uzQ;cCq}*-">
                <field name="NUM">10</field>
              </shadow>
              <block type="variables_get" id="LkaJ62VCM7=~,W2l%Rd7">
                <field name="VAR">_length</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="A!=U7Hlb;=4vQS0R2eQo" inline="false">
        <field name="OP">DIVIDE</field>
        <value name="A">
          <shadow type="math_number" id=",aqs?^0AIXq){9`5XE}[">
            <field name="NUM">1</field>
          </shadow>
          <block type="math_arithmetic" id="Jy;t@KwlV*6-9}}.SUP5" inline="false">
            <field name="OP">ADD</field>
            <value name="A">
              <shadow type="math_number" id="%g~HKui#}l_Pzt-hljC@">
                <field name="NUM">1</field>
              </shadow>
              <block type="math_arithmetic" id="a|/G*,(=^YAc1uUNuOV`" inline="false">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow type="math_number" id="HukrMlfnl@Xgi!]1ca~f">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="4cI9+$S4Z^b%ND[S]{tS">
                    <field name="VAR">sma</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="/tj!qrmfI=L:iN?o1/-U">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="Xq*Y`]yk+S-/v#WWp;in">
                    <field name="OP">MINUS</field>
                    <value name="A">
                      <shadow type="math_number" id="7~3F{#Y=`sC]x(=4CF];">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="n8?OaeRH4M@ocz1@yPWG">
                        <field name="VAR">_length</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="E+)z^16G8eT)4Pk+rpa.">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <shadow type="math_number" id="?cr|L`+%^IL=S3#Ha[^n">
                <field name="NUM">1</field>
              </shadow>
              <block type="lists_getIndex" id="Hf}EL5XF#2|gTk+Y,owS">
                <mutation statement="false" at="false"></mutation>
                <field name="MODE">GET</field>
                <field name="WHERE">LAST</field>
                <value name="VALUE">
                  <block type="variables_get" id="w(fx%j]#v,?yW{Yvd3|X">
                    <field name="VAR">closeCandles</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="9F.E,Z=5_RL:^=sr^uz~">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="B,:,Q6$]p^F@{`sz%Tg0">
            <field name="VAR">_length</field>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="n+3MF]-docwwynI%ki+*" collapsed="true" x="0" y="696">
    <mutation>
      <arg name="_length"></arg>
    </mutation>
    <field name="NAME">getWMA</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="Q|l[$M]Itf9]q,=o@}~e">
        <field name="VAR">counter</field>
        <value name="VALUE">
          <block type="math_number" id="8c`.M!+||e-:QQlYa(A8">
            <field name="NUM">0</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="pxQ%}RPY@Cy#pw_vfER}">
            <field name="VAR">wma</field>
            <value name="VALUE">
              <block type="math_number" id="vZ^7TG,iq*n/.nCYHC(E">
                <field name="NUM">0</field>
              </block>
            </value>
            <next>
              <block type="controls_for" id="VH,v6O6[)(bp]Pp%:FoO">
                <field name="VAR">i</field>
                <value name="FROM">
                  <block type="math_number" id="3rww;p2/X^}ii{LkmNK|">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <value name="TO">
                  <block type="math_arithmetic" id="dsJ4*gW!@+]WeTQ{5VEk">
                    <field name="OP">MINUS</field>
                    <value name="A">
                      <shadow type="math_number" id="3MmT.Z$5d;a$v+5kyarP">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="#}u{R$hMuSDz.qAz15Zn">
                        <field name="VAR">_length</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="zp$*!Y2nck%s7}RWmZ6I">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="BY">
                  <block type="math_number" id="_JXZ$fJvycK}s:LVH57I">
                    <field name="NUM">1</field>
                  </block>
                </value>
                <statement name="DO">
                  <block type="math_change" id="fEi$~:@hhPfbK8349yUf">
                    <field name="VAR">counter</field>
                    <value name="DELTA">
                      <shadow type="math_number" id="J6)^S#0+x2z,`Qqc#@fN">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_arithmetic" id="T@?-8o3J;rr0{pQS-nBd">
                        <field name="OP">ADD</field>
                        <value name="A">
                          <shadow type="math_number" id="3MmT.Z$5d;a$v+5kyarP">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="/:]Q*Bx+*pRdqNuFhlVZ">
                            <field name="VAR">i</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="PwS,qOrpV:Zm2JTz7yN5">
                            <field name="NUM">1</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="math_change" id="+a;+G`BjJPrsO7MKph|@">
                        <field name="VAR">wma</field>
                        <value name="DELTA">
                          <shadow type="math_number" id="gtv+d:WGQ[#N_ZVI^!ah">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_arithmetic" id=":gbN9rrqJrAfP*%XSZA%">
                            <field name="OP">MULTIPLY</field>
                            <value name="A">
                              <shadow type="math_number" id="%g|x}EKi%rg^K-(Eq(r5">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="lists_getIndex" id="~Xe/+K2X1f*r6-YNdZyn">
                                <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="|*8~#^`T%1)-Tf_90TH.">
                                    <field name="VAR">closeCandles</field>
                                  </block>
                                </value>
                                <value name="AT">
                                  <block type="math_arithmetic" id="Jc(j+0$rhWu1j1DK#F:g">
                                    <field name="OP">ADD</field>
                                    <value name="A">
                                      <shadow type="math_number" id="3MmT.Z$5d;a$v+5kyarP">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="YAGb1-$|7nRV]9S{S44U">
                                        <field name="VAR">i</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id="d2?M8~!p1O.~,sC2A`mt">
                                        <field name="NUM">1</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="6?TyO[X6u-bZ.zh^!882">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="math_arithmetic" id="d4OXv6K7PB?D`U::wo6X">
                                <field name="OP">MINUS</field>
                                <value name="A">
                                  <shadow type="math_number" id="3MmT.Z$5d;a$v+5kyarP">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="variables_get" id="}4envNEvA3y(.%Vw=#P6">
                                    <field name="VAR">_length</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow type="math_number" id="]Ij{hRH(rx`.LY`LXhg*">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="variables_get" id="A^SQgvsYm[$TyV(S`KU[">
                                    <field name="VAR">i</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="variables_set" id="*jxcIes6V)}{m75Jx~EI">
                    <field name="VAR">wma</field>
                    <value name="VALUE">
                      <block type="math_arithmetic" id="XyM2kkEeq.d`1ka/F/8:">
                        <field name="OP">DIVIDE</field>
                        <value name="A">
                          <shadow type="math_number" id=".=JMSHnXw*617PV+ObWY">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="Dp1~/WgEn=L9o4(JOj@)">
                            <field name="VAR">wma</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="^,dy[(y0)]OtRKYrF^Js">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="?c^yx!4nxi,0`d3kFm*/">
                            <field name="VAR">counter</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="}.,nOp9dO[/eJ9Fq*oz!">
        <field name="VAR">wma</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="mEy=13dI$GL!d2o]XZ(?" collapsed="true" x="0" y="748">
    <mutation>
      <arg name="_length"></arg>
      <arg name="_start"></arg>
    </mutation>
    <field name="NAME">getTEMA</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="ApRF9G@/1jk^)+o/@$+%">
        <field name="VAR">ema1</field>
        <value name="VALUE">
          <block type="emaa" id="*7`]kayXk_frY4]u3=N_">
            <value name="INPUT">
              <block type="variables_get" id="7#ZrE0C`o|cYHg|SWCyM">
                <field name="VAR">closeCandles</field>
              </block>
            </value>
            <value name="PERIOD">
              <shadow type="math_number" id="q9V7L6MJ(z3xem:d#xtB">
                <field name="NUM">10</field>
              </shadow>
              <block type="variables_get" id="n*8mm`!:t+rRjp1Q62)?">
                <field name="VAR">_length</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="@`FD`np+wf85n?1od5?I">
            <field name="VAR">ema2</field>
            <value name="VALUE">
              <block type="emaa" id="bK7c+6LU]L4-Ep9_I`u*">
                <value name="INPUT">
                  <block type="variables_get" id="[{3[k?wE?3y;@nv3oHZ(">
                    <field name="VAR">ema1</field>
                  </block>
                </value>
                <value name="PERIOD">
                  <shadow type="math_number" id="q9V7L6MJ(z3xem:d#xtB">
                    <field name="NUM">10</field>
                  </shadow>
                  <block type="variables_get" id="R5Q22uv+J%/:4Q|,lQZ|">
                    <field name="VAR">_length</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="r(x:OWN-a=+w-6yzMGPw">
                <field name="VAR">ema3</field>
                <value name="VALUE">
                  <block type="emaa" id="as2Y?.li-iN:!+QxJs@0">
                    <value name="INPUT">
                      <block type="variables_get" id="+R?^kh1~8fX)mEbZ|X3M">
                        <field name="VAR">ema2</field>
                      </block>
                    </value>
                    <value name="PERIOD">
                      <shadow type="math_number" id="q9V7L6MJ(z3xem:d#xtB">
                        <field name="NUM">10</field>
                      </shadow>
                      <block type="variables_get" id="a?uD32]$Xm=6{v?Tq,h(">
                        <field name="VAR">_length</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="math_arithmetic" id="{)`)u,[:}|FASjfuz;!Q">
        <field name="OP">ADD</field>
        <value name="A">
          <shadow type="math_number" id="X*vo:fx+z^13V/96(8l~">
            <field name="NUM">1</field>
          </shadow>
          <block type="math_arithmetic" id="q~-rw3ZL!|od3+WmETG9">
            <field name="OP">MULTIPLY</field>
            <value name="A">
              <shadow type="math_number" id="n[TX4zkE0R;!tib}u_4/">
                <field name="NUM">3</field>
              </shadow>
            </value>
            <value name="B">
              <shadow type="math_number" id=".B)blS2t;oqdH`jNROw|">
                <field name="NUM">1</field>
              </shadow>
              <block type="math_arithmetic" id="@||)=(?F)6IrIB,cJm4h" inline="false">
                <field name="OP">MINUS</field>
                <value name="A">
                  <shadow type="math_number" id="rRAy1Nw1zRM%-HJ#{43T">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="lists_getIndex" id="[7oFy5lo@7j=B/@^kk3r" inline="false">
                    <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="L/e?Qg639FgMthBtI`Xg">
                        <field name="VAR">ema1</field>
                      </block>
                    </value>
                    <value name="AT">
                      <block type="variables_get" id="p=vi6MQ46oE#jjl?I=X6">
                        <field name="VAR">_start</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="RPzV1tEu9-ud89X?ly`P">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="lists_getIndex" id="#Zqm?k~uL-?)mBCAevX+" inline="false">
                    <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="!4$8Cz~Vs#n=y0EZ{0fN">
                        <field name="VAR">ema2</field>
                      </block>
                    </value>
                    <value name="AT">
                      <block type="variables_get" id="_}2(r}{4FvB-vW)/s7b2">
                        <field name="VAR">_start</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <shadow type="math_number" id="EGFBmuS?pgdMS2d*[umA">
            <field name="NUM">1</field>
          </shadow>
          <block type="lists_getIndex" id="R]kj@a;OT^eZqp`y{k=3" inline="false">
            <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="K#z.BBx(p$#!OseO,XUZ">
                <field name="VAR">ema3</field>
              </block>
            </value>
            <value name="AT">
              <block type="variables_get" id="4sa,`7t~M8pfG_X:yWm}">
                <field name="VAR">_start</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defnoreturn" id="i:)Qo@up0+zJ`H,8:[Mu" collapsed="true" x="0" y="800">
    <mutation>
      <arg name="_profit"></arg>
    </mutation>
    <field name="NAME">martingale</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="math_change" id="0KAnpo9-4xIk%S7?45mF">
        <field name="VAR">totalProfit</field>
        <value name="DELTA">
          <shadow type="math_number" id="D;g#.+Q|B8/hJL68W.rA">
            <field name="NUM">1</field>
          </shadow>
          <block type="variables_get" id="()SVc{75r|tVCb*il`@!">
            <field name="VAR">_profit</field>
          </block>
        </value>
        <next>
          <block type="controls_if" id="cW?D{ul9%X|Q1(:u?ad.">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="]QOl2/pIOd]p[a?#H,0l">
                <field name="OP">LT</field>
                <value name="A">
                  <block type="variables_get" id="s9/^XODnA~@jC;krT-#m">
                    <field name="VAR">_profit</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="cPoS#S16(F=lo{zNzF_-">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="math_change" id="e(A0g)$TSn*U6o9n{d-R">
                <field name="VAR">stake</field>
                <value name="DELTA">
                  <shadow type="math_number" id="auT2%iy+c@TW/0-oD#tU">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="0KpKBL*#j9z[dMM$Nsgk">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="hUKLa9-KuUwr%|GU`|_r">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="t8mjWIpP)7??hIj8flZS">
                        <field name="VAR">stake</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="=a)xiUY@NC,]Pjsxan-$">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="FS+MCJ=a8+r/Zh/zF11w">
                        <field name="VAR">martingale</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="variables_set" id="agi|SI2%1+O96xy~e3{o">
                <field name="VAR">stake</field>
                <value name="VALUE">
                  <block type="variables_get" id="Od|oaGlHfzSPEJ7vDm{h">
                    <field name="VAR">initialStake</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="+DA)(W1a+Kw{B#Nv7k:{">
                <value name="IF0">
                  <block type="logic_compare" id="mRZeE;FN[tAUy94:(I7K">
                    <field name="OP">GT</field>
                    <value name="A">
                      <block type="variables_get" id="#qL(*AJ=S$ECe.ZoEE;S">
                        <field name="VAR">maxLoss</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="variables_get" id="Pulg017FoMQ6VR?;[Sh9">
                        <field name="VAR">totalProfit</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="ai*GrKR;ROlMrO/+#ogu">
                    <field name="VAR">maxLoss</field>
                    <value name="VALUE">
                      <block type="variables_get" id="z+^0Nww1Y~:E.k;2K,/E">
                        <field name="VAR">totalProfit</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="notify" id="lnW.k-8MYLC6EKuX9[Kx">
                    <field name="NOTIFICATION_TYPE">success</field>
                    <field name="NOTIFICATION_SOUND">silent</field>
                    <value name="MESSAGE">
                      <shadow type="text" id="G]%fk6cNVg44[dw$}S*V">
                        <field name="TEXT">abc</field>
                      </shadow>
                      <block type="text_join" id="Q7A~4lv4WG%DOR~@Powj">
                        <mutation items="4"></mutation>
                        <value name="ADD0">
                          <block type="text" id="oN8LF4eTV2XD2%@(VH]M">
                            <field name="TEXT">Total Profit: </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="tY|K:4+Rs+9qkoMS#Ugt">
                            <field name="VAR">totalProfit</field>
                          </block>
                        </value>
                        <value name="ADD2">
                          <block type="text" id="aKP^)}8ei{A$}E{-9_Cf">
                            <field name="TEXT"> Max Loss: </field>
                          </block>
                        </value>
                        <value name="ADD3">
                          <block type="variables_get" id="W=Ui/mOb+wBEH2^=PKkm">
                            <field name="VAR">maxLoss</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="/oDOlxyXw{#^5a/c3_Uw" collapsed="true" x="0" y="852">
    <field name="NAME">isAboveSMMA</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="logic_compare" id="E~r$t5m6-L.+?lbBg6Xb">
        <field name="OP">GT</field>
        <value name="A">
          <block type="variables_get" id=";QmY]X80,hwzkoOz#m`V">
            <field name="VAR">lastTick</field>
          </block>
        </value>
        <value name="B">
          <block type="procedures_callreturn" id="Y(@|lM-CF!S=Jmk2%5Dl">
            <mutation name="getSMMA">
              <arg name="_length"></arg>
            </mutation>
            <value name="ARG0">
              <block type="math_number" id="c[Os.xDnZT~vYp$Qok($">
                <field name="NUM">50</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="XJmN)S=h(sO~cov,`CBL" collapsed="true" x="0" y="904">
    <field name="NAME">isBelowSMMA</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="logic_compare" id="*%z45;.#(^%y(g1xU^*a">
        <field name="OP">LT</field>
        <value name="A">
          <block type="variables_get" id="`wUno8XG79XSE,Y@Y.z}">
            <field name="VAR">lastTick</field>
          </block>
        </value>
        <value name="B">
          <block type="procedures_callreturn" id="1ML=fFQEsxL7fm+N3*Ng">
            <mutation name="getSMMA">
              <arg name="_length"></arg>
            </mutation>
            <value name="ARG0">
              <block type="math_number" id="g?`,TFjlbeg^:Cdv^a?o">
                <field name="NUM">50</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="6GUd{=/vP1HFNmfR{LlU" collapsed="true" x="0" y="956">
    <mutation>
      <arg name="_TEMALength"></arg>
      <arg name="_WMALength"></arg>
    </mutation>
    <field name="NAME">isTEMABelowWMA</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="logic_compare" id="6_pH}%G_5aFOS;];*Qb~" inline="false">
        <field name="OP">LT</field>
        <value name="A">
          <block type="procedures_callreturn" id="Fgkv]G*4FUj5+Py17t-|">
            <mutation name="getTEMA">
              <arg name="_length"></arg>
              <arg name="_start"></arg>
            </mutation>
            <value name="ARG0">
              <block type="variables_get" id="bYG/w8ACNtaT)]9Y0Z=c">
                <field name="VAR">_TEMALength</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="math_number" id="obM!tUv[[0n~EREx;~:K">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <block type="procedures_callreturn" id="8-4Pjj6^K*3V~di:Xv(+">
            <mutation name="getWMA">
              <arg name="_length"></arg>
            </mutation>
            <value name="ARG0">
              <block type="variables_get" id="{l}%7m%$/p+GCe.B)kYP">
                <field name="VAR">_WMALength</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="ikJ)i:g#o^*iD6UiH^:(" collapsed="true" x="0" y="1008">
    <mutation>
      <arg name="_length"></arg>
    </mutation>
    <field name="NAME">isTEMARising</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="logic_compare" id="RV/Z)M`F?g)/9JMHz~2X" inline="false">
        <field name="OP">GT</field>
        <value name="A">
          <block type="procedures_callreturn" id=":mt*N.:1O)$S{#!HkHLD">
            <mutation name="getTEMA">
              <arg name="_length"></arg>
              <arg name="_start"></arg>
            </mutation>
            <value name="ARG0">
              <block type="variables_get" id="vPDD7KK#e$6.5SfW|J7h">
                <field name="VAR">_length</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="math_number" id="Bc(hw0vmtib]T9?F0^HQ">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <block type="procedures_callreturn" id="b}lWIZ0^4m9V?W!45sT2">
            <mutation name="getTEMA">
              <arg name="_length"></arg>
              <arg name="_start"></arg>
            </mutation>
            <value name="ARG0">
              <block type="variables_get" id="M^`v)YC6T5.~Z5n=U4M}">
                <field name="VAR">_length</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="math_number" id="^O{Wy[p*N-A/V/1Gg7zg">
                <field name="NUM">2</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="dcid3uQH:~d([.*FY^J+" collapsed="true" x="0" y="1060">
    <mutation>
      <arg name="_TEMALength"></arg>
      <arg name="_WMALength"></arg>
    </mutation>
    <field name="NAME">isTEMAAboveWMA</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="logic_compare" id="k1A~(Y#$C!ru{E{3;Uuu" inline="false">
        <field name="OP">GT</field>
        <value name="A">
          <block type="procedures_callreturn" id="6{sE#*SA=w_{B(aU7|A9">
            <mutation name="getTEMA">
              <arg name="_length"></arg>
              <arg name="_start"></arg>
            </mutation>
            <value name="ARG0">
              <block type="variables_get" id="8Eg~Sx9nR=ivme?4?f9%">
                <field name="VAR">_TEMALength</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="math_number" id="96G2ZftcR=x,-(D;)Qw(">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <block type="procedures_callreturn" id="tR#@4K[?8lOrb~v342Ll">
            <mutation name="getWMA">
              <arg name="_length"></arg>
            </mutation>
            <value name="ARG0">
              <block type="variables_get" id="btTl%;WXft6kSW/G;A;h">
                <field name="VAR">_WMALength</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="Li9st8@0,UyQl=%wqJ5%" collapsed="true" x="0" y="1112">
    <mutation>
      <arg name="_length"></arg>
    </mutation>
    <field name="NAME">isTEMAFalling</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="logic_compare" id="E#dOx}0}D%)bqfnisaO4" inline="false">
        <field name="OP">LT</field>
        <value name="A">
          <block type="procedures_callreturn" id="N{j5uy.0x:bjtg2{SZc~">
            <mutation name="getTEMA">
              <arg name="_length"></arg>
              <arg name="_start"></arg>
            </mutation>
            <value name="ARG0">
              <block type="variables_get" id="=:$;`dMEDI09y~[w@[IV">
                <field name="VAR">_length</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="math_number" id="*E-JReC:IT6Db2{@qOJX">
                <field name="NUM">1</field>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <block type="procedures_callreturn" id="{.Si$[O-8wc}N,+Juh_p">
            <mutation name="getTEMA">
              <arg name="_length"></arg>
              <arg name="_start"></arg>
            </mutation>
            <value name="ARG0">
              <block type="variables_get" id="g~]|#qY,v%zbVev+Z7CX">
                <field name="VAR">_length</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="math_number" id="3^6ksYO)PzJxGmal;Xd8">
                <field name="NUM">2</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="h+Hn5|2}jb_O=a@#F@NA" collapsed="true" x="0" y="1164">
    <field name="NAME">isOpenHighest</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="logic_compare" id="Q4(ryznNmc^q$L,bS)PH" inline="false">
        <field name="OP">EQ</field>
        <value name="A">
          <block type="read_ohlc_obj" id=".~;hK;$N/u+07{ZxVZ`#">
            <field name="OHLCFIELD_LIST">open</field>
            <value name="OHLCOBJ">
              <block type="variables_get" id="aglfa`X*(Zfg{LMnp{6D">
                <field name="VAR">lastCandle</field>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <block type="read_ohlc_obj" id="SwwgKbde*C!=mDL9hMuW">
            <field name="OHLCFIELD_LIST">high</field>
            <value name="OHLCOBJ">
              <block type="variables_get" id="U|-wSEE(Eto|/s3m2P-y">
                <field name="VAR">lastCandle</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="mfvwH+f)N__Q)k^j];?(" collapsed="true" x="16" y="1209">
    <field name="NAME">checkLimits</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="controls_if" id="[(Bm#0?E!sD*ve4FB4p`">
        <value name="IF0">
          <block type="logic_operation" id="xt+I],eAW8EI:YwYjdLQ" inline="false">
            <field name="OP">OR</field>
            <value name="A">
              <block type="logic_compare" id="uN{LUYUOmM8y%Y`+A])`" inline="false">
                <field name="OP">GTE</field>
                <value name="A">
                  <block type="variables_get" id="xb?zL/.V(7{_;3Aau(I@">
                    <field name="VAR">totalProfit</field>
                  </block>
                </value>
                <value name="B">
                  <block type="variables_get" id="f$Yf*Km,[~h6h9QR,=w@">
                    <field name="VAR">targetProfit</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="logic_compare" id="YDLNRVzA#lZZQe?`PnE]" inline="false">
                <field name="OP">LTE</field>
                <value name="A">
                  <block type="variables_get" id="5.UBWB$%JWrj;0`#Z1M4">
                    <field name="VAR">totalProfit</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_arithmetic" id="*6hREF5*=b3LO{@`Z6=?" inline="false">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="0Fd;qhRl%0l}I2{pvCGX">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="KqvhPInyiz/7*yD.eV,)">
                        <field name="VAR">stopLoss</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="Lf9y@(d6s.2Vc3c8$3.l">
                        <field name="NUM">-1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="text_print" id="@mL.Vi_Ci|tFUJDT6xaN">
            <value name="TEXT">
              <shadow type="text" id="aG6o,NYEC:L*A/`5Em7Y">
                <field name="TEXT">abc</field>
              </shadow>
              <block type="text_join" id=":W3npS?n)0^lG2U8S8bh">
                <mutation items="4"></mutation>
                <value name="ADD0">
                  <block type="text" id="C6Gst2=Jp-PoA[B_!}19">
                    <field name="TEXT">Total Profit: </field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="variables_get" id="WFDuGHZtutd#A*,CBE)A">
                    <field name="VAR">totalProfit</field>
                  </block>
                </value>
                <value name="ADD2">
                  <block type="text" id="$s}/F8ouF8w:+E9BpOzA">
                    <field name="TEXT"> Max Loss: </field>
                  </block>
                </value>
                <value name="ADD3">
                  <block type="variables_get" id="O==c#XtWW8:67b8Jm4Um">
                    <field name="VAR">maxLoss</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
    <value name="RETURN">
      <block type="logic_operation" id="Y+d-;hez_MY$/!(uH1v~" inline="false">
        <field name="OP">AND</field>
        <value name="A">
          <block type="logic_compare" id="3ZD:zuAOUK[3j#@lSY`i" inline="false">
            <field name="OP">LT</field>
            <value name="A">
              <block type="variables_get" id="v06bA}-7Q~MD`jT$$dhx">
                <field name="VAR">totalProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="variables_get" id="Fp1HjQa:Fj,UD[,G[;jc">
                <field name="VAR">targetProfit</field>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <block type="logic_compare" id="(6pp3q4.ngz~{UgdPLpo" inline="false">
            <field name="OP">GT</field>
            <value name="A">
              <block type="variables_get" id="{}5W~vBz$LwZ[q}9W1xm">
                <field name="VAR">totalProfit</field>
              </block>
            </value>
            <value name="B">
              <block type="math_arithmetic" id="X*qq9`#ui)++{Sj(:H]i" inline="false">
                <field name="OP">MULTIPLY</field>
                <value name="A">
                  <shadow type="math_number" id="0Fd;qhRl%0l}I2{pvCGX">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="!on+tw)DA,.Y7b)ITTR)">
                    <field name="VAR">stopLoss</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="c?`]+_(%1X?VI.8?yRIn">
                    <field name="NUM">-1</field>
                  </shadow>
                </value>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="G$:E1n~xTotmJ..c4i8V" collapsed="true" x="0" y="1268">
    <field name="NAME">isOpenLowest</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <value name="RETURN">
      <block type="logic_compare" id="~pZohG^o^NE$u[Kv.f!]" inline="false">
        <field name="OP">EQ</field>
        <value name="A">
          <block type="read_ohlc_obj" id="9BeATgL?VW^{L[kaXcUn">
            <field name="OHLCFIELD_LIST">open</field>
            <value name="OHLCOBJ">
              <block type="variables_get" id="vdS}#y}]mmD4KOt6j_E%">
                <field name="VAR">lastCandle</field>
              </block>
            </value>
          </block>
        </value>
        <value name="B">
          <block type="read_ohlc_obj" id=":Psr|h$u?(q:#mCMLMb|">
            <field name="OHLCFIELD_LIST">low</field>
            <value name="OHLCOBJ">
              <block type="variables_get" id="yn(UQqw|Im7TO7vdt^U4">
                <field name="VAR">lastCandle</field>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
</xml>