ELSE/OR CLOSE UNDER THESE CONDITIONS OR THE OTHERS
-
I want to make sure I'm understanding the logic right:
Does this say if AREA 1 conditions are TRUE then CLOSE?
If not, then AREA 2 condItions are TRUE, then CLOSE?
......
2016-01-21.png -
For "Condition", the yellow output is active when the orange one is not. At any given time one of the outputs is active and the orher is inactive. But this is not always the case!
In case of x> the yellow output works as x< and in case of x< the yellow output works as x>. So in case of crossover, the yellow output is not "else", but it's the opposite crossover. In most of the time both outputs are off in this case.
There is one more situation when one of the operands (left or right side) is equal to EMPTY_VALUE, which is the value that custom indicators are giving us when they are not visible. Or when you work with an object that does not exists. In these case none of the outputs is active.
-
What is the best way to have:
area 1 false?
then go to area 2?
In other words I just want 1 group to close a trade or the other, whichever is first.
-
Only if you use <, >, <=, >=, == or != you can yse the yellow output as a true "else". For block 2, one of it's outputs is active within some candles and the other output is active in different candles, but most of the time bith outputs are completely off. While there is no x< or x> both outputs in block 2 are completely off. This means that if you connect a block from these outputs, it will not run most of the time. This is how I did it in the beginning
If you want to check some condition and while it's not true to check other condition, use <, >, <=, >=, == or != for the first one.
Crossovers (x< and x>) are 2 in 1 conditions. And as I said, it was my initial decision to make the yellow output to work as the opposite crossover, but not "else".