Skip to content

ParabolicSarLayerConfig

Renders Parabolic SAR on the price panel.

Examples

tsx
<ParabolicSAR start={0.02} increment={0.02} maxValue={0.2} />
ts
{
  type: 'parabolic-sar',
  start: 0.02,
  increment: 0.02,
  maxValue: 0.2,
}

Properties

Base Props

BaseLayerConfig

type

  • Type: 'parabolic-sar'

start

  • Type: number
  • Default: 0.02

The initial acceleration factor.

increment

  • Type: number
  • Default: 0.02

The amount added to the acceleration factor when a new extreme is reached.

maxValue

  • Type: number
  • Default: 0.2

The maximum acceleration factor. start must be less than or equal to this value.

source

  • Type: { high?: PriceField; low?: PriceField }

Optional shorthand for remapping the required high and low inputs.

series

  • Type: { value?: false | LineConfig }

Defaults

PropertyDefault
id'parabolic-sar-layer'
inputshigh and low price fields
outputs['value']
scale{ key: 'price_auto', domain: 'price', range: { type: 'auto' } }

TypeScript

ts
interface ParabolicSarLayerConfig extends BaseLayerConfig {
  type: 'parabolic-sar';
  source?: {
    high?: PriceField;
    low?: PriceField;
  };
  start?: number;
  increment?: number;
  maxValue?: number;
  series?: {
    value?: false | LineConfig;
  };
}

React Candlesticks is available on npm and GitHub under the MIT License.