Enhanced HHLL Time Confirmation with EMA

To be used on 1 minute chart MSTR , Stock
other time frames are good , ;)
How to Use
HHLL Signals: Look for green triangles (buy) below bars or red triangles (sell) above bars to identify confirmed HH/LL setups with trend alignment.
EMA Signals: Watch for lime circles (buy) below bars or maroon circles (sell) above bars when price crosses the EMA 400 in a trending market.
Trend Context: Use the EMA 400 as a dynamic support/resistance level and the SMA trend filter to gauge market direction.
Enable alerts to get notified of signals in real-time.
Best Practices
Adjust the Lookback Period and Confirmation Minutes to suit your timeframe (e.g., shorter for scalping, longer for swing trading).
Combine with other indicators (e.g., volume, RSI) for additional confirmation.
Test on your preferred market and timeframe to optimize settings.
Indicator Description: Enhanced HHLL Time Confirmation with EMA
Overview
The "Enhanced HHLL Time Confirmation with EMA" is a versatile trading indicator designed to identify key reversal and continuation signals based on Higher Highs (HH), Lower Lows (LL), and a 400-period Exponential Moving Average (EMA). It incorporates time-based confirmation and trend filters to reduce noise and improve signal reliability. This indicator is ideal for traders looking to spot trend shifts or confirm momentum with a combination of price structure and moving average crossovers.
Key Features
Higher High / Lower Low Detection:
Identifies HH and LL based on a customizable lookback period (default: 30 bars).
Signals are confirmed only after a user-defined time period (in minutes, default: 60) has passed since the last HH or LL, ensuring stability.
Trend Filter:
Uses a fast (10-period) and slow (30-period) Simple Moving Average (SMA) crossover to confirm bullish or bearish trends.
Buy signals require a bullish trend (Fast SMA > Slow SMA), and sell signals require a bearish trend (Fast SMA < Slow SMA).
EMA 400 Integration:
Plots a 400-period EMA (customizable) as a long-term trend reference.
Generates additional buy/sell signals when price crosses above (buy) or below (sell) the EMA 400, filtered by trend direction.
Visualizations:
Optional dashed lines for HH and LL levels (toggleable).
Debug markers (diamonds) to visualize HH/LL detection points.
Distinct signal shapes: triangles for HHLL signals (green/red) and circles for EMA signals (lime/maroon).
Alerts:
Built-in alert conditions for HHLL Buy/Sell and EMA Buy/Sell signals, making it easy to stay informed of key events.
Input Parameters
Lookback Period (default: 30): Number of bars to look back for HH/LL detection.
Confirmation Minutes (default: 60): Time (in minutes) required to confirm HH/LL signals.
High/Low Source: Select the price source for HH (default: high) and LL (default: low).
Show HH/LL Lines (default: true): Toggle visibility of HH/LL dashed lines.
Show Debug Markers (default: true): Toggle HH/LL detection markers.
EMA Period (default: 400): Adjust the EMA length.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.