Login Page - Create Account

Support Board


Date/Time: Tue, 26 Aug 2025 18:19:02 +0000



Post From: ACSIL - Get Candlestick Type (Bull/Bear)

[2025-05-28 10:39:35]
Tr00pz - Posts: 24
Check out the studies4.cpp file in the ACS_Source folder in the SC installation folder. This file has the code on the Candlestick Patterns study. I found this in a quick search of the file (I recommend looking through more of the code to fully understand how it's being used):

inline bool IsDoji(SCStudyInterfaceRef sc, const s_CandleStickPatternsFinderSettings& settings, int index)
{
  const double Doji_BodyPercent = 5.0;
  SCBaseDataRef InData = sc.BaseData;
  if (BodyLength(InData, index) <= PercentOfCandleLength(InData, index, Doji_BodyPercent))
  {
    return true;
  }

  return false;
}