Adrian Rosebrock's Avatar

Adrian Rosebrock

@pythonfintech.com.bsky.social

PhD in Computer Science by day, Python-powered amateur hedge fund operator by night. Send help. https://pythonfintech.com/

77 Followers  |  18 Following  |  42 Posts  |  Joined: 23.01.2025  |  1.5373

Latest posts by pythonfintech.com on Bluesky

Post image

πŸ˜†πŸ˜†πŸ˜†

21.05.2025 13:24 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Implementing TradingView's Stochastic RSI indicator in Python Learn how to implement TradingView’s Stochastic RSI in Python to spot momentum shifts, reversals, and overbought/oversold signals.

Implementing TradingView's Stochastic RSI indicator in Python

The implementation I cover here tries to mimic the output you see in TradingView (as much as possible).

πŸ‘‰ pythonfintech.com/articles/tra...

#Python #DataScience #Quant #AlgoTrading #Finance

12.05.2025 16:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Market stage detection with Python and Pandas Learn how to implement Stan Weinstein's stage detector in Python

Market stage detection with Python and Pandas

πŸ‘‰ pythonfintech.com/articles/mar...

#Python #DataScience #Quant #AlgoTrading #Finance

05.05.2025 17:58 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

PythonFinTech – April 2025 Recap

βœ… +3.8% YTD (vs. S&P -4.86%)
πŸ›‘οΈ Max Drawdown: -4.3%
βš–οΈ Sharpe 1.18 | Sortino 1.91 | Calmar 1.92
πŸŒ€ Volatility: 10.25% vs. 29.86%
πŸ“‰ RΒ² = 0.15

Staying patient and tactical.

#FinTech #Quant #Finance #AlgoTrading #PortfolioManagement

02.05.2025 15:00 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

Just put together a visualization of each sector's relative performance against the S&P 500 over the past 5 years.

As a trader, keeping an eye on sector rotation can help you spot market shifts and trends before the rest of the market.

#Python #DataScience #Quant #AlgoTrading #Finance

01.05.2025 15:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Preview
Computing slope of series with Pandas and SciPy Learn how to compute the slope of a Pandas Series using SciPy for fintech trend analysis and trading insights. Includes code, charts, and real examples.

Computing slope of series with Pandas and SciPy

Here's another little tutorial I put together.

Hope you enjoy it ✌️

pythonfintech.com/articles/com...

#Python #DataScience #Pandas

28.04.2025 13:29 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Sharing my risk-adjusted returns YTD. Here are the takeaways:

πŸ“ˆ Outperforming S&P 500 by ~11%
🧠 Low drawdown
βš–οΈ High risk-adjusted return
πŸ” Very little correlation to S&P 500 (strategy is hunting idiosyncratic alpha, not riding the market beta wave)

#FinTech #Quant #AlgoTrading #Finance

24.04.2025 14:19 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Finding groups of consecutive integers in an array with Python Learn how to detect groups of consecutive integers in arrays using Python and NumPy

Sharing a simple helper method of mine to compute groups of consecutive integers in an array with Python.

pythonfintech.com/articles/con...

#Python #Programming

21.04.2025 13:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

If you think I'm not for real or a shyster just unfollow me. It's *genuinely* that simple.

14.04.2025 17:44 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Buddy, I'm offering all this for free. This is my *hobby*, not my *job* β€” I'm under no obligation to you. It's a fun, "build in public" hedge fund or sorts. It's for fun. Period. I made enough money off my last business, I don't *need*, by any means, to sell anything.

14.04.2025 17:44 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Here's the full article on my March/early-April fund performance:

pythonfintech.com/articles/cas...

(All metrics as of 8 April 2025, the day I drafted this article)

#fintech #quant #finance #algotrading #markets

14.04.2025 13:32 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

And, again, I'm not charging you anything to follow along, nor selling you anything. If you don't currently trust me, no worries. I get it. Perhaps in the future.

14.04.2025 13:21 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

But I can't give an exact date, because, as you know, the markets are chaos right now and learning how to trade and make this thing profitable for *myself* is my first priority. Education and dissemination is my second priority. I only have so much time in the day.

14.04.2025 13:20 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Hey Michael thanks for following up. This is still very much a WIP. I'm not selling anything to you, so there's literally no risk to you unless you choose to invest your money (which I wouldn't recommend anyway).

I hope to have something more verifiable up and running in the next 1-3 months.

14.04.2025 13:19 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

This is my first year, actually!

09.04.2025 20:16 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

How it's going... πŸ“ˆ

β€’ S&P 500: -15.27% πŸ“‰
β€’ My Portfolio: +5.69% πŸ“ˆ
β€’ Edge: +20.69% πŸš€

#fintech #quant #finance #algotrading #markets

09.04.2025 00:16 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 1
Preview
Computing Simple Moving Averages (SMAs) for trading with Python and Pandas Learn how to compute and visualize Simple Moving Averages (SMAs) using Python and Pandas to analyze price trends, spot signals, and improve trading decisions.

πŸ”₯ New tutorial: Computing SMAs for trading with Python
Learn to:

- Calculate SMAs across multiple timeframes
- Visualize MAs with candlestick charts
- Identify golden/death crosses
- Apply to any ticker with clean code

πŸ‘‰ pythonfintech.com/articles/com...

#Python #Trading #AlgoTrading

07.04.2025 17:35 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Plotting stock charts (OHLC) with matplotlib and mplfinance Learn how to plot stock candlestick charts using Python with matplotlib and mplfinance for clearer market analysis and trading insights.

Plotting stock charts (OHLC) with matplotlib and mplfinance πŸ“ˆ

- Creating proper candlestick charts
- The anatomy of a candlestick
- Adding volume data for deeper market insights
- Focusing analysis on recent price movements

pythonfintech.com/articles/plo...

#Python #Trading #Quant #AlgoTrading

31.03.2025 17:38 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Rethinking yfinance's default MultiIndex format Learn how to reshape yfinance's default DataFrame with a row-based MultiIndex for easier and cleaner analysis.

yfinance's default MultiIndex is a nightmare for multiple stocks

2 tickers = 10 columns
100 tickers = 500 columns πŸ™„

I prefer a row-based index
- Always 5 columns (OHLCV)
- Easier indicator calculations
- Debuggable without eyestrain

pythonfintech.com/articles/ret...

#Python #DataScience #Trading

26.03.2025 15:10 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Thank you for the feedback, Michael.

In general, yes, I'd like to start publishing trades as they happen. Typically I author articles explaining them and/or do a post-mortem but obviously that can't be done in real-time.

I'll look into services to help with the transparency.

22.03.2025 18:30 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
How to download market data with yfinance and Python Learn how to download market data using Python and the yfinance API. This step-by-step guide covers fetching stock data, handling MultiIndex DataFrames, and visualizing trends.

After 3 years of silence, I'm writing code tutorials again!! πŸŽ‰

Just published my first tutorial since selling PyImageSearchβ€”now it's Python for trading.

Learn how to download market data with yfinance:

pythonfintech.com/articles/how...

#Python #FinTech #Trading #Quant #FinTech

19.03.2025 13:09 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Beat the S&P 500 for the second month in a row! πŸ“ˆ

β€’ S&P 500: -1.35% πŸ“‰
β€’ My Portfolio: +1.53% πŸ“ˆ
β€’ Edge: +2.87% πŸš€

How? I went to cash when others bought the dip.

Sometimes the best trade is no trade at all.

Full breakdown: πŸ‘‡

pythonfintech.com/articles/feb...

#trading #fintech #quant #finance

05.03.2025 18:45 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Types of Trading: A Beginner's Guide to Trading Strategies Discover the different types of trading strategies, from day trading to swing trading and investing. Find the approach that suits your personality and financial goals.

Just published: "Beginner's Guide to Trading Strategies" πŸ“Š

From HFT (where humans need not apply) to Buffett-style investing, I break down which trading style matches different personalities.

My pick? Swing trading with Python automation

pythonfintech.com/articles/typ...

#quant #fintech #trading

27.02.2025 15:26 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

This one hit hard today.

#trading #market #quant #fintech

26.02.2025 23:02 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image Post image Post image

$RSI showing a textbook bullish setup:

- Hammer candle off 50-day MA
- Oversold Stochastics
- Higher volume on advances
- Clear path to $18
- 225% earnings beat average
- 800% earnings growth expected Wednesday

Already up 1.87R, looking to add to position

#fintech #algotrading #quant #trading

21.02.2025 07:42 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
The problem with buying the dip (don't try to catch a falling knife) I went against my trading plan and was stopped out of a trade. Let this article serve as a lesson in 'Don't catch falling knives.'

You know that moment when you’re absolutely certain you’re about to do something stupid, but you do it anyway? 🀦

Yeah, this is one of those stories.

Learn from my mistakes here:

πŸ‘‰ pythonfintech.com/articles/pro...

#fintech #algotrading #quant #trading #python

17.02.2025 03:48 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Updated my YTD trading metrics this morning:

- Starting Balance: $25,000
- Current Balance: $25,928.09
- % Change: 3.71%
- # of Trades: 2
- Win %: 50%
- Average Gain: 17.38%
- Average Loss: -2.94%
- Win/Loss Ratio: 5.9

#fintech #algotrading #quant #trading #python

14.02.2025 02:14 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Wait. You left the house with the oven on?!

14.02.2025 00:48 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

"Hey ChatGPT, generate an image of a mid-life crisis but replace the Porsche with a TradingView account and add some houseplants for emotional support."

#fintech #algotrading #quant #trading #python

13.02.2025 10:11 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
January 2025: Portfolio up 3.37% (even while trading from Taiwan) My portfolio is up 3.37% YTD, outperforming the S&P 500 (even while trading from Taiwan). Here’s how I navigated market volatility and opened key trades including CLS, TT, and RSI.

Beat the S&P 500 in January πŸ“ˆπŸš€

The numbers (YTD):

- PythonFinTech: +3.37%
- S&P 500: +2.94%
- Outperformance: 0.43%

Full breakdown of my trades (including what worked and what definitely didn't) here:

πŸ‘‰ pythonfintech.com/articles/jan...

#fintech #algotrading #quant #trading #python

07.02.2025 15:28 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@pythonfintech.com is following 18 prominent accounts