INVITE-ONLY SCRIPT

Jitendra MTF RSI VWAP ADX EMA CROSS MACD Stochastic

32
Detailed summary This Indicator

Dynamic Table with Multi-timeframe (MTF) indicator dashboard

It analyzes key technical indicators across up to 6 timeframes and presents the results visually using arrows, colored cells, and indicator values

Toggle to Enable Disable Indicator & Timeframe

Image of Setting For Complete Details

https://drive.google.com/file/d/1E1FcCa9kAye1RhcnrghYXo00jtmNvfVN/view?usp=drive_link

🧮 How It Works (Calculation Method)
=======================================================================
The core logic of the script uses the request.security() function to fetch each indicator’s value across multiple timeframes:

val_tf = request.security(syminfo.tickerid, tf, expression)

=======================================================================
📈 Indicator Calculations
RSI (Relative Strength Index) = ta.rsi(close, 14)

RSI Divergence (Regular & Hidden)
ta.pivotlow(rsi_tf, divLookbackLeft, divLookbackRight)
ta.pivothigh(rsi_tf, divLookbackLeft, divLookbackRight)

Bullish Divergence: RSI low detected by pivotlow
Bearish Divergence: RSI high detected by pivothigh
Hidden Divergence: Based on price and RSI direction

=======================================================================
ADX, +DI, -DI= ta.dmi(len, lensig)

Returns: [plusDI, minusDI, ADX]

Used to assess trend strength and direction

=======================================================================
EMA (Exponential Moving Averages)
ta.ema(close, emaLength)

3 configurable EMAs

Price vs EMA status shown with green/red background

EMA1 vs EMA2 crossover gives:

▲ if EMA1 > EMA2

▼ if EMA1 < EMA2

=======================================================================
MACD (Moving Average Convergence Divergence)= ta.macd(close, 12, 26, 9)
Returns: [MACD line, Signal line, Histogram]

Comparison of MACD > Signal for bullish indicati

=======================================================================
Stochastic Oscillator
ta.stoch(close, high, low, stochKLen) → %K Raw
ta.sma(rawK, stochSmoothK) → Smoothed %K
ta.sma(k, stochSmoothD) → %D

=======================================================================
Table Construction Logic

Initializes a table with table.new()

Adds column headers on first bar (bar_index == 0)

Fills rows with data for: Current TF
Up to 5 additional user-selected timeframes

=======================================================================
✅ Color Logic

Custom color functions determine background/text color based on thresholds:
getRsiColor(val) => val > 60 ? aqua : val >= 40 ? green : red
getAdxColor(val) => val > 25 ? aqua : val >= 18 ? green : red
getVwapColor(close, vwap) => close > vwap ? green : red

=======================================================================
=======================================================================

Included Indicators

1. VWAP (Volume Weighted Average Price)

Displays whether current price is above or below VWAP


2. RSI (Relative Strength Index)

Value + Arrow showing direction change

Optional Divergence Detection (regular + hidden)


3. ADX (Average Directional Index)

ADX strength, +DI, -DI values


4. EMA (Exponential Moving Averages)

3 user-configurable EMAs (default: 5, 21, 50)

Displays value and color-coded status (price above or below)

5. EMA crossover symbol (▲ or ▼ between EMA1 and EMA2)

6. MACD (Moving Average Convergence Divergence)

7. MACD line and Histogram with color-coded background

8. Stochastic Oscillator

%K line shown, color-coded based on %K vs %D


⏱️ Multi-Timeframe (MTF) Support
Displays values for:


Current timeframe (CurTF)

Up to 5 custom timeframes (e.g., 15m, 1h, D, W, M)

Each row shows indicator values across selected timeframes

🔧 Key Features
Customizable Table Layout:

Position: top/bottom/center left/right

Text size: tiny to huge

Flexible Toggles:

You can enable/disable individual indicators (RSI, MACD, VWAP, EMA, etc.)

Select which EMAs to show and whether to display the crossover arrow

Color Coding:


RSI/ADX/DI: green, aqua, red based on strength

VWAP: green if price above, red if below

EMA: green/red backgrounds based on LTP >/< EMA

MACD: green if MACD > signal, red if < signal

Stoch: green if %K > %D, red if <

Thanks
Jitendra

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。