Skip to content

Instantly share code, notes, and snippets.

@thephucit
Created January 15, 2018 02:02
Show Gist options
  • Save thephucit/b6e977fba5ac68b46749d41c6e6561c8 to your computer and use it in GitHub Desktop.
Save thephucit/b6e977fba5ac68b46749d41c6e6561c8 to your computer and use it in GitHub Desktop.
Binary Bot (https://bot.binary.com) Examples

Misc. Examples

Moving Average Example

moving-average-example.xml

Alternate Even/Odd

Alternate Even-Odd.xml

Alternate Call/Put on Loss

alternate call put on loss.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

The Great Martingale Strategy

Great Martingale.xml

Wait 3 mins after 3 consecutive loss

Wait 3 mins after 3 loss

Purchase if MACD signal is in range

macd_signal_range.xml

Switch barrier sign on finish

switch_barrier_sign.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">Call</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">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>
</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">Call</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="@5$RB6|F?Ws{|s)a6(3k">
<field name="PURCHASE_LIST">PUT</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="fhx(fO!cb|asgk(ay{hB">
<value name="IF0">
<block type="contract_check_result" id="AnEQFO/5OWIoC#=IddTD">
<field name="CHECK_RESULT">loss</field>
</block>
</value>
<statement name="DO0">
<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">Call</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">Put</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">Call</field>
</block>
</value>
</block>
</statement>
</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="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="procedures_defreturn" id="qq2xGirc*Byb/P/HE^]H" collapsed="true" x="0" y="0">
<field name="NAME">Martingale Trade Amount</field>
<comment pinned="false" h="80" w="160">Describe this function...</comment>
<statement name="STACK">
<block type="controls_if" id="n4tz9*`uW5vI{Y(mwC)L">
<value name="IF0">
<block type="logic_compare" id="3qWA5gevZ|UpE{.gFl4n">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="nXPxXCq9p:hf1Xx:`D_{">
<field name="VAR">martingale:expectedProfit</field>
</block>
</value>
<value name="B">
<block type="logic_null" id="Tp8pr^]@7PA~eGl`XK?b"></block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="p8_@*8We560p~d]XEj-I">
<field name="VAR">martingale:expectedProfit</field>
<value name="VALUE">
<block type="text_prompt_ext" id="%r0#U,KXY;)S1-I},GCs">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
<field name="TEXT">abc</field>
</shadow>
<block type="text" id="AlB(yFhIT1/FZu-ZEpqQ">
<field name="TEXT">Expected Profit</field>
</block>
</value>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="qa:)sj8|A!lxwG*|YaO]">
<value name="IF0">
<block type="logic_compare" id="fo(G)bKdQhx,?aEY[Yl}">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="`Geg[{!:(HTr6q)A];`0">
<field name="VAR">martingale:maximumLoss</field>
</block>
</value>
<value name="B">
<block type="logic_null" id="!X8^fykpJtsH#Il8+Wh9"></block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="t3Gw#E]HVqIM/6J-t-2Y">
<field name="VAR">martingale:maximumLoss</field>
<value name="VALUE">
<block type="text_prompt_ext" id="K[Cz2)F(1ny#Zw!j7j!V">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
<field name="TEXT">abc</field>
</shadow>
<block type="text" id="dfNPxr:VpC%uF[yz%xk[">
<field name="TEXT">Maximum Loss Amount</field>
</block>
</value>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="^CEM+~9aQ2uhnXtkL`kv">
<value name="IF0">
<block type="logic_compare" id="wL4k~{ia}[/ON_+z47RO">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="WjGS@!}HI|kFH{rJqavk">
<field name="VAR">martingale:amount</field>
</block>
</value>
<value name="B">
<block type="logic_null" id="qTK#~^WMVK;Wyz1LJ/@d"></block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="ZxKDnNw2?MsznEZQtR6`">
<field name="VAR">martingale:amount</field>
<value name="VALUE">
<block type="text_prompt_ext" id="^4peSz1pJ=`,CaD#@6Jd">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<shadow type="text" id=".P`a1!r=yj-[H(SJX}_m">
<field name="TEXT">abc</field>
</shadow>
<block type="text" id="=6eX{Eblptb4BBlz7?U[">
<field name="TEXT">Trade Amount</field>
</block>
</value>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="kC@O!Xl:KO^G_(uzKTzH">
<value name="IF0">
<block type="logic_compare" id="@|K%}q0X`VebpuZQ=EV*">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="(xdUld=/ZoI`Y#*TZfMw">
<field name="VAR">martingale:size</field>
</block>
</value>
<value name="B">
<block type="logic_null" id="CA@kQ}mQ:c8NW0=5Ed[."></block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="^xOi2|SaRE2S4sk8(u74">
<field name="VAR">martingale:size</field>
<value name="VALUE">
<block type="math_number" id="V^QkcFsonsJWZ0pgI8IU">
<field name="NUM">1</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="fwmgCgdRdN{)3S|t|fn7">
<value name="IF0">
<block type="logic_compare" id="pj:P)Py2NsbQ8@=5Y9D=">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="5A]k/?)Q#Xi4G,Wpd;Pz">
<field name="VAR">martingale:totalProfit</field>
</block>
</value>
<value name="B">
<block type="logic_null" id=";,X}K#n`DxM#4`t;d~Cc"></block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="MmEFyqc*]VjjlJZzlNt[">
<field name="VAR">martingale:totalProfit</field>
<value name="VALUE">
<block type="math_number" id="DcgRnz]nVdJyT*eH=v!;">
<field name="NUM">0</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="RETURN">
<block type="math_arithmetic" id="!BlRd)C:TXj@_wErj#qz">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="F/^.gR-k|dBg*ZMQ,E?v">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="4;YLe/OL#s08%Fg6}T[#">
<field name="VAR">martingale:size</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="v*eC4j=U!K8B76C5kQ*U">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="]6BmBNR~M:1|pttC(CT_">
<field name="VAR">martingale:amount</field>
</block>
</value>
</block>
</value>
</block>
<block type="procedures_defnoreturn" id="TY/(qs?1mzi0doraNq_[" collapsed="true" x="0" y="52">
<mutation>
<arg name="martingale:resultIsWin"></arg>
</mutation>
<field name="NAME">Martingale Core Functionality</field>
<comment pinned="false" h="80" w="160">Describe this function...</comment>
<statement name="STACK">
<block type="controls_if" id="wcQS%xc8=!!#P52Kt:1x">
<mutation else="1"></mutation>
<value name="IF0">
<block type="variables_get" id="P]*Fp7~p#Lj1S#`(3rAr">
<field name="VAR">martingale:resultIsWin</field>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id=",*SKPEhPmhmsq#tq`G*9">
<field name="VAR">martingale:size</field>
<value name="VALUE">
<block type="math_number" id="tNP@,EBgjET40TC9jh05">
<field name="NUM">1</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="t-K_E*m(aYDGloWhgc%=">
<field name="VAR">martingale:size</field>
<value name="VALUE">
<block type="math_arithmetic" id="!s_!@p|hC)rIE_.8rAh2">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="s`0GxICgfMWy(8a0+N)C">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id=";x;#^I=T5+dN,Zu?u9%y">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="QujpfOq.d^A8_SMe`uvh">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="!7jq#O^~DP+j~efJv=eV">
<field name="VAR">martingale:size</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="%6%m1;%94AYq9a7`g[u!">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="f4;y.Q47WJBWSp4}1|_k">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id=";_YNR.^H6c{%+!se9mgq">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
<block type="procedures_defreturn" id="_b//g0Q,2OW8MbY^`J3E" collapsed="true" x="0" y="104">
<mutation>
<arg name="martingale:profit"></arg>
<arg name="martingale:resultIsWin"></arg>
</mutation>
<field name="NAME">Martingale Trade Again After Purchase</field>
<comment pinned="false" h="80" w="160">Describe this function...</comment>
<statement name="STACK">
<block type="math_change" id="5ph^#sJ_|cnLn{}e(%Z{">
<field name="VAR">martingale:totalProfit</field>
<value name="DELTA">
<shadow type="math_number" id="[)Nh?MH}TXeN]0n(Q?PP">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="Kj+o2HPe^1#-J*pl.VD9">
<field name="VAR">martingale:profit</field>
</block>
</value>
<next>
<block type="variables_set" id="=``}2YqGE51x5XO#O{A6">
<field name="VAR">martingale:totalProfit</field>
<value name="VALUE">
<block type="math_arithmetic" id="m9HUE{JvBzON.?`k.p0L">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="Y445k*N9Y{3k^0nU:f/a">
<field name="NUM">1</field>
</shadow>
<block type="math_round" id="eOhznKTK*Yn[R~s!l7p;">
<field name="OP">ROUND</field>
<value name="NUM">
<shadow type="math_number" id="NxI4W6P)%aS~YX^5:fm(">
<field name="NUM">3.1</field>
</shadow>
<block type="math_arithmetic" id="a52-x:2(jo3fN-]co/k]">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="1IiDMd{pA4I8#Jv5:v)F">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="djyZC:DVv!8AFfC.FoYS">
<field name="VAR">martingale:totalProfit</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="QPp6Ex`FL}B)uWsSrQ*o">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="qdaI}RV~2ic%D1==.15s">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id=";(PBMt(9fPe84P0`MRRO">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id=";)+n7kB.._k3n:rt!GvJ">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="5KFo!jX4/:fF7|O8_:AM">
<mutation else="1"></mutation>
<value name="IF0">
<block type="variables_get" id="L[N5wU8U4Fj~q=JK3e*3">
<field name="VAR">martingale:resultIsWin</field>
</block>
</value>
<statement name="DO0">
<block type="notify" id="X!yLWFo.pnsN2p8.mhku">
<field name="NOTIFICATION_TYPE">success</field>
<value name="MESSAGE">
<block type="text_join" id="o|T}XF*xV|s^O[[T5-y_">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id=")A^KesPc24S7[#WdiUpC">
<field name="TEXT">Won:</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="RgAIb=eB,f|Iou[N!-8I">
<field name="VAR">martingale:profit</field>
</block>
</value>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="notify" id="_i^CFKP~e49;_EKp{u/`">
<field name="NOTIFICATION_TYPE">warn</field>
<value name="MESSAGE">
<block type="text_join" id="u^Z8+w=IkvP+)w3`*lGO">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="xoNPU9oIK8J)B^%vr%^~">
<field name="TEXT">Lost: </field>
</block>
</value>
<value name="ADD1">
<block type="math_single" id="~h0K!.E)*v-|,9vGuFn1">
<field name="OP">ABS</field>
<value name="NUM">
<shadow type="math_number" id="GleSn`9j7Cm7/dqg}FIA">
<field name="NUM">9</field>
</shadow>
<block type="variables_get" id="tj[WVE=J+4/Z:KIQ:g}v">
<field name="VAR">martingale:profit</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</statement>
<next>
<block type="procedures_callnoreturn" id="RHC~X)8#c;n3tE`]u1*.">
<mutation name="Martingale Core Functionality">
<arg name="martingale:resultIsWin"></arg>
</mutation>
<value name="ARG0">
<block type="variables_get" id="[|xwly3+qnsyH8X40V0H">
<field name="VAR">martingale:resultIsWin</field>
</block>
</value>
<next>
<block type="notify" id="Cvi8%t{p9/_xm#+X]om(">
<field name="NOTIFICATION_TYPE">info</field>
<value name="MESSAGE">
<block type="text_join" id="BJCQ#/4O0}z[^DR9GgkO">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="ijsv9!fxO*BB:8yHR`f|">
<field name="TEXT">Total Profit: </field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="Kc?RVUrXujr{1X[%y1sW">
<field name="VAR">martingale:totalProfit</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="ix3Jwr;,l7NS%LeIjciS">
<field name="VAR">martingale:tradeAgain</field>
<value name="VALUE">
<block type="logic_boolean" id="Z;.teZof4syfkPW!mqo,">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="controls_if" id="]Kv}Tw=x^zr6@I@D@S4q">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id=")|LQhZk*#Wi64TgP!Xa^">
<field name="OP">LT</field>
<value name="A">
<block type="variables_get" id="JIN._QaycDvYwCfcJGCM">
<field name="VAR">martingale:totalProfit</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="ca~g-NW_y(msxA`ID6uw">
<field name="VAR">martingale:expectedProfit</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="fVNi_Cv-~iB/uc)2U.3u">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="+`bh%N2o{Y5P*([/ypeU">
<field name="OP">GT</field>
<value name="A">
<block type="variables_get" id="J~+vmLG#*!wX@7rgH_a9">
<field name="VAR">martingale:totalProfit</field>
</block>
</value>
<value name="B">
<block type="math_single" id="ETDn1dh]F.b#8{zcD@+|">
<field name="OP">NEG</field>
<value name="NUM">
<shadow type="math_number" id="#4N:bIe?FzTA#rOZjMqo">
<field name="NUM">9</field>
</shadow>
<block type="variables_get" id="OovN9^AB=zF:sTh-=oGq">
<field name="VAR">martingale:maximumLoss</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="y%eZ%16)YFB?;J!WT-/1">
<field name="VAR">martingale:tradeAgain</field>
<value name="VALUE">
<block type="logic_boolean" id="qt?z|=[ordjkFsa{CxlK">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="text_print" id="(!.##DU]KjPhy^tQC6YF">
<value name="TEXT">
<shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
<field name="TEXT">abc</field>
</shadow>
<block type="text_join" id="oX?Ia)5gqDMl[H*da_9g">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="ox|AU:{^KZm`Bk=piPeZ">
<field name="TEXT">Maximum Loss Occurred! Total Loss: </field>
</block>
</value>
<value name="ADD1">
<block type="math_single" id="bc,1cQ})F_fQN*9Fird^">
<field name="OP">NEG</field>
<value name="NUM">
<shadow type="math_number" id="pi;;Fh3#fMUD2s`W_UJZ">
<field name="NUM">9</field>
</shadow>
<block type="variables_get" id="=b`joCv5,]G3N=_{)2ND">
<field name="VAR">martingale:totalProfit</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
</statement>
<statement name="ELSE">
<block type="text_print" id="RqQw_^5^@PdBOSiPMkW7">
<value name="TEXT">
<shadow type="text" id="kqlrIk.GO.^}hI,PoUV)">
<field name="TEXT">abc</field>
</shadow>
<block type="text_join" id="uNhAtc%n?rJat;igy.i;">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="+Fd!Q%aw=bq2)~qEmqt=">
<field name="TEXT">Expected Profit Made! Total Profit: </field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="CxB@:}TG^Od;=yysk/#C">
<field name="VAR">martingale:totalProfit</field>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="RETURN">
<block type="variables_get" id="zEXck3l4zHs1m9JF0^g.">
<field name="VAR">martingale:tradeAgain</field>
</block>
</value>
</block>
<block type="trade" id="73vWdDagX-YhN)CtN.3D" x="0" y="156">
<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="procedures_callreturn" id="!u{3VlFd}x~LAr|BMM7G">
<mutation name="Martingale Trade Amount"></mutation>
</block>
</value>
</block>
</statement>
</block>
<block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="0" y="397">
<statement name="BEFOREPURCHASE_STACK">
<block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
</block>
<block type="during_purchase" id="@G%][.+GU_K^7%1dgfoR" x="0" y="487">
<statement name="DURING_PURCHASE_STACK">
<block type="controls_if" id="js6S3S_Tc4:~-f+7Dj,j">
<value name="IF0">
<block type="check_sell" id="gI{65_9!{nCUJ:Z~}%iZ"></block>
</value>
</block>
</statement>
</block>
<block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="0" y="612">
<statement name="AFTERPURCHASE_STACK">
<block type="controls_if" id="=KbO,-HqtVsGwXTFQu;A">
<value name="IF0">
<block type="procedures_callreturn" id="#:Mg|GlkP@A6U0TvjHaG">
<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="wK(XN;iOhw^@0?^z74gG"></block>
</statement>
</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="[email protected]: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="trade" id="73vWdDagX-YhN)CtN.3D" x="0" y="0">
<statement name="SUBMARKET">
<block type="variables_set" id="XW!g:W,%0*[MWA9!BCc-">
<field name="VAR">Max</field>
<value name="VALUE">
<block type="math_number" id="U}yFrcAy([9Xth({_]p-">
<field name="NUM">0.0001</field>
</block>
</value>
<next>
<block type="variables_set" id="jDt)J!aWJaC)F/^lg@oH">
<field name="VAR">Max</field>
<value name="VALUE">
<block type="math_number" id="@)F%%ih8r]hM0(!jY34f">
<field name="NUM">-0.0001</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">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>
</next>
</block>
</next>
</block>
</statement>
</block>
<block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="0" y="294">
<statement name="BEFOREPURCHASE_STACK">
<block type="variables_set" id="X{)m.oM,8MEMMMRIUqUs">
<field name="VAR">Signal</field>
<value name="VALUE">
<block type="lists_getIndex" id="#4Qsp5e|s,A[%?=}2{%;">
<mutation statement="false" at="false"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">LAST</field>
<value name="VALUE">
<block type="macda" id="Aw{768HFHJJ;$?b#DfEV">
<field name="MACDFIELDS_LIST">2</field>
<value name="INPUT">
<block type="ohlc_values" id="poy]Sb$T-hk1bxV@A9eZ">
<field name="OHLCFIELD_LIST">open</field>
</block>
</value>
<value name="FAST_EMA_PERIOD">
<block type="math_number" id="[2N=oS~6w^%4J7)1D98K">
<field name="NUM">12</field>
</block>
</value>
<value name="SLOW_EMA_PERIOD">
<block type="math_number" id="/MK;%sC70t9L4`aWLefK">
<field name="NUM">26</field>
</block>
</value>
<value name="SMA_PERIOD">
<block type="math_number" id="cW!?$iXLgj7t[)K}X!C3">
<field name="NUM">9</field>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="W3?Ug/XHN=|kNzH!sCj=">
<value name="IF0">
<block type="logic_operation" id=".=#KA`FKcmAanbq9~cqz">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="%..Z9oe.^q2OcGyHNYC9">
<field name="OP">LTE</field>
<value name="A">
<block type="variables_get" id="mz`*EpNbqhOSaQ)#`bRd">
<field name="VAR">Signal</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="Ksy3idQZpn@NpTKs9zEK">
<field name="VAR">Max</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="!:5DqT`]uLY:J7J24WMP">
<field name="OP">LTE</field>
<value name="A">
<block type="variables_get" id="7G)#$Go-yqyJ:[EioInp">
<field name="VAR">Min</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="?X:XZVwcZHXsc`_sVIHh">
<field name="VAR">Signal</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
<block type="during_purchase" id="@G%][.+GU_K^7%1dgfoR" x="0" y="583">
<statement name="DURING_PURCHASE_STACK">
<block type="controls_if" id="js6S3S_Tc4:~-f+7Dj,j">
<value name="IF0">
<block type="check_sell" id="gI{65_9!{nCUJ:Z~}%iZ"></block>
</value>
</block>
</statement>
</block>
<block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="0" y="708">
<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="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="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="_=~zTNVRGoZu$i38Jlyz">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="XWCg|/pXb~G-uzR9QArz">
<field name="OP">GT</field>
<value name="A">
<block type="read_ohlc" id="ZHiTJ|SB;zunfXqpLDKF">
<field name="OHLCFIELD_LIST">close</field>
</block>
</value>
<value name="B">
<block type="sma" id="|Y{JA$%nqLJARNRmYskD">
<value name="INPUT">
<block type="ohlc_values" id=".2bzZbjlGhMY#Y?8!n3F">
<field name="OHLCFIELD_LIST">close</field>
</block>
</value>
<value name="PERIOD">
<block type="math_number" id="B*A9p(%1jze{k6WnmIQ0">
<field name="NUM">10</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="Q;`vp48|v7pG%t@W6`uQ">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
<statement name="ELSE">
<block type="purchase" id="I7[;%mCnp(:=ynp:h/i#">
<field name="PURCHASE_LIST">PUT</field>
</block>
</statement>
</block>
</statement>
</block>
<block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="0" y="471">
<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="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="[email protected]{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>
<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">higherlower</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="x}VbroQwTV8E;Dj;.irY">
<field name="VAR">barrier</field>
<value name="VALUE">
<block type="text" id="0)[,FUZsL(,LB_tjn[-J">
<field name="TEXT">positive</field>
</block>
</value>
</block>
</statement>
<statement name="SUBMARKET">
<block type="controls_if" id="XooT6d1HB[.2f6boYyJO">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="[;8K4F%xjzeYy8Qx]xBS">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="D!A[IP(wzy8[a$z(D`s#">
<field name="VAR">barrier</field>
</block>
</value>
<value name="B">
<block type="text" id="TD]30Gv*BEE_TWM#5$H@">
<field name="TEXT">positive</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="tradeOptions" id="x=V33~4Lb|(sLv`J[:Eb">
<field name="DURATIONTYPE_LIST">t</field>
<field name="CURRENCY_LIST">USD</field>
<field name="BARRIEROFFSETTYPE_LIST">+</field>
<value name="DURATION">
<shadow type="math_number" id="O*@58sDc=!cOO}*b2vf9">
<field name="NUM">5</field>
</shadow>
</value>
<value name="AMOUNT">
<shadow type="math_number" id="ml)25~7^q}3I9}vjf:%K">
<field name="NUM">1</field>
</shadow>
</value>
<value name="BARRIEROFFSET">
<block type="math_number" id="lrBz^25xUY26g=8C]K2N">
<field name="NUM">1</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="tradeOptions" id="vH#/p4v#kXu{tWfMNst9">
<field name="DURATIONTYPE_LIST">t</field>
<field name="CURRENCY_LIST">USD</field>
<field name="BARRIEROFFSETTYPE_LIST">-</field>
<value name="DURATION">
<shadow type="math_number" id="vi`Lv0z1Lg!SyT.R[83l">
<field name="NUM">5</field>
</shadow>
</value>
<value name="AMOUNT">
<shadow type="math_number" id="`Z6Qw+2)`O3:00{_Q{jV">
<field name="NUM">1</field>
</shadow>
</value>
<value name="BARRIEROFFSET">
<block type="math_number" id="UVr%kYww?t`s3`7~I1UF">
<field name="NUM">1</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
<block type="before_purchase" id="i-CIx.(Onm4?ihxzA}Y]" x="0" y="472">
<statement name="BEFOREPURCHASE_STACK">
<block type="purchase" id="W6q#Z-I3q3d[d3-`S[dS">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
</block>
<block type="after_purchase" id="D^Jz1^n=2vtZku1vBN@;" x="0" y="562">
<statement name="AFTERPURCHASE_STACK">
<block type="controls_if" id="TZ:AC*g)bD1pa;A6YM}G">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="EHVhv9F6e5B%p#cM2:t!">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="`y6~QeU@p~)kL/g@SgZ*">
<field name="VAR">barrier</field>
</block>
</value>
<value name="B">
<block type="text" id="RSk#U^j4c.qqRWYusm}}">
<field name="TEXT">positive</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="k`3|!0zk#=@(V!D~;P%v">
<field name="VAR">barrier</field>
<value name="VALUE">
<block type="text" id=".9`ur?!=9^*Vl]?c]Yq-">
<field name="TEXT">negative</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="k;SiA?VrgzyH))/4VN0$">
<field name="VAR">barrier</field>
<value name="VALUE">
<block type="text" id="GQ81EN^q|-u;tZ$9ABa/">
<field name="TEXT">positive</field>
</block>
</value>
</block>
</statement>
<next>
<block type="trade_again" id="c)S|KjoQdXc8l#J@5z3P"></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">Num of loss</field>
<value name="VALUE">
<block type="math_number" id="|kXGZ1OEb*?-o+Bgz|zr">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="market" id="Y;1+!t~1e4**Ov~NmLF-">
<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="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>
</next>
</block>
</statement>
</block>
<block type="before_purchase" id="KN1,f]4$QK5.HU-x8z.a" x="0" y="268">
<statement name="BEFOREPURCHASE_STACK">
<block type="purchase" id="HFL@|cf$e$,?Mh=x9g0E">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
</block>
<block type="after_purchase" id="@AyTPcv?(w:rirJC)ME0" x="0" y="358">
<statement name="AFTERPURCHASE_STACK">
<block type="controls_if" id="lqaGab=z$DQ76_Nz7f~D">
<value name="IF0">
<block type="contract_check_result" id=".NSPy54py.Q(+_7Kga:d">
<field name="CHECK_RESULT">loss</field>
</block>
</value>
<statement name="DO0">
<block type="math_change" id="32V_gqAML:MA1|1M(DyB">
<field name="VAR">Num of loss</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>
</block>
</statement>
<next>
<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">Num of loss</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">Num of loss</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">180</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="trade_again" id="D)vw!pA^S$@[]:byf*l@"></block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</xml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment