OPEN-SOURCE SCRIPT

138-Min Session MAs

372
138-Min Session MA Dashboard
Designed for futures traders using the 138-minute timeframe, where 1,380 minutes of daily session time divides evenly into exactly 10 bars per day — creating a clean, session-aligned bar structure unique to this timeframe.
This indicator plots six moving averages, each mapped to a meaningful trading horizon expressed in session-time rather than calendar time:

1D — 10 bars (1 session)
2D — 20 bars (2 sessions)
1W — 50 bars (1 trading week)
2W — 100 bars (2 trading weeks)
1M — 210 bars (~1 trading month)
6M — 1,260 bars (~6 trading months)

Features
Toggle between EMA and SMA globally with a single input. Each MA plots with a right-edge label showing the period name, distance from current price, percentage distance, and ATR multiple — giving you immediate context on how extended or compressed price is relative to each level. A summary table displays the current MA value and slope direction (▲ ▼ →) for each period. A bottom signal row indicates whether price is in a full bull stack, bear stack, or mixed alignment across all visible MAs.
Color palette runs teal → blue → purple → white from shortest to longest timeframe, consistent with the broader dashboard suite.
The indicator includes a timeframe guard — all plots and labels suppress automatically if the chart is not on the 138-minute timeframe, and a warning label fires to prompt you to switch.
Timeframe: 138-min only
Asset class: Futures (ES, NQ, CL, GC, or any instrument with a 1,380-min session)
Pine Script: v6

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน