MA CrossOver Condition
-
Hi, I´ve been struggling with this condition. As per say I thought that the condition would be if the crossover happens then goes to next and if not goes to the other condition. What happens is that the false is not if the crossover doesn´t happen and it is if the Right Operand crosses the Left Operand. Is there a way to do like I want to? thanks in advance.
-
The crossover happens in a fraction of time, like in one tick.
You should propably use the conditions "above" or "below" and build your strategy around that.
-
I know how the crossing works. That´s not what I meant. I meant that the YELLOW OUTPUT is not if the condition is wrong and it is if the OPPOSITE of the condition is TRUE. And that is not only for MA Crossover. It´s for all of the YELLOW OUTPUT conditions of all indicators....
In my head it should be IF the condition is TRUE pass ORANGE OUTPUT, IF the condition is FALSE pass the YELLOW OUTPUT.
The only way I figured out on how to correct it is mannually go to MQL Editor and change the OUTPUT string for "if (o2=true) {blockXX(yy);}" to "if (o1=false) {blockXX(yy);}".
-
I think you have to use two condition blocks. First one checks simple "<" or ">" and the last one checks the crossover.
Now you can use the first condition's yellow output