Increase lots after x losses
-
I want to be able to increase lots based on the number of times I've lost. The current martingale options don't allow that.
-
@jzfusion I assume you mean consecutive losses.
https://fxdreema.com/builder/shared/fuIrvWswc -
@roar Can u help me to prevent EA from entering another trade until X time if it had two consecutive losses?
-
https://fxdreema.com/shared/4wXuUDw2c
wondering is this can work
-
@ranjayforex Skipping ticks is full of bugs, I dont use it.
This is one solution.. If you have further questions, maybe you should create separate thread for it.
https://fxdreema.com/shared/xbUhhi7Hd -
@roar i did yes.. Im PM u
-
@roar
Can we make 0.1 and 0.01 variables? Will that work?
0.1 + lost*0.01 -
@jzfusion sure. I would make two constants:
baselot = 0.1
multilot = 0.01then just copy-paste this function inside the "fixed volume" field:
baselot + lost*multilot -
If you want to get creative, you can make it an exponential function so that lots grow more when there is more lost trades (I dont recommend this but its fun to backtest):
MathPow(baselot + lost*multilot, 2)
-
@roar
Is "lost" an internal function? -
@jzfusion its a variable

-
@roar
Thanks
I'm unable to fit all three (baselot + lost*multilot) into one constant for the Lot field -
@jzfusion baselot and multilot are constant numbers.
Create these constants and variables:Constants:
baselot = 0.1 (or whatever you like)
multilot = 0.01 (or whatever you like)Variables:
lost = 0 (variables always 0, they change it automatically) -
@roar
Logic wise is this how everything should be hanging together? Where the modified one is on the yellow?
-
@jzfusion This is the sell side:

The consecutive losses block is just for figuring out the exact number of losses, when its work is done, we take exit from the yellow output and continue to opening the sell trade. You dont need second "sell now" block in any case.
-
@roar
It works however I noticed that there's no option to reset after a number of increments like you can do with the built-in martingale so it keeps going with no regard for the equity
-
@jzfusion You can tweak it here. For example, when over 5 losses, start over. You can put any two numbers you like, 5 -> 0, or 10 -> 5, or 3 -> 2, whatever you like:

-
@roar
How does the user increase "lost" ? It's not exposed as an input variable -
@jzfusion its a variable, you are not supposed to change it manually. You can control it with block 7. You can also make constants for the numbers 5 and 0 in the above picture so that you can manage them directly from metatrader.
-
Does this look right?
https://fxdreema.com/shared/8v2dRexUd