EMA Hafeezullah Reversal
Dec 24, 2023

The EMA Hafeezullah Reversal indicator identifies potential market reversals and momentum breakouts by monitoring price action relative to a short-term Exponential Moving Average.
Usage
The indicator can be used to spot short-term entry points in various market conditions. It is particularly effective for intraday trading on stocks, forex, and cryptocurrencies.
- Bullish Reversals: Look for the "BUY" signal which occurs when the previous candle closes below the EMA and the current candle breaks above the previous high.
- Bearish Reversals: Look for the "SELL" signal which occurs when the previous candle closes above the EMA and the current candle closes below the previous low.
- Filtering: Users can adjust the cooldown period to prevent over-trading in choppy markets, ensuring that a minimum number of bars must pass before a new signal is generated.
Details
The script focuses on the 5-period EMA as a baseline for trend detection. The logic relies on a two-step confirmation process:
- Context: The previous bar must be completely on one side of the EMA (e.g., for a buy, the previous close and high are below the EMA).
- Trigger: The current bar must show price momentum breaking the previous bar's range in the opposite direction.
To improve signal quality, a "Cooldown Period" variable is implemented. This prevents the indicator from firing multiple signals in rapid succession during high-volatility periods or sideways consolidation.
Settings
- EMA Period: Defines the length of the Exponential Moving Average used for the trend baseline.
- Show EMA Line: Toggles the visibility of the EMA line on the chart.
- Cooldown Period: Sets the minimum number of bars required between consecutive signals to reduce noise.
FAQ
How do I use the EMA Hafeezullah Reversal?
You can use it to identify short-term momentum shifts. Traders often look for the green circle "BUY" signals for long entries and red circle "SELL" signals for short entries.
What is the purpose of the Cooldown Period?
The cooldown period is a filter that prevents the script from generating too many signals in a short timeframe, which helps in avoiding "whipsaw" or false signals in non-trending markets.
How can I access this tool?
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.