Skip to content

Commit 555e288

Browse files
gokula-binaryaminmarashi
authored andcommitted
Add more examples for enhanced martingale
1 parent 4379988 commit 555e288

File tree

1 file changed

+243
-0
lines changed

1 file changed

+243
-0
lines changed
Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
1+
<xml xmlns="http://www.w3.org/1999/xhtml" collection="true">
2+
<block type="loader" id="G8*bH0yYOiK7:XhZ-!pX" x="0" y="0">
3+
<field name="URL">https://gist.githubusercontent.com/aminmarashi/0feb52b5802519cd4157b612d9bd3471/raw/martingale.xml</field>
4+
</block>
5+
<block type="trade" id=")inu*9KBx=?O=ZEkmjl_" x="-128" y="325">
6+
<field name="MARKET_LIST">volidx</field>
7+
<field name="SUBMARKET_LIST">random_index</field>
8+
<field name="SYMBOL_LIST">R_100</field>
9+
<field name="TRADETYPECAT_LIST">callput</field>
10+
<field name="TRADETYPE_LIST">evenodd</field>
11+
<field name="TYPE_LIST">both</field>
12+
<field name="CANDLEINTERVAL_LIST">60</field>
13+
<field name="TIME_MACHINE_ENABLED">FALSE</field>
14+
<field name="RESTARTONERROR">TRUE</field>
15+
<statement name="INITIALIZATION">
16+
<block type="variables_set" id="X=dFUw#,k4grKp`3aSS)">
17+
<field name="VAR">Num of loss</field>
18+
<value name="VALUE">
19+
<block type="math_number" id="*tZ~)%q:vyGgUnupZ-N~">
20+
<field name="NUM">0</field>
21+
</block>
22+
</value>
23+
<next>
24+
<block type="variables_set" id="2,wie9Br@|3!?L!LxV7I">
25+
<field name="VAR">Contract Type</field>
26+
<value name="VALUE">
27+
<block type="text" id="ERF.L}:hpK0~QfXO2[s?">
28+
<field name="TEXT">Call</field>
29+
</block>
30+
</value>
31+
</block>
32+
</next>
33+
</block>
34+
</statement>
35+
<statement name="SUBMARKET">
36+
<block type="tradeOptions" id="Gr3X6!wwLik9IZ|`|wP/">
37+
<field name="DURATIONTYPE_LIST">t</field>
38+
<field name="CURRENCY_LIST">USD</field>
39+
<value name="DURATION">
40+
<block type="math_number" id="sxYl%U5{t^F,Mj-zA7M5">
41+
<field name="NUM">5</field>
42+
</block>
43+
</value>
44+
<value name="AMOUNT">
45+
<block type="procedures_callreturn" id="#+4O3V{hS-`.=f(Vye8_">
46+
<mutation name="Martingale Trade Amount"></mutation>
47+
</block>
48+
</value>
49+
</block>
50+
</statement>
51+
</block>
52+
<block type="after_purchase" id="X[gun7Sx6Shn3kldC}mZ" x="423" y="324">
53+
<statement name="AFTERPURCHASE_STACK">
54+
<block type="notify" id="Y}$T{R@v5lwKm^swfALm">
55+
<field name="NOTIFICATION_TYPE">success</field>
56+
<field name="NOTIFICATION_SOUND">silent</field>
57+
<value name="MESSAGE">
58+
<shadow type="text" id="_Gku|Q#]Bptxzm(rGvzn">
59+
<field name="TEXT">abc</field>
60+
</shadow>
61+
<block type="text_join" id="bRNA%j;pxMqlN:@1}a#0">
62+
<mutation items="2"></mutation>
63+
<value name="ADD0">
64+
<block type="text" id="3Si[2[qpT63TWVLbhm$l">
65+
<field name="TEXT">Total Profit</field>
66+
</block>
67+
</value>
68+
<value name="ADD1">
69+
<block type="total_profit" id="iZU2Cdb*s61]%PE5yLX."></block>
70+
</value>
71+
</block>
72+
</value>
73+
<next>
74+
<block type="variables_set" id="^Kh{Y_-|HCO=ntig-oZY">
75+
<field name="VAR">Trade again with Delay?</field>
76+
<value name="VALUE">
77+
<block type="logic_boolean" id="-Z]/FIfDKfq6+:1wNhMd">
78+
<field name="BOOL">FALSE</field>
79+
</block>
80+
</value>
81+
<next>
82+
<block type="controls_if" id="#=yO.C1rn7n]Zw*%E1AI">
83+
<mutation else="1"></mutation>
84+
<value name="IF0">
85+
<block type="contract_check_result" id="h[CgbsiRx?oxkOb({3n?">
86+
<field name="CHECK_RESULT">loss</field>
87+
</block>
88+
</value>
89+
<statement name="DO0">
90+
<block type="controls_if" id=";FusdyQa[JB7q8k%g3_j">
91+
<mutation else="1"></mutation>
92+
<value name="IF0">
93+
<block type="logic_compare" id="m4%7rJ07d0YMP{!%K2+J">
94+
<field name="OP">EQ</field>
95+
<value name="A">
96+
<block type="variables_get" id="BbIyf|Gv}M/alle]Yi2v">
97+
<field name="VAR">Num of loss</field>
98+
</block>
99+
</value>
100+
<value name="B">
101+
<block type="math_number" id="Jg7NaKV{lxnkKG+sli^}">
102+
<field name="NUM">1</field>
103+
</block>
104+
</value>
105+
</block>
106+
</value>
107+
<statement name="DO0">
108+
<block type="variables_set" id="ft0`b0}MI@N5:5r#A}aG">
109+
<field name="VAR">Num of loss</field>
110+
<value name="VALUE">
111+
<block type="math_number" id="hIiYQGkB@9Tv!qLJyA++">
112+
<field name="NUM">0</field>
113+
</block>
114+
</value>
115+
<next>
116+
<block type="controls_if" id="YYge)))Q3RxZDeK_LA-d">
117+
<mutation else="1"></mutation>
118+
<value name="IF0">
119+
<block type="logic_compare" id=":i0on9T7.,?X+_vh#[n~">
120+
<field name="OP">EQ</field>
121+
<value name="A">
122+
<block type="variables_get" id="-Z7yv=?f!j41GQo!Y_M$">
123+
<field name="VAR">Contract Type</field>
124+
</block>
125+
</value>
126+
<value name="B">
127+
<block type="text" id="f{X]y@k2txOXec(dE4Zy">
128+
<field name="TEXT">Call</field>
129+
</block>
130+
</value>
131+
</block>
132+
</value>
133+
<statement name="DO0">
134+
<block type="variables_set" id="9Q4`0[TFV{+iDoqvlO[!">
135+
<field name="VAR">Contract Type</field>
136+
<value name="VALUE">
137+
<block type="text" id="XOu_`CA3!{W#fY_0X{G5">
138+
<field name="TEXT">Put</field>
139+
</block>
140+
</value>
141+
</block>
142+
</statement>
143+
<statement name="ELSE">
144+
<block type="variables_set" id="Jo^4VO*#%/BISW+[0b}C">
145+
<field name="VAR">Contract Type</field>
146+
<value name="VALUE">
147+
<block type="text" id="{D0q2;hIRa;2?A9hYuQ6">
148+
<field name="TEXT">Call</field>
149+
</block>
150+
</value>
151+
</block>
152+
</statement>
153+
<next>
154+
<block type="variables_set" id="C]9B)Z:#(cs%$)-7KHc~">
155+
<field name="VAR">Trade again with Delay?</field>
156+
<value name="VALUE">
157+
<block type="logic_boolean" id="#?*|.J(7BikJJ5`(TCq}">
158+
<field name="BOOL">TRUE</field>
159+
</block>
160+
</value>
161+
</block>
162+
</next>
163+
</block>
164+
</next>
165+
</block>
166+
</statement>
167+
<statement name="ELSE">
168+
<block type="math_change" id="+r5zbph60AJHQ0=;153!">
169+
<field name="VAR">Num of loss</field>
170+
<value name="DELTA">
171+
<shadow type="math_number" id="O+}3r@EPAY?F=Ys65p#K">
172+
<field name="NUM">1</field>
173+
</shadow>
174+
</value>
175+
</block>
176+
</statement>
177+
</block>
178+
</statement>
179+
<statement name="ELSE">
180+
<block type="variables_set" id="*$-M$;vJHRtg#%1]umSL">
181+
<field name="VAR">Num of loss</field>
182+
<value name="VALUE">
183+
<block type="math_number" id="eV(UBMyXrq?IZwU+Z#[;">
184+
<field name="NUM">0</field>
185+
</block>
186+
</value>
187+
</block>
188+
</statement>
189+
<next>
190+
<block type="controls_if" id="E_4.ef]}%mJ6~12CE,N5">
191+
<value name="IF0">
192+
<block type="procedures_callreturn" id="KeR|]Fhr3qd{P}AaHtBc">
193+
<mutation name="Martingale Trade Again After Purchase">
194+
<arg name="martingale:profit"></arg>
195+
<arg name="martingale:resultIsWin"></arg>
196+
</mutation>
197+
<value name="ARG0">
198+
<block type="read_details" id="*0C_DOst(@$2_Ph[Qpje">
199+
<field name="DETAIL_INDEX">4</field>
200+
</block>
201+
</value>
202+
<value name="ARG1">
203+
<block type="contract_check_result" id="uJ=%k[gd/YjTx-S||@L%">
204+
<field name="CHECK_RESULT">win</field>
205+
</block>
206+
</value>
207+
</block>
208+
</value>
209+
<statement name="DO0">
210+
<block type="controls_if" id="B}*^rM[98[T%4M|t|dWS">
211+
<mutation else="1"></mutation>
212+
<value name="IF0">
213+
<block type="variables_get" id="C~v~WC2R`?z|cL[w)~)B">
214+
<field name="VAR">Trade again with Delay?</field>
215+
</block>
216+
</value>
217+
<statement name="DO0">
218+
<block type="timeout" id="!v(t7]86V;WNBte2_XIh">
219+
<statement name="TIMEOUTSTACK">
220+
<block type="trade_again" id="`Lalh)t#CEvQ[)]`M;40"></block>
221+
</statement>
222+
<value name="SECONDS">
223+
<shadow type="math_number" id="E)_aHRD~d[@}uK1)zm|!">
224+
<field name="NUM">1</field>
225+
</shadow>
226+
</value>
227+
</block>
228+
</statement>
229+
<statement name="ELSE">
230+
<block type="trade_again" id="SKI)^E~YMm%_vU_=Rw/4"></block>
231+
</statement>
232+
</block>
233+
</statement>
234+
</block>
235+
</next>
236+
</block>
237+
</next>
238+
</block>
239+
</next>
240+
</block>
241+
</statement>
242+
</block>
243+
</xml>

0 commit comments

Comments
 (0)