OHLC/GAP/EMA/VWAP all in one
Jan 23, 2019

The OHLC/GAP/EMA/VWAP all in one indicator provides a comprehensive suite of essential intraday levels and moving averages in a single tool, helping traders visualize key price zones and trends without cluttering their charts.
Usage
The indicator is primarily used for intraday trading to identify support and resistance levels derived from previous sessions and to gauge the current trend.
- OHLC Levels: The tool plots the current day's open along with the previous day's high, low, and close. These act as significant horizontal levels where price often reacts.
- Gap Visualization: The space between the current open and the previous close is automatically shaded, highlighting the "overnight gap." Traders can use this to monitor gap-fill plays.
- Trend Filters: The 10 and 20 Moving Averages (MA) provide short-term trend guidance, while the VWAP (Volume Weighted Average Price) serves as a benchmark for intraday value.
- Crossover Signals: Users can monitor price interactions with the VWAP or MAs to identify potential momentum shifts or mean reversion opportunities.
Details
The script utilizes the request.security function to fetch daily timeframe data (Open, High, Low, Close) and project it onto intraday charts. By calculating these levels dynamically, it ensures that traders have constant visibility of higher-timeframe context regardless of the current chart's resolution. The moving averages can be toggled between Exponential (EMA) or Simple (SMA) calculations via the settings menu to suit different trading styles.
Settings
- Exponential MA: A checkbox to toggle between Exponential Moving Averages (EMA) and Simple Moving Averages (SMA) for the 10, 20, and 50 periods.
FAQ
How do I use the gap highlight?
The highlighted area represents the distance between the current day's open and the previous day's close. A green shade typically indicates a gap up, while a red shade indicates a gap down, which can be used to anticipate gap-fill reversals or trend continuations.
Can I change the moving average periods?
In this specific version, the periods are fixed at 10 and 20 to provide a standardized view of short-term momentum, though the calculation method (EMA vs. SMA) remains adjustable.
How can I access this indicator?
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.