Skip to main content Skip to footer

BulkowskiCandlePatternCalculationContext is a candlestick pattern recognize helper. This object contains a lot of calculated information that can be useful in the pattern detection function. So users have access to the following information:

  • AvgBodyHeight - average body height for the 6 latest candles;
  • AvgUpShadowLen - average up shadow length for the 6 latest candles;
  • AvgDnShadowLen - average down shadow length for the 6 latest candles;
  • PrHigh - high price of the latest candle;
  • PrLow - low proce of the latest candle;
  • PrClose - close price of the latest candle;
  • PrOpen - open price of the latest candle;
  • YDayHigh - high price of the previous candle;
  • YDayLow - low price of the previous candle;
  • YDayClose - close price of the previous candle;
  • YDayOpen - open price of the previous candle;
  • BodyHeight - body height of the latest candle;
  • LongBodyToday - flag whether body of the latest candle is long;
  • SmallBodyToday - flag whether body of the latest candle is small;
  • ColorToday - have the following values: -1 for the case when PrOpen=PrClose, 0 - if PrClose>PrOpen, 1 - otherwise;
  • SmallBodyYesterday - flag whether body of previous candle is small;
  • LongBodyYesterday - flag whether body of previous candle is long;
  • ColorYesterday - have the following values: -1 for the case when YDayOpen=YDayClose, 0 - if YDayClose>YDayOpen, 1 - otherwise;
  • CandleHeight - PrHigh - PrLow;
  • UpperShadowLength - length of the upper shadow;
  • LowerShadowLength - length of the lower shadow;
  • BottomNear - flag whethe LowerShadowLength is small;
  • LongUpperShadow - flag whether UpperShadowLength is bigger than BodyHeight;
  • LongLowerShadow - flag whether LowerShadowLength is bigger than BodyHeight;
  • TopNear - flag whethe UpperShadowLength is small;

Cookies Notice

We use cookies to improve your experience, personalize content, and analyze our traffic. By clicking "Accept All Cookies," you agree to the storing of cookies on your device. You can manage your cookie preferences at any time by visiting our Cookie Settings.