- ago
Hello,

I am looking to add some blocks in my strategies that will evaluate as "true" when something is NOT occuring. For example, instead of seeing if an indicator has crossed another, I would like to evaluate for the indicator not to have crossed. Is there a simple way of doing this that I have not figured out?

Thanks!
Dandude
1
329
Solved
7 Replies

Reply

Bookmark

Sort
- ago
#1
Hello,

Yes, it's straightforward to accomplish in C# code. It might be possible if you sketch your strategy in Blocks with the Crossover condition activated, then open in C# strategy window and invert the result with the "!" operand on the condition.
0
Glitch8
 ( 7.21% )
- ago
#2
Sounds like the job for a new Qualifier Block 🤔
0
- ago
#3
Is one way to accomplish this with a multi condition block that is set to "0 of 1 of the conditions are true"?
0
- ago
#4
Unfortunately you cannot nest multi-condition blocks so this solution is limited.
0
- ago
#5
I am also experimenting with negative numbers under the "How many?" of the conditions are true. Would putting -1 for "at least N cond. true" mean that if one of the following conditions were not true? Would -2 be if two are not true, ect.? I am having a hard time puzzling it out.
0
Glitch8
 ( 7.21% )
- ago
#6
This slipped through the cracks, but I just created this for Build 52. You can use a new Logical Inverter and the Condition will need to resolve to false instead of true.

3
Best Answer
- ago
#7
Really looking forward to this!
0

Reply

Bookmark

Sort