C MornDoji EveDoji
Definition
The C_MornDoji_EveDoji indicator identifies the occurrence of two candlestick patterns: Morning Doji Star and Evening Doji Star, and marks the bars with these patterns. For more info about Doji pattern check here.
The Morning Doji Star pattern is composed of three candles:
1. long red candle (its body needs to be larger than the average body);
2. Doji candle that gaps lower and forms the star;
3. green candle that closes into the real body of the first candle.
Evening Doji Star is also composed of three candles:
1. long green candle (its body needs to be larger than the average body);
2. Doji candle that gaps lower and forms the star;
3. a red candle that closes into the real body of the first candle.
Default Inputs
Length sets the number of bars used to calculate the average body, 14 by default.
Percent sets the Doji boundaries for the (open - close) as a percent of the bar range, 5 by default.