Increase lots after x losses
-
@jzfusion Very close. I see you reset the lost when that condition is true (orange). However, if the condition is not true (yellow), the variable will keep the value and this may cause problems when the loop runs again some time in the future.

This is why I like to reset the variable at the pass-block right before the loop, so there will be no surprises.

-
I am getting really confused.
Here's the modified link. It doesn't run when backtested. I'm not sure where I'm getting the logic mixed up. My understanding on how variables work in fxdreema is very challenged.
Can you figure out why it doesn't work?
https://fxdreema.com/shared/nkB08bjyc -
@jzfusion the variables are ok, its just this condition:

When theres 0 trades in history, "lost" will always be less than "number_of_losses" and the condition will always be false. -
We're in business but except the lots aren't incrementing after x losses. It runs about 7 trades and run again.

-
@jzfusion What's the project
-
-
@jzfusion There's a bug in my earlier project, should have noticed that, sorry..
You need to connect both orange and yellow outputs of the condition, so the block will only modify variables and then pass in any case.

Also, the comparator must be "above":

Now it increases lots when trades hit SL. If there are more than 5 losses (number_of_losses), next lot would be 0.12 because you have set number 2 in the condition block.

-
@roar
If x(number_of_losses) is set to 5 then shouldn't we only be seeing an increase in lots after the 12th trade in your list? I don't mind the slow lot increments from 0.11 to 0.13 however I was expecting it to only begin after the 5th trade unless you set your example to 1 rather than 5? I'm seeing increments but the number_of_losses variable is not taking effect.

-
@jzfusion ok, I don't know what kind of lot sequence you are after here, exactly. Would something like this be close to it:
0.10 loss ->
0.10 loss ->
0.10 loss ->
0.13 loss ->
0.16 win ->
0.10
?
If so, here's the project:
https://fxdreema.com/shared/Nttrk6dbb

What the variables mean:
multilot: how much lot increase per one history loss
baselot: lot size when 0 losses
default_trades: how many losses to wait until start increasing
maxlot: how high the lot amount can go -
How about closing trades basses on rsi overbought and oversold ?