

def cross_below(values1, values2, start=(- 2), end=None):
    'Checks for a cross below conditions over the specified period between two DataSeries objects.\n\n    It returns the number of times values1 crossed below values2 during the given period.\n\n    :param values1: The DataSeries that crosses.\n    :type values1: :class:`pyalgotrade.dataseries.DataSeries`.\n    :param values2: The DataSeries being crossed.\n    :type values2: :class:`pyalgotrade.dataseries.DataSeries`.\n    :param start: The start of the range.\n    :type start: int.\n    :param end: The end of the range.\n    :type end: int.\n\n    .. note::\n        The default start and end values check for cross below conditions over the last 2 values.\n    '
    return _cross_impl(values1, values2, start, end, (lambda x: (x < 0)))

dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/technical/cross.py cross_below/original