Home Free Scripts Technical Analysis - Doji Star
Technical Analysis - Doji Star E-mail

We received many emails from our readers asking for a script on how to scan for Doji.

(those who need more information about Doji, please take a look of our post earlier)

The script will download historical quotes from Yahoo Finance and then scan for Morning Doji Star and Evening Doji Star. Cells mark as ‘Red’ indicate Bearish, which means an Evening Doji Star found. Cells mark as ‘Green’ indicate Bullish, which means a Morning Doji Star found.

Since there are many types of Doji and the setups of each doji are different hence there is no one script that can scan for all types of Doji. You must understand clearly how the doji is being setup and create a script base on the criteria.

In this section, we are going to create a script that scan for Morning Doji Star (MDS) and Evening Doji Star (EDS).


Login or Register to download this Excel SpreadsheetRegister

Doji Star

Morning Doji Star is a major bottom reversal pattern on a Japanese Candlestick chart and the criteria for Morning Doji Star are:

- The first day is a downtrend with a long red real body.
- The second day open lower with a small trading range - A Doji.
- The third day is a green candlestick that closes above the midpoint of the first day's real body.

Morning Doji Star

Evening Doji Star is a major top reversal pattern on a Japanese Candlestick chart and the criteria for Evening Doji Star are:

- The first day is an uptrend with a long green body.
- The second day open higher with a small trading range - A Doji.
- The third day is a red candlestick that closes below the midpoint of the first day's real body.

Evening Doji Star

The script you have downloaded on this page are constructed based on the criteria above. We have as much as comments and remarks in the script to help you understand how it work and make it easy to modify the script.

The script will only scan for the most current MDS and EDS only, for more Doji scan result please visit our Doji Trader blog.