PROTECTED SOURCE SCRIPT

Multi EMA Daily & 3WEMA with labels by Jitendra

67
Title Multi EMA Daily & 3WEMA with labels by Jitendra

Use or Purpose of This Indicator


  1. This script plots multiple EMAs (Exponential Moving Averages) across custom timeframes
  2. it also includes Weekly EMAs with individual toggles.
  3. 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


  1. Custom EMA Settings
  2. Up to 8 configurable EMAs.
  3. Each EMA has:
  4. Enable/Disable toggle.
  5. Custom timeframe selection.
  6. Adjustable length.
  7. Custom color
  8. Plots EMA lines with the selected colors.
  9. Labels next to price with EMA name, length, timeframe, and value.


Weekly EMA Section


3 separate Weekly EMAs with:

  1. Individual toggles.
  2. Adjustable lengths (default: 12, 24, 36).
  3. Customizable moving average method: SMA, EMA, SMMA (RMA), WMA, VWMA.
  4. 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 using
Pine Script®
ta.ema(close, length)

Fetches timeframe-specific EMA via:


Pine Script®
securityNoRepaint(syminfo.tickerid, emaX_timeframe, emaX_out)



For Weekly EMAs:

Uses
Pine Script®
request.security()
to pull weekly data:

Pine Script®
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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。