Skip to content

Instantly share code, notes, and snippets.

@okovalov
Created March 3, 2017 15:20
Show Gist options
  • Save okovalov/6a3b65bfc70b3d4d9b86de5f1ac9dc33 to your computer and use it in GitHub Desktop.
Save okovalov/6a3b65bfc70b3d4d9b86de5f1ac9dc33 to your computer and use it in GitHub Desktop.
Binary Bot (https://bot.binary.com) Examples

Misc. Examples

Alternate Even/Odd

Alternate Even-Odd.xml

Alternate Even/Odd with Martingale

martingale_alternate_even_odd.xml

Detect a new candle started

is candle new package.xml

Pause trade before starting again

pause 10s after 3 runs.xml

Use RSI indicator to choose the purchase option

rsi call put.xml

Detect collision of two indicators with a threshold

sma_compare_threshold.xml

Get the last digit after purchase

Get the last digit after purchase

Get the previous tick, candle or RSI value

Get previous tick candle or RSI.xml

Purchase when desired net profit is seen

buy_on_desired_net_profit.xml

Simple three line strike

simple_three_line_strike.xml

<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
<block type="trade" id="73vWdDagX-YhN)CtN.3D" x="0" y="0">
<statement name="SUBMARKET">
<block type="variables_set" id="6v!@?*xZA~*U{SuB=T[N">
<field name="VAR">Contract Type</field>
<value name="VALUE">
<block type="text" id="4^!Tx5_|Of5,0r})/9^d">
<field name="TEXT">Even</field>
</block>
</value>
<next>
<block type="market" id="~T:?7-`j{)c/H5e]d.H9">
<field name="MARKET_LIST">volidx</field>
<field name="SUBMARKET_LIST">random_index</field>
<field name="SYMBOL_LIST">R_100</field>
<field name="TRADETYPECAT_LIST">digits</field>
<field name="TRADETYPE_LIST">evenodd</field>
<field name="TYPE_LIST">both</field>
<field name="CANDLEINTERVAL_LIST">60</field>
<field name="DURATIONTYPE_LIST">t</field>
<field name="PAYOUTTYPE_LIST">stake</field>
<field name="CURRENCY_LIST">USD</field>
<field name="RESTARTONERROR">FALSE</field>
<value name="DURATION">
<block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
<field name="NUM">5</field>
</block>
</value>
<value name="AMOUNT">
<block type="math_number" id="|tIC~6lHx]cKt9rf1jFk">
<field name="NUM">1</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
<block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="0" y="268">
<statement name="BEFOREPURCHASE_STACK">
<block type="controls_if" id="i^y1-),y7~|#4?F~nZ_|">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="!WkMU~7t-BaX/6mu`-0^">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="nFY.TxN+a_J`Np?^d:2c">
<field name="VAR">Contract Type</field>
</block>
</value>
<value name="B">
<block type="text" id="2,4_9}MD6ZJ9Io([N~c;">
<field name="TEXT">Even</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
<field name="PURCHASE_LIST">DIGITEVEN</field>
</block>
</statement>
<statement name="ELSE">
<block type="purchase" id="@5$RB6|F?Ws{|s)a6(3k">
<field name="PURCHASE_LIST">DIGITODD</field>
</block>
</statement>
</block>
</statement>
</block>
<block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="0" y="446">
<statement name="AFTERPURCHASE_STACK">
<block type="controls_if" id="1-c,VlN:,{n1.F271)z.">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="gxiH0*@=TH*=X8}I4~99">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="oJph;:)i1!I_WB0WcIXe">
<field name="VAR">Contract Type</field>
</block>
</value>
<value name="B">
<block type="text" id="8,_RxM0Mz5s4IB8=I|YI">
<field name="TEXT">Even</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="NqLuJB2Ie+-fc%JKw[9s">
<field name="VAR">Contract Type</field>
<value name="VALUE">
<block type="text" id="@?@7V9GA}$A%hK#uEmq|">
<field name="TEXT">Odd</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="D7Gd;Qbdxw6C|V-UBB7?">
<field name="VAR">Contract Type</field>
<value name="VALUE">
<block type="text" id="QH4m()a)1|soCbiE]$wx">
<field name="TEXT">Even</field>
</block>
</value>
</block>
</statement>
<next>
<block type="trade_again" id="SO*X=~i(5H%=zQ5%e+J$"></block>
</next>
</block>
</statement>
</block>
</xml>
<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
<block type="trade" id="73vWdDagX-YhN)CtN.3D" x="0" y="0">
<statement name="SUBMARKET">
<block type="variables_set" id="X4g$ZR]?k9,=X8tj8Hq;">
<field name="VAR">Desired Net Profit</field>
<value name="VALUE">
<block type="text_prompt_ext" id="~V:9{y%#k%wNXh3.LLi}">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<shadow type="text" id="|{_b5K~As8IgviF.nmrx">
<field name="TEXT">abc</field>
</shadow>
<block type="text" id="u8l#IIR(*Zsi$:S/E0)5">
<field name="TEXT">Please set the desired net profit</field>
</block>
</value>
</block>
</value>
<next>
<block type="market" id="~T:?7-`j{)c/H5e]d.H9">
<field name="MARKET_LIST">forex</field>
<field name="SUBMARKET_LIST">major_pairs</field>
<field name="SYMBOL_LIST">frxAUDJPY</field>
<field name="TRADETYPECAT_LIST">callput</field>
<field name="TRADETYPE_LIST">risefall</field>
<field name="TYPE_LIST">CALL</field>
<field name="CANDLEINTERVAL_LIST">60</field>
<field name="DURATIONTYPE_LIST">m</field>
<field name="PAYOUTTYPE_LIST">stake</field>
<field name="CURRENCY_LIST">USD</field>
<field name="RESTARTONERROR">FALSE</field>
<value name="DURATION">
<block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
<field name="NUM">1</field>
</block>
</value>
<value name="AMOUNT">
<block type="math_number" id="|tIC~6lHx]cKt9rf1jFk">
<field name="NUM">5</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
<block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="0" y="268">
<statement name="BEFOREPURCHASE_STACK">
<block type="variables_set" id="5Q^e].FZBAZ}VpVwMB[_">
<field name="VAR">Price Difference</field>
<value name="VALUE">
<block type="math_arithmetic" id="YkG?^:bT@Q-GZjsk-jt-">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="I:Y(XwBmW5;]0j76=c=N">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="7mu)[79v4c$%!3%mig?x">
<field name="VAR">Desired Net Profit</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="F7J6|~{m:K`^xwYYykJp">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="OSc;lXg6fXWO},MrsD(w">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id=".K601_@{jXSf?R/zutpR">
<field name="NUM">1</field>
</shadow>
<block type="payout" id="!$_PzQ*O5a+Ij/g,e*lf">
<field name="PURCHASE_LIST">CALL</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="EE[0l1%Ftl_=:CV~x0},">
<field name="NUM">1</field>
</shadow>
<block type="ask_price" id="E.8I[0HuHtZ[`9;}%,AS">
<field name="PURCHASE_LIST">CALL</field>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="GiBSMAK``jc+2wUR)}fp">
<value name="IF0">
<block type="logic_compare" id="X1:sb6%Q$T;O=]tvOIO3">
<field name="OP">LT</field>
<value name="A">
<block type="variables_get" id="v3Vs:7;W0R$2B5(PXYoA">
<field name="VAR">Price Difference</field>
</block>
</value>
<value name="B">
<block type="math_number" id="_aQRwK;m?l3+G;z/B7;M">
<field name="NUM">0.1</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</xml>
<xml xmlns="http://www.w3.org/1999/xhtml" collection="true">
<block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8">
<statement name="BEFOREPURCHASE_STACK">
<block type="notify" id="#,rf,]i6*#d79X648A-)">
<field name="NOTIFICATION_TYPE">success</field>
<value name="MESSAGE">
<block type="lists_getIndex" id="uN6e8B+{)eE%Qk0f@g,G">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="ohlc_values" id="^qWfA#].}$r`Ulqktly6">
<field name="OHLCFIELD_LIST">close</field>
</block>
</value>
<value name="AT">
<block type="math_number" id="Wjv5st-Y6*a;0qdK3#G$">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<next>
<block type="notify" id="BlGn!zwK{I[f$Ay[?1e%">
<field name="NOTIFICATION_TYPE">info</field>
<value name="MESSAGE">
<block type="lists_getIndex" id="K5ux7v@=nC$Bya+N0u/M">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="ticks" id="i5kOD@_f5FK5Ge}~PltZ"></block>
</value>
<value name="AT">
<block type="math_number" id="!gHF1^b,H;RcJ4mL0Huj">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<next>
<block type="notify" id="gk%ZH4,EqooyHF@}3xRt">
<field name="NOTIFICATION_TYPE">error</field>
<value name="MESSAGE">
<block type="lists_getIndex" id="!5Lfh=Rz8p9Qq_WwLw*J">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_END</field>
<value name="VALUE">
<block type="rsia" id="A}sTTPQi$|)v[EGX8?_4">
<value name="INPUT">
<block type="ohlc_values" id="4GZ/5kQB6FU+uSPzPTlr">
<field name="OHLCFIELD_LIST">close</field>
</block>
</value>
<value name="PERIOD">
<block type="math_number" id="Bs7,w_k1o-]^Rh^RZWI^">
<field name="NUM">14</field>
</block>
</value>
</block>
</value>
<value name="AT">
<block type="math_number" id=":FuXiS#L9jd)_X*:yQ6t">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
<xml xmlns="http://www.w3.org/1999/xhtml" collection="true">
<block type="tick_analysis" id="jbV#@V5DQvEViKP`U%CJ" x="0" y="0">
<statement name="TICKANALYSIS_STACK">
<block type="variables_set" id="09Pr3D[aP0(@It:E$H3]">
<field name="VAR">Current Last Digit</field>
<value name="VALUE">
<block type="last_digit" id="aa-QjUpSyR@x,^!vWRWq"></block>
</value>
</block>
</statement>
</block>
<block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="0" y="92">
<statement name="AFTERPURCHASE_STACK">
<block type="variables_set" id="JMS[dO]kxnQpszrmG58=">
<field name="VAR">Result Last Digit</field>
<value name="VALUE">
<block type="variables_get" id="=:rTu$uVI{CSpLD..qQQ">
<field name="VAR">Result Last Digit</field>
</block>
</value>
</block>
</statement>
</block>
</xml>
<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
<block type="loader" id="8*/J|~pCeu@4+@nfT{I1" x="0" y="0">
<field name="URL">https://gist.githubusercontent.com/aminmarashi/7cd7be9f3ce9004de767f4d4f6a6c5a0/raw/is%2520candle%2520new.xml</field>
</block>
<block type="trade" id="Yt52~)Nf#vNGlE+qP/vI" x="0" y="53">
<statement name="SUBMARKET">
<block type="r_100" id="VBu1:.ZV}*(8lnQ^?gjD">
<statement name="CONDITION">
<block type="risefall" id="AP@czKkb*En-BiAn)kAi">
<field name="TYPE_LIST">both</field>
<field name="CANDLEINTERVAL_LIST">60</field>
<field name="DURATIONTYPE_LIST">t</field>
<field name="PAYOUTTYPE_LIST">stake</field>
<field name="CURRENCY_LIST">USD</field>
<value name="DURATION">
<block type="math_number" id="la;K[YSxm8hvB/h,FMur">
<field name="NUM">5</field>
</block>
</value>
<value name="AMOUNT">
<block type="math_number" id="^qN(g:sLxu7KK:p=!kT2">
<field name="NUM">1</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
<block type="before_purchase" id="KN1,f]4$QK5.HU-x8z.a" x="0" y="357">
<statement name="BEFOREPURCHASE_STACK">
<block type="controls_if" id="t?2jI7h:=XjftkjKUjtZ">
<mutation else="1"></mutation>
<value name="IF0">
<block type="procedures_callreturn" id="}top{jr,tQPmr|T3YZg1">
<mutation name="binary::is new candle"></mutation>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="g:BKQ+hl@Q+dz9Bu{SS;">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
<statement name="ELSE">
<block type="controls_if" id="mYMaY=Zj!bi*qF3wQkwH">
<value name="IF0">
<block type="logic_compare" id="xI@r]{36B*aN39Ga/o6$">
<field name="OP">NEQ</field>
<value name="A">
<block type="variables_get" id="8oz}@MllhxY4Es9ewC}F">
<field name="VAR">last result</field>
</block>
</value>
<value name="B">
<block type="text" id="mjFcfxkaAAE:5E#l]H3+">
<field name="TEXT">WIN</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="a[eV./hmXC:;dr*VbM/f">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
<block type="after_purchase" id="si+/*VwS7HpjJ^2f}|3g" x="0" y="573">
<statement name="AFTERPURCHASE_STACK">
<block type="controls_if" id="T:OB#jhbbKiBj!OvW~R*">
<mutation else="1"></mutation>
<value name="IF0">
<block type="contract_check_result" id="}I,%h*R43lliT%QzYNqC">
<field name="CHECK_RESULT">win</field>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="3g?QZ{:x;.jUsf;Y1W0N">
<field name="VAR">last result</field>
<value name="VALUE">
<block type="text" id="P1-ZmcHdW~{cbvuUb^~M">
<field name="TEXT">WIN</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="lF@.DB2qAr83B:P-q=%X">
<field name="VAR">last result</field>
<value name="VALUE">
<block type="text" id="^D._oSE15y,lkqoJ#Mn#">
<field name="TEXT">LOSS</field>
</block>
</value>
</block>
</statement>
<next>
<block type="trade_again" id="8LElz,B[r?0DxAy!IrI3"></block>
</next>
</block>
</statement>
</block>
</xml>
<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
<block type="loader" id="G8*bH0yYOiK7:XhZ-!pX" x="0" y="0">
<field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
</block>
<block type="trade" id=")inu*9KBx=?O=ZEkmjl_" x="0" y="53">
<statement name="SUBMARKET">
<block type="variables_set" id="6v!@?*xZA~*U{SuB=T[N">
<field name="VAR">Contract Type</field>
<value name="VALUE">
<block type="text" id="4^!Tx5_|Of5,0r})/9^d">
<field name="TEXT">Even</field>
</block>
</value>
<next>
<block type="market" id="%~R%q?dP+SY|Q#I~{oVF">
<field name="MARKET_LIST">volidx</field>
<field name="SUBMARKET_LIST">random_index</field>
<field name="SYMBOL_LIST">R_100</field>
<field name="TRADETYPECAT_LIST">digits</field>
<field name="TRADETYPE_LIST">evenodd</field>
<field name="TYPE_LIST">both</field>
<field name="CANDLEINTERVAL_LIST">60</field>
<field name="DURATIONTYPE_LIST">t</field>
<field name="PAYOUTTYPE_LIST">stake</field>
<field name="CURRENCY_LIST">USD</field>
<field name="RESTARTONERROR">FALSE</field>
<value name="DURATION">
<block type="math_number" id="sxYl%U5{t^F,Mj-zA7M5">
<field name="NUM">5</field>
</block>
</value>
<value name="AMOUNT">
<block type="procedures_callreturn" id="#+4O3V{hS-`.=f(Vye8_">
<mutation name="Martingale Trade Amount"></mutation>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
<block type="before_purchase" id="*Q[~K|v:Sg)bHrl+VA1N" x="0" y="320">
<statement name="BEFOREPURCHASE_STACK">
<block type="controls_if" id="i^y1-),y7~|#4?F~nZ_|">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="!WkMU~7t-BaX/6mu`-0^">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="nFY.TxN+a_J`Np?^d:2c">
<field name="VAR">Contract Type</field>
</block>
</value>
<value name="B">
<block type="text" id="2,4_9}MD6ZJ9Io([N~c;">
<field name="TEXT">Even</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
<field name="PURCHASE_LIST">DIGITEVEN</field>
</block>
</statement>
<statement name="ELSE">
<block type="purchase" id="@5$RB6|F?Ws{|s)a6(3k">
<field name="PURCHASE_LIST">DIGITODD</field>
</block>
</statement>
</block>
</statement>
</block>
<block type="after_purchase" id="X[gun7Sx6Shn3kldC}mZ" x="0" y="498">
<statement name="AFTERPURCHASE_STACK">
<block type="controls_if" id="1-c,VlN:,{n1.F271)z.">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="gxiH0*@=TH*=X8}I4~99">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="oJph;:)i1!I_WB0WcIXe">
<field name="VAR">Contract Type</field>
</block>
</value>
<value name="B">
<block type="text" id="8,_RxM0Mz5s4IB8=I|YI">
<field name="TEXT">Even</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="NqLuJB2Ie+-fc%JKw[9s">
<field name="VAR">Contract Type</field>
<value name="VALUE">
<block type="text" id="@?@7V9GA}$A%hK#uEmq|">
<field name="TEXT">Odd</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="D7Gd;Qbdxw6C|V-UBB7?">
<field name="VAR">Contract Type</field>
<value name="VALUE">
<block type="text" id="QH4m()a)1|soCbiE]$wx">
<field name="TEXT">Even</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="#=yO.C1rn7n]Zw*%E1AI">
<value name="IF0">
<block type="procedures_callreturn" id=")5H0+av/lasc#QI6to2^">
<mutation name="Martingale Trade Again After Purchase">
<arg name="martingale:profit"></arg>
<arg name="martingale:resultIsWin"></arg>
</mutation>
<value name="ARG0">
<block type="read_details" id="(E,!25pd^Ev`yMmr[z*_">
<field name="DETAIL_INDEX">4</field>
</block>
</value>
<value name="ARG1">
<block type="contract_check_result" id="^ShXafO+N,gqVXtl^w)e">
<field name="CHECK_RESULT">win</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="trade_again" id=",VG2~pX|wvNj6hMyw=%~"></block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</xml>
<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
<block type="trade" id="Yt52~)Nf#vNGlE+qP/vI" x="0" y="0">
<statement name="SUBMARKET">
<block type="variables_set" id="A`/oXhNmEs5:t._/y3hX">
<field name="VAR">Runs</field>
<value name="VALUE">
<block type="math_number" id="|kXGZ1OEb*?-o+Bgz|zr">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="r_100" id="VBu1:.ZV}*(8lnQ^?gjD">
<statement name="CONDITION">
<block type="risefall" id="AP@czKkb*En-BiAn)kAi">
<field name="TYPE_LIST">both</field>
<field name="CANDLEINTERVAL_LIST">60</field>
<field name="DURATIONTYPE_LIST">t</field>
<field name="PAYOUTTYPE_LIST">stake</field>
<field name="CURRENCY_LIST">USD</field>
<value name="DURATION">
<block type="math_number" id="la;K[YSxm8hvB/h,FMur">
<field name="NUM">5</field>
</block>
</value>
<value name="AMOUNT">
<block type="math_number" id="^qN(g:sLxu7KK:p=!kT2">
<field name="NUM">1</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
<block type="before_purchase" id="KN1,f]4$QK5.HU-x8z.a" x="0" y="330">
<statement name="BEFOREPURCHASE_STACK">
<block type="math_change" id="32V_gqAML:MA1|1M(DyB">
<field name="VAR">Runs</field>
<value name="DELTA">
<shadow type="math_number" id="mqKZQ~fDmOpR#9V9H~.B">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="}NYz;6@t8^o}:iUH^7.K">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="purchase" id="HFL@|cf$e$,?Mh=x9g0E">
<field name="PURCHASE_LIST">CALL</field>
</block>
</next>
</block>
</statement>
</block>
<block type="after_purchase" id="@AyTPcv?(w:rirJC)ME0" x="0" y="446">
<statement name="AFTERPURCHASE_STACK">
<block type="controls_if" id="AVT5}SJ#}~+HLYcLRZLK">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="FOIO_0cCJ`!;SCBIpZT2">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="bO%uxqKC0Ck(BZj%Yg73">
<field name="VAR">Runs</field>
</block>
</value>
<value name="B">
<block type="math_number" id="kYQ=#+.kQr_U%qc8ZllQ">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="F/vFyKN94~/^t(@{Vs[|">
<field name="VAR">Runs</field>
<value name="VALUE">
<block type="math_number" id="Nb6|)65TcqZsMWIrh,zE">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="timeout" id="16bKgX9_?DN+UfWg%He+">
<statement name="TIMEOUTSTACK">
<block type="trade_again" id="mK:cN,r_T)m;8lPGD?)8"></block>
</statement>
<value name="SECONDS">
<block type="math_number" id=";v+Z}S#Tn/qe#FFQf`NI">
<field name="NUM">10</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="trade_again" id="D)vw!pA^S$@[]:byf*l@"></block>
</statement>
</block>
</statement>
</block>
</xml>
<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
<block type="trade" id="73vWdDagX-YhN)CtN.3D" x="0" y="0">
<statement name="SUBMARKET">
<block type="market" id="~T:?7-`j{)c/H5e]d.H9">
<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="DURATIONTYPE_LIST">t</field>
<field name="PAYOUTTYPE_LIST">stake</field>
<field name="CURRENCY_LIST">USD</field>
<field name="RESTARTONERROR">FALSE</field>
<value name="DURATION">
<block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
<field name="NUM">10</field>
</block>
</value>
<value name="AMOUNT">
<block type="math_number" id="|tIC~6lHx]cKt9rf1jFk">
<field name="NUM">1</field>
</block>
</value>
</block>
</statement>
</block>
<block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="640" y="4">
<statement name="AFTERPURCHASE_STACK">
<block type="timeout" id="v+/JD!yVDONl(80Lx%9{">
<statement name="TIMEOUTSTACK">
<block type="trade_again" id="SO*X=~i(5H%=zQ5%e+J$"></block>
</statement>
<value name="SECONDS">
<block type="math_number" id="sZN-C9/iFa}`K?S}$I#L">
<field name="NUM">10</field>
</block>
</value>
</block>
</statement>
</block>
<block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="0" y="242">
<statement name="BEFOREPURCHASE_STACK">
<block type="variables_set" id=",k3e|97Q#zy~St|},FIw">
<field name="VAR">RSI</field>
<value name="VALUE">
<block type="rsi" id="L`@9^C8dP8t_eY~kc`z@">
<value name="INPUT">
<block type="ohlc_values" id="zfL;*8=+xY4c;D.a+BNG">
<field name="OHLCFIELD_LIST">close</field>
</block>
</value>
<value name="PERIOD">
<block type="math_number" id="M`iwUevPD`7AM;@a_lxL">
<field name="NUM">14</field>
</block>
</value>
</block>
</value>
<next>
<block type="notify" id="d6hoYghe$|5gGM!Uw4^E">
<field name="NOTIFICATION_TYPE">success</field>
<value name="MESSAGE">
<block type="text_join" id="0}QaY20UMMh`;6uUyJJV">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="rycoAM.71-1g2W0KNs9N">
<field name="TEXT">RSI: </field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="@6r^:%J(M%u/C:m.1,np">
<field name="VAR">RSI</field>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="s{kS1BqXYXkG~l9wQ|Ed">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="}[99+Ny4yVf;!J=sZqZK">
<field name="OP">GTE</field>
<value name="A">
<block type="variables_get" id="d2lEPSjR=xRctYlaXZ%/">
<field name="VAR">RSI</field>
</block>
</value>
<value name="B">
<block type="math_number" id="EZ9`dW{*yzAaw.9JN?PD">
<field name="NUM">70</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
<field name="PURCHASE_LIST">PUT</field>
</block>
</statement>
<statement name="ELSE">
<block type="controls_if" id=".w6#:3YN02iJYEn~*zeO">
<value name="IF0">
<block type="logic_compare" id="J8fPxAVJ=pJRsvb2*/,2">
<field name="OP">LTE</field>
<value name="A">
<block type="variables_get" id="j/)Z{xC~w:%S~.$tPFcW">
<field name="VAR">RSI</field>
</block>
</value>
<value name="B">
<block type="math_number" id="k^GA+}=[E*+b5DPc3-$O">
<field name="NUM">30</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id=")5}r:1X[+$9M7t|Yj`#$">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
<block type="trade" id="73vWdDagX-YhN)CtN.3D" x="0" y="0">
<statement name="SUBMARKET">
<block type="market" id="~T:?7-`j{)c/H5e]d.H9">
<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="DURATIONTYPE_LIST">t</field>
<field name="PAYOUTTYPE_LIST">stake</field>
<field name="CURRENCY_LIST">USD</field>
<field name="RESTARTONERROR">FALSE</field>
<value name="DURATION">
<block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
<field name="NUM">5</field>
</block>
</value>
<value name="AMOUNT">
<block type="math_number" id="|tIC~6lHx]cKt9rf1jFk">
<field name="NUM">1</field>
</block>
</value>
</block>
</statement>
</block>
<block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="0" y="242">
<statement name="BEFOREPURCHASE_STACK">
<block type="controls_if" id="xs(/8}*n#T:P#i.q79)D">
<value name="IF0">
<block type="logic_operation" id="8cD)y5V4R;gax.JHQ3f$">
<field name="OP">AND</field>
<value name="A">
<block type="logic_operation" id="uRz[hZvQ}J}MBtR)KWJ8">
<field name="OP">AND</field>
<value name="A">
<block type="logic_negate" id=",o)a9N/EXEBVimLoUS2P">
<value name="BOOL">
<block type="is_candle_black" id="4[v$Md{h_zZmEF.r#X6D">
<value name="OHLCOBJ">
<block type="get_ohlc" id="1Z#AWMWW_I:5YkAmU(g(">
<value name="CANDLEINDEX">
<block type="math_number" id="Y1#`gxH0RNFTSE-=Ef(F">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_negate" id="w(j#Ws27cykn,7[nD/|*">
<value name="BOOL">
<block type="is_candle_black" id="9na1ZP:7ZktdjJyGQ]oJ">
<value name="OHLCOBJ">
<block type="get_ohlc" id="enW!okcc_]6oc:h*g6C^">
<value name="CANDLEINDEX">
<block type="math_number" id="6(p0922S:V9_8fu@iRv+">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_negate" id="I|OwdOG;Log{KSnhMr!R">
<value name="BOOL">
<block type="is_candle_black" id="q{|-A?E#oWI+d}b.bEUc">
<value name="OHLCOBJ">
<block type="get_ohlc" id="wjE%_d~_xd`h17b2h@Rf">
<value name="CANDLEINDEX">
<block type="math_number" id="RUo.KaNxd1wwo[gJ]U5u">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
<next>
<block type="controls_if" id="=pPq{!ONmE4:,vI=.}{z">
<value name="IF0">
<block type="logic_operation" id="@pprqeNhjoC913_bI)~Z">
<field name="OP">AND</field>
<value name="A">
<block type="logic_operation" id="!nN95tf}N:Hl7NY5rqmX">
<field name="OP">AND</field>
<value name="A">
<block type="is_candle_black" id="_WYU~d=J3)!7GwNfecaV">
<value name="OHLCOBJ">
<block type="get_ohlc" id="kmxgo1(g!)=/xTL8)S}/">
<value name="CANDLEINDEX">
<block type="math_number" id="py;`s[OlCuD=S}H|Laa.">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="is_candle_black" id="8fN%E?Moh`Do*Nt/uE;~">
<value name="OHLCOBJ">
<block type="get_ohlc" id="X3:^8~|#dnvgw4bTMzrR">
<value name="CANDLEINDEX">
<block type="math_number" id="e0Q;H?Xusm/[%E}cx0i_">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="is_candle_black" id="0M3$0TzoxcNL*QZerhUX">
<value name="OHLCOBJ">
<block type="get_ohlc" id="Jypk2sF[lNF|vi7|a9DF">
<value name="CANDLEINDEX">
<block type="math_number" id="P:-5WokFHSJRz:40)f*r">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="^;.kS(htkeu@N@kEhO@I">
<field name="PURCHASE_LIST">PUT</field>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
<block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="0" y="500">
<statement name="AFTERPURCHASE_STACK">
<block type="trade_again" id="SO*X=~i(5H%=zQ5%e+J$"></block>
</statement>
</block>
</xml>
<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
<block type="trade" id="73vWdDagX-YhN)CtN.3D" x="0" y="0">
<statement name="SUBMARKET">
<block type="market" id="~T:?7-`j{)c/H5e]d.H9">
<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="DURATIONTYPE_LIST">t</field>
<field name="PAYOUTTYPE_LIST">stake</field>
<field name="CURRENCY_LIST">USD</field>
<field name="RESTARTONERROR">FALSE</field>
<value name="DURATION">
<block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
<field name="NUM">5</field>
</block>
</value>
<value name="AMOUNT">
<block type="math_number" id="|tIC~6lHx]cKt9rf1jFk">
<field name="NUM">1</field>
</block>
</value>
</block>
</statement>
</block>
<block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="0" y="242">
<statement name="BEFOREPURCHASE_STACK">
<block type="variables_set" id="3voDgC,h4UJK5^{+_L[1">
<field name="VAR">threshold</field>
<value name="VALUE">
<block type="math_number" id=";J}`FbG=Gi~zrC?qj*rf">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="variables_set" id="|O~uOx%R7xcXppR?f`0b">
<field name="VAR">sma_14</field>
<value name="VALUE">
<block type="sma" id="kq$GS{@iNS7#+=+8W!Yc">
<value name="INPUT">
<block type="ticks" id="exm@PUH?S0OK5)a/)EXK"></block>
</value>
<value name="PERIOD">
<block type="math_number" id="KrcM5RbOlG,?zh7;msT8">
<field name="NUM">14</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="x^dKV).m-X,_`wO3_P|B">
<field name="VAR">sma_21</field>
<value name="VALUE">
<block type="sma" id="nNH7#:;T/^#O/YZ~~-}:">
<value name="INPUT">
<block type="ticks" id="VNy3C+nufM@oYON4w^rz"></block>
</value>
<value name="PERIOD">
<block type="math_number" id="+e8buR94p;jNu11R~]{u">
<field name="NUM">21</field>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="X.`yb]NDRgu016t`QrCR">
<value name="IF0">
<block type="logic_compare" id="?bRZFp`@neix?u5q?.Ry">
<field name="OP">LT</field>
<value name="A">
<block type="math_single" id="rO_U6HLhhmy2L{D0P_C$">
<field name="OP">ABS</field>
<value name="NUM">
<shadow type="math_number" id="A{hd8uh?~owsKX:},#~E">
<field name="NUM">9</field>
</shadow>
<block type="math_arithmetic" id="U91NyF57Wqc(fwOwzOXn">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="LhXc68C]O/^TXabFnt@c">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="U7@.nHqhxbS4bw{o)^Zj">
<field name="VAR">sma_14</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Y@;|lEDjJ,?qQymXGde5">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="[nZ^LWcrplNR{K,6c3{,">
<field name="VAR">sma_21</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="variables_get" id="Wj@E6P]Q7HX/(6fnNOEM">
<field name="VAR">threshold</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="G:ww@-PT?pD6{2z^%)f#">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="/Jhcimg|Jv$$mXxTv-:#">
<field name="OP">GT</field>
<value name="A">
<block type="tick" id="1$4t__g3os)TtFK^Q7x."></block>
</value>
<value name="B">
<block type="variables_get" id="|4M1A{n+tkW(xX_GA{]:">
<field name="VAR">sma_14</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
<statement name="ELSE">
<block type="purchase" id="%Z!5DX4+7|eWV`5-U*lb">
<field name="PURCHASE_LIST">PUT</field>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment