
Learn to backtest stock trading strategies on a from-scratch platform, modify four strategies to test ideas, analyze backtest results, and visualize important metrics.
Backtesting with python demands realistic expectations; profitable strategies are rare, and sensational equity curves can mislead. Learn the data, strategy development, and results analysis to start in algorithmic trading.
Installation of Anaconda and Jupyter notebook
Explore free financial data with pandas datareader, pull Apple stock prices from 2019 to 2020, and visualize adjusted close using matplotlib.
Learn how to source free historical data from Dukascopy for forex, commodities, indices, bonds, and stocks, set hourly timeframes, and import into a notebook to backtest strategies.
Explore backtesting forex strategies with python using fxcm data, performing Fernbach test, and loading candle data via the rest api wrapper with token management for period-based testing.
Compare price data from brokers in the forex market not centralized to reveal divergences that mislead backtesting. Build a data comparison tool to test strategies on the same data.
Algorithmic trading uses automated systems to execute trades with predefined rules, highlighting backtesting on platforms and languages, and outlining strategies like mean reverting, trending, and high frequency.
Develop and backtest trading strategies by selecting type and timeframe, defining entry and exit rules, managing positions, and evaluating accuracy, ROI, and drawdown to avoid overfitting.
Explore how technical analysis uses price and volume to forecast market moves, identify trends, and apply indicators like moving averages, market profile, golden profile, and trailing stop loss.
Learn how the average true range measures volatility by calculating true range from today's high and low and yesterday's close, then smoothing with a moving average.
Learn to build trading systems with clear rules for entry, exit, and position sizing, and backtest them on extensive intraday data to ensure reliability and avoid look-ahead bias.
Explore moving averages as smoothing tools for price data, compare simple and exponential types, note their lag, and learn crossover strategies using fast and slow averages.
Implement moving average crossovers in Python by computing simple and exponential moving averages (50, 100, 200 days), visualize price data, and identify crossovers for backtesting.
Master a simple moving average crossover strategy for backtesting with python, using fast and slow moving averages crossing from below, with filters and money management to improve performance.
Develop a Python backtesting workflow by preparing currency data in a Jupyter notebook, cleaning date-time fields, and organizing data for a simple moving average crossover strategy.
Build indicators and dataframes for backtesting trading strategies in Python by defining moving average and range functions, then populate dataframes with parameters like account size and position size.
Develop and backtest a Python-based strategy entry logic by building data frames with indicators, data, and strategic parameters, and manage open trades per currency pair with a dictionary.
Store each new trait in a dictionary and build a trade dictionary for the entire strategy to test entry logic, take-profit, and stop-loss settings.
Develop data collection for exits by implementing stop loss and take profit logic, using dictionaries to track long and short trades and exit price signals.
Learn take profit and stop loss logic for exiting long and short positions in a Python backtest, including target calculation, result updates, and accounting for spread.
Backtest trading strategies with Python by implementing take profit and stop loss logic, exiting long and short trades, updating results, and reporting trade outcomes.
Implement a time exit in backtesting by closing trades after a chosen number of hours, using iteration counts to measure duration and adapt to data frequency.
Create per-pair data frames and dictionaries for profits, losses, and break-evens, then build a trade frame with price signals, take profit, and stop loss, computing cumulative results for full strategy.
import and apply functions to process and merge strategy results, sort by date and time, create columns for profits, losses, and break-evens with cumulative sum, and flatten dictionaries for backtesting.
Visualize backtested results by plotting a line for each asset, adding legends and labels, and displaying returns, noting that the strategy is not profitable but clarifies the concept.
Explore the relative strength index (RSI), an oscillator signaling overbought and oversold from 0 to 100. Learn RSI calculation using average gain, loss, and exponential moving averages to spot pullbacks.
Implement the RSI indicator in python for backtesting by computing gains and losses, deriving relative strength from 14-day averages, and plotting RSI beneath price with threshold lines.
Learn a mean-reversion strategy using RSI with 80 and 20 thresholds to enter and exit as prices revert to the mean, and test it in a backtesting framework.
Backtest and refine a mean reverting strategy with RSA confirmation, using the first strategy as a template, RSI indicators, and comprehensive performance metrics like win rate and return on investment.
Compare multiple trading strategies across settings using key statistics such as compound annual growth rate, Sharpe ratio, and maximum drawdown to assess performance over changing markets during backtesting.
Explain a third strategy using candlestick patterns, focusing on the inside bar as a continuation signal in trending markets, with indecision in ranges and entries after breaks.
Develop and backtest a third trading strategy using simple moving averages, inside bar signals, and updated parameters; compare profit, win rate, and risk with stop loss and take profit adjustments.
Compute strategy statistics with python by building functions for sharpe ratio and maximum drawdown, and evaluate cagr, volatility, and risk-adjusted performance on backtested results.
Explains a momentum continuation trading strategy with entries triggered by unusually long bars; leverages the expectation that strong moves tend to continue, with a one-to-three risk-reward example.
Develop and test a Python backtesting strategy by adding functions for average bar size, candle size, and small wick detection, plus green and red bar rules.
Apply strategy 4.2 backtest by checking if current or previous bar size is four times the average and confirm price movement direction, then optimize take profit and stop loss.
Learn to extend a python-based backtesting platform to evaluate performance for each currency pair, computing trades, profits, losses, breakevens, win percentage, and return on investment.
Backtest strategy five with different exit logic in Python, introducing training stop-loss and break-even trailing stops, adjust take-profit targets, and compare ROI across currency pairs.
Explore Bollinger bands, built from a center simple moving average and two standard deviation lines, and use lower and upper bands as basic buy and sell signals amid volatility.
Implement a Bollinger bands indicator in Python using a 14-day simple moving average and rolling standard deviation, then plot upper and lower bands at two standard deviations.
Apply Bollinger bands with fast and slow simple moving averages to signal entries after retracements to the mean line, entering long from the lower band and short from the upper.
Backtest strategy six in Python using Bollinger bands and simple moving averages to define filters and entry rules based on closing price and the mean.
Unlock the power of backtesting for Forex and Stock trading strategies in this comprehensive course! Whether you’re new to trading or looking to sharpen your skills, this course will guide you step-by-step through the process of building a strategy backtesting platform from scratch. You’ll learn how to customize it for different strategies, allowing you to test and refine both your own trading ideas and those developed by others. This hands-on approach ensures you can identify which strategies hold real value before committing to them in live markets, ultimately saving you time and reducing risk.
Throughout the course, you’ll gain essential skills in analyzing backtest results, helping you understand how to interpret the data and uncover meaningful insights. You’ll also learn how to visualize key performance metrics, making it easier to identify the strengths and weaknesses of your strategies. This knowledge will empower you to make informed decisions and optimize your trading approaches for better outcomes.
And the learning doesn’t stop there! I’ll be continuously updating the course with new strategies, more advanced backtesting methods, and improved techniques for implementing and testing your ideas. By enrolling in this course, you’re investing in your long-term success as a trader, equipped with the tools and knowledge to enhance your trading performance in both Forex and Stock markets.