I found this code to double my size every loss. And after a win it reset size to standard.
I would like help to change code to do following:
after a loss, double next position, after another loss (two in a row) double again. After 3 losses in a row, go for 1.x times the size, after 4 losses, 1.x times the size etc. Up to 5 losses in a row.
MM Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
onceos=1// ordersize - can be any number depending on account size.
onceosa=os
oncekax=15//15
onceteilung=2//1.5 reducing the ordersize after winning trade
//once zl=2 // 2 Ziellevel. Quadrant wird in zl Teile geteilt, je weniger, desto höher das Ziel
//once mgr=60 // 40 Mindestgröße des Channels
onceff=2//2.5 increasing ordersize after losing trade.
oncemaxcon=50// defing the maximum ordersize
ifhour=8andminute>45then// default setting of parameters outside tradingtime
ifstrategyprofit>spthen// and if equity reaches maximum again.
os=osa
sp=strategyprofit
endif
start=0
endif
ifdate<>20161226anddate<>20161227anddate<>20161230andhour>8then// there may be more "bad"-days to be excluded..... not only christmas
ifstrategyprofit<strategyprofit[1]then// increasing ordersize when losing
os=os*ff
ifos>maxconthen
os=maxcon
endif
endif
start=1
endif
ifstrategyprofit>strategyprofit[1]then// decreasing ordersize when winning
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue