Udemyintermediateen

Advanced Topics in Algorithmic Trading: Part 1

Learn algorithmic trading strategies using technical indicators for optimal entry and exit points. Master timing for profitable automated trades.

334students
1h 6m
Daniel Savage
Daniel SavageTrade Financial Assets Algorithmically without Writing Code

Course Content

Advanced Topics in Algorithmic Trading: Part 1 is an intermediate-level Udemy course taught by Daniel Savage. It runs 1h 6m and is taught in English. 334 students have enrolled. It is free to enroll, first published March 2025.

Unlock the power of quantitative trading with this deep dive into essential technical indicators. Learn how to leverage moving averages, MACD, Z-score, and RSI to identify profitable trading opportunities. This course equips you with the knowledge to analyze market trends, pinpoint overbought and oversold conditions, and refine your trading strategies.

Understanding Moving Averages

Moving Averages (MA) are fundamental tools for smoothing out price data and identifying trends. A Simple Moving Average (SMA) calculates the average price over a specified period. The length of the look-back period significantly impacts the MA's responsiveness:

  • Longer Lookback: Creates smoother trends, but introduces lag.
  • Shorter Lookback: More closely follows price movements, but generates more noise.

The Exponential Moving Average (EMA) offers an alternative, giving more weight to recent prices. The decay factor (λ) controls this weighting:

  • Higher λ: Smoother EMA, but with potential lag.
  • Lower λ: More responsive to price changes, but can increase volatility.

Mastering MACD (Moving Average Convergence Divergence)

The MACD indicator reveals the relationship between two moving averages (a fast EMA and a slow EMA).

  • MACD Line: Calculated as the difference between the fast and slow EMAs.
  • Uptrend Signal: When the fast EMA crosses above the slow EMA.
  • Downtrend Signal: When the fast EMA crosses below the slow EMA.

The MACD Signal Line (a smoothed version of the MACD line) helps identify potential buy and sell signals through MACD divergence (the difference between the MACD line and the Signal line). Adjusting λ impacts the indicator's sensitivity:

  • Lower λ: Faster reaction to price changes, but potentially more false signals.

Utilizing the Price Z-Score for Valuation

The Price Z-Score quantifies how far the current price deviates from its historical average, helping you assess whether an asset is overvalued or undervalued.

  • Formula: Z = (Current Price - EMA Price) / Volatility
  • High Z-Score: Indicates potential overvaluation.
  • Low Z-Score: Suggests potential undervaluation.

Modifying λ affects the Z-Score's behavior:

  • Higher λ: Creates smoother, less volatile Z-Scores.
  • Lower λ: Allows the Z-Score to track price movements more closely, but can increase false signals.

Decoding the Relative Strength Index (RSI)

The Relative Strength Index (RSI) measures the magnitude of recent price changes to evaluate overbought or oversold conditions.

  • Formula: RSI = 100 - [100 / (1 + Average Gain / Average Loss)]
  • Overbought: RSI above 70 (potential sell signal).
  • Oversold: RSI below 30 (potential buy signal).

Adjusting λ in the RSI calculation allows for fine-tuning:

  • Higher λ: Smoother RSI movements, but delayed signals.
  • Lower λ: More sensitive to price changes, but increased noise.

Practical Trading Strategy Simulation

This course includes a practical demonstration of an RSI-based trading strategy:

  • Buy Signal: When RSI falls below a defined threshold (θ).
  • Sell Signal: When RSI exceeds 1 - θ.
  • Position Management: Maintain long or short positions based on RSI trends.

Sharpe Ratio Comparison: Analysis of the SPY ETF and the RSI strategy reveals:

  • SPY ETF Sharpe Ratio: 0.6
  • RSI Strategy Sharpe Ratio: 0.8 – indicating potentially better risk-adjusted returns.
  • Important Note: The RSI strategy's performance declined after 2017, highlighting the risk of overfitting and the need for rigorous backtesting on new data.

Conclusion: Technical Indicators for Informed Trading

Technical indicators like moving averages, MACD, Z-score, and RSI are powerful tools for trading analysis. However, effective use requires careful parameter tuning and a strong understanding of potential pitfalls like overfitting. Always test your strategies on new data to ensure consistent effectiveness and improve your risk-adjusted returns.

$ whoami — the devs behind tutorialsearch.io

Want AI in your product? Hire the team behind TutorialSearch.io

LLM features, RAG, agents and automation wired into a real product — built by the devs who shipped this site.