Skip to main content

SAR

Type: sar • Category: indicators

Description

Calculates the SAR indicator based on high and low prices

Parameters

NameTypeDescriptionRequiredDefault
highstringList of high pricesno
lowstringList of low pricesno
accelerationnumberno0
maximumnumberno0

Help

SAR Indicator for Financial Markets

=====================================

Description

The SAR (Stop and Reverse) indicator is a trend-following indicator used in financial markets to determine the direction of the market and to set stop-loss levels. This worker calculates the SAR indicator based on high and low prices.

What does this worker do?

This worker takes a list of high and low prices, along with acceleration and maximum parameters, and calculates the SAR indicator. The SAR indicator is used to identify the trend direction and to set stop-loss levels.

How to interpret the results

The SAR indicator is plotted on a chart and can be used to identify the trend direction. When the SAR indicator is below the price, it indicates an uptrend. When the SAR indicator is above the price, it indicates a downtrend. The SAR indicator can also be used to set stop-loss levels.

Parameters

The following parameters are required to calculate the SAR indicator:

Parameters Schema (JSON)

{
"high": {
"type": "string",
"description": "List of high prices"
},
"low": {
"type": "string",
"description": "List of low prices"
},
"acceleration": {
"type": "number",
"default": 0
},
"maximum": {
"type": "number",
"default": 0
}
}

Detailed Parameters

  • high: string - List of high prices. This is a comma-separated string of high prices.
  • low: string - List of low prices. This is a comma-separated string of low prices.
  • acceleration: number (default: 0) - The acceleration factor used in the SAR calculation.
  • maximum: number (default: 0) - The maximum acceleration factor used in the SAR calculation.

Example Usage

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

{
"high": "10.0, 12.0, 15.0, 18.0",
"low": "8.0, 9.0, 11.0, 14.0",
"acceleration": 0.2,
"maximum": 0.5
}

This will calculate the SAR indicator based on the provided high and low prices, acceleration, and maximum parameters.