Skip to main content

cdlcounterattack


CDLCOUNTERATTACK

Type: cdlcounterattack • Category: indicators

Description

Counterattack

Parameters

NameTypeDescriptionRequiredDefault
openstringno
highstringno
lowstringno
closestringno
patternstringno"CDLCOUNTERATTACK"

Help

CDLCOUNTERATTACK

Description

The CDLCOUNTERATTACK indicator is used in financial markets to identify a specific candlestick pattern known as the Counterattack.

What does this worker do?

This worker identifies the Counterattack candlestick pattern, which is a two-candlestick reversal pattern. It occurs when a rising candle is followed by a falling candle that completely engulfs the previous candle, indicating a potential reversal in the market trend.

How to interpret the results

The CDLCOUNTERATTACK indicator returns a value that indicates the presence or absence of the Counterattack pattern. A positive value typically signifies a bullish reversal, while a negative value or zero indicates that the pattern is not present.

Parameters

The following parameters can be passed to the CDLCOUNTERATTACK worker:

Parameters Schema (JSON)

{
"open": {
"type": "string",
"description": "The open price of the candlestick."
},
"high": {
"type": "string",
"description": "The high price of the candlestick."
},
"low": {
"type": "string",
"description": "The low price of the candlestick."
},
"close": {
"type": "string",
"description": "The close price of the candlestick."
},
"pattern": {
"type": "string",
"default": "CDLCOUNTERATTACK",
"description": "The name of the pattern to identify (default is CDLCOUNTERATTACK)."
}
}

Detailed Parameters List

  • open: string - The open price of the candlestick.
  • high: string - The high price of the candlestick.
  • low: string - The low price of the candlestick.
  • close: string - The close price of the candlestick.
  • pattern: string (default: CDLCOUNTERATTACK) - The name of the pattern to identify. This parameter is optional and defaults to CDLCOUNTERATTACK if not provided.