параболический SAR (стоп и реверс) индикатор
The параболический SAR (стоп и реверс) is a technical анализ индикатор developed by J. Welles Wilder, a mechanical engineer turned technical analyst. The индикатор is principally used to determine potential reversals in the direction of цена movement in financial markets. Its primary use is in the realm of trend following and trend identification.
Mechanics of параболический SAR
The параболический SAR is plotted on the цена chart itself rather than in a separate pane. It appears as a series of dots placed either above or below the цена bars. These dots serve as trailing stop loss points and also help to signal potential trend reversals.
Calculation
The параболический SAR is calculated using the following formula:
\ SAR_{n+1} = SAR_n + [alpha ( EP - SAR_n ) ]
Where:
- ( SAR_{n+1} ) = the SAR value for the next period.
- ( SAR_n ) = the current period’s SAR value.
- ( EP ) = Extreme Point, the highest high (for long positions) or the lowest low (for short positions) reached during the current trend.
- ( \alpha ) = Acceleration Factor, which typically starts at 0.02 and increases by 0.02 up to a maximum of 0.20 each time a new high or low is reached during the trend.
Reversal
A reversal occurs when the цена closes below the SAR value (in an uptrend) or above it (in a downtrend). When this happens, the SAR switches sides.
Parameters and Customization
The default Acceleration Factor ((\alpha)) starts at 0.02 and ends at a maximum of 0.20. However, these values can be customized to suit different trading styles:
- Lower (\alpha) Values: Yield fewer signals and are suitable for long-term trading.
- Higher (\alpha) Values: Yield more signals and are suitable for short-term trading.
Usage in Trading
Trend Identification
The primary use of the параболический SAR is identifying the direction of the trend. When the dots are below the цена, it signals an uptrend. Conversely, when the dots are above the цена, it signals a downtrend.
Entry and Exit Points
- Entry Points: Traders might enter a long position when the dots движение below the цена, and a short position when the dots движение above the цена.
- Exit Points: Traders might use the dots as trailing stop-loss points to lock in profits. When the цена crosses the SAR, it may signal an exit point.
Combination with Other Indicators
The параболический SAR is often used in combination with other technical indicators to improve the reliability of trading signals. For example, combining the SAR with moving averages or the Relative Strength Index (RSI) can provide additional layers of confirmation.
Advantages and Limitations
Advantages
- Simplicity: The параболический SAR is easy to understand and straightforward to plot.
- Clear Signals: It provides clear signals for trend reversals, which can be valuable for creating stop-loss and take-profit strategies.
Limitations
- Whipsaws: In sideways or choppy markets, the индикатор can generate false signals or whipsaws.
- Lag: Since it is a trend-following индикатор, it may lag and produce signals after a substantial portion of the движение has already occurred.
Implementation in Algorithmic Trading
Algorithmic traders often incorporate the параболический SAR into automated trading systems due to its clear and straightforward rules. Here’s a simple Python code snippet using the popular TA-Lib library to compute the параболический SAR:
import talib
import pandas as pd
# Sample DataFrame
data = {
'high': [104, 105, 106, 107, 108],
'low': [100, 101, 102, 103, 104],
'close': [102, 103, 104, 105, 106]
}
df = pd.DataFrame(data)
# Compute параболический SAR
df['SAR'] = talib.SAR(df['high'], df['low'], acceleration=0.02, maximum=0.20)
print(df)
Final Thoughts
The параболический SAR remains a popular tool among traders for identifying trends and potential reversals. While it may not be foolproof, its simplicity and эффективность make it a valuable component of any trader’s technical анализ toolkit, especially when used in conjunction with other indicators and анализ techniques.
For more detailed information on the параболический SAR, you can refer to resources provided by TradingView and Investopedia.