P_SAR And Supertrend
Sep 17, 2024

The P_SAR And Supertrend indicator combines two popular trend-following tools to provide a comprehensive view of market momentum and potential reversal points. By integrating the Supertrend and Parabolic SAR (P_SAR), the tool offers dual-layer confirmation for trend direction, helping traders identify high-probability entries and manage risk through dynamic trailing stops.
Usage
The script is designed to simplify trend identification by using bar coloring and visual overlays.
- Trend Confirmation: When the price is above both the Supertrend line and the Parabolic SAR dots, the bars turn green, signaling a strong bullish trend. Conversely, when the price is below both indicators, the bars turn red, signaling a strong bearish trend.
- Entry Signals: Traders can look for "Bullish Condition Met" alerts when price crosses above both indicators simultaneously, or use the bar color change as a signal for trend-following entries.
- Exit & Stop-Loss: The Parabolic SAR dots act as a trailing stop-loss, moving closer to the price as the trend progresses. The Supertrend line serves as a secondary support or resistance level to maintain positions during market noise.
Details
The indicator calculates two distinct components:
- Supertrend: Derived from the Average True Range (ATR), this component filters out minor price fluctuations to determine the primary trend direction.
- Parabolic SAR: A time and price-based indicator that calculates potential stop and reverse points.
By requiring both indicators to align, the script reduces "whipsaw" or false signals that often occur when using either indicator in isolation. The script also includes a neutral bar color when the two indicators are in conflict, highlighting periods of market indecision.
Settings
Supertrend
- ATR Length: Sets the lookback period for the Average True Range calculation used to determine volatility.
- Factor: The multiplier applied to the ATR to set the distance of the Supertrend line from the price.
Parabolic SAR
- SAR Start: The initial acceleration factor for the Parabolic SAR calculation.
- SAR Increment: The value by which the acceleration factor increases each time a new extreme point is reached.
- SAR Max Value: The maximum limit for the acceleration factor.
FAQ
How do I use the bar coloring?
The bars turn green when the trend is confirmed bullish by both Supertrend and P_SAR, and red when confirmed bearish. If they are the default chart color, the indicators are not in agreement.
Can I adjust the sensitivity?
Yes, by lowering the ATR Factor or increasing the SAR Start/Increment values, the indicator will become more sensitive to price changes. Increasing these values will make it more lagging but potentially more reliable in trending markets.
How can I access P_SAR And Supertrend?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.