Member-only story

Coding Heatmap Opening Range Breakout Strategy in Python — Part 1

Amit Kumar Ghosh
5 min readAug 29, 2023

--

The Opening Range Breakout Strategy

Opening Range Breakout (ORB) is a commonly used trading system by professional and amateur traders alike and has the potential to deliver high accuracy if done with optimal usage of indicators, strict rules, and good assessment of overall market mood.

Prerequisite:

In this tutorial, We shall be seeing How you can code the “15 Mins Opening Range Breakout (ORB) Strategy using Python”. Also, We shall be applying this strategy to a selected range of stocks instead of all stocks. This variation of the ORB Strategy is called –

Heatmap ORB Strategy

Strategy

Any stock creates a range in the first x minutes (Here, We are taking 15 minutes) of trading in a day. This is called the Opening Range. The highs and lows of this timeframe are taken as support and resistance.

At 9:31, Check Top 5 Gainer and Loser.

  • Buy 5 stocks that are in top5 gainers if the range breaks with SL at the day’s low
  • Sell 5 stocks that are in top5 losers if the range breaks with SL at the day’s high

Algorithm Schema Design

--

--

Amit Kumar Ghosh
Amit Kumar Ghosh

Written by Amit Kumar Ghosh

Aloha, I’m Amit Ghosh, a web entrepreneur and avid blogger. Bitten by entrepreneurial bug, I got kicked out from college and ended up being millionaire!

No responses yet