Hi Eugene!
Just tried to use this function and I noticed the behavior does not match its description. When the "Period=1" it is supposed to count the number of times it is below that value. As the code below demonstrates it treats "Period=1" the same as any other period.
CODE:
Please log in to see this code.
Vince
Size:
Color:
Hi Vince,
That code does not demonstrate anything. Not sure what you did wrong but the DataSeries works just fine:
CODE:
Please log in to see this code.
Size:
Color:
Hi Gene!
From the Wiki "To count the number of consecutive bars that the DataSeries has been below the value, use period = 1", but this does not do that. The value remains at "1". See below:
CODE:
Please log in to see this code.
Vince
Size:
Color:
Now I see what you mean Vince. Instead of counting the number of consecutive bars that Series1 has been above Series2 (period = 1) the counter just stops and has a "plateau" look.
Thanks for the heads-up! I'm on it.
Size:
Color:
Wow, that was a long-standing bug. To be fixed in Community Indicators v2019.03 (ETA end of February).
Size:
Color:
Thanks for tracking this down Eugene!
Vince
Size:
Color:
So the idea is that SeriesIsAbove/Below and SeriesIsAbove/BelowValue have been implemented differently and now we're going to make them always match by replacing the *Value series code.
Size:
Color:
Vince,
Community Indicators v2019.03 is out with fix to the bug you've discovered. Thanks.
Size:
Color: