PyQuant News 🐍 Profile picture
Jun 15 13 tweets 4 min read Read on X
9 trading strategies everyone should know (with Python code):
Bollinger Bands Pattern Recognition

The mid band is the moving average on the price series.

The upper and lower bands are two moving standard deviations away from the mid band. Image
MACD oscillator

MACD refers to Moving Average Convergence/Divergence.

MACD is a momentum trading strategy.

It assumes momentum has more impact on short-term moving average than long-term moving average. Image
Pairs Trading

Pairs trading is a basic form of statistical arbitrage.

It assumes that two cointegrated stocks do not drift too far away from each other.

When they do, it generates the trading signal. Image
Heikin-Ashi Candlestick

Heikin-Ashi refers to 'Average Bar' in Japanese.

It's an alternative style of candlestick chart.

The rules of Heiki-Ashi are designed to filter out the noise for momentum trading. Image
London Breakout

It’s an information arbitrage strategy across different markets in different time zones.

As FX markets are decentralized, you can take a peek at the activity in a closed foreign FX market before the opening of the domestic FX market. Image
Awesome Oscillator

Awesome oscillator is an upgraded version of the MACD oscillator.

Instead of taking a moving average on the close price, it uses the mean of high and low.

It uses short-term and long-term moving averages to construct the oscillator. Image
Dual Thrust

Dual thrust is an opening range breakout strategy.

We establish upper and lower thresholds based on previous day's open, close, high and low.

When the market opens and the price exceeds the thresholds, take positions before the thresholds. Image
Parabolic SAR

Parabolic SAR identifies the stop and reversal of a trend.

It's used to identify resistance to the price momentum.

Orders are executed when the SAR and price curves cross over. Image
Relative Strength Index Pattern Recognition

RSI reflects the current strength/weakness of the stock price momentum.

When RSI above 70 is overbought and RSI below 30 is oversold. Image
And if that isn't enough, there's 8 more strategies here:



And if THAT isn't enough, there's one more thing for you:github.com/je-suis-tm/qua…
That's a wrap!

If you enjoyed this thread:

1. Follow me @pyquantnews for more of these
2. RT the tweet below to share this thread with your audience
Looking to start using Python for systematic trading?

Here's a free Crash Course with everything you need to get started.

Join the 1,000s of people who finally started with Python after reading it:

pyquantnews.com/free-course

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with PyQuant News 🐍

PyQuant News 🐍 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @pyquantnews

Jun 19
OpenBB dropped the $0 cost financial AI agent workstation.

You can get 405 free data sources (and an AI Copilot).

Here's what you missed (in 90-seconds): OpenBB Terminal Pro
In case you're unfamiliar:

OpenBB is the first AI financial workstation that combines data with an AI agent to transform investment research.

• Private (your data is not shared)
• 100s of free data sources
• Custom data backends
• Advanced AI Copilot

How it works:
Set up a custom, local data server with 370 sources of free market data.

No coding required (just double click an icon):
Read 12 tweets
Jun 17
My master's degree completely failed to teach me how to test trading strategies.

So I spent 40 hours looking for Python backtesting libraries.

Then I started using the best ones.

But unlike my quant finance degree, these won't cost you $90,000.

Here they are for free. Poof
Zipline

From Quantopian (acquired by Robinhood) the first to democratize quant trading, comes Zipline. It's a robust, fully-featured backtesting library which features slippage models, robust data handing and rich metrics.

github.com/quantopian/zip…
backtrader

backtrader features live data and trading, filters and multiple data feeds at once.

github.com/mementum/backt…
Read 12 tweets
Jun 12
Jupyter Notebook is the most powerful tool for Python.

But most people don’t know the hidden features.

Need a quick web app?

Or create REST APIs?

Here are the 6 ways to use Jupyter Notebook you never knew existed: The notebook to rule them all.
Jupyter Notebook is a web app for creating and sharing computational documents.

When I say powerful, here's what I mean:

• It supports 40 languages
• Produces rich, interactive output
• Leverages big data tools like Spark

So, what else can we do with Jupyter Notebook?
Package Development

nbdev let's you develop and publish Python packages right from Jupyter Notebook.

It generates documentation and publishes on GitHub Pages. You can also write tests and setup CI with GitHub Actions.

github.com/fastai/nbdev
Read 10 tweets
Jun 8
I lost $9,000 "technical trading."

So I watched 200 YouTube videos to learn algorithmic trading.

96% of them were a complete waste of time.

But these 6 turned me from a loser into a winner:
Build a powerful AI finance agent with Python

Download options chains data with the IBKR API

Read 9 tweets
Jun 6
OpenAI, Google, and Anthropic just published guides on:

• Prompt engineering
• Building agents
• AI in business
• 601 AI use cases

9 of the best guides you can't miss: Image
1. AI in the Enterprise by OpenAI

Grab the PDF: cdn.openai.com/business-guide…
2. A practical guide to building agents by OpenAI

Download here: cdn.openai.com/business-guide…
Read 11 tweets
May 28
If you use it right, Twitter is the most powerful information platform in the world.

Unfortunately, most people get lost in the noise.

Here are 8 threads for Python and quant finance to get you started today (#4 is a game changer):
Level the playing field with the pros.
The 8 YouTube videos that will outperform your Ph.D. professors.
Read 12 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(