Skip to content

Instantly share code, notes, and snippets.

@nguyentuit5a
Created February 21, 2019 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nguyentuit5a/15f517840b05e1b893543a280993362d to your computer and use it in GitHub Desktop.
Save nguyentuit5a/15f517840b05e1b893543a280993362d to your computer and use it in GitHub Desktop.
<xml xmlns="http://www.w3.org/1999/xhtml" collection="false">
<variables>
<variable type="" id="FU/agNEvZNvuxbLyRKIH">Expected Profit</variable>
<variable type="" id="*,ij*~@A2,L|JE|z]xz9">rise</variable>
<variable type="" id="xJHc.3btPTLQ1,fh!_)o">Win Amount</variable>
<variable type="" id="kkD{+fFnE*105Z6ZRaR[">Initial Amount</variable>
<variable type="" id="U*[gYwxYfl{aX7;C:ADi">fall</variable>
<variable type="" id="upu2u}l:4_X9=i;jAi(@">loss</variable>
</variables>
<block type="trade" id="73vWdDagX-YhN)CtN.3D" x="112" y="-847">
<field name="MARKET_LIST">volidx</field>
<field name="SUBMARKET_LIST">random_index</field>
<field name="SYMBOL_LIST">R_100</field>
<field name="TRADETYPECAT_LIST">callput</field>
<field name="TRADETYPE_LIST">risefall</field>
<field name="TYPE_LIST">both</field>
<field name="CANDLEINTERVAL_LIST">60</field>
<field name="TIME_MACHINE_ENABLED">FALSE</field>
<field name="RESTARTONERROR">TRUE</field>
<statement name="INITIALIZATION">
<block type="variables_set" id="`m*jmnd~?(%PYRjyP:Ey">
<field name="VAR" id="FU/agNEvZNvuxbLyRKIH" variabletype="">Expected Profit</field>
<value name="VALUE">
<block type="math_number" id="O!^gPI|s(#{)40]P!Ylr">
<field name="NUM">1000</field>
</block>
</value>
<next>
<block type="variables_set" id="HbI}]gP((Rooso*IH%@9">
<field name="VAR" id="xJHc.3btPTLQ1,fh!_)o" variabletype="">Win Amount</field>
<value name="VALUE">
<block type="math_number" id="d!*oox4NJx@*obQ)l6Q1">
<field name="NUM">0.35</field>
</block>
</value>
<next>
<block type="variables_set" id="1`SW/Wbc=TR%r:/F`[{T">
<field name="VAR" id="kkD{+fFnE*105Z6ZRaR[" variabletype="">Initial Amount</field>
<value name="VALUE">
<block type="math_number" id="Zw$e.S13BwD1EB^FJMEv">
<field name="NUM">0.35</field>
</block>
</value>
<next>
<block type="variables_set" id="w:+!}$KCtn{_B/VoEL3h">
<field name="VAR" id="upu2u}l:4_X9=i;jAi(@" variabletype="">loss</field>
<value name="VALUE">
<block type="math_number" id="8kR{$QUN9{bnlfJ.klbV">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="variables_set" id="Edz3/Aa=bGFEDGFA/fd8">
<field name="VAR" id="*,ij*~@A2,L|JE|z]xz9" variabletype="">rise</field>
<value name="VALUE">
<block type="logic_null" id="ZN`j0s+D.`AYK8!DPqL]"></block>
</value>
<next>
<block type="variables_set" id="qtn%8Cxs0;!)uV_u]Eii">
<field name="VAR" id="U*[gYwxYfl{aX7;C:ADi" variabletype="">fall</field>
<value name="VALUE">
<block type="logic_null" id="O~zl$gq1Z?2_O!V]2^R*"></block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<statement name="SUBMARKET">
<block type="tradeOptions" id="=s_/{8[LuA0:{nw0O53d">
<field name="DURATIONTYPE_LIST">t</field>
<field name="CURRENCY_LIST">USD</field>
<value name="DURATION">
<block type="math_number" id="0p-bjjEuB1k(LNWLaiS]">
<field name="NUM">1</field>
</block>
</value>
<value name="AMOUNT">
<block type="variables_get" id="HMfSgJ`Iq-Z:Fz-}i+-{">
<field name="VAR" id="kkD{+fFnE*105Z6ZRaR[" variabletype="">Initial Amount</field>
</block>
</value>
</block>
</statement>
</block>
<block type="tick_analysis" id="04=yjva-Jhb7A9%$DK-8" x="2164" y="-644">
<statement name="TICKANALYSIS_STACK">
<block type="variables_set" id=")*W/3M93Aa[zvr%J4qQ+">
<field name="VAR" id="*,ij*~@A2,L|JE|z]xz9" variabletype="">rise</field>
<value name="VALUE">
<block type="logic_compare" id="|/#jA(PVm6B9#Tn(h;s?">
<field name="OP">LT</field>
<value name="A">
<block type="bb" id="qzkP/oq|52Of!o:4I:|~">
<field name="BBRESULT_LIST">0</field>
<value name="INPUT">
<block type="ticks" id="~bgkle;%iW;;ae/P~FBC"></block>
</value>
<value name="PERIOD">
<shadow type="math_number" id="Y}6VTvbPk$DPknF{#_+(">
<field name="NUM">10</field>
</shadow>
</value>
<value name="UPMULTIPLIER">
<shadow type="math_number" id="aa.KM)od4.~[bg60/PK,">
<field name="NUM">2</field>
</shadow>
</value>
<value name="DOWNMULTIPLIER">
<shadow type="math_number" id="Otp}$h|rC6J:T!x#Hirg">
<field name="NUM">2</field>
</shadow>
</value>
</block>
</value>
<value name="B">
<block type="tick" id="R^qe](7W31E#81(N}CyF"></block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="e%xmc`,FRTLE[q=5|PuY">
<field name="VAR" id="U*[gYwxYfl{aX7;C:ADi" variabletype="">fall</field>
<value name="VALUE">
<block type="logic_compare" id="kYDZvW9wyRgMibJ5o__V">
<field name="OP">GT</field>
<value name="A">
<block type="bb" id="h58?52}AU#7|G-*mNI|(">
<field name="BBRESULT_LIST">0</field>
<value name="INPUT">
<block type="ticks" id="opVL1M/~fFR+APVu3.,x"></block>
</value>
<value name="PERIOD">
<shadow type="math_number" id="X20tQXc{Hll`P[!*_(~E">
<field name="NUM">10</field>
</shadow>
</value>
<value name="UPMULTIPLIER">
<shadow type="math_number" id="/(%ewY[FV/A%ai!o#22,">
<field name="NUM">2</field>
</shadow>
</value>
<value name="DOWNMULTIPLIER">
<shadow type="math_number" id="re$Z29rvVqEj%?JVzG,8">
<field name="NUM">2</field>
</shadow>
</value>
</block>
</value>
<value name="B">
<block type="tick" id="-qR:_A*On:[}Ku~j#bD}"></block>
</value>
</block>
</value>
<next>
<block type="notify" id="e(KorQVOc;YJ+S.:XVPO">
<field name="NOTIFICATION_TYPE">info</field>
<field name="NOTIFICATION_SOUND">silent</field>
<value name="MESSAGE">
<block type="text_join" id="!e!U(3dPf#EYQavs}H=l">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="-50u~Em1A0Jf7(ZKf$~?">
<field name="TEXT">TICK:: </field>
</block>
</value>
<value name="ADD1">
<block type="tick" id="QkJ`H-o;KnEV}RQ:a7nf"></block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
<block type="before_purchase" id="tOc)]Xd=cAm0aiy+-8(8" x="1164" y="-460">
<statement name="BEFOREPURCHASE_STACK">
<block type="controls_if" id="!=coE$b3%WGH,G]}xx%n">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="XNqD3mkD_:5E#RaVDjD:">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="zzRNuD}5)Wl0KGKU4F_c">
<field name="VAR" id="*,ij*~@A2,L|JE|z]xz9" variabletype="">rise</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="JLhaHS}X,^-qfd#153[(">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="purchase" id="wUOx~/x_nM6x2zzOi:~|">
<field name="PURCHASE_LIST">PUT</field>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="?r|(Ert[h*0DrD!n-*Ew">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="^rXCWdE+?KppNS[xZHog">
<field name="VAR" id="U*[gYwxYfl{aX7;C:ADi" variabletype="">fall</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="z;9^pSC#A+X1lKeQRt+t">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="purchase" id="|dR$stZN8(1D$P%+P{jz">
<field name="PURCHASE_LIST">CALL</field>
</block>
</statement>
</block>
</statement>
</block>
<block type="after_purchase" id="Vt,CkLeK8E?%BmnB`~M)" x="494" y="-165">
<statement name="AFTERPURCHASE_STACK">
<block type="controls_if" id="lXx[u)])DplI5tNJCX#E">
<mutation else="1"></mutation>
<value name="IF0">
<block type="contract_check_result" id="f`.9rMI;|4i^FZ9y12zT">
<field name="CHECK_RESULT">win</field>
</block>
</value>
<statement name="DO0">
<block type="notify" id="4YfK{W[2OoWl^*}:`-~%">
<field name="NOTIFICATION_TYPE">success</field>
<field name="NOTIFICATION_SOUND">silent</field>
<value name="MESSAGE">
<block type="text_join" id="NI6_z2cNjwq/t2B^h`{=">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="5%$!H}8?@4$/?s+Piv_+">
<field name="TEXT">Win: </field>
</block>
</value>
<value name="ADD1">
<block type="read_details" id="rm)(g3DL.ASYfcDYc913">
<field name="DETAIL_INDEX">4</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="RHjB4R=uQ`(l+$;WvdmJ">
<field name="VAR" id="kkD{+fFnE*105Z6ZRaR[" variabletype="">Initial Amount</field>
<value name="VALUE">
<block type="variables_get" id="@f`s#/,Qh+L1siQ%@LZu">
<field name="VAR" id="xJHc.3btPTLQ1,fh!_)o" variabletype="">Win Amount</field>
</block>
</value>
<next>
<block type="variables_set" id="R]ZnnJfD=N?xEBM},5WZ">
<field name="VAR" id="*,ij*~@A2,L|JE|z]xz9" variabletype="">rise</field>
<value name="VALUE">
<block type="logic_null" id="v+L0}vy6^;lu].+PF`VG"></block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="math_change" id="G2|WQxm+|SAOq,0@Tx63">
<field name="VAR" id="upu2u}l:4_X9=i;jAi(@" variabletype="">loss</field>
<value name="DELTA">
<shadow type="math_number" id="l%nl-{z8`+eA^nIlbX)^">
<field name="NUM">1</field>
</shadow>
</value>
<next>
<block type="notify" id="=%CD;.rm0YSeX3^NARv{">
<field name="NOTIFICATION_TYPE">warn</field>
<field name="NOTIFICATION_SOUND">silent</field>
<value name="MESSAGE">
<block type="text_join" id="`~I~AJSjE5P*6+$e,}D8">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="CrG9@.tREViPIC`9}[=i">
<field name="TEXT">Loss: </field>
</block>
</value>
<value name="ADD1">
<block type="math_single" id="/`zYL^gVI%L@+nDS]?PO">
<field name="OP">ABS</field>
<value name="NUM">
<shadow type="math_number" id="=JyMDx9{tJlZU@XpW9~K">
<field name="NUM">9</field>
</shadow>
<block type="read_details" id="[:48l.owbE2cBTmqoyO1">
<field name="DETAIL_INDEX">4</field>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="math_change" id="fZr!9v0GJno]2?#^f:],">
<field name="VAR" id="kkD{+fFnE*105Z6ZRaR[" variabletype="">Initial Amount</field>
<value name="DELTA">
<shadow type="math_number" id="(]GS)V@8Ctdg3v2E@jlY">
<field name="NUM">1</field>
</shadow>
<block type="math_single" id="JQvUqn`x/`rM%uqqd,sk">
<field name="OP">ABS</field>
<value name="NUM">
<shadow type="math_number" id="7@SQZ~WtnAz*C$]k?bFA">
<field name="NUM">9</field>
</shadow>
<block type="math_arithmetic" id="NVatCZSB}]C9h{hR=TB4">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="e*O~T7hbBa6K%S]e(piZ">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="hfOy@;abK4#6!|u$E4nC">
<field name="VAR" id="kkD{+fFnE*105Z6ZRaR[" variabletype="">Initial Amount</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="~+Xs9r(31D)#*O$`ViT/">
<field name="NUM">1.1</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id=")DZht:8qItg=dNn?(F:P">
<field name="VAR" id="*,ij*~@A2,L|JE|z]xz9" variabletype="">rise</field>
<value name="VALUE">
<block type="logic_null" id=",}op+m:/D4UOL(Y8:6~~"></block>
</value>
<next>
<block type="variables_set" id="q}~;,XtAIfOTzz{=,0!#">
<field name="VAR" id="U*[gYwxYfl{aX7;C:ADi" variabletype="">fall</field>
<value name="VALUE">
<block type="logic_null" id="[rP?KE{)VsW()jyB_x[1"></block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="notify" id="+22zCiPYK`7t/0,(j^hu">
<field name="NOTIFICATION_TYPE">info</field>
<field name="NOTIFICATION_SOUND">silent</field>
<value name="MESSAGE">
<block type="text_join" id="13ZNjx,;FBn{xq;;T~L4">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="I(n.3v{gwNKj!b4UK-TV">
<field name="TEXT">Sum: </field>
</block>
</value>
<value name="ADD1">
<block type="total_profit" id="?=%:cTu{h@KWwZoev4|t"></block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="(#7D~2Va0l51${Pu!yW;">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="Qtsk$6Qd[X~o1wD~hfOt">
<field name="OP">LTE</field>
<value name="A">
<block type="total_profit" id="5]xuiqe3-INE?#f@Y=fu"></block>
</value>
<value name="B">
<block type="variables_get" id="_9Hf(nmF~1H_+_d`Hazz">
<field name="VAR" id="FU/agNEvZNvuxbLyRKIH" variabletype="">Expected Profit</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="trade_again" id="wNl0%!;$H`R-Dm=ZV7p:"></block>
</statement>
<statement name="ELSE">
<block type="text_print" id="-)Qjpn/c$W_)gB%MdIir">
<value name="TEXT">
<shadow type="text" id="]XR@@VL{)*ZI)WlTipd_">
<field name="TEXT">abc</field>
</shadow>
<block type="text_join" id="t;s[5Z2J?n5$VabcYdow">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="H$7i.%r.PFeQh_Soc[||">
<field name="TEXT">Chúc mừng bạn đã Chiến Thắng</field>
</block>
</value>
<value name="ADD1">
<block type="total_profit" id="cgi0g($gg7bzWm^};+`4"></block>
</value>
</block>
</value>
</block>
</statement>
</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