﻿<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
  <variables>
    <variable type="" id="1r*+,bf{VOXSPp2(9Z4i">список свечей</variable>
    <variable type="" id="1v#$-L=l8:kYC2:Wb2!R">вниз</variable>
    <variable type="" id="9rC|~j(XH=E3?!5*Xx/o">вверх</variable>
  </variables>
  <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="SUBMARKET">
      <block type="tradeOptions" id="x=V33~4Lb|(sLv`J[:Eb">
        <field name="DURATIONTYPE_LIST">m</field>
        <field name="CURRENCY_LIST">USD</field>
        <value name="DURATION">
          <shadow type="math_number" id="O*@58sDc=!cOO}*b2vf9">
            <field name="NUM">2</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number" id="ml)25~7^q}3I9}vjf:%K">
            <field name="NUM">1</field>
          </shadow>
        </value>
      </block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="3HVYJgWWf+k`Wkox2.%]" collapsed="true" x="0" y="301">
    <mutation>
      <arg name="список свечей" varid="1r*+,bf{VOXSPp2(9Z4i"></arg>
    </mutation>
    <field name="NAME">Аллигатор вниз</field>
    <comment pinned="false" h="80" w="160">Опишите эту функцию…</comment>
    <statement name="STACK">
      <block type="controls_if" id="*+c:?AP$~_.NH{LcpV1J">
        <value name="IF0">
          <block type="logic_operation" id="!%(kRSc~02g{fHB42|jw" inline="false">
            <field name="OP">AND</field>
            <value name="A">
              <block type="logic_compare" id="tHn}Qt`i{?/P5WDB{r#8" inline="false">
                <field name="OP">LT</field>
                <value name="A">
                  <block type="math_arithmetic" id="DYN;|g6bw}:V;41+0mAs">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="WzPDGUV]Ef$Jk,ig_(.w">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="lists_getIndex" id="Uw.NX(hNM/yjUDoZ?1|6">
                        <mutation statement="false" at="false"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">LAST</field>
                        <value name="VALUE">
                          <block type="smaa" id="U/3i/R8:9ZR+MDCmxg-z">
                            <value name="INPUT">
                              <block type="variables_get" id="PGoA4CbVd6n}Q|-q0/uH">
                                <field name="VAR" id="1r*+,bf{VOXSPp2(9Z4i" variabletype="">список свечей</field>
                              </block>
                            </value>
                            <value name="PERIOD">
                              <shadow type="math_number" id="z;$)n2pXS$6KCgs.w0[]">
                                <field name="NUM">5</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="!#7?~~k=y2HzMPM(dO^8">
                        <field name="NUM">3</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="math_arithmetic" id="H~g8usO9JXFzL=q:lt-V">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="WzPDGUV]Ef$Jk,ig_(.w">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="lists_getIndex" id="=#VSfAb]6VWwx}VQZ1WH">
                        <mutation statement="false" at="false"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">LAST</field>
                        <value name="VALUE">
                          <block type="smaa" id="qo0?Az`[TPrmE9h~QP*d">
                            <value name="INPUT">
                              <block type="variables_get" id="fs^s=VFAp?fv?%Ey`];K">
                                <field name="VAR" id="1r*+,bf{VOXSPp2(9Z4i" variabletype="">список свечей</field>
                              </block>
                            </value>
                            <value name="PERIOD">
                              <shadow type="math_number" id="+`ea-T)@FK6uWqQ~tMhu">
                                <field name="NUM">8</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="WDd(|AxfYI]X?ZFzAX}M">
                        <field name="NUM">5</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="logic_compare" id="2EfvfmU+USP,nUZ6f.WC" inline="false">
                <field name="OP">LT</field>
                <value name="A">
                  <block type="math_arithmetic" id="KUW{u)NZF{HwYMuxJPrh">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="WzPDGUV]Ef$Jk,ig_(.w">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="lists_getIndex" id="zWqz8)mASMbQ,1zCU10)">
                        <mutation statement="false" at="false"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">LAST</field>
                        <value name="VALUE">
                          <block type="smaa" id="y|ALM,nW5T4u?EOT$gJ6">
                            <value name="INPUT">
                              <block type="variables_get" id="tCvcm`V4);R36vOVnbSY">
                                <field name="VAR" id="1r*+,bf{VOXSPp2(9Z4i" variabletype="">список свечей</field>
                              </block>
                            </value>
                            <value name="PERIOD">
                              <shadow type="math_number" id="ttLa}xKD;~(|PeFQI1Gl">
                                <field name="NUM">8</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="w/Ce!9WUHxb19{x7`snm">
                        <field name="NUM">5</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="math_arithmetic" id="hx6Pa7m./BF9de[OET^?">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="WzPDGUV]Ef$Jk,ig_(.w">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="lists_getIndex" id="ge[`fpt~{VN5|29$gI,Q">
                        <mutation statement="false" at="false"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">LAST</field>
                        <value name="VALUE">
                          <block type="smaa" id="XyJKQiJ4XFtSvPY1^A#W">
                            <value name="INPUT">
                              <block type="variables_get" id="@hB[qwD$.QBH4ZQV$JoO">
                                <field name="VAR" id="1r*+,bf{VOXSPp2(9Z4i" variabletype="">список свечей</field>
                              </block>
                            </value>
                            <value name="PERIOD">
                              <shadow type="math_number" id="p+^w4sPD_x!#b7B*@FU)">
                                <field name="NUM">13</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="2jw:Dq8Un@E,o/}9JPn~">
                        <field name="NUM">8</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="xRsh-wXx*IVydIiyoMb[">
            <field name="VAR" id="1v#$-L=l8:kYC2:Wb2!R" variabletype="">вниз</field>
            <value name="VALUE">
              <block type="logic_boolean" id="bQ_kI8LEYAm!u{eY=Fs}">
                <field name="BOOL">TRUE</field>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="|sd+gY(ddLtU~GpEh,,i">
        <field name="VAR" id="1v#$-L=l8:kYC2:Wb2!R" variabletype="">вниз</field>
      </block>
    </value>
  </block>
  <block type="procedures_defreturn" id="~!nHyZw,XJq?18EmiF_I" collapsed="true" x="0" y="353">
    <mutation>
      <arg name="список свечей" varid="1r*+,bf{VOXSPp2(9Z4i"></arg>
    </mutation>
    <field name="NAME">Аллигатор вверх</field>
    <comment pinned="false" h="80" w="160">Опишите эту функцию…</comment>
    <statement name="STACK">
      <block type="controls_if" id="Mp_n.jEiC$Y`}5fu@SU:">
        <value name="IF0">
          <block type="logic_operation" id="J-KR?,h]N^m1CJXFoM!0" inline="false">
            <field name="OP">AND</field>
            <value name="A">
              <block type="logic_compare" id="N;?WBgo-aWYiCU|n@Xmk" inline="false">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="math_arithmetic" id="uhKjPooI0]4#Yks_Mk?~">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="WzPDGUV]Ef$Jk,ig_(.w">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="lists_getIndex" id="v9?M{,R/I$:RAlmTg6vG">
                        <mutation statement="false" at="false"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">LAST</field>
                        <value name="VALUE">
                          <block type="smaa" id="oYvyB}s)?1WEFEu~L?Zx">
                            <value name="INPUT">
                              <block type="variables_get" id="mt%;6q[~m?5EC-`2IT6R">
                                <field name="VAR" id="1r*+,bf{VOXSPp2(9Z4i" variabletype="">список свечей</field>
                              </block>
                            </value>
                            <value name="PERIOD">
                              <shadow type="math_number" id="/XFmGW4}CcPV,Op?y3-L">
                                <field name="NUM">5</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="|r=q+k#x:LTw-(}*5wIv">
                        <field name="NUM">3</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="math_arithmetic" id="]sm{tHX4Dz.{$VdD$dk%">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="WzPDGUV]Ef$Jk,ig_(.w">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="lists_getIndex" id=";@!)1tQ~|L4uJJs(WKZ`">
                        <mutation statement="false" at="false"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">LAST</field>
                        <value name="VALUE">
                          <block type="smaa" id="[{iq]s+z?N!vSL`c(=_w">
                            <value name="INPUT">
                              <block type="variables_get" id="[ZW|uwnUxGfgFX+I)oi8">
                                <field name="VAR" id="1r*+,bf{VOXSPp2(9Z4i" variabletype="">список свечей</field>
                              </block>
                            </value>
                            <value name="PERIOD">
                              <shadow type="math_number" id="^NH`tYJSvunVX^?G|dhV">
                                <field name="NUM">8</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="[ymC$aPQ8;km8BVodT38">
                        <field name="NUM">5</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="logic_compare" id="#aT;4iH-FVc(DYQ0~b)P" inline="false">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="math_arithmetic" id="c6IAP^WdBc+X;x#$xrfT">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="WzPDGUV]Ef$Jk,ig_(.w">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="lists_getIndex" id="[G8dA%)i|,r2th+eWSh:">
                        <mutation statement="false" at="false"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">LAST</field>
                        <value name="VALUE">
                          <block type="smaa" id="P[.J*L#vO_K-B`-a.(im">
                            <value name="INPUT">
                              <block type="variables_get" id="Xo#bH_h9]h)D$Iggkasf">
                                <field name="VAR" id="1r*+,bf{VOXSPp2(9Z4i" variabletype="">список свечей</field>
                              </block>
                            </value>
                            <value name="PERIOD">
                              <shadow type="math_number" id="jNa5$OyvehE+f021Uw]O">
                                <field name="NUM">8</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="?u|w(*Jlu.uHK):dZiba">
                        <field name="NUM">5</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="math_arithmetic" id="du*-l0^oK6UEBO9|(N6-">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="WzPDGUV]Ef$Jk,ig_(.w">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="lists_getIndex" id="mb)[$xu,V2D}[ID1x*.V">
                        <mutation statement="false" at="false"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">LAST</field>
                        <value name="VALUE">
                          <block type="smaa" id="[K|n;R[U7PGaC*ceOc+,">
                            <value name="INPUT">
                              <block type="variables_get" id="7$xsm2pVvLCqh_0iG+3s">
                                <field name="VAR" id="1r*+,bf{VOXSPp2(9Z4i" variabletype="">список свечей</field>
                              </block>
                            </value>
                            <value name="PERIOD">
                              <shadow type="math_number" id="=c.}p,pk9e.=~o!,Frd|">
                                <field name="NUM">13</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="HOp=yDV]sPS06lVJEu1A">
                        <field name="NUM">8</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="o]E0vbgB.xGgq?~}c)}9">
            <field name="VAR" id="9rC|~j(XH=E3?!5*Xx/o" variabletype="">вверх</field>
            <value name="VALUE">
              <block type="logic_boolean" id="R.V6)}_SFs)$2TDvTABS">
                <field name="BOOL">TRUE</field>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
    <value name="RETURN">
      <block type="variables_get" id="cEGYSwVkr1bqt_^J0Jct">
        <field name="VAR" id="9rC|~j(XH=E3?!5*Xx/o" variabletype="">вверх</field>
      </block>
    </value>
  </block>
  <block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" x="0" y="405">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="w.FHL.~CI~/`lugKhc,C">
        <mutation elseif="1" else="1"></mutation>
        <value name="IF0">
          <block type="procedures_callreturn" id="b6kObx2OD38|0Rn~)jGv">
            <mutation name="Аллигатор вверх">
              <arg name="список свечей"></arg>
            </mutation>
            <value name="ARG0">
              <block type="ohlc_values" id="CgH,^#{0c@0HBhl7u~Y#">
                <field name="OHLCFIELD_LIST">close</field>
                <field name="CANDLEINTERVAL_LIST">default</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="notify" id="lkev4B%W.W;;ouHgchjy">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <shadow type="text" id="tr5!$NG#W}}0$QYwp#d]">
                <field name="TEXT">Up</field>
              </shadow>
            </value>
            <next>
              <block type="purchase" id="W6q#Z-I3q3d[d3-`S[dS">
                <field name="PURCHASE_LIST">CALL</field>
              </block>
            </next>
          </block>
        </statement>
        <value name="IF1">
          <block type="procedures_callreturn" id="F.}kq8;=BiH#4-od#^6?">
            <mutation name="Аллигатор вниз">
              <arg name="список свечей"></arg>
            </mutation>
            <value name="ARG0">
              <block type="ohlc_values" id="RN;Z3~Q3vEl-9$o;22M!">
                <field name="OHLCFIELD_LIST">close</field>
                <field name="CANDLEINTERVAL_LIST">default</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO1">
          <block type="notify" id="vSlRJrEzds{mO2Qg[uMY">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <shadow type="text" id="{`O10NvPdc~?~3ziJ_/P">
                <field name="TEXT">Down</field>
              </shadow>
            </value>
            <next>
              <block type="purchase" id="0JOXr{qN3yQ|;xfIf`3C">
                <field name="PURCHASE_LIST">PUT</field>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="notify" id="%s_+N_bIO8NZKxqvwY?(">
            <field name="NOTIFICATION_TYPE">success</field>
            <field name="NOTIFICATION_SOUND">silent</field>
            <value name="MESSAGE">
              <shadow type="text" id="c32B^$hlH8g96QStj[]2">
                <field name="TEXT">Flet</field>
              </shadow>
            </value>
          </block>
        </statement>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="D^Jz1^n=2vtZku1vBN@;" x="0" y="729">
    <statement name="AFTERPURCHASE_STACK">
      <block type="trade_again" id="c)S|KjoQdXc8l#J@5z3P"></block>
    </statement>
  </block>
</xml>