Coding the “Doji” trading indicator in Python

Luiggi Trejo
2 min readDec 16, 2022
Python code for the Doji
Photo by Maxim Hopman on Unsplash

A Doji is a type of candlestick pattern that appears on a candlestick chart in technical analysis. It is characterized by a small body with the open and close prices being almost equal.

You may (or may not, my dear reader) already know that this way of charting prices was discovered and first used hundred of years ago by a Japanese rice trader, and -the story goes- he became the…

--

--