Indicator · Pine Script v6 · On the chart

TIM NEW V2 Dynamic EMA Stack Support & Resistance

by wings4

The indicator plots a stack of five exponential moving averages with lengths 5, 8, 13, 21 and 34 on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code2,639
Settings40inputs
LicenceNone stated
Last update11 months ago23 Nov 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

TIM NEW V2 Dynamic EMA Stack Support & Resistance derives and draws support and resistance lines from the EMA stack, with options for up to 10 lines each, custom colors, widths and visibility controls. Pivot-based projection lines appear when enabled. Labels show top and bottom lines plus support and resistance levels. Main settings adjust EMA lengths, line appearance, label visibility, maximum bars back for lookups, candle overlay mode and projection options. The script overlays all objects directly on the price chart and calculates historical data across 6000 bars.

Details

Published by

wings4 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Moving averages, Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Max Bars Back for Support/Resistance Labelsint3000in_max_bars_back_
Candle Overlay ModestringPlotCandlescandleOverlayMode
Top Linebooltrueshow_top_line
Bottom Linebooltrueshow_bottom_line
Top Labelsbooltrueshow_topline_labels
Bottom Labelsbooltrueshow_bottomline_labels
Bearish Pricecolor#f51673color_bearish_price_state
Bullish Pricecolorcolor.orangecolor_bullish_price_state
Bullish Resistancecolorcolor.rgb(44,161,190)color_bullish_resistance_state
Bearish Supportcolorcolor.yellowcolor_bearish_support_state
Line Widthint2line_width
EMA 1int5ema1_length
Show all 40 settings
SettingTypeDefaultVariable
EMA 2int8ema2_length
EMA 3int13ema3_length
EMA 4int21ema4_length
EMA 5int34ema5_length
Label Sizestringtinylabel_size1
Support Line VisibilitystringKeep Visiblesupport_line_visibility
Support Labelsbooltrueshow_support_labels
Support Line Widthint2support_line_width
Max Support Linesint10max_support_lines
Support Line Colorcolor#367730support_line_color
Resistance Line VisibilitystringKeep Visibleresistance_line_visibility
Resistance Labelsbooltrueshow_resistance_line_label_
Resistance Line Widthint2resistance_line_width
Max Resistance Linesint10max_resistance_lines
Resistance Line Colorcolorcolor.rgb(188, 78, 153)resistance_line_color
Label Size (🟢SPRT & 🔴RES)stringTinylabelSizeInput_snr_labels
Show SPRT/RES Lines (Pivot-Based)booltrueshowProjLines
Left Barsint21in_leftBars_proj
Right Barsint5in_rightBars_proj
Pivot SourcestringClosesprojSrcMode
Extend Line Leftbooltruetoggle_extend_left
Barsint5extend_left_bars
left_line_stylestringSolidleft_line_style
Extend Line Rightbooltrueenable_right_line
Barsint5extend_right_bars
right_line_stylestringSolidright_line_style
Line Widthint4line_width_close
factor_maxtrendpointfloat2.5factor_maxtrendpoint
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

948 stars

Moving Average Channel plots separate simple moving averages for upper and lower bands on the price chart. It fills the space between bands with semi-transparent color and colors bars green above the upper band, red below the lower band, or gray in between. Us

Indicator v4 Moving averagesSupport & resistance
Updated 10 days ago · GPL-3.0 GitHub repository of Moving Average Channel

PivotHighLow

by Alorse
330 stars

This indicator calculates pivot high and pivot low points on the price chart based on configurable left and right bar counts. Confirmed pivot highs and lows are plotted with negative bar offsets directly on the price chart using line and cross styles. Addition

Indicator v4 Support & resistanceOscillators & momentum Repaints
Updated 2 months ago · None stated GitHub repository of PivotHighLow

Deduct

by TaichiS
219 stars

This indicator displays moving average deduction reference points directly on the price chart. It plots dynamic labels on historical bars corresponding to short, medium, and long lookback periods, defaulted to 20, 60, and 120 bars. Each text label displays the

Indicator v4 Moving averagesSupport & resistance
Updated 5 years ago · None stated GitHub repository of Deduct

Ichimoku Cloud

by harryguiacorn
219 stars

This indicator plots Ichimoku Cloud elements on the price chart, including Tenkan-sen, Kijun-sen, Senkou Span A and B lines with optional Chikou Span. It signals trend changes via Tenkan-sen and Kijun-sen crosses and places arrows at Kijun-sen direction shifts

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ichimoku Cloud

Midnight VWAP

by TradersPost
218 stars

The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers