PSAR class

In stock and securities market technical analysis, parabolic SAR (parabolic stop and reverse) is a method devised by J. Welles Wilder, Jr., to find potential reversals in the market price direction of traded goods such as securities or currency exchanges such as forex It is a trend-following (lagging) indicator and may be used to set a trailing stop loss or determine entry or exit points based on prices tending to stay within a parabolic curve during a strong trend.

Similar to option theory's concept of time decay, the concept draws on the idea that "time is the enemy". Thus, unless a security can continue to generate more profits over time, it should be liquidated. The indicator generally works only in trending markets, and creates "whipsaws" during ranging or, sideways phases. Therefore, Wilder recommends first establishing the direction or change in direction of the trend through the use of parabolic SAR, and then using a different indicator such as the Average Directional Index to determine the strength of the trend.

A parabola below the price is generally bullish, while a parabola above is generally bearish. A parabola below the price may be used as support, whereas a parabola above the price may represent resistance.

Constructors

PSAR.new([num start = 0.02, num acceleration = 0.02, num max = 0.2])

Properties

acceleration num
getter/setter pair
accelerationFactor num
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
high1 num
getter/setter pair
high2 num
getter/setter pair
highest num
getter/setter pair
isBullTrend bool
getter/setter pair
low1 num
getter/setter pair
low2 num
getter/setter pair
lowest num
getter/setter pair
max num
getter/setter pair
psar num
getter/setter pair
result num
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start num
getter/setter pair

Methods

momentValue(num high, num low) num
nextValue(num high, num low, num close) num
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited