Backtesting Scot1and’s Slingshot Trading Strategy in Python

638 views Dec 11, 2024

We backtest @scot1andT's slingshot strategy that helped him generate multiple triple-digit annual returns. Learn how to #backtest using #python and #pandas. We cover importing the applicable python libraries, web scrap the Nasdaq current constituents, resample minute bars into hourly and daily bars while correcting timezone issues, and then analyze the results by creating a DataFrame and determining the strategy edge. 👍 Subscribe for more: https://bit.ly/3lLybeP 👉 Follow along: https://analyzingalpha.com/slingshot-trading-strategy 00:00 Introduction 00:52 Update Python Path 01:32 Slingshot Setup Overview 02:47 Get Imports 03:17 Set Backtest Timeframe 03:47 Create Universe 04:07 Web Scrape QQQ from Invesco 06:10 Get Bar Data 07:42 Analyze Timeseries Timezone 09:10 Add Timezone 10:47 Create Indicators 12:27 Resample Timeframes 13:27 Create Hourly Bars Using pd.Grouper


View Video Transcript
#Brokerages & Day Trading
#Investing
#Scripting Languages