Hello Support,
I've got a question about using both "AND" and "OR" in a sequential series. Basically, I have four (4) MQL Blocks:
MQL Block(1)
MQL Block(2)
MQL Block(3)
MQL Block(4)
The trade logic requires:
MQL(1) AND MQL(2) -OR- MQL(3) -OR- MQL(4)
So, conditions 1 AND 2, or 1 AND 3, or 1 AND 4, will trigger the trade.
I've had much more complex problems to solve, but for some bizarre reason, I'm having difficulty linking these blocks correctly in the Diagram in a streamline fashion, without doing a whole lot of replication of MQL(1). So, to reduce the amount of block replication, I tried the following:
However, this presents a problem because in the "OR" layer, MQL(1) seems to be cut out of the equation where the connections are made from Start to MQL(3) and MQL(4). So, it would seem that the "OR" layer here, does not evaluate MQL(1) and MQL(2) as the trade logic requires, with MQL(3) and MQL(4) being evaluated in sequence as "OR" conditions. This looks suspect.
If this is somehow correct, please let me know. If not, what would I need to change, other than tossing everything under a single MQL Block and using "OR" pipes (||) to obtain the sequential (cascading) evaluation effect that I'm looking for. I could stick everything under a single MQL Block, but I want to see all the major conditions separately.
Thanks!
cfx