# Overnight vs Intraday Returns

Overnight vs Intraday Returns is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Splits every session's return into the overnight leg, prior close to open, and the intraday leg, open to close, and plots both cumulative curves beside buy and hold to show where an instrument earns its drift. A dashboard reports each leg's total and average, the night minus day difference with its t-statistic and the weekend share, and intraday charts box each leg on price.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Jun 5, 2026.
- Access: free.
- Concepts: [overnight vs intraday returns](https://www.luxalgo.com/library/concept/overnight-vs-intraday-returns/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=m7mr5769nn91m432qbzalo4f
- Page: https://www.luxalgo.com/library/indicator/overnight-vs-intraday-returns/

**Overnight vs Intraday Returns** tracks and compares performance between two distinct market segments: the overnight gap, spanning from the previous close to the current open, and the intraday session, spanning from the current open to the current close. By decoupling these two time periods, traders can identify market inefficiencies, evaluate the impact of off-market news or overnight sentiment versus intraday volatility, and optimize their holding strategies for specific time-of-day biases.

## How to Trade the Overnight vs Intraday Returns?

To effectively utilize this indicator, focus on observing which "leg" contributes more to the total performance of an asset. If an asset shows a consistently positive overnight return, it suggests a potential "gap-and-go" bias or significant demand during off-market hours. Conversely, a strong intraday return suggests that the asset is driven by active participation during regular market hours. 

Traders can use the dashboard to assess the statistical significance of these differences via the t-statistic provided. Comparing the "Night - Day" spread helps determine if the asset consistently performs better while the primary exchange is closed or during active trading hours. The visual boxes on the price chart allow you to identify the specific price movement of each leg session by session, providing a clear context for where profit or loss originated in recent price action.

## Overnight vs Intraday Returns Settings

### Return Split
* **Regular Session**: Defines the specific hours for the intraday session, including the start and end times for open and close calculations.
* **Timezone**: Sets the timezone for the session logic, ensuring the data aligns correctly with the local exchange.
* **Return Scale**: Choose between Compounded (the actual percentage return) or Log (mathematically additive returns where overnight and intraday sum to the total buy and hold).
* **Statistics Window**: Sets the number of completed sessions for the dashboard calculations. Using 0 includes all available sessions.
* **Buy & Hold Line**: Enables or disables the cumulative plot of both legs combined on the chart.

### Legs On Price
* **Show Legs On Price**: Displays visual boxes on the price chart representing the overnight gap and the intraday session.
* **Leg Returns**: Prints the specific return percentage next to each box for quick reference.
* **Sessions Kept**: Adjusts how many recent sessions retain their visual boxes on the price chart.

### Dashboard
* **Show Dashboard**: Toggles the visibility of the detailed statistical panel.
* **Position**: Controls the corner of the chart where the dashboard is anchored.
* **Size**: Adjusts the scale of the dashboard text.

### Style
* **Overnight/Intraday/Buy & Hold**: Custom color settings for each return path to ensure visual clarity.

## Frequently Asked Questions

### Can I use this for non-equity assets?
While primarily designed for stocks and ETFs, the indicator can be applied to any asset with distinct open and close sessions, such as futures or major indices.

### What does the t-statistic represent?
The t-statistic measures the significance of the difference between the overnight and intraday returns, helping determine if the observed performance gap is statistically meaningful or likely random noise.

### How does the Log scale differ from Compounded?
Log returns are additive, making them ideal for analytical comparisons where overnight and intraday performance must sum exactly to the total hold return, whereas Compounded returns reflect the actual percentage growth experienced by a position.

## Related indicators

- [Sessions](https://www.luxalgo.com/library/indicator/sessions/) (Trading Sessions): markdown at https://www.luxalgo.com/library/indicator/sessions.md
- [Session Sweeps](https://www.luxalgo.com/library/indicator/session-sweeps/) (Trading Sessions): markdown at https://www.luxalgo.com/library/indicator/session-sweeps.md
- [ICT Killzones](https://www.luxalgo.com/library/indicator/ict-killzones/) (Trading Sessions): markdown at https://www.luxalgo.com/library/indicator/ict-killzones.md
- [Session Volume Moving Average](https://www.luxalgo.com/library/indicator/session-volume-moving-average/) (Trading Sessions): markdown at https://www.luxalgo.com/library/indicator/session-volume-moving-average.md
- [FVG Sessions](https://www.luxalgo.com/library/indicator/fvg-sessions/) (Trading Sessions): markdown at https://www.luxalgo.com/library/indicator/fvg-sessions.md
- [Session Streaks](https://www.luxalgo.com/library/indicator/session-streaks/) (Trading Sessions): markdown at https://www.luxalgo.com/library/indicator/session-streaks.md
- [Volume Surprise](https://www.luxalgo.com/library/indicator/volume-surprise/) (Intraday Time-of-day Effects): markdown at https://www.luxalgo.com/library/indicator/volume-surprise.md
- [Volume by Time](https://www.luxalgo.com/library/indicator/volume-by-time/) (Intraday Time-of-day Effects): markdown at https://www.luxalgo.com/library/indicator/volume-by-time.md

---

Source: https://www.luxalgo.com/library/indicator/overnight-vs-intraday-returns/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
