Build Your Own Trading Bot

Step-by-Step Guide to Adding the Harami Technical Indicator to Your Stock Trading Bot with Python, Alpaca Markets and TA Lib

James Hinton
5 min readMar 18, 2024
TradeOxy Trading Bot image.

The Harami technical indicator is used by traders to indicate trend reversal patterns in the market. It is a powerful addition to your Python Trading Bot as it is often used in combination with other technical indicators.

As a candlestick chart pattern, it can be used in any of the capital markets you wish to trade, including crypto, forex, and in this case US Stocks.

In this article, I’ll show you how to add the Harami pattern to your auto trading bot.

About This Episode

In this article, you’ll learn how to add the Harami Candlestick Pattern to your trading bot. Although this article is specifically targeted at the US Stock market, using Alpaca Markets, you can use this indicator in any capital market you desire.

What You’ll Need to Complete this Episode

  • 15 minutes of your time. This includes adding the code, updating your trading bot, then testing it.
  • Python Dev Environment. I’ll be using the dev environment I demonstrated in the article “Build Your Own Trading Bot Development

--

--

James Hinton

Passionate algorithmic trader and Cyber Security expert. Love developing helpful content.