Doji is a candlestick pattern which is a candle of specific shape: its Open price is equal (or almost equal) to the Close price. The candle is considered Doji if the difference between its Open and Close prices does not exceed average body height multiplied by the specified factor.

Input Parameters

Parameter Description
length The number of bars used to calculate the average body height.
body factor The factor used when checking if a candle is Doji. A candle is considered Doji if its body height is lower than the average multiplied by this factor.


Plot Description
Doji The Doji candlestick pattern.

For educational purposes only. Not a recommendation of a specific security or investment strategy.
Technical analysis is not recommended as a sole means of investment research.
Past performance of a security or strategy does not guarantee future results or success.