Courseware / Finance / course-060
Complete Swing Trading Strategy: From Beginner to Pro Using 4H Chart, EMAs, and RSI
Tweet@RebellioMarketView Source →

🎙 Podcast Version

2-host dialogue — ALEX & SAM discuss this course.

Complete Swing Trading Strategy: From Beginner to Pro Using 4H Chart, EMAs, and RSI

Overview

This course teaches a systematic swing‑trading methodology that can be applied to liquid equities such as Tesla (TSLA), Apple (AAPL), Meta (META), Mirum Pharmaceuticals (MIRM), and Hims & Hers Health (HIMS). The approach relies on a 4‑hour (4H) chart, two exponential moving averages (the 200‑EMA for trend direction and the 20‑EMA for pullback timing), and a 14‑period Relative Strength Index (RSI) to confirm momentum. By the end of the course you will understand how to identify the prevailing trend, time entries during healthy pullbacks, and validate those entries with momentum signals—all while managing risk appropriate for swing trades that typically last from a few days to several weeks.

Background & Context

Swing trading occupies the middle ground between day trading (intraday) and position trading (weeks to months). Traders who prefer swing trading seek to capture “swings” in price that occur as markets move from support to resistance and back again, without the need to monitor positions constantly throughout the trading day. The 4H timeframe is popular among swing traders because it filters out much of the noise present on lower timeframes (e.g., 5‑minute or 15‑minute charts) while still providing enough trading opportunities per week to keep capital active.

Exponential moving averages (EMAs) give more weight to recent price action than simple moving averages, making them responsive yet smooth enough to act as dynamic support/resistance levels. The 200‑EMA is widely regarded as a proxy for the long‑term trend; price above it signals bullish bias, price below it signals bearish bias. The 20‑EMA reacts faster and is useful for spotting short‑term pullbacks within the larger trend.

The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and magnitude of price changes on a scale of 0 to 100. An RSI above 50 indicates upward momentum, below 50 indicates downward momentum, while extreme readings (>70 or <30) can warn of overbought or oversold conditions. In a swing‑trading context, the RSI is used not to pick tops/bottoms but to confirm that the momentum aligns with the direction of the trade.

The tweet that the specific tickers mentioned—TSLA, AAPL, META, MIRM, HIMS—are chosen because they exhibit sufficient liquidity, volatility, and clear trend behavior on the 4H chart, making them ideal candidates for demonstrating the strategy.

Core Concepts

Swing Trading

Swing trading aims to profit from price “swings” that occur as an asset moves between support and resistance levels over a period of several days to weeks. Unlike day traders who close all positions before the market close, swing traders hold overnight and are exposed to gap risk, which they manage with wider stop‑losses and position sizing. The goal is to capture a meaningful portion of a trend move rather than trying to pick the exact top or bottom. Successful swing trading requires a clear trend definition, a rule‑based entry method, and a disciplined exit plan.

4‑Hour (4H) Timeframe

The 4H chart aggregates price action into four‑hour candles, each representing the open, high, low, and close of that interval. This timeframe reduces the impact of random tick‑by‑tick fluctuations while still reflecting intraday sentiment shifts. On a 4H chart, a typical trading day yields six candles, providing enough data points for reliable indicator calculations without overwhelming the trader with signals. Many swing traders use the 4H as their primary chart and reference higher timeframes (daily, weekly) only for trend confirmation or macro‑context.

200‑Period Exponential Moving Average (200‑EMA)

The 200‑EMA calculates the average price of the last 200 periods, giving exponentially greater weight to the most recent prices. On a 4H chart, the 200‑EMA roughly corresponds to a 33‑day simple moving average (200 × 4 hours = 800 hours ≈ 33 days). Traders treat the 200‑EMA as a dynamic trend line: when price resides above it, the market is considered to be in an uptrend; when price is below it, a downtrend is inferred. Because it incorporates a longer look‑back, the 200‑EMA is less prone to whipsaws and serves as a reliable filter for trade direction.

20‑Period Exponential Moving Average (20‑EMA)

The 20‑EMA reacts much faster than the 200‑EMA, reflecting the average price of the last 20 periods (approximately 3.3 days on a 4H chart). In a trending environment, price tends to respect the 20‑EMA as a dynamic support (in an uptrend) or resistance (in a downtrend). Traders use the 20‑EMA to identify pullbacks: after a strong move, price often retraces toward the 20‑EMA before resuming the trend. Entering near the 20‑EMA allows traders to capture a favorable risk‑to‑reward ratio while still staying aligned with the higher‑timeframe trend.

Relative Strength Index (RSI, 14‑Period)

The RSI(14) compares the magnitude of recent gains to recent losses over the last 14 periods, producing a value between 0 and 100. An RSI above 50 indicates that average gains outweigh average losses, signaling bullish momentum; an RSI below 50 signals bearish momentum. In swing trading, the RSI is not used to pick extreme overbought/oversold levels but to confirm that the momentum aligns with the direction suggested by the EMAs. For a long trade, traders look for RSI > 50 (often > 55 to avoid weak momentum); for a short trade, they look for RSI < 50 (often < 45).

Trend Identification (Uptrend/Downtrend)

The tweet states: “Uptrend: Price above.” The implied completion is “price above the 200‑EMA.” Therefore, an uptrend is defined when the most recent closing price (or the current price) sits above the 200‑EMA on the 4H chart. Conversely, a downtrend exists when price is below the 200‑EMA. This simple rule provides an objective, rules‑based filter that removes discretionary bias when deciding whether to look for long or short setups.

Ticker Selection (TSLA, AAPL, META, MIRM, HIMS)

The five symbols were likely chosen because they represent a mix of large‑cap technology stocks (TSLA, AAPL, META) and smaller‑cap, higher‑volatility names (MIRM, HIMS) that still possess adequate liquidity for swing trading. Large‑cap stocks tend to exhibit smoother trends and respect moving averages well, while the smaller caps can offer larger percentage moves within the same time horizon, providing attractive risk‑reward opportunities. By demonstrating the strategy across this spectrum, the trader can see how the same rules apply regardless of market capitalization or sector.

How It Works / Step‑by‑Step

  1. Determine the Higher‑Timeframe Trend

- Open the 4H chart of the chosen ticker.

- Add a 200‑EMA (exponential, length = 200).

- If the most recent candle’s close is above the 200‑EMA, mark the bias as bullish; if below, mark it as bearish.

- Only proceed with trades that align with this bias (longs in bullish bias, shorts in bearish bias).

  1. Wait for a Pullback to the 20‑EMA

- Add a 20‑EMA (exponential, length = 20).

- In a bullish bias, watch for the price to retreat toward or slightly touch the 20‑EMA after a rally.

- In a bearish bias, watch for a bounce up to the 20‑EMA after a decline.

- The pullback should not break the 200‑EMA; if it does, the trend may be weakening and the setup is invalid.

  1. Confirm Momentum with RSI(14)

- Add an RSI with length = 14.

- For a long setup (bullish bias), require the RSI to be above 50 (preferably > 55) at the moment price touches or crosses the 20‑EMA from below.

- For a short setup (bearish bias), require the RSI to be below 50 (preferably < 45) when price touches or crosses the 20‑EMA from above.

- This step ensures that the pullback is occurring with sufficient momentum in the direction of the trend, reducing the chance of entering a false reversal.

  1. Enter the Trade

- Long entry: Place a buy stop order a few ticks above the high of the candle that closed above the 20‑EMA with RSI confirmation.

- Short entry: Place a sell stop order a few ticks below the low of the candle that closed below the 20‑EMA with RSI confirmation.

- Using a stop order helps avoid entering too early if the price briefly overshoots the 20‑EMA before reversing.

  1. Define Risk Management

- Stop‑loss: Place the initial stop‑loss just beyond the recent swing point that contradicts the trade. For longs, set the stop a few ticks below the low of the pullback candle (or below the 200‑EMA if you want a tighter stop). For shorts, set the stop a few ticks above the high of the pullback candle (or above the 200‑EMA).

- Position size: Calculate the dollar amount you are willing to risk (e.g., 1 % of account equity) and divide that by the stop‑loss distance in dollars to obtain the number of shares/contracts.

  1. Manage the Trade

- Trailing stop: As price moves in your favor, consider trailing the stop‑loss beneath the 20‑EMA (for longs) or above the 20‑EMA (for shorts) to lock in profits while giving the trade room to breathe.

- Profit target: Many swing traders use a fixed risk‑reward ratio (e.g., 1:2 or 1:3). Measure the distance from entry to initial stop‑loss, then multiply by the desired ratio to set the profit target. Alternatively, you can exit when price shows signs of exhaustion (e.g., RSI diverges, price fails to make a new high/low, or a candlestick reversal pattern appears).

  1. Review and Journal

- After the trade closes, record the setup, entry, exit, rationale, and outcome in a trading journal.

- Review regularly to identify patterns of success or failure and refine parameters (e.g., adjusting RSI thresholds or EMA lengths) if needed.

Code Example (Python/pandas)

Below is a minimal script that scans a list of tickers for the described setup on the 4H timeframe using historical data from Yahoo Finance.

import yfinance as yf
import pandas as pd

def compute_indicators(df):
    # 200 EMA
    df['ema200'] = df['Close'].ewm(span=200, adjust=False).mean()
    # 20 EMA
    df['ema20'] = df['Close'].ewm(span=20, adjust=False).mean()
    # RSI 14
    delta = df['Close'].diff()
    up = delta.clip(lower=0)
    down = -delta.clip(upper=0)
    ma_up = up.ewm(span=14, adjust=False).mean()
    ma_down = down.ewm(span=14, adjust=False).mean()
    rs = ma_up / ma_down
    df['rsi'] = 100 - (100 / (1 + rs))
    return df

def check_setup(df):
    # Ensure we have enough data
    if len(df) < 200:
        return False
    last = df.iloc[-1]
    prev = df.iloc[-2]
    # Trend filter: price above/below 200 EMA
    bullish = last['Close'] > last['ema200']
    bearish = last['Close'] < last['ema200']
    # Pullback to 20 EMA (price crossed the EMA in the direction of trend)
    pullback_long = (prev['Close'] < prev['ema20']) and (last['Close'] >= last['ema20'])
    pullback_short = (prev['Close'] > prev['ema20']) and (last['Close'] <= last['ema20'])
    # Momentum confirmation
    rsi_long = last['rsi'] > 55
    rsi_short = last['rsi'] < 45
    # Return True if any valid setup found
    return (bullish and pullback_long and rsi_long) or (bearish and pullback_short and rsi_short)

tickers = ['TSLA', 'AAPL', 'META', 'MIRM', 'HIMS']
for ticker in tickers:
    data = yf.download(ticker, interval='4h', period='60d')  # ~60 days of 4H candles
    data = compute_indicators(data)
    if check_setup(data):
        print(f"{ticker}: Swing setup detected on 4H chart")
    else:
        print(f"{ticker}: No setup")

The script fetches 4H candles, calculates the two EMAs and RSI, then checks for the exact logic described: price relative to 200‑EMA for trend, a crossover of the 20‑EMA for pullback, and an RSI threshold for momentum confirmation.

Real‑World Examples & Use Cases

Example 1: Tesla (TSLA) – Bullish Swing

On March 10 2024, TSLA’s 4H chart showed the price trading above the 200‑EMA (≈ $180), confirming a bullish bias. Over the next two sessions, the price rallied to $195 then pulled back to the 20‑EMA (~$188). At the pullback candle, the RSI(14) read 58, above the 55 threshold. A long stop‑order was placed just above the high of that pullback candle ($189.5). The stop‑loss was set below the low of the pullback candle at $184, risking $5.5 per share. The price subsequently resumed its upward move, reaching $210 within five days, hitting a 1:3.8 risk‑reward ratio before the trader trailed the stop‑loss to breakeven and eventually exited near $205 on signs of RSI divergence.

Example 2: Apple (AAPL) – Bearish Swing

In early May 2024, AAPL’s 4H chart displayed price consistently below the 200‑EMA (~$170), establishing a bearish bias. After a short‑term rally, the price fell to test the 20‑EMA (~$165). The RSI at that point was 42, below the 45 short‑side threshold. A sell stop‑order was placed just beneath the low of the pullback candle ($164.2). The stop‑loss was placed above the high of the pullback candle at $169, risking $4.8 per share. Over the following three days, AAPL declined to $152, achieving a 1:3.5 risk‑reward before the trader exited on a bullish engulfing candle that suggested a potential reversal.

Example 3: MIRM (Mirum Pharmaceuticals) – Volatile Swing

MIRM, a smaller‑cap biotech, often exhibits sharp moves. On June 20 2024, the 4H chart showed price above the 200‑EMA ($22). A rapid spike to $28 was followed by a pullback to the 20‑EMA ($24.5) with an RSI reading of 52. Although the RSI was just above 50, the trader required >55 and thus waited. Two candles later, the price retested the 20‑EMA ($24.8) with RSI at 57, satisfying the conditions. A long entry was placed at $25.0 with a stop‑loss at $23.5 ($1.5 risk). The stock then climbed to $32 over the next week, yielding a 1:4.7 reward‑to‑risk before the trader exited on a bearish RSI divergence.

These examples illustrate how the same rule‑based framework can be applied across vastly different securities, from mega‑cap tech to volatile biotech, while maintaining consistent risk parameters.

Key Insights & Takeaways

  • The 200‑EMA on a 4H chart provides an objective, rules‑based filter for determining the prevailing trend direction; only trade in the direction of this filter.
  • Pullbacks to the 20‑EMA offer high‑probability entry points because they represent temporary counter‑trend moves within a larger trend, allowing traders to buy low (or sell high) in the direction of the trend.
  • The RSI(14) should be used as a momentum confirmation tool, not as an overbought/oversold oscillator; require RSI > 55 for longs and < 45 for shorts to ensure sufficient momentum accompanies the pullback.
  • Always define a static stop‑loss based on the most recent swing point that invalidates the setup (e.g., below the pullback low for longs) to keep risk predetermined and consistent.
  • Use a fixed risk‑reward ratio (commonly 1:2 or higher) or trail the stop‑loss beneath the 20‑EMA (for longs) / above the 20‑EMA (for shorts) to let winners run while protecting gains.
  • The strategy works across liquid equities of varying market capitalization; the same parameters (200‑EMA, 20‑EMA, RSI 14) can be applied to TSLA, AAPL, META, MIRM, and HIMS without modification.
  • Journaling each trade—recording the exact candle timestamps, indicator values, entry/exit prices, and rationale—is essential for statistical feedback and continuous improvement.
  • Avoid entering trades when the price breaks through the 200‑EMA during the pullback, as this signals a potential trend reversal that invalidates the bias assumption.
  • In low‑volatility environments, the 20‑EMA may be too tight, causing frequent false signals; consider widening the pullback zone (e.g., price within 0.5 % of the 20‑EMA) or requiring a stronger RSI reading.
  • The strategy is best suited for markets with clear trending behavior; during choppy, range‑bound periods, the win rate may decline, and traders should consider reducing position size or staying aside.

Common Pitfalls / What to Watch Out For

  • Ignoring the 200‑EMA filter: Taking a long when price is below the 200‑EMA (or a short when above) dramatically reduces the probability of success because you are trading against the higher‑timeframe trend.
  • Entering too early on the pullback: Jumping in before the price actually touches or crosses the 20‑EMA can result in being stopped out by normal market noise; wait for the candle to close beyond the EMA (or use a stop order as described).
  • Using RSI as a reversal signal: Treating RSI > 70 as an automatic sell signal or < 30 as a buy signal contradicts the trend‑following nature of the system and leads to premature exits or counter‑trend entries.
  • Setting stop‑loss too tight: Placing the stop‑loss inside the normal volatility of the pullback (e.g., within the candle’s range) often results in being stopped out before the trend resumes. Use the swing point beyond the pullback candle or a multiple of the ATR (Average True Range) for a more realistic stop.
  • Overtrading during consolidation: When price oscillates around the 200‑EMA with frequent 20‑EMA touches, the system may generate many signals; apply a volatility filter (e.g., require ATR > X) or simply abstain until a clear trend emerges.
  • Neglecting position sizing: Risking too much capital on a single trade can quickly erode the account, especially when a string of losses occurs; always calculate position size based on a fixed percentage of equity (commonly 1 %–2 %).
  • Failing to adjust for different instruments: While the core parameters remain the same, the absolute price levels differ; ensure that stop‑loss and profit‑target calculations are performed in price terms, not just indicator levels.
  • Overreliance on a single timeframe: Although the 4H chart is the primary execution tool, ignoring higher timeframe context (daily/weekly trend) can lead to trading against a stronger opposing force; consider a higher‑timeframe trend filter as an additional confirmation layer.
  • Emotional deviation from the plan: After a winning streak, traders may increase risk or deviate from entry rules; strict adherence to the predefined plan is critical for long‑term consistency.

Review Questions

  1. Trend Filter Application:

Explain why the 200‑EMA on a 4H chart is used as the primary trend filter in this strategy, and describe what it means for price to be “above” versus “below” this moving average in practical trading terms.

  1. Entry Logic Synthesis:

Detail the three‑step sequence (trend filter → pullback to 20‑EMA → RSI confirmation) that must all be satisfied before entering a long trade. Include the exact conditions for each step and the type of order recommended to execute the entry.

  1. Scenario Analysis:

Suppose you are analyzing the 4H chart of Meta (META) and observe that the price is currently below the 200‑EMA, the recent candle has just crossed above the 20‑EMA, and the RSI(14) reads 58. According to the rules presented, should you consider a long, a short, or no trade? Justify your answer with reference to each component of the strategy.

Further Learning

  • Advanced Trend Filters: Explore adding a higher‑timeframe (daily or weekly) 200‑EMA or moving average crossover to strengthen the bias filter and reduce false signals during choppy markets.
  • Volatility‑Based Position Sizing: Study the Average True Range (ATR) indicator to dynamically adjust stop‑loss distances and position sizes according to each instrument’s volatility profile.
  • Price Action Confirmation: Learn candlestick patterns (e.g., bullish/bearish engulfing, pin bars, inside bars) that can be used alongside the EMA/RSI setup to increase entry precision.
  • **
← Previous
Next →