Learn R Programming

PortfolioTesteR (version 0.1.4)

filter_above: Filter Stocks Above Threshold

Description

Convenience function to select stocks with signal above a value.

Usage

filter_above(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)
high_rsi <- filter_above(rsi, 70)

Run the code above in your browser using DataLab