MACD,RSI & EMA strategy with MA+PSAR
Oct 20, 2020

The MACD,RSI & EMA strategy with MA+PSAR indicator is a multi-layered trend-following tool designed to identify high-probability entry points by aligning momentum, trend, and volatility filters. It combines Moving Average Convergence Divergence (MACD), the Relative Strength Index (RSI), Exponential Moving Averages (EMA), and Parabolic SAR to provide a comprehensive view of market direction.
Usage
This strategy is used to capture trend continuations and reversals by requiring confluence between multiple technical indicators.
- Long Signals: A buy condition is triggered when the close price is above both the 5 and 20-period EMAs, the MACD line is above its signal line, and the RSI is trending above its signal line (specifically within the 50-70 range to ensure positive momentum without being overextended).
- Short Signals: A sell condition is triggered when the close price falls below both EMAs, the MACD line is below its signal line, and the RSI is below its signal line.
- Visual Aids: The script plots four separate Simple Moving Averages (SMA) and a Parabolic SAR (PSAR) on the chart. Traders can use the PSAR to identify trailing stop-loss levels or trend exhaustion points.
Details
The strategy employs a systematic approach to filtering noise. By using EMAs for short-term trend direction and SMAs for longer-term structure (including a 200-period SMA), it ensures that signals are taken in alignment with broader market moves. The RSI filter includes a specific threshold (50-70) for long entries to ensure the market has sufficient strength but hasn't yet entered extreme overbought territory. The Parabolic SAR provides a visual cross on the chart, changing color based on whether the price is above or below the SAR value, acting as an additional volatility-based trend confirmation.
Settings
Moving Averages
- EMA1 length: Sets the period for the primary fast Exponential Moving Average.
- EMA2 length: Sets the period for the secondary Exponential Moving Average.
- SMA1 - SMA4 Length: Sets the periods for the four Simple Moving Averages plotted on the chart (defaulting to 5, 10, 50, and 200).
MACD
- MACD Fast: The period for the fast EMA in the MACD calculation.
- MACD Slow: The period for the slow EMA in the MACD calculation.
- MACD Signal length: The smoothing period for the MACD signal line.
RSI
- RSI length: The lookback period for the Relative Strength Index.
- RSI signal length: The smoothing period for the RSI's internal signal line.
Parabolic SAR
- PSAR Start: The initial acceleration factor.
- PSAR Increment: The step by which the acceleration factor increases.
- PSAR Maximum: The maximum value for the acceleration factor.
FAQ
How do I use the PSAR dots in this strategy?
The Parabolic SAR dots change color and position relative to the price. When they are below the price (green), the trend is bullish; when above (red), the trend is bearish. It can be used for manual exit points or to confirm the direction of the EMAs.
Can I change the RSI entry thresholds?
The current RSI long threshold (50-70) is hardcoded in the strategy logic to ensure momentum. However, you can adjust the primary RSI length and signal length in the settings menu to change how sensitive the indicator is to price fluctuations.
How can I access the MACD,RSI & EMA strategy with MA+PSAR?
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.