PROTECTED SOURCE SCRIPT
Multi EMA Daily & 3WEMA with labels by Jitendra

Title Multi EMA Daily & 3WEMA with labels by Jitendra
Use or Purpose of This Indicator
Core Features
Setting Details Image on Brief
https://drive.google.com/file/d/1vUbc7D_fwhz1oLBA8kznnJMgMkVLTy5V/view?usp=drive_link
Setting Point Highlights
Weekly EMA Section
3 separate Weekly EMAs with:
Background fill:
Non-Repainting Logic
Dynamic Labels
Weekly EMA Line with Background Filled Color

Daily EMA Line with Value
EMA Label Color same as EMA Line for Quick Identification

Code Used to Fetch Data
Pine Script®
For Weekly EMAs:
UsesPine Script® to pull weekly data:
Pine Script®
Use or Purpose of This Indicator
- This script plots multiple EMAs (Exponential Moving Averages) across custom timeframes
- it also includes Weekly EMAs with individual toggles.
- It also has adds labels showing EMA values and timeframes on the chart.
Core Features
Setting Details Image on Brief
https://drive.google.com/file/d/1vUbc7D_fwhz1oLBA8kznnJMgMkVLTy5V/view?usp=drive_link
Setting Point Highlights
- Custom EMA Settings
- Up to 8 configurable EMAs.
- Each EMA has:
- Enable/Disable toggle.
- Custom timeframe selection.
- Adjustable length.
- Custom color
- Plots EMA lines with the selected colors.
- Labels next to price with EMA name, length, timeframe, and value.
Weekly EMA Section
3 separate Weekly EMAs with:
- Individual toggles.
- Adjustable lengths (default: 12, 24, 36).
- Customizable moving average method: SMA, EMA, SMMA (RMA), WMA, VWMA.
- Color-coded plots.
Background fill:
- Fills the area between Weekly EMA 1 & 2 and EMA 2 & 3.
- Color changes based on trend direction (uptrend or downtrend).
Non-Repainting Logic
- Uses securityNoRepaint() for multi-timeframe EMAs:
- Requests higher-timeframe data without repainting by shifting bar index logic.
Dynamic Labels
- Displays EMA name + timeframe + current price.
- Labels auto-update on each bar and are positioned with adjustable distance.
Weekly EMA Line with Background Filled Color
Daily EMA Line with Value
EMA Label Color same as EMA Line for Quick Identification
Code Used to Fetch Data
For Daily/Custom TF EMAs:
Calculates EMA usingPine Script® ta.ema(close, length)
Fetches timeframe-specific EMA via:
securityNoRepaint(syminfo.tickerid, emaX_timeframe, emaX_out)
For Weekly EMAs:
Uses
request.security()
request.security(syminfo.tickerid, "W", ma_calc(source, length, type), lookahead)
ma_calc() determines calculation type (SMA, EMA, etc.).
Plots only if enabled.
Background fill applied conditionally.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。