Blocks Ordering (sequencing) Issue
-
Hello all,
I would like to address an issue that I have here, and I would very much appreciate an answer.
I have three areas/functions:
-
Area 1: When there are no positions open, and the Max Consecutive Losses is less than a specific number (identified by an input), it activates
-
Area 2: When there are no positions open, and the Max Consecutive Losses is more than a specific number (identified by an input), it activates
-
Area 3: After Area 2 is activated, it waits until the Max Consecutive Losses becomes less than the input value (once a win trade happens), then Area 3 is activated, changing values before entering to Area 1 again.
My issue is that sometimes, after Area 2 ends, Area 1 activates before Area 3.
I have done the block numbering correctly, however, the ordering does not happen always according to the numbering.
Here's an example for the above situation:
shared/5OCWgzbbd
Thank you!
-
-
Try adding flags so that when something happens, the flag checked for areas 1, 2, or 3 is switched off until you switch them on.
-
Blocks 1 and 2 are using the exact same Constant. That can neever work because you are requiring the same value to be true for both opposed conditions at the same time.