Selecciones de los editores
OPEN-SOURCE SCRIPT

TASC 2026.10 A Low-Risk ETF-Trading Strategy

16 660
█ OVERVIEW

This script implements concepts from a short-term ETF investment strategy outlined by Markos Katsanos in the article "Selecting Strong ETFs While Avoiding Sharp Overbought Reversals" from the October 2026 edition of TASC Traders' Tips. The strategy analyzes Katsanos' custom relative strength indicator, RSMK, alongside momentum and correlation to identify entry and exit conditions across a diverse set of ETFs. This script is an indicator designed for scanning for the strategy's conditions in the Pine Screener.


█ CONCEPTS

Risk-adjusted performance refers to a strategy's profitability relative to the risk required to achieve it. In his article, Katsanos explains that many trading strategies offer promising returns but poor risk-adjusted performance due to high volatility or drawdowns. In other words, the returns from such strategies may not justify the risk.

A common technique to help mitigate these market risks is to build a diversified trading portfolio across a broad range of different markets. However, Katsanos states that simply selecting a set of sectors or asset classes alone is not enough to achieve superior risk-adjusted returns. He proposes that a rules-based framework is required to identify high performers, avoid poor market timing, adapt to changing regimes, and systematically manage downside risk.

Katsanos' strategy scans a diverse set of exchange-traded funds (ETFs) for strict entry and exit criteria based on relative strength, momentum, and correlation with a benchmark index. The objective is to achieve returns comparable to a buy-and-hold portfolio, while reducing downside risks for better risk-adjusted performance. The strategy operates on ETFs because they're well-suited for short-term investing. Their diversified holdings offer broad market exposure, and often high liquidity and relatively lower volatility.

Note:
This methodology was designed for and tested on non-leveraged ETFs only. The author recommends that traders avoid applying it to leveraged ETFs, because their structural characteristics (e.g., daily rebalancing and volatility) can adversely affect results and risk behaviors.

At its core, the strategy uses a modified relative strength indicator named RSMK, which Katsanos originally introduced in the March 2020 issue of TASC Traders' Tips. His RSMK aims to address the shortcomings of traditional relative strength (RS) analysis. While traditional RS calculates the ratio between two instruments' prices, the RSMK calculates the smoothed change in the natural logarithm of the ratio and scales it as a percentage. The formula is as follows:

RS1 = ln(C / SEC2) – ln(C / SEC2)[RSBARS]
RSMK = EMA(RS1, 4) * 100

Where:
  • ln() refers to the natural logarithm.
  • C is the closing price of the ETF.
  • SEC2 is the price of a benchmark index, such as SPY.
  • RSBARS is the lookback length.
  • EMA() refers to an Exponential Moving Average.



█ WATCHLIST

Katsanos demonstrates his strategy on 80 ETFs selected based on class, sector, region, theme, liquidity, and available history. Most of the selected ETFs have at least 10 years of historical data, with a few exceptions. The author notes that he did not attempt to optimize this portfolio; he constructed it simply to form a broad universe of instruments for testing.

Because the strategy operates on multiple instruments rather than a single one, this script is implemented as an indicator designed to scan the entry and exit criteria with the Pine Screener. Select this indicator from the screener's menu and apply it to a selected watchlist. We've also prepared this watchlist for analyzing the same set of instruments referenced in the article.


█ THE RULES

▌ Entry conditions

The author's strategy relies on the following sets of conditions to determine entry points. Users can customize these conditions, as well as the exit conditions, in the "Settings/Inputs" tab. An entry signal occurs only if all of the conditions are true:

  1. RSMK strength
    • The 35-day RSMK is above its 50-day moving average.
    • The RSMK is greater than +3.
    • The RSMK is at a new four-day high.
  2. Oversold pullback
    • The 10-length RSI was below 35 at least once over the last 20 days.
    • The RSI is rising over the last three days.
  3. Overbought protection
    • The RSMK is less than 25.
  4. Short-term trend confirmation
    • The 5-length EMA is above the 15-day SMA from five days ago.
  5. Market risk filter
    • The six-day rate of change in the SPY price is greater than -6%, and the ETF has sufficient positive correlation with SPY, or
    • The rate of change in SPY is less than -6%, and the ETF has sufficient negative correlation with SPY.
  6. Volume confirmation
    • The five-day SMA of volume is above the minimum threshold.


▌ Exit conditions

The following criteria determine when to close a position. An exit signal occurs if any of these conditions are true:

  1. Relative strength deterioration
    • The ETF has a strong correlation with SPY, and the RSMK crosses below -3.
  2. Time-based rebalancing
    • The position has remained open for 30 days (six weeks).
  3. Profit target
    • The position reaches a profit of 25%.



█ USAGE

This script is intended for use with the Pine Screener and our ETF watchlist. When the script runs in the screener using the watchlist, the screener displays the symbol for each ETF in the first column and the values of the script's plots in subsequent columns. The top of the screener's table displays each plot's name:

imagen

When an entry signal occurs for any symbol, the "Entry" column on that symbol's row shows a value of 1. When an exit signal occurs, the "Exit" column shows a value of -1. If neither signal occurs, neither column displays a value. After an entry signal occurs, the "Entry price" and "Position performance" columns display the entry price and current percentage return until the exit signal occurs.

When the script runs on a chart, it displays a green triangle on each entry bar and a dotted line indicating the position's entry price in the main chart pane. It also shows a green or red fill between the current price and the entry price while the position is active. When an exit condition occurs, the script displays a red "X" above the exit bar. In a separate pane, the script displays the RSMK indicator alongside its moving average:

imagen


█ INPUTS

The script's "Settings/Inputs" tab includes the following inputs for customizing the condition calculations:

  • RSMK length: Lookback length for the RSMK.
  • RSI length: The length value for the RSI.
  • RS MA length: The length of the SMA of the RSMK.
  • RS entry level: The minimum RSMK value required for entry.
  • Minimum volume: The minimum volume moving average value required for entry.
  • RSI oversold: The oversold level for the RSI entry condition.
  • MA bars: The length of the SMA whose value from five days ago must be below the current five-length EMA.
  • Minimum correlation: The minimum correlation with the benchmark index required for entry conditions.
  • Rebalance period: The maximum number of bars over which a position remains open.
  • Benchmark symbol: The symbol of the instrument or index to use as the benchmark.


The script's default settings correspond to those described in the article. By default, the script uses SPY as the benchmark index for its conditions. Users can change the benchmark while running the script on a chart. However, at the time of publishing, users cannot adjust the benchmark in the Pine Screener. When running in the screener, the script consistently uses SPY.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.