Skip to main content

CDL Generic

Type: cdl_generic • Category: indicators

Description

Generic candlestick pattern runner (use 'pattern' param)

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringprices datano
openstringselect the column with opening pricesno
highstringselect the column with highest pricesno
lowstringselect the column with lowest pricesno
closestringselect the column with closing pricesno
patternstringName of CDL function from TA-Lib, e.g. 'CDLHAMMER'no

Help

CDL Generic

Description

The CDL Generic worker is an indicator used in financial analysis to identify specific candlestick patterns in price data. This worker utilizes the TA-Lib library, a widely-used open-source library for technical analysis.

The CDL Generic worker allows users to select a specific candlestick pattern to detect, providing flexibility in analyzing various market trends and conditions.

What does this worker do?

The CDL Generic worker takes in price data and identifies the specified candlestick pattern. It uses the following parameters:

  • dataExp: prices data
  • open: select the column with opening prices
  • high: select the column with highest prices
  • low: select the column with lowest prices
  • close: select the column with closing prices
  • pattern: Name of CDL function from TA-Lib, e.g. 'CDLHAMMER'

How to interpret the results

The worker returns a signal indicating the presence or absence of the specified candlestick pattern. A positive signal value indicates that the pattern is present, while a negative or zero value indicates that the pattern is not present.

Usage

To use the CDL Generic worker, simply select the desired candlestick pattern and provide the required price data. The worker will then generate a signal indicating the presence or absence of the pattern.

Example Use Cases

  • Identify bullish reversal patterns, such as 'CDLHAMMER' or 'CDLMORNINGSTAR'
  • Identify bearish reversal patterns, such as 'CDLSHOOTINGSTAR' or 'CDLEVENINGSTAR'
  • Analyze market trends and conditions using various candlestick patterns

Additional Information

Candlestick patterns are used in technical analysis to predict future market movements. The CDL Generic worker provides a flexible way to analyze various patterns and their significance in different market conditions.

Some common candlestick patterns include:

  • Reversal patterns: 'CDLHAMMER', 'CDLMORNINGSTAR', 'CDLSHOOTINGSTAR', 'CDLEVENINGSTAR'
  • Continuation patterns: 'CDLENGULFING', 'CDLMATHOLD'

Visualizing the Worker in Action

For a visual representation of how to use the CDL Generic worker, see the following GIFs:

Full Worker Demo

[![Full Worker Demo](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)

Short Worker Demo

[![Short Worker Demo](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)