OPEN-SOURCE SCRIPT
Updated P2P Time Matrix

P2P Time Matrix is a precision-based time indicator designed to automatically box and project key 1-minute anchor candles throughout the trading day. Instead of focusing on broad sessions, this tool highlights specific time-based candles — 18:00, 00:00, 08:30, 09:30, and 10:00 ET — and extends their high/low range forward so traders can study how price respects, rejects, or delivers through these key time anchors.
Release Notes
P2P Time Matrix Update NotesFutures Session Day Logic
- Updated the script so the “current day” is now based on the futures trading session starting at 18:00 ET, instead of using a normal midnight-to-midnight calendar day. This fixes the issue where the current day 18:00 anchor candle was not showing properly during the active futures session.
Current Day Anchor Extension
- Current session anchor boxes now extend dynamically to the current candle with a user-controlled offset. This keeps active anchor boxes cleaner on the chart instead of projecting too far into the future.
Previous Day Lookback Logic
- Previous lookback day anchors remain fixed and continue projecting to the next matching anchor candle time. This keeps historical anchor candles clean for review while allowing the current session to update live.
Anchor Candles Included
- The indicator currently tracks and projects the following 1-minute anchor candles:
- 18:00 ET
- 00:00 ET
- 08:30 ET
- 09:30 ET
- 10:00 ET
Visual Customization
- Each anchor candle has its own customizable color settings.
- Midlines can be customized by style, including solid, dotted, or dashed.
- Time labels remain positioned near the right side of the projected box for cleaner visual reference.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.