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
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
Rename
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.
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.
Sounds like the job for a new Qualifier Block 🤔
Is one way to accomplish this with a multi condition block that is set to "0 of 1 of the conditions are true"?
Unfortunately you cannot nest multi-condition blocks so this solution is limited.
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.
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.
Really looking forward to this!
Your Response
Post
Edit Post
Login is required