Hi, I'm looking for someone to help me create a small configuration in a form of a Block, so that I can use it in my project.
I will gift a subscription to the person who can figure this out.
The issue is concerning the "Sequence on loss" input in the "Buy Now" block and it's values.
I need to be able to shift back to previous values in that sequence.
Let's take the following as an example:

I have a custom sequence "sequence on loss": 1,2,3,4,5,6
And let's say we had 3 consecutive losses in a row -> and we are currently on the 4th trade.
If that's the case, then we are trading on the third input value of the "sequence on loss" ( value: 3)
I want to be able to shift back to the second value instead (2) or the first value (1) whenever a condition is met (to be able to use a block as a controller would be best)
I previously tried to store the "sequence on loss" in a variable, and change the data using "modify variables" block:

Unfortunately, this method didn't work. The EA either resets the sequence, or continues (I couldn't find a way to change the sequence or shift back to the previous value without breaking it).