OPEN-SOURCE SCRIPT
MoChen - Sessions + D/W/M Opens

OVERVIEW
MoChen - Sessions + D/W/M Opens is an overlay indicator designed for 24/7 cryptocurrency markets.
It combines three major market-session ranges with Daily, Weekly, and Monthly opening levels, allowing traders to observe how price behaves around different regional trading periods and higher-timeframe opening references.
The script is intended for BTC, ETH, and other continuously traded cryptocurrency pairs.
CORE FEATURES
1. Three market sessions
- Asia: 09:00-13:30, using Asia/Taipei
- London: 08:00-16:30, using Europe/London
- New York: 09:30-16:00, using America/New_York
The London and New York sessions use IANA time zones, allowing daylight-saving-time changes to be handled automatically.
Each active session displays a simplified price range. The upper and lower boundaries update while the session is active and stop updating after the session is completed.
Session settings include:
- Enable or disable each session
- Custom session name
- Custom session time
- Custom color and opacity
- Session range background
- Session open level
- Optional close, high, and low levels
- Configurable line style and width
- Configurable number of completed sessions retained
2. Daily, Weekly, and Monthly opens
The indicator displays three UTC-based opening levels:
- D: Daily open at 00:00 UTC
- W: Weekly open on Monday at 00:00 UTC
- M: Monthly open on the first calendar day at 00:00 UTC
For users in UTC+8, the Daily Open appears at 08:00 local time.
Default styles:
- D: Blue, solid line, width 1
- W: Cyan, solid line, width 2
- M: Yellow, solid line, width 3
Each opening level can be enabled or disabled independently. Its color, width, line style, label, extension behavior, and historical retention can also be adjusted.
HOW TO USE
The session ranges are designed to show when regional market participation becomes active.
They can be used to observe:
- Session range expansion
- Breakouts above or below a completed session
- Price reactions near session opens
- Relationships between the Asia, London, and New York sessions
- Whether price is trading above or below the Daily, Weekly, or Monthly open
These levels are reference points only. They are not automatic entry or exit signals and should be combined with market structure, liquidity, risk management, and the trader's own analysis.
TIMEFRAME GUIDANCE
The indicator is primarily designed for intraday charts.
Recommended timeframes:
- 1 minute
- 3 minutes
- 5 minutes
- 15 minutes
- 30 minutes
The script can be displayed on higher timeframes, but session boundaries may not align precisely with the chart's candles. For example, a 09:30 session start cannot always be represented exactly on a 1-hour or 4-hour chart.
Use lower intraday timeframes when precise session boundaries are important.
REPAINTING AND REAL-TIME BEHAVIOR
The script does not use future data or lookahead calculations.
While a session is active, its high and low boundaries update as new price data becomes available. This is expected real-time behavior.
After a session ends, its completed range stops updating.
Daily, Weekly, and Monthly opening levels are recorded when their corresponding UTC period begins.
ORIGINALITY AND DEVELOPMENT
This version was redesigned specifically for 24/7 cryptocurrency markets.
Compared with the original reference implementation, this version focuses on:
- Three dedicated cryptocurrency market sessions
- Separate session-state management
- Simplified range visualization
- Automatic London and New York daylight-saving-time handling
- Daily, Weekly, and Monthly UTC opening levels
- Controlled historical object retention
- Reduced chart clutter
- Pine Script v6 compatibility
ATTRIBUTION
This script is a derivative work based on concepts and portions of the open-source "ICT Killzones Toolkit [LuxAlgo]" by LuxAlgo.
Original work Copyright LuxAlgo.
Original license: CC BY-NC-SA 4.0.
The session structure, object management, user interface, historical retention, and Daily/Weekly/Monthly opening-level system were substantially modified for this version.
This publication remains open-source and is shared under the applicable attribution, non-commercial, and share-alike requirements.
DISCLAIMER
This indicator is provided for educational and analytical purposes only.
It does not provide financial advice, investment recommendations, or guaranteed trading results. Users are responsible for their own trading decisions and risk management.
中文說明
MoChen - Sessions + D/W/M Opens 是一套為 24 小時加密貨幣市場設計的 TradingView 圖表指標。
它整合亞洲、倫敦、紐約三個主要市場時段,以及每日、每週與每月開盤價,方便交易者觀察不同市場時段與重要開盤基準附近的價格反應。
適用商品包括 BTC、ETH 與其他全天候交易的加密貨幣。
主要功能
一、三大市場時段
- 亞洲:09:00-13:30,Asia/Taipei
- 倫敦:08:00-16:30,Europe/London
- 紐約:09:30-16:00,America/New_York
倫敦與紐約使用 IANA 當地時區,因此可以自動處理夏令時間與冬令時間切換。
時段進行中,區間上緣與下緣會隨最高價及最低價即時更新;時段完成後停止變動。
每個時段可分別設定:
- 顯示或隱藏
- 時段名稱
- 開始與結束時間
- 顏色與不透明度
- 區間背景
- 時段開盤價
- 選配的收盤價、最高價與最低價
- 線型與線寬
- 歷史保留數量
二、每日、每週與每月開盤價
指標使用 UTC 作為週期開盤基準:
- D:每日 UTC 00:00
- W:每週一 UTC 00:00
- M:每月第一天 UTC 00:00
對 UTC+8 使用者而言,每日開盤價會出現在當地時間 08:00。
預設樣式:
- D:藍色實線,線寬 1
- W:青色實線,線寬 2
- M:黃色實線,線寬 3
D、W、M 可以分別調整顯示、顏色、線寬、線型、標籤、延伸方式與歷史保留數量。
使用方式
三個時段區間可用來觀察:
- 時段區間擴張
- 已完成區間的向上或向下突破
- 價格對時段開盤價的反應
- 亞洲、倫敦與紐約時段之間的延續或反轉
- 價格位於日開、週開或月開上方還是下方
本指標提供的是時間與價格參考位置,不是自動進出場訊號。
實際使用時仍應結合市場結構、流動性、風險管理與個人交易計畫。
週期限制
建議使用:
- 1 分鐘
- 3 分鐘
- 5 分鐘
- 15 分鐘
- 30 分鐘
高週期仍可顯示,但時段開始與結束時間未必能精準對齊 K 棒。
例如紐約 09:30 開盤,在 1 小時或 4 小時圖表中不一定存在完全對應的 K 棒,因此需要精確時段邊界時,應使用較低的日內週期。
重繪說明
本指標沒有使用未來資料或 lookahead 計算。
時段進行中,最高價與最低價會隨即時行情更新,這屬於正常的進行中計算。
時段結束後,已完成區間不再變動。
日開、週開與月開會在相對應的 UTC 週期開始時建立。
免責聲明
本指標僅供交易研究、教育與市場分析使用,不構成任何投資建議,也不保證任何交易結果。
使用者應自行完成分析並做好風險管理。
MoChen - Sessions + D/W/M Opens is an overlay indicator designed for 24/7 cryptocurrency markets.
It combines three major market-session ranges with Daily, Weekly, and Monthly opening levels, allowing traders to observe how price behaves around different regional trading periods and higher-timeframe opening references.
The script is intended for BTC, ETH, and other continuously traded cryptocurrency pairs.
CORE FEATURES
1. Three market sessions
- Asia: 09:00-13:30, using Asia/Taipei
- London: 08:00-16:30, using Europe/London
- New York: 09:30-16:00, using America/New_York
The London and New York sessions use IANA time zones, allowing daylight-saving-time changes to be handled automatically.
Each active session displays a simplified price range. The upper and lower boundaries update while the session is active and stop updating after the session is completed.
Session settings include:
- Enable or disable each session
- Custom session name
- Custom session time
- Custom color and opacity
- Session range background
- Session open level
- Optional close, high, and low levels
- Configurable line style and width
- Configurable number of completed sessions retained
2. Daily, Weekly, and Monthly opens
The indicator displays three UTC-based opening levels:
- D: Daily open at 00:00 UTC
- W: Weekly open on Monday at 00:00 UTC
- M: Monthly open on the first calendar day at 00:00 UTC
For users in UTC+8, the Daily Open appears at 08:00 local time.
Default styles:
- D: Blue, solid line, width 1
- W: Cyan, solid line, width 2
- M: Yellow, solid line, width 3
Each opening level can be enabled or disabled independently. Its color, width, line style, label, extension behavior, and historical retention can also be adjusted.
HOW TO USE
The session ranges are designed to show when regional market participation becomes active.
They can be used to observe:
- Session range expansion
- Breakouts above or below a completed session
- Price reactions near session opens
- Relationships between the Asia, London, and New York sessions
- Whether price is trading above or below the Daily, Weekly, or Monthly open
These levels are reference points only. They are not automatic entry or exit signals and should be combined with market structure, liquidity, risk management, and the trader's own analysis.
TIMEFRAME GUIDANCE
The indicator is primarily designed for intraday charts.
Recommended timeframes:
- 1 minute
- 3 minutes
- 5 minutes
- 15 minutes
- 30 minutes
The script can be displayed on higher timeframes, but session boundaries may not align precisely with the chart's candles. For example, a 09:30 session start cannot always be represented exactly on a 1-hour or 4-hour chart.
Use lower intraday timeframes when precise session boundaries are important.
REPAINTING AND REAL-TIME BEHAVIOR
The script does not use future data or lookahead calculations.
While a session is active, its high and low boundaries update as new price data becomes available. This is expected real-time behavior.
After a session ends, its completed range stops updating.
Daily, Weekly, and Monthly opening levels are recorded when their corresponding UTC period begins.
ORIGINALITY AND DEVELOPMENT
This version was redesigned specifically for 24/7 cryptocurrency markets.
Compared with the original reference implementation, this version focuses on:
- Three dedicated cryptocurrency market sessions
- Separate session-state management
- Simplified range visualization
- Automatic London and New York daylight-saving-time handling
- Daily, Weekly, and Monthly UTC opening levels
- Controlled historical object retention
- Reduced chart clutter
- Pine Script v6 compatibility
ATTRIBUTION
This script is a derivative work based on concepts and portions of the open-source "ICT Killzones Toolkit [LuxAlgo]" by LuxAlgo.
Original work Copyright LuxAlgo.
Original license: CC BY-NC-SA 4.0.
The session structure, object management, user interface, historical retention, and Daily/Weekly/Monthly opening-level system were substantially modified for this version.
This publication remains open-source and is shared under the applicable attribution, non-commercial, and share-alike requirements.
DISCLAIMER
This indicator is provided for educational and analytical purposes only.
It does not provide financial advice, investment recommendations, or guaranteed trading results. Users are responsible for their own trading decisions and risk management.
中文說明
MoChen - Sessions + D/W/M Opens 是一套為 24 小時加密貨幣市場設計的 TradingView 圖表指標。
它整合亞洲、倫敦、紐約三個主要市場時段,以及每日、每週與每月開盤價,方便交易者觀察不同市場時段與重要開盤基準附近的價格反應。
適用商品包括 BTC、ETH 與其他全天候交易的加密貨幣。
主要功能
一、三大市場時段
- 亞洲:09:00-13:30,Asia/Taipei
- 倫敦:08:00-16:30,Europe/London
- 紐約:09:30-16:00,America/New_York
倫敦與紐約使用 IANA 當地時區,因此可以自動處理夏令時間與冬令時間切換。
時段進行中,區間上緣與下緣會隨最高價及最低價即時更新;時段完成後停止變動。
每個時段可分別設定:
- 顯示或隱藏
- 時段名稱
- 開始與結束時間
- 顏色與不透明度
- 區間背景
- 時段開盤價
- 選配的收盤價、最高價與最低價
- 線型與線寬
- 歷史保留數量
二、每日、每週與每月開盤價
指標使用 UTC 作為週期開盤基準:
- D:每日 UTC 00:00
- W:每週一 UTC 00:00
- M:每月第一天 UTC 00:00
對 UTC+8 使用者而言,每日開盤價會出現在當地時間 08:00。
預設樣式:
- D:藍色實線,線寬 1
- W:青色實線,線寬 2
- M:黃色實線,線寬 3
D、W、M 可以分別調整顯示、顏色、線寬、線型、標籤、延伸方式與歷史保留數量。
使用方式
三個時段區間可用來觀察:
- 時段區間擴張
- 已完成區間的向上或向下突破
- 價格對時段開盤價的反應
- 亞洲、倫敦與紐約時段之間的延續或反轉
- 價格位於日開、週開或月開上方還是下方
本指標提供的是時間與價格參考位置,不是自動進出場訊號。
實際使用時仍應結合市場結構、流動性、風險管理與個人交易計畫。
週期限制
建議使用:
- 1 分鐘
- 3 分鐘
- 5 分鐘
- 15 分鐘
- 30 分鐘
高週期仍可顯示,但時段開始與結束時間未必能精準對齊 K 棒。
例如紐約 09:30 開盤,在 1 小時或 4 小時圖表中不一定存在完全對應的 K 棒,因此需要精確時段邊界時,應使用較低的日內週期。
重繪說明
本指標沒有使用未來資料或 lookahead 計算。
時段進行中,最高價與最低價會隨即時行情更新,這屬於正常的進行中計算。
時段結束後,已完成區間不再變動。
日開、週開與月開會在相對應的 UTC 週期開始時建立。
免責聲明
本指標僅供交易研究、教育與市場分析使用,不構成任何投資建議,也不保證任何交易結果。
使用者應自行完成分析並做好風險管理。
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.