C_MornDoji_EveDoji (Function)
The C_MornDoji_EveDoji function identifies occurrences of two Japanese candlestick patterns; Morning Doji Star and Evening Doji Star.
A Morning Doji Star is defined as:
-
A three candlestick pattern; the first is a long red candlestick; followed by a Doji candlestick that gaps lower to form the star; the third is a green candlestick that closes well into the first candlestick's real body
-
The first candlestick's body must be larger than the average body
An Evening Doji Star is defined as:
-
A three candlestick pattern; the first is a long green candlestick; followed by a Doji candlestick that gaps higher to form the star; the third is a red candlestick that closes well into the first candlestick's real body
-
The first candlestick's body must be larger than the average body
Syntax
C_MornDoji_EveDoji(Length, Percent, oMorningDojiStar, oEveningDojiStar)
Returns (Integer)
Each pattern is represented by an output parameter (oMorningDojiStar or oEveningDojiStar) that returns a positive one (1) when the matching candlestick pattern is found on the current bar or returns a zero (0) if the pattern is not found. The C_MornDoji_EveDoji function itself returns a value of 1.
Parameters
Name |
Type |
Description |
Length |
NumericSimple |
Length used to calculate the average body size. |
Percent |
NumericSimple |
Doji threshold for the (open - close) as a percent of the range of the bar. |
oMorningDojiStar |
NumericRef |
Output variable returns a 1 if the Morning Doji Star candlestick pattern exists on the current bar, or 0 if the pattern does not exist. |
oEveningDojiStar |
NumericRef |
Returns a 1 if the Evening Doji Star candlestick pattern exists on the current bar, or 0 if the pattern does not exist. |
Example
See the EasyLanguage code for the built-in ShowMe study "C_MornDoji_EveDoji".