Learn R Programming

PortfolioTesteR (version 0.1.4)

filter_below: Filter Stocks Below Threshold

Description

Convenience function to select stocks with signal below a value.

Usage

filter_below(signal_df, value)

Value

Binary selection matrix

Arguments

signal_df

Data frame with signal values

value

Threshold value

Examples

Run this code
data("sample_prices_weekly")
rsi <- calc_rsi(sample_prices_weekly, 14)
oversold <- filter_below(rsi, 30)

Run the code above in your browser using DataLab