Wealth-Lab Wiki

API ChartStyles Community Components Community Indicators IndexDefinitions Knowledge Base Misc Optimizers PosSizers Providers Standard Indicators TASC Traders Tips TASCIndicators Visualizers


Quick Search
Advanced Search »

Series is Below a Value


SeriesIsBelowValue: Indicator Documentation


SeriesIsBelowValue(DataSeries ds, double num, int period)
SeriesIsBelowValue(DataSeries ds, double num, int period, string description)

Parameter Description

dsData series
periodPeriod for which the data series should be below the value


Returns the number of consecutive bars that a DataSeries dshas been below a value num minus the Period bars.
  • To count the number of consecutive bars that the DataSeries has been below the value, use period = 1.
    • Note! Versions prior to 2019.03 contained a bug (now fixed). Backtest results will change if upgrading to 2019.03 or higher.
  • For any other period, SeriesIsBelowValue returns zero until the DataSeries has been below the value for at least period bars. After being below for period bars, SeriesIsBelowValue returns 1 and increments with each new bar that the DataSeries is below the value.

See also:
Series Is Above a Value
Series Is Below


See Series Is Above a Value.

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.

ScrewTurn Wiki. Some of the icons created by FamFamFam.