and/or
-
I designed a simple close trade procedure and it did not close when it should have so I just need my logic verified.
In this diagram I want either:
conditions 2 and 3 to CLOSE TRADES
OR
conditions 4 and 5 to CLOSE TRADES
Is this workflow correct for that?
......
fxdreema workflow.jpg -
There is no OR here, but if you want OR, then make some connections in parallel
-
__There is no OR here, but if you want OR, then make some connections in parallel
https://fxdreema.com/demo/mt4-or-logic-1[/quote:27uvugx0]
I wonder how the example above works when I have more than one "condition" for Buying.
-
This example shows If-then-else logic.
- If Condition 1 is true, run Buy now, otherwise...
- If Condition 2 is true, run Buy now, otherwise...
- If Condition 3 is true, run Buy now, otherwise...
If Condition 1 is true, Condition 2 and 3 will not run, they are not needed anyway. This is why this method is good.
-
__This example shows If-then-else logic.
- If Condition 1 is true, run Buy now, otherwise...
- If Condition 2 is true, run Buy now, otherwise...
- If Condition 3 is true, run Buy now, otherwise...
If Condition 1 is true, Condition 2 and 3 will not run, they are not needed anyway. This is why this method is good.[/quote:33td2w0x]
And would this work?: https://fxdreema.com/shared/1H8X3wrde
I prepared just a sample to understand if one condition after the other work its way to buy.
-
I think that this is not hard to understand.
- The orange output is active when the Condition is true and the yellow output is active otherwise.
- If one of the operands in Condition is EMPTY_VALUE (for example when indicator is used, but the indicator does not show something at the moment), none of the outputs are active
- If crossover is used (x> or x<), then the yellow output is active in case of the opposite case. If you have x>, then the yellow output works like x<. If you have x<, then the yellow output works like x>.