We automate a technical method of identifying uptrends and downtrends using python. We smooth out the price data using the Savitzky-Golay filter, and then label the highs and lows. When we detect higher highs and higher lows, that indicates an uptrend. This method is suitable for all tradeable assets for which we can produce OHLC candles.
⭐ Code:
github.com/ChadThackray/price-trends-2023/tree/mai…
Timestamps:
00:00 - Introduction
01:13 - Data Processing
03:16 - Basic Price Plotting with Matplotlib
04:17 - Smoothing the Price data
06:20 - Detecting highs and lows
09:57 - Detecting uptrends and downtrends
15:26 - Animating our trend detection algorithm
コメント