filter_above: Filter Stocks Above Threshold

View source: R/filters.R

filter_aboveR Documentation

Filter Stocks Above Threshold

Description

Convenience function to select stocks with signal above a value.

Usage

filter_above(signal_df, value)

Arguments

signal_df

Data frame with signal values

value

Threshold value

Value

Binary selection matrix

Examples

data("sample_prices_weekly")
rsi <- calc_rsi(sample_prices_weekly, 14)
high_rsi <- filter_above(rsi, 70)

PortfolioTesteR documentation built on Nov. 5, 2025, 5:23 p.m.