SeriesIsBelow: Indicator Documentation
Syntax
SeriesIsBelow(DataSeries ds1, DataSeries ds2, int period)
SeriesIsBelow(DataSeries ds1, DataSeries ds2, int period, string description)
Parameter Description
ds1 | First data series |
ds2 | Second data series |
period | Period for which the 1st data series should be below the 2nd data series |
Description
Returns the number of consecutive bars that Series1 has been below Series2 minus the Period bars.
- To count the number of consecutive bars that Series1 has been below Series2 use period = 1.
- For any other period, SeriesIsBelow returns zero until Series1 has been below Series2 for at least period bars. After being below for period bars, SeriesIsAbove returns 1 and increments with each new bar that Series1 is below Series2.
Example
See
Series Is Above.