OPEN-SOURCE SCRIPT
138-Min Session MAs

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
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
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.