Skip to content

Instantly share code, notes, and snippets.

@Fruitfella
Last active May 28, 2017 18:40
Show Gist options
  • Save Fruitfella/054b0a082ec68ab8dd866c57a61b1786 to your computer and use it in GitHub Desktop.
Save Fruitfella/054b0a082ec68ab8dd866c57a61b1786 to your computer and use it in GitHub Desktop.
BOT requested by apaajadehbos
<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
<block type="trade" id="73vWdDagX-YhN)CtN.3D" x="13" y="-2">
<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">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">1</field>
</block>
</value>
</block>
</statement>
</block>
<block type="tick_analysis" id="TvBQx[=BF)1oQhZ:uV{p" collapsed="true" x="12" y="0">
<statement name="TICKANALYSIS_STACK">
<block type="controls_if" id="rKiEBu1l+@lik;/@8M8)">
<value name="IF0">
<block type="logic_compare" id="3Shnzhd=c$LLa!0:0zg5">
<field name="OP">NEQ</field>
<value name="A">
<block type="variables_get" id="mj7%:Bl[aITx/3P,9vJ-">
<field name="VAR">binary::init</field>
</block>
</value>
<value name="B">
<block type="math_number" id="2BFUnr2sc[[MZC?f|S38">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="3qD5[~spE:4b-x-XywsH">
<field name="VAR">binary::init</field>
<value name="VALUE">
<block type="math_number" id="GNse|r|lVltZ3-GjLYN,">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="notify" id="2F(0x)h)BWUg5i6#AD4I" collapsed="true">
<field name="NOTIFICATION_TYPE">info</field>
<value name="MESSAGE">
<block type="text" id="P7s(i,K4|g/{@Bbz6gKa">
<field name="TEXT">4 Candles same color ver.2 by Fruitfella</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="variables_set" id="~R:=zz1qwBcg?A^w?G/L">
<field name="VAR">binary::is the candle new</field>
<value name="VALUE">
<block type="logic_boolean" id="`;kb`)cxmsU#D:qGE[K!">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="controls_if" id=")+956do`Vd45#Ri:y=oc">
<value name="IF0">
<block type="logic_operation" id=".UeMK}Uc]zBFWWE,+~,=">
<field name="OP">OR</field>
<value name="A">
<block type="logic_negate" id="OjNB9d5F9W7BZ2]r7b%{">
<value name="BOOL">
<block type="variables_get" id="K3P=3(q8n5xg8fDZrK]N">
<field name="VAR">binary::current candle time</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="@zz9kXPIn*+e!l.U#^UJ">
<field name="OP">NEQ</field>
<value name="A">
<block type="variables_get" id="IWyh5!(%PP}IW.PLGR$B">
<field name="VAR">binary::current candle time</field>
</block>
</value>
<value name="B">
<block type="read_ohlc" id="/n]/cp7~0P?W}OW=EZ4Y">
<field name="OHLCFIELD_LIST">epoch</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id=")yD6u069dPOv9p9Mm8AA">
<field name="VAR">binary::current candle time</field>
<value name="VALUE">
<block type="read_ohlc" id="L]w.yHnN8]0Gah{i+tvE">
<field name="OHLCFIELD_LIST">epoch</field>
</block>
</value>
<next>
<block type="variables_set" id="kxLtw+j00sV/u?RP~mi-">
<field name="VAR">binary::is the candle new</field>
<value name="VALUE">
<block type="logic_boolean" id="2HFdWG8`U2t[kl8ZpTOA">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
<block type="procedures_defreturn" id="5S~A!^;f!!}EaU48%U8v" collapsed="true" x="14" y="32">
<field name="NAME">binary::is new candle</field>
<comment pinned="false" h="80" w="160">Describe this function...</comment>
<value name="RETURN">
<block type="variables_get" id="mh;,*}1tZb!S2?)W7j~(">
<field name="VAR">binary::is the candle new</field>
</block>
</value>
</block>
<block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="13" y="220">
<statement name="BEFOREPURCHASE_STACK">
<block type="controls_if" id="}ca/ers3-v@RZwr}fG{O">
<value name="IF0">
<block type="procedures_callreturn" id="NZ^.Rh)d1s;`,+0|ebn#">
<mutation name="binary::is new candle"></mutation>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id=":Hg@@oQ[Amg!jG#c(ABF">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_operation" id="V!L_-Q6?/Nc^25-^pO#8">
<field name="OP">AND</field>
<value name="A">
<block type="is_candle_black" id="E(/J%5QrzBMymfR2gW_0">
<value name="OHLCOBJ">
<block type="get_ohlc" id="pztjosuB}IqHt+8%]I,n">
<value name="CANDLEINDEX">
<block type="math_number" id="QN17GdWQ^gH_`i3L{y}?">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="is_candle_black" id="lFe_j:_SI;bskzv[#7C0">
<value name="OHLCOBJ">
<block type="get_ohlc" id="b5c%Lq?{^`J!1FgE![b_">
<value name="CANDLEINDEX">
<block type="math_number" id="EmOd^Pr/K7/EM^evX(-G">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="^)*DV_@ACI+#a!SL{w!c">
<value name="IF0">
<block type="logic_operation" id="T5=0a~s%@-.aQKA+#Fu0">
<field name="OP">AND</field>
<value name="A">
<block type="is_candle_black" id="^qm/{]D={.?IX+y0|54h">
<value name="OHLCOBJ">
<block type="get_ohlc" id="hx=27wsLyFlt90a-KK.:">
<value name="CANDLEINDEX">
<block type="math_number" id="OaNrma*=M$v;V)$rBLjC">
<field name="NUM">4</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="is_candle_black" id="nLDcx|Tubl`R^^5;%E^2">
<value name="OHLCOBJ">
<block type="get_ohlc" id="vD4l?,+7%,EA*5Q#gw3#">
<value name="CANDLEINDEX">
<block type="math_number" id="Zb008.@dIRrdd7sIJebe">
<field name="NUM">5</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="Z31I~bRa.cTTsS@rDDZv">
<field name="PURCHASE_LIST">PUT</field>
</block>
</statement>
</block>
</statement>
<value name="IF1">
<block type="logic_operation" id=";(I9pLn2x$I+0Muo7)Co">
<field name="OP">AND</field>
<value name="A">
<block type="logic_negate" id=":#M1n-1HDbFuU|%c4|~^">
<value name="BOOL">
<block type="is_candle_black" id="i:i5KkO[Nkc/mG]/p{C0">
<value name="OHLCOBJ">
<block type="get_ohlc" id="H3A`{gG!+0hc$iJ=a0-[">
<value name="CANDLEINDEX">
<block type="math_number" id="Xu06S(b`0v,HMmxyi.1w">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_negate" id="9e@^Dsl%BbJXZuF~mS$s">
<value name="BOOL">
<block type="is_candle_black" id="Ng4:$QlZig__f[+?Fcz0">
<value name="OHLCOBJ">
<block type="get_ohlc" id="/%9Rkx_35637UIt?8|i?">
<value name="CANDLEINDEX">
<block type="math_number" id="Y)(FYWU,j5RwJD7:8uoc">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="controls_if" id="4R:vLW/G|%1vF4eR{-eA">
<value name="IF0">
<block type="logic_operation" id="Rw_^7i8UfNX=Tq;3u7(i">
<field name="OP">AND</field>
<value name="A">
<block type="logic_negate" id="IM[JR}|s{NTrV0,[eizi">
<value name="BOOL">
<block type="is_candle_black" id="^/iOj-[$ALa_XyvTBJK=">
<value name="OHLCOBJ">
<block type="get_ohlc" id="75ehRe2ipe(70xGC,{HK">
<value name="CANDLEINDEX">
<block type="math_number" id="9M3qy9;06i@1h*R}T$M:">
<field name="NUM">4</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_negate" id="0;ear%Hzb)fVpAsfD35]">
<value name="BOOL">
<block type="is_candle_black" id="r/QSk8v41o1_2[A0{{t@">
<value name="OHLCOBJ">
<block type="get_ohlc" id="@H5EdIt4xFl+;oeAIK29">
<value name="CANDLEINDEX">
<block type="math_number" id="3AKVmvU9f=W9N[/d7Ic}">
<field name="NUM">5</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="]gqx:6,?9M_;4Z5O.F?!">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
<block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="13" y="584">
<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">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">1</field>
</block>
</value>
</block>
</statement>
</block>
<block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="2" y="222">
<statement name="BEFOREPURCHASE_STACK">
<block type="controls_if" id=":Hg@@oQ[Amg!jG#c(ABF">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_operation" id="V!L_-Q6?/Nc^25-^pO#8">
<field name="OP">AND</field>
<value name="A">
<block type="is_candle_black" id="E(/J%5QrzBMymfR2gW_0">
<value name="OHLCOBJ">
<block type="get_ohlc" id="pztjosuB}IqHt+8%]I,n">
<value name="CANDLEINDEX">
<block type="math_number" id="QN17GdWQ^gH_`i3L{y}?">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="is_candle_black" id="lFe_j:_SI;bskzv[#7C0">
<value name="OHLCOBJ">
<block type="get_ohlc" id="b5c%Lq?{^`J!1FgE![b_">
<value name="CANDLEINDEX">
<block type="math_number" id="EmOd^Pr/K7/EM^evX(-G">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="^)*DV_@ACI+#a!SL{w!c">
<value name="IF0">
<block type="logic_operation" id="T5=0a~s%@-.aQKA+#Fu0">
<field name="OP">AND</field>
<value name="A">
<block type="is_candle_black" id="^qm/{]D={.?IX+y0|54h">
<value name="OHLCOBJ">
<block type="get_ohlc" id="hx=27wsLyFlt90a-KK.:">
<value name="CANDLEINDEX">
<block type="math_number" id="OaNrma*=M$v;V)$rBLjC">
<field name="NUM">4</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="is_candle_black" id="nLDcx|Tubl`R^^5;%E^2">
<value name="OHLCOBJ">
<block type="get_ohlc" id="vD4l?,+7%,EA*5Q#gw3#">
<value name="CANDLEINDEX">
<block type="math_number" id="Zb008.@dIRrdd7sIJebe">
<field name="NUM">5</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="Z31I~bRa.cTTsS@rDDZv">
<field name="PURCHASE_LIST">PUT</field>
</block>
</statement>
</block>
</statement>
<value name="IF1">
<block type="logic_operation" id=";(I9pLn2x$I+0Muo7)Co">
<field name="OP">AND</field>
<value name="A">
<block type="logic_negate" id=":#M1n-1HDbFuU|%c4|~^">
<value name="BOOL">
<block type="is_candle_black" id="i:i5KkO[Nkc/mG]/p{C0">
<value name="OHLCOBJ">
<block type="get_ohlc" id="H3A`{gG!+0hc$iJ=a0-[">
<value name="CANDLEINDEX">
<block type="math_number" id="Xu06S(b`0v,HMmxyi.1w">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_negate" id="9e@^Dsl%BbJXZuF~mS$s">
<value name="BOOL">
<block type="is_candle_black" id="Ng4:$QlZig__f[+?Fcz0">
<value name="OHLCOBJ">
<block type="get_ohlc" id="/%9Rkx_35637UIt?8|i?">
<value name="CANDLEINDEX">
<block type="math_number" id="Y)(FYWU,j5RwJD7:8uoc">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="controls_if" id="4R:vLW/G|%1vF4eR{-eA">
<value name="IF0">
<block type="logic_operation" id="Rw_^7i8UfNX=Tq;3u7(i">
<field name="OP">AND</field>
<value name="A">
<block type="logic_negate" id="IM[JR}|s{NTrV0,[eizi">
<value name="BOOL">
<block type="is_candle_black" id="^/iOj-[$ALa_XyvTBJK=">
<value name="OHLCOBJ">
<block type="get_ohlc" id="75ehRe2ipe(70xGC,{HK">
<value name="CANDLEINDEX">
<block type="math_number" id="9M3qy9;06i@1h*R}T$M:">
<field name="NUM">4</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_negate" id="0;ear%Hzb)fVpAsfD35]">
<value name="BOOL">
<block type="is_candle_black" id="r/QSk8v41o1_2[A0{{t@">
<value name="OHLCOBJ">
<block type="get_ohlc" id="@H5EdIt4xFl+;oeAIK29">
<value name="CANDLEINDEX">
<block type="math_number" id="3AKVmvU9f=W9N[/d7Ic}">
<field name="NUM">5</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="]gqx:6,?9M_;4Z5O.F?!">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
<block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="3" y="555">
<statement name="AFTERPURCHASE_STACK">
<block type="trade_again" id="SO*X=~i(5H%=zQ5%e+J$"></block>
</statement>
</block>
</xml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment