Skip to main content

cdl_generic


CDL Generic

Type: cdl_generic • Category: indicators

Description

Generic candlestick pattern runner (use 'pattern' param)

Parameters

NameTypeDescriptionRequiredDefault
openstringList of opening pricesno
highstringList of highest pricesno
lowstringList of lowest pricesno
closestringList of closing pricesno
patternstringName of the CDL function from TA-Lib, e.g. 'CDLHAMMER'no

Help

CDL Generic

Overview

The CDL Generic worker is an indicator designed for financial markets. It runs generic candlestick patterns using the 'pattern' parameter.

Description

This worker utilizes the TA-Lib library to identify specific candlestick patterns in financial market data. By specifying the pattern type, users can analyze various candlestick formations.

What does this worker do?

The CDL Generic worker takes in a set of price data (open, high, low, close) and a specified pattern. It then applies the corresponding candlestick pattern recognition function from TA-Lib to the provided data.

How to interpret the results

The worker outputs a list of values indicating the presence or absence of the specified candlestick pattern at each data point. A value of 1 typically indicates the pattern is present, while 0 indicates it is not.

Parameters

The following parameters are required to run the CDL Generic worker:

JSON Schema

{
"open": {
"type": "string",
"description": "List of opening prices"
},
"high": {
"type": "string",
"description": "List of highest prices"
},
"low": {
"type": "string",
"description": "List of lowest prices"
},
"close": {
"type": "string",
"description": "List of closing prices"
},
"pattern": {
"type": "string",
"description": "Name of the CDL function from TA-Lib, e.g. 'CDLHAMMER'"
}
}

Parameters List

  • open: string - List of opening prices.
  • high: string - List of highest prices.
  • low: string - List of lowest prices.
  • close: string - List of closing prices.
  • pattern: string - Name of the CDL function from TA-Lib (e.g., 'CDLHAMMER', 'CDLENGULFING', etc.).

Example Usage

To use the CDL Generic worker, provide the required parameters in the following format:

{
"open": "1.0, 2.0, 3.0",
"high": "2.0, 3.0, 4.0",
"low": "0.5, 1.5, 2.5",
"close": "1.5, 2.5, 3.5",
"pattern": "CDLHAMMER"
}

This example analyzes the specified price data for the 'CDLHAMMER' pattern.