CDL Generic
Type:
cdl_generic• Category:indicators
Description
Generic candlestick pattern runner (use 'pattern' param)
Parameters
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
dataExp | string | prices data | no | |
open | string | select the column with opening prices | no | |
high | string | select the column with highest prices | no | |
low | string | select the column with lowest prices | no | |
close | string | select the column with closing prices | no | |
pattern | string | Name 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 dataopen: select the column with opening priceshigh: select the column with highest priceslow: select the column with lowest pricesclose: select the column with closing pricespattern: 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
[](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)
Short Worker Demo
[](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)