OPEN-SOURCE SCRIPT
已更新

Intraday vs Overnight Change Tracker

3 566
This indicator tracks a synthetic price path based on either intraday or overnight return behavior, allowing users to analyze which component of daily price movement is contributing more to long-term performance.

***THIS INDICATOR ONLY WORKS ON THE DAILY TIMEFRAME***

Intraday mode compounds price change from market open to close: close / open

Overnight mode compounds price change from previous close to current open: open / close[1]

The user can select one of these two modes using a dropdown input. The synthetic price series starts from the second bar of the chart and compounds forward bar-by-bar using the selected return type. The result is a line that reflects cumulative return based solely on either intraday or overnight activity.

⚙️ Inputs
Synthetic Price Type: Select between "Intraday" or "Overnight" to visualize the respective compounded price series.

📈 Usage Notes
This indicator is intended for visual comparison of intraday vs. overnight price dynamics over time. It can be useful for identifying behavioral patterns, session-based return anomalies, or testing session bias strategies.

Only one synthetic line is shown at a time based on user selection.

If you want to view both intraday and overnight lines, then you can add the indicator twice, which is shown above.
發行說明
Added third drop-down option to show both Intraday and Overnight charts on the same plot.

I made this as the default option when loading the indicator.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。