﻿<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="=4N-E4hru|sDn:SfufT0">
        <field name="VAR">ChikouTouched</field>
        <value name="VALUE">
          <block type="logic_boolean" id=":D6^^`3qDGFNuh}cxNwc">
            <field name="BOOL">FALSE</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="aYe7#(A)tB1,9%bXEpdg">
            <field name="VAR">TradeCall</field>
            <value name="VALUE">
              <block type="logic_boolean" id="AE`wf:_Z@d:OWT*XZ.as">
                <field name="BOOL">TRUE</field>
              </block>
            </value>
          </block>
        </next>
      </block>
    </statement>
    <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">30</field>
          </shadow>
        </value>
        <value name="AMOUNT">
          <shadow type="math_number" id="ml)25~7^q}3I9}vjf:%K">
            <field name="NUM">1</field>
          </shadow>
        </value>
      </block>
    </statement>
  </block>
  <block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" x="0" y="332">
    <statement name="BEFOREPURCHASE_STACK">
      <block type="controls_if" id="`U!rN{?}T0ra-n.#EW/?">
        <mutation elseif="1"></mutation>
        <value name="IF0">
          <block type="logic_operation" id="9,I{{_r1uR6{=k]Fceo|">
            <field name="OP">AND</field>
            <value name="A">
              <block type="logic_compare" id="N,*#%Dn#6d*7^A{[ma|3">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="`u?o_0D6IgLCWIR2Vs1k">
                    <field name="VAR">cloudColor</field>
                  </block>
                </value>
                <value name="B">
                  <block type="text" id="%%Z_OcU?3At3PxYS`t(e">
                    <field name="TEXT">Green</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="logic_compare" id="CF-4|l$ML-joH_YDFWeN">
                <field name="OP">NEQ</field>
                <value name="A">
                  <block type="variables_get" id="C$~)ip/,@.W/{NrAoQ1P">
                    <field name="VAR">ChikouTouched</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_boolean" id="#_t6F@r.,ge6r6wITuDE">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="Ugd5FITo1+Ke%M}(%rxK">
            <field name="VAR">TradeCall</field>
            <value name="VALUE">
              <block type="logic_boolean" id="mQri^*uJQ#D4P(s*FkQ8">
                <field name="BOOL">TRUE</field>
              </block>
            </value>
          </block>
        </statement>
        <value name="IF1">
          <block type="logic_operation" id="RnS:BYm(]fVX}@c{[,F3">
            <field name="OP">AND</field>
            <value name="A">
              <block type="logic_compare" id="Z#tpp+@x2RSkO]KfDgF2">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="Jg.ovIvgk+lT3Z7w_]AI">
                    <field name="VAR">cloudColor</field>
                  </block>
                </value>
                <value name="B">
                  <block type="text" id="];6O%eGdio1ocAG=`T8$">
                    <field name="TEXT">Red</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="logic_compare" id="i0,z$rH|mYMDDzN`]l=-">
                <field name="OP">NEQ</field>
                <value name="A">
                  <block type="variables_get" id="nCyq6vUh~k9*ih~=yVR{">
                    <field name="VAR">ChikouTouched</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_boolean" id="f[mJD4NtIF^PNX]@Zja[">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO1">
          <block type="variables_set" id=",5.:=kkE`moLb0glruW1">
            <field name="VAR">TradeCall</field>
            <value name="VALUE">
              <block type="logic_boolean" id=",5sG*MQ*]0T4sjJ**++u">
                <field name="BOOL">FALSE</field>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="ibc|B`X_GMZ7Gmn0-w.Z">
            <value name="IF0">
              <block type="variables_get" id="fR`+?Rqpo[yz`D?[B)3Z">
                <field name="VAR">ChikouTouched</field>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="0zZZ,y%THVN?NNWLG!2[">
                <field name="VAR">TradeCall</field>
                <value name="VALUE">
                  <block type="logic_ternary" id="ZXX@zw@pDESwl12^Z9W3">
                    <value name="IF">
                      <block type="logic_compare" id="x%a_ym]m_z~SZL}.Jin?">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="T.(mj%WSAVI]4$X%#_9F">
                            <field name="VAR">TradeCall</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="fyCzq*Id2DHxXYVs2B8G">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="THEN">
                      <block type="logic_boolean" id="ya]2W`D`%N]U:5ZHr;u$">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                    <value name="ELSE">
                      <block type="logic_boolean" id="me2}r3VX|lX.DbXm/exn">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="%R=2Vz-MXlds+f.hHlZ#">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="variables_get" id="Yn%g,_V@!oy8_A3jw(Fb">
                    <field name="VAR">TradeCall</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="purchase" id="6HwBlMH+sD/X6_5s%wjE">
                    <field name="PURCHASE_LIST">CALL</field>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="purchase" id="FUC65gs1n8LHnV3GC9Lt">
                    <field name="PURCHASE_LIST">PUT</field>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="after_purchase" id="D^Jz1^n=2vtZku1vBN@;" x="0" y="791">
    <statement name="AFTERPURCHASE_STACK">
      <block type="trade_again" id="c)S|KjoQdXc8l#J@5z3P"></block>
    </statement>
  </block>
  <block type="procedures_defreturn" id="W~rdtRmh)B[R)#t3PLP`" x="0" y="880">
    <mutation>
      <arg name="_short"></arg>
      <arg name="_middle"></arg>
      <arg name="_long"></arg>
      <arg name="_displacement"></arg>
      <arg name="_candles"></arg>
      <arg name="_signal(Tenkan,Kijun,Chikou,SpanA,SpanB,All)"></arg>
    </mutation>
    <field name="NAME">getIchimokuCloud</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
    <statement name="STACK">
      <block type="variables_set" id="!LQ3HsjWbcbCi^0#`ZfB">
        <field name="VAR">TenkanSen</field>
        <value name="VALUE">
          <block type="math_arithmetic" id="?%!^]p`p,BfPhVf7_f]/" inline="false" collapsed="true">
            <field name="OP">DIVIDE</field>
            <value name="A">
              <shadow type="math_number" id="6vB==zKer61H=!tHkzV4">
                <field name="NUM">1</field>
              </shadow>
              <block type="math_arithmetic" id="kgW^4[11KLXMZQ%%`Zo:" inline="false">
                <field name="OP">ADD</field>
                <value name="A">
                  <shadow type="math_number" id="Y($QEySPJQGEJNiO0_iW">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_on_list" id="m9VF,G$Z`bhNK,B%$61(">
                    <mutation op="MAX"></mutation>
                    <field name="OP">MAX</field>
                    <value name="LIST">
                      <block type="ohlc_values_in_list" id="4~hCu*e_B(V~L$,9)j;E">
                        <field name="OHLCFIELD_LIST">high</field>
                        <value name="OHLCLIST">
                          <block type="lists_getSublist" id="]-A4hn5=_9.B(8#iYF2m">
                            <mutation at1="true" at2="false"></mutation>
                            <field name="WHERE1">FROM_END</field>
                            <field name="WHERE2">LAST</field>
                            <value name="LIST">
                              <block type="variables_get" id="vHxTL:.pv5-!Ug!k{J78">
                                <field name="VAR">_candles</field>
                              </block>
                            </value>
                            <value name="AT1">
                              <block type="variables_get" id="BIAt#)jg~qn!$%tT;uye">
                                <field name="VAR">_short</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="A5K0n26{@7I9aF:+bTK]">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_on_list" id="}w.F|zz20S5ht37;IqlQ">
                    <mutation op="MIN"></mutation>
                    <field name="OP">MIN</field>
                    <value name="LIST">
                      <block type="ohlc_values_in_list" id="LyZ/O9S=R]y.zzkG7?F/">
                        <field name="OHLCFIELD_LIST">low</field>
                        <value name="OHLCLIST">
                          <block type="lists_getSublist" id="R4~9ND0vI~kKG~4GvOVB">
                            <mutation at1="true" at2="false"></mutation>
                            <field name="WHERE1">FROM_END</field>
                            <field name="WHERE2">LAST</field>
                            <value name="LIST">
                              <block type="variables_get" id="2V+cK-wl_5esgh?4q,qQ">
                                <field name="VAR">_candles</field>
                              </block>
                            </value>
                            <value name="AT1">
                              <block type="variables_get" id="__^@zYEiG[y?xmeHNr3p">
                                <field name="VAR">_short</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <shadow type="math_number" id="[$)1Z[P$=ofs?WdUV5S}">
                <field name="NUM">2</field>
              </shadow>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id=".s~E0Le8ZQz6]g!57!]M">
            <field name="VAR">TenkanSenDisplaced</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="AL2zih6sx#i[7Fu|FEWO" inline="false" collapsed="true">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number" id="6vB==zKer61H=!tHkzV4">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="!xqRQqnl^v?%VRvp9qL4" inline="false">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="Y($QEySPJQGEJNiO0_iW">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_on_list" id="YX}lc14W*LrN~o~,#NQ%">
                        <mutation op="MAX"></mutation>
                        <field name="OP">MAX</field>
                        <value name="LIST">
                          <block type="ohlc_values_in_list" id="e,QI*w~1j!~o/M=P%Uk{">
                            <field name="OHLCFIELD_LIST">high</field>
                            <value name="OHLCLIST">
                              <block type="lists_getSublist" id="~Ry:UU|Pm,UQiAJNk#0,">
                                <mutation at1="true" at2="true"></mutation>
                                <field name="WHERE1">FROM_END</field>
                                <field name="WHERE2">FROM_END</field>
                                <value name="LIST">
                                  <block type="variables_get" id="@^A@K|.f7`QyaxdK=9pv">
                                    <field name="VAR">_candles</field>
                                  </block>
                                </value>
                                <value name="AT1">
                                  <block type="math_arithmetic" id="Q|!@XQ*/VG.C7Cd(#b$8">
                                    <field name="OP">ADD</field>
                                    <value name="A">
                                      <shadow type="math_number" id="=?McA{3VwM!1I3V;[nwi">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="(7}~ZMR4$$gbONE2|3/t">
                                        <field name="VAR">_short</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id=")mcii!siug-wJ%]^jV(9">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="t9R%#U-lN85}WD!uPULE">
                                        <field name="VAR">_displacement</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="AT2">
                                  <block type="variables_get" id="4)6S}oPrx~BSsJ/-_o_?">
                                    <field name="VAR">_displacement</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="A5K0n26{@7I9aF:+bTK]">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_on_list" id="m09%,XmM?6HCO)c)eK{W">
                        <mutation op="MIN"></mutation>
                        <field name="OP">MIN</field>
                        <value name="LIST">
                          <block type="ohlc_values_in_list" id=",C5X((hfrM#sEx(.DMiK">
                            <field name="OHLCFIELD_LIST">low</field>
                            <value name="OHLCLIST">
                              <block type="lists_getSublist" id="%UZs,rgG$uP+L]4NBN97">
                                <mutation at1="true" at2="true"></mutation>
                                <field name="WHERE1">FROM_END</field>
                                <field name="WHERE2">FROM_END</field>
                                <value name="LIST">
                                  <block type="variables_get" id=".ZMr#cT4(SOl,k@FA]4/">
                                    <field name="VAR">_candles</field>
                                  </block>
                                </value>
                                <value name="AT1">
                                  <block type="math_arithmetic" id="ED_My,eF:TQdcc3fUD}*">
                                    <field name="OP">ADD</field>
                                    <value name="A">
                                      <shadow type="math_number" id="=?McA{3VwM!1I3V;[nwi">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="@TkM,vDl69sENKVhV|;n">
                                        <field name="VAR">_short</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id=")mcii!siug-wJ%]^jV(9">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="05$aodVNsDh7]YCSYK/}">
                                        <field name="VAR">_displacement</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="AT2">
                                  <block type="variables_get" id="x_nK8{Lrl2Fxc;(dn31$">
                                    <field name="VAR">_displacement</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="I?q:l4Y/gKCZa{96r5ta">
                    <field name="NUM">2</field>
                  </shadow>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="sH@SriMZv|+Lj+}kj,=]">
                <field name="VAR">KijunSen</field>
                <value name="VALUE">
                  <block type="math_arithmetic" id="]NCBsY3(IQRHDSlGD|RK" inline="false" collapsed="true">
                    <field name="OP">DIVIDE</field>
                    <value name="A">
                      <shadow type="math_number" id="6vB==zKer61H=!tHkzV4">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_arithmetic" id="cdXQ.WL7!FPo^ypG~%5B" inline="false">
                        <field name="OP">ADD</field>
                        <value name="A">
                          <shadow type="math_number" id="Y($QEySPJQGEJNiO0_iW">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_on_list" id="k~wn(#/GUhlFX%;i!^!6">
                            <mutation op="MAX"></mutation>
                            <field name="OP">MAX</field>
                            <value name="LIST">
                              <block type="ohlc_values_in_list" id="?)I/(}_(3/Ie5MT1*2{S">
                                <field name="OHLCFIELD_LIST">high</field>
                                <value name="OHLCLIST">
                                  <block type="lists_getSublist" id="rAw+!sc,J#GYg-dep2s#">
                                    <mutation at1="true" at2="false"></mutation>
                                    <field name="WHERE1">FROM_END</field>
                                    <field name="WHERE2">LAST</field>
                                    <value name="LIST">
                                      <block type="variables_get" id="Y0UE)=Jn+ITp}$/R|ECx">
                                        <field name="VAR">_candles</field>
                                      </block>
                                    </value>
                                    <value name="AT1">
                                      <block type="variables_get" id="7UYMY5EV(v5%h3R|.S;}">
                                        <field name="VAR">_middle</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="A5K0n26{@7I9aF:+bTK]">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_on_list" id="tvm7;t~ye6ng@~YI7*F~">
                            <mutation op="MIN"></mutation>
                            <field name="OP">MIN</field>
                            <value name="LIST">
                              <block type="ohlc_values_in_list" id="-oDIoZq8%U*khUq!CTZ{">
                                <field name="OHLCFIELD_LIST">low</field>
                                <value name="OHLCLIST">
                                  <block type="lists_getSublist" id="X#idl$GVP9X$gPkcKfOP">
                                    <mutation at1="true" at2="false"></mutation>
                                    <field name="WHERE1">FROM_END</field>
                                    <field name="WHERE2">LAST</field>
                                    <value name="LIST">
                                      <block type="variables_get" id="~Wy9EQieLktgl[Vi~^Fm">
                                        <field name="VAR">_candles</field>
                                      </block>
                                    </value>
                                    <value name="AT1">
                                      <block type="variables_get" id=";MEoApcK[wxgZ:zDZkKq">
                                        <field name="VAR">_middle</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="@#X{r[ELiF*_4n]yxpHn">
                        <field name="NUM">2</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="J9fh`jB.?tv_DzV#`U_p">
                    <field name="VAR">KijunSenDisplaced</field>
                    <value name="VALUE">
                      <block type="math_arithmetic" id="KVB(4Kv,#*`p_2b=mz6!" inline="false" collapsed="true">
                        <field name="OP">DIVIDE</field>
                        <value name="A">
                          <shadow type="math_number" id="6vB==zKer61H=!tHkzV4">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_arithmetic" id="b0iqZg^7]?w/Ar-eW5X4" inline="false">
                            <field name="OP">ADD</field>
                            <value name="A">
                              <shadow type="math_number" id="Y($QEySPJQGEJNiO0_iW">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="math_on_list" id="@zB~GGuzOWE0Aou}AQwJ">
                                <mutation op="MAX"></mutation>
                                <field name="OP">MAX</field>
                                <value name="LIST">
                                  <block type="ohlc_values_in_list" id=":r|5pGu]+vlZk$Uv]%w^">
                                    <field name="OHLCFIELD_LIST">high</field>
                                    <value name="OHLCLIST">
                                      <block type="lists_getSublist" id="l?InWwxop3NqQS*l^7+Z">
                                        <mutation at1="true" at2="true"></mutation>
                                        <field name="WHERE1">FROM_END</field>
                                        <field name="WHERE2">FROM_END</field>
                                        <value name="LIST">
                                          <block type="variables_get" id="qp;6p6KX%xd|yNqD6]`y">
                                            <field name="VAR">_candles</field>
                                          </block>
                                        </value>
                                        <value name="AT1">
                                          <block type="math_arithmetic" id="BF],v?~]Xmo;gER!/N2j">
                                            <field name="OP">ADD</field>
                                            <value name="A">
                                              <shadow type="math_number" id="/MNxp]xbjX[J`,y^L*ky">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="variables_get" id="-M!r-!yMP%6lCPYjPyXZ">
                                                <field name="VAR">_middle</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id=";MT/GCLY3Zu!B1V!@fKr">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="variables_get" id="99{{:F`n~bnC!ToOa%I~">
                                                <field name="VAR">_displacement</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="AT2">
                                          <block type="variables_get" id="3zhs~(^VXGpY)!2vQ^g;">
                                            <field name="VAR">_displacement</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="A5K0n26{@7I9aF:+bTK]">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="math_on_list" id="$YARM9`UOPfN$k9j1P+a">
                                <mutation op="MIN"></mutation>
                                <field name="OP">MIN</field>
                                <value name="LIST">
                                  <block type="ohlc_values_in_list" id="!%2K.5Bc{Dw2XsDcKTS5">
                                    <field name="OHLCFIELD_LIST">low</field>
                                    <value name="OHLCLIST">
                                      <block type="lists_getSublist" id="2m0Eu|h8PiDmrW--FKlJ">
                                        <mutation at1="true" at2="true"></mutation>
                                        <field name="WHERE1">FROM_END</field>
                                        <field name="WHERE2">FROM_END</field>
                                        <value name="LIST">
                                          <block type="variables_get" id="8$UhSGS*,lEo/R]~n9v-">
                                            <field name="VAR">_candles</field>
                                          </block>
                                        </value>
                                        <value name="AT1">
                                          <block type="math_arithmetic" id="fXjeeJ)S`GQ]|NZAjoC4">
                                            <field name="OP">ADD</field>
                                            <value name="A">
                                              <shadow type="math_number" id="/MNxp]xbjX[J`,y^L*ky">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="variables_get" id="Rw:zha:g:,8K?cYI5]4N">
                                                <field name="VAR">_middle</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id=";MT/GCLY3Zu!B1V!@fKr">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="variables_get" id="]+W{rA:-VVHH[T6g~4V[">
                                                <field name="VAR">_displacement</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="AT2">
                                          <block type="variables_get" id=",*Sv#?*1?Sy:!sv(`)F$">
                                            <field name="VAR">_displacement</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="y(]c]mVsewpQTI^`2b[|">
                            <field name="NUM">2</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="h5/I3*9RA*JHd9o)`}vO">
                        <field name="VAR">ChikouSpan</field>
                        <value name="VALUE">
                          <block type="read_ohlc_obj" id="Ni6ik%M-HJK^-v@WK2_+">
                            <field name="OHLCFIELD_LIST">close</field>
                            <value name="OHLCOBJ">
                              <block type="lists_getIndex" id="zy.K;@/9vHXQRQ7g)k*G">
                                <mutation statement="false" at="false"></mutation>
                                <field name="MODE">GET</field>
                                <field name="WHERE">LAST</field>
                                <value name="VALUE">
                                  <block type="variables_get" id="MRxCQ`flz?d(h@=+mh`z">
                                    <field name="VAR">_candles</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="r_0D.MCqoA,N2FT0UCAa">
                            <field name="VAR">SenkouSpanA</field>
                            <value name="VALUE">
                              <block type="math_arithmetic" id="K0760W/o~g-JJS_lZA3k" inline="false" collapsed="true">
                                <field name="OP">DIVIDE</field>
                                <value name="A">
                                  <shadow type="math_number" id="6vB==zKer61H=!tHkzV4">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="math_arithmetic" id="1mDW$[_mJ+Ko9J|U;O`D" inline="false">
                                    <field name="OP">ADD</field>
                                    <value name="A">
                                      <shadow type="math_number" id="Y($QEySPJQGEJNiO0_iW">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="a{E8Z7M)HRrGT6B(}ny0">
                                        <field name="VAR">TenkanSenDisplaced</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id="A5K0n26{@7I9aF:+bTK]">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="U#_wOEOya20Z-bo=/)^{">
                                        <field name="VAR">KijunSenDisplaced</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow type="math_number" id="f6Cnb{5kGR;|eD)s(XCd">
                                    <field name="NUM">2</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="A8UtQICVl]zIaVBexXjB">
                                <field name="VAR">SenkouSpanB</field>
                                <value name="VALUE">
                                  <block type="math_arithmetic" id="8W**zy?FS4~Nk~/X%;p+" inline="false" collapsed="true">
                                    <field name="OP">DIVIDE</field>
                                    <value name="A">
                                      <shadow type="math_number" id="6vB==zKer61H=!tHkzV4">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="a#@4QNLL)!:45h(~Yh(L" inline="false">
                                        <field name="OP">ADD</field>
                                        <value name="A">
                                          <shadow type="math_number" id="Y($QEySPJQGEJNiO0_iW">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="math_on_list" id="]pebEJ+}|=+%n-]ujjw]">
                                            <mutation op="MAX"></mutation>
                                            <field name="OP">MAX</field>
                                            <value name="LIST">
                                              <block type="ohlc_values_in_list" id="~CjIEx~;~xK2)`v=ICkw">
                                                <field name="OHLCFIELD_LIST">high</field>
                                                <value name="OHLCLIST">
                                                  <block type="lists_getSublist" id=":%77xiQW%Lw1RT_Lfa^k">
                                                    <mutation at1="true" at2="true"></mutation>
                                                    <field name="WHERE1">FROM_END</field>
                                                    <field name="WHERE2">FROM_END</field>
                                                    <value name="LIST">
                                                      <block type="variables_get" id="~jIIn]wbmI:Hg|E1#e;p">
                                                        <field name="VAR">_candles</field>
                                                      </block>
                                                    </value>
                                                    <value name="AT1">
                                                      <block type="math_arithmetic" id="bd1[j66%s{A[sa#BfG(:">
                                                        <field name="OP">ADD</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="/MNxp]xbjX[J`,y^L*ky">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="gWHM|_6Y/.b}8O~l,{7i">
                                                            <field name="VAR">_long</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id=";MT/GCLY3Zu!B1V!@fKr">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="WJaP+]Y$^n961+M_2}zj">
                                                            <field name="VAR">_displacement</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="AT2">
                                                      <block type="variables_get" id="avd/EwPjqA:@*B2qlDg{">
                                                        <field name="VAR">_displacement</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="A5K0n26{@7I9aF:+bTK]">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="math_on_list" id="!z0q]*SOrrf%^.+SUfxI">
                                            <mutation op="MIN"></mutation>
                                            <field name="OP">MIN</field>
                                            <value name="LIST">
                                              <block type="ohlc_values_in_list" id="?Nu4p/)SL}r5T$`*JI`]">
                                                <field name="OHLCFIELD_LIST">low</field>
                                                <value name="OHLCLIST">
                                                  <block type="lists_getSublist" id="HB#Db*HntLSi6xzi4|Qm">
                                                    <mutation at1="true" at2="true"></mutation>
                                                    <field name="WHERE1">FROM_END</field>
                                                    <field name="WHERE2">FROM_END</field>
                                                    <value name="LIST">
                                                      <block type="variables_get" id="1R:;5ea@.-O1Cu|k6c$@">
                                                        <field name="VAR">_candles</field>
                                                      </block>
                                                    </value>
                                                    <value name="AT1">
                                                      <block type="math_arithmetic" id="25,MUtqr%49iG$KVN4^t">
                                                        <field name="OP">ADD</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="/MNxp]xbjX[J`,y^L*ky">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="!4JRGYcI!A|VRaq8]ZI1">
                                                            <field name="VAR">_long</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id=";MT/GCLY3Zu!B1V!@fKr">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="*D17oKJ99FP2|;vh+[(#" disabled="true">
                                                            <field name="VAR">_displacement</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="AT2">
                                                      <block type="variables_get" id="?)]kC76linU$NnqTf!Mw">
                                                        <field name="VAR">_displacement</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id="c1^lpEt9$e,SxKXY0V@i">
                                        <field name="NUM">2</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
    <value name="RETURN">
      <block type="logic_ternary" id="vDNt9H:7@#XU9IN3)Sy9" inline="false">
        <value name="IF">
          <block type="logic_compare" id="+FEV=1-oG*?nRH/t3l8d">
            <field name="OP">EQ</field>
            <value name="A">
              <block type="variables_get" id="W_A7znQuKIN8JGouM+:d">
                <field name="VAR">_signal(Tenkan,Kijun,Chikou,SpanA,SpanB,All)</field>
              </block>
            </value>
            <value name="B">
              <block type="text" id="^?i/Z!#N1w?^_)^|?Zf`">
                <field name="TEXT">Tenkan</field>
              </block>
            </value>
          </block>
        </value>
        <value name="THEN">
          <block type="variables_get" id="M[YD~=8-SQGiW+mnvWh/">
            <field name="VAR">TenkanSen</field>
          </block>
        </value>
        <value name="ELSE">
          <block type="logic_ternary" id="?8wa^nI2y5;`zvP$aw6M" inline="false">
            <value name="IF">
              <block type="logic_compare" id="n8ROcw1a3mC:*nl0clha">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get" id="`,`wf%A73dY_ux6bH~|0">
                    <field name="VAR">_signal(Tenkan,Kijun,Chikou,SpanA,SpanB,All)</field>
                  </block>
                </value>
                <value name="B">
                  <block type="text" id="g7#8}7$r:I/u41u4)k.f">
                    <field name="TEXT">Kijun</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="THEN">
              <block type="variables_get" id="^WP6Ia$GSH;!eMHJ,CHi">
                <field name="VAR">KijunSen</field>
              </block>
            </value>
            <value name="ELSE">
              <block type="logic_ternary" id="Xd7?UTFhMd#fcXxtLTR:" inline="false">
                <value name="IF">
                  <block type="logic_compare" id="al[2{c)-+D[hu6i+Fo;[">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="qLdl.2V=9KT7J1?88j!u">
                        <field name="VAR">_signal(Tenkan,Kijun,Chikou,SpanA,SpanB,All)</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="text" id="C$Rvop^du36{a.}BT^Rl">
                        <field name="TEXT">Chikou</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="THEN">
                  <block type="variables_get" id="he{eHeW75#FtFpaugN8?">
                    <field name="VAR">ChikouSpan</field>
                  </block>
                </value>
                <value name="ELSE">
                  <block type="logic_ternary" id="p,Kj;/=JbHJh3KFBRDWs" inline="false">
                    <value name="IF">
                      <block type="logic_compare" id="=Li3$bou70MDg?)K=`.+">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="MJ-8p:{C6Tslfvl#7k1^">
                            <field name="VAR">_signal(Tenkan,Kijun,Chikou,SpanA,SpanB,All)</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="text" id="d(+ijsfZJ_VklToLbZzG">
                            <field name="TEXT">SpanA</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="THEN">
                      <block type="variables_get" id="iBXOnsRUoYhe;N!Q*M?h">
                        <field name="VAR">SenkouSpanA</field>
                      </block>
                    </value>
                    <value name="ELSE">
                      <block type="logic_ternary" id="U4W|:*/:XjJzn29UY==L" inline="false">
                        <value name="IF">
                          <block type="logic_compare" id="(^Ro+uD)]q(R`o9}m#Gm">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="gnDD_yV~Tm%SLYyn4:(O">
                                <field name="VAR">_signal(Tenkan,Kijun,Chikou,SpanA,SpanB,All)</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="text" id="N%(LTon7[djD$NIT0m.i">
                                <field name="TEXT">SpanB</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="THEN">
                          <block type="variables_get" id="^lBJqc~K?94^xc/#)]1n">
                            <field name="VAR">SenkouSpanB</field>
                          </block>
                        </value>
                        <value name="ELSE">
                          <block type="lists_create_with" id="]+#3Uc|C$,UVD^@/`+ao" inline="false">
                            <mutation items="5"></mutation>
                            <value name="ADD0">
                              <block type="variables_get" id=".)E!ktVl%ui$nZwxDE:=">
                                <field name="VAR">TenkanSen</field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="variables_get" id="Y2JE209!TFHwP|GM?t}7">
                                <field name="VAR">KijunSen</field>
                              </block>
                            </value>
                            <value name="ADD2">
                              <block type="variables_get" id="+yllB%t/8#n6vgq8jqlT">
                                <field name="VAR">ChikouSpan</field>
                              </block>
                            </value>
                            <value name="ADD3">
                              <block type="variables_get" id="{ykosL5L@646DaZa4Z75">
                                <field name="VAR">SenkouSpanA</field>
                              </block>
                            </value>
                            <value name="ADD4">
                              <block type="variables_get" id="#:^X$K0L}~?299!8AsU6">
                                <field name="VAR">SenkouSpanB</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
      </block>
    </value>
  </block>
  <block type="tick_analysis" id="wmz$9#6OD[G/jtTMm8MK" x="0" y="1574">
    <statement name="TICKANALYSIS_STACK">
      <block type="variables_set" id="e]Rp[e0jkeIYkyD-B`fp">
        <field name="VAR">IchimokuCloudValues</field>
        <value name="VALUE">
          <block type="procedures_callreturn" id="FNx!4`+g$MuZZj?uQcK=" inline="false" collapsed="true">
            <mutation name="getIchimokuCloud">
              <arg name="_short"></arg>
              <arg name="_middle"></arg>
              <arg name="_long"></arg>
              <arg name="_displacement"></arg>
              <arg name="_candles"></arg>
              <arg name="_signal(Tenkan,Kijun,Chikou,SpanA,SpanB,All)"></arg>
            </mutation>
            <value name="ARG0">
              <block type="math_number" id="eR@jws75t@y]A?c)Tdr{">
                <field name="NUM">9</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="math_number" id="?MgCH+V#x4swogkg5D@V">
                <field name="NUM">26</field>
              </block>
            </value>
            <value name="ARG2">
              <block type="math_number" id="EffIpacKV.isMp:r%F}!">
                <field name="NUM">52</field>
              </block>
            </value>
            <value name="ARG3">
              <block type="math_number" id="E.DqK/@RQd*W93{u|](2">
                <field name="NUM">26</field>
              </block>
            </value>
            <value name="ARG4">
              <block type="ohlc" id="yowzZhPiyjm{4w?R%}Sv">
                <field name="CANDLEINTERVAL_LIST">default</field>
              </block>
            </value>
            <value name="ARG5">
              <block type="text" id="{;r6GE4na{T@#]a#ZF}J">
                <field name="TEXT">All</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="variables_set" id="x9l,2u]znF73oD5844J7">
            <field name="VAR">cloudColor</field>
            <value name="VALUE">
              <block type="logic_ternary" id="/Yhm4wkOg|r{)tw;xva!" collapsed="true">
                <value name="IF">
                  <block type="logic_compare" id="4a],;}pMv%4YSPw*5oJG" inline="false">
                    <field name="OP">GT</field>
                    <value name="A">
                      <block type="lists_getIndex" id="W6]:!RM`|R)`T0*st1^I">
                        <mutation statement="false" at="true"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">FROM_START</field>
                        <value name="VALUE">
                          <block type="variables_get" id="eAV:.)!DJED)XGz}`zgd">
                            <field name="VAR">IchimokuCloudValues</field>
                          </block>
                        </value>
                        <value name="AT">
                          <block type="math_number" id="b%S*|jxvgq$g^/m4LIyo">
                            <field name="NUM">4</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="lists_getIndex" id="oNn`^lb14,VOMWw.?na`">
                        <mutation statement="false" at="true"></mutation>
                        <field name="MODE">GET</field>
                        <field name="WHERE">FROM_START</field>
                        <value name="VALUE">
                          <block type="variables_get" id="^.Z=O8(ouM*dl+ZawweS">
                            <field name="VAR">IchimokuCloudValues</field>
                          </block>
                        </value>
                        <value name="AT">
                          <block type="math_number" id="Q2qJFftaB!8_YMS~*?~-">
                            <field name="NUM">5</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="THEN">
                  <block type="text" id="4zq2Br`{FlE]2O/YmkU$">
                    <field name="TEXT">Green</field>
                  </block>
                </value>
                <value name="ELSE">
                  <block type="text" id="0o:bQxFgr=!d_c},5rkd">
                    <field name="TEXT">Red</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="controls_if" id="nO8oP6jFH=).Z=21cM4v">
                <value name="IF0">
                  <block type="logic_operation" id="Js5O}}5Pi]/d1#aFa6Af" inline="false" collapsed="true">
                    <field name="OP">OR</field>
                    <value name="A">
                      <block type="logic_compare" id="Y4|aIKN2nTHpJd[,KMQa" inline="false">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="tick" id=";hwn6|TLHXn6#lm@;rYk"></block>
                        </value>
                        <value name="B">
                          <block type="read_ohlc_obj" id="Hub.~B@])eSHkC}MV95Y">
                            <field name="OHLCFIELD_LIST">high</field>
                            <value name="OHLCOBJ">
                              <block type="get_ohlc" id="o+1+;F[4Iui7hfZ{vL.C">
                                <field name="CANDLEINTERVAL_LIST">default</field>
                                <value name="CANDLEINDEX">
                                  <shadow type="math_number" id="4hgGKc6%LPwH:`9?yBp2">
                                    <field name="NUM">26</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="CJA-wkU@e|Hl*cu}%Kr%" inline="false">
                        <field name="OP">LT</field>
                        <value name="A">
                          <block type="tick" id="t?G=EN*NXp}{y^9,y_nu"></block>
                        </value>
                        <value name="B">
                          <block type="read_ohlc_obj" id="*1L[DusS{lGC.E|]l|L9">
                            <field name="OHLCFIELD_LIST">low</field>
                            <value name="OHLCOBJ">
                              <block type="get_ohlc" id="3`MXICF#NmaC2$oUK-GQ">
                                <field name="CANDLEINTERVAL_LIST">default</field>
                                <value name="CANDLEINDEX">
                                  <shadow type="math_number" id="{aCW{yby@?$iml}Q1T0T">
                                    <field name="NUM">26</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="t@Q4sa(yF0jcOPg0hu]8">
                    <field name="VAR">ChikouTouched</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="5*HMp3^;,jiEOh]g]5-H">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>