Multi-Condition Groups are useful for introducing 'fuzzy logic' to your scripts like in the UG example: "
conditions have occurred at least X times during the lookback period". This doesn't mean "to occur consecutively for all (X) days" but in some cases, they can be used to create a consecutive condition:
Can you do an "and then" command using rules?Some conditions requiring consecutive action are already available in Rules:
* Price increases (decreases) a consecutive number of bars
* Indicator is above (below) a value for n consecutive bars
* Indicator is above (below) Indicator for n consecutive bars
* Indicator increases (decreases) a number of bars within period
* External Symbol Price increases (decreases) a consecutive number of bars
* External Symbol Moving Average increases (decreases) a consecutive number of bars
etc.
N Consecutive bars Rule: how to use Close price?Now to your case. Unless I'm missing something, MC Groups don't seem directly applicable to your particular condition. It's easy to code in the script directly but not using available rules I guess. Here's an example of a 2-day (or more) consecutive staying of Volume below 50% of SMA(Volume):
CODE:
Please log in to see this code.
Anticipating your possible question, to avoid frgamentation of the rule system we do not have plans to include a consecutive condition for Volume SMA.