TRADINGVIEW INDICATOR · PINE SCRIPT V5

Trade with
Precision.
Not Emotion.

Mahadeva V12 is a professional-grade confluence engine that tells you exactly when to buy, when to sell, and when to exit — with price levels included.

START LEARNING See Signals →
8
Confluence Factors
4
Timeframes Checked
3
Trading Sessions
2:1
Risk/Reward Ratio
PART 01
What This Indicator Does
Core Features
Everything built in.
Nothing extra needed.

Most indicators give you one signal from one source. Mahadeva V12 checks 8 different factors at the same time before allowing any signal to fire. This removes bad trades automatically.

📊
Confluence Score Engine
Scores every potential signal from 0 to 8 points. Only signals with score 5 or above are shown. You control the minimum threshold in settings.
🕐
Multi-Timeframe Analysis
Automatically checks 5M, 15M, 1H and 4H charts simultaneously. All dots gold = strong trend. Mixed dots = wait.
📈
ADX Trend Filter
Blocks all signals during sideways/ranging markets. Only fires when ADX confirms a real trend is present. Saves you from choppy losses.
🎯
Auto Entry + Risk Levels
Every signal draws 3 lines automatically: your exact entry price, stop loss level, and take profit target with price labels.
Squeeze Detector
Detects when the market is coiling (low volatility) before a big move. Combined with momentum direction to catch explosive breakouts.
🔍
MFI Divergence Detection
Finds hidden reversals before they happen using Money Flow Index divergence. Adds a bonus point to confluence score when detected.
🌍
Session Filter
Filters trades to only fire during London and New York sessions — the highest-probability trading windows in the world.
📐
Dynamic S/R Zones
Automatically draws support and resistance lines from pivot highs and lows. Gold dotted = support. Red dotted = resistance.
🚨
Built-in Alerts
6 alert conditions pre-built: BUY, SHORT, EXIT LONG, EXIT SHORT, Bull Divergence, Bear Divergence. Connect to your phone or webhook.
☁️
The EMA Cloud — Your Market Compass
The shaded area between the two lines on your chart is the EMA Cloud. When price is above the cloud and it's gold colored — the market is bullish, look for BUY signals. When price is below the cloud and it's red — the market is bearish, look for SELL signals. Never buy against the cloud direction.
PART 02
Why It Makes You Better
Key Benefits
Stop guessing.
Start trading smart.

Here is exactly how Mahadeva V12 improves your trading compared to using basic indicators or trading blindly.

BENEFIT 01
No More Guessing Entry Price
When a signal fires, the indicator draws a solid line showing your exact entry price with the number labelled on the right side of the chart. You know exactly where to enter — no guessing.
BENEFIT 02
Stop Loss is Calculated For You
Every trade automatically gets a red dashed stop loss line based on ATR (market volatility). It adapts to current market conditions — tighter in calm markets, wider in volatile ones.
BENEFIT 03
Profit Target is Pre-Marked
A teal dashed line shows your take profit level at 2:1 risk/reward ratio by default. You don't need to calculate anything. Just set your order at the target line.
BENEFIT 04
Bad Trades Are Filtered Out
The confluence score filter eliminates weak signals automatically. During ranging markets, off-hours, or when trend is weak — no signal fires. This protects your capital from low-quality setups.
BENEFIT 05
Works on Any Market
Crypto (BTC, ETH), Forex (EUR/USD, GBP/JPY), Stocks (AAPL, TSLA), Indices (SPX, NASDAQ) — the indicator works on all of them on TradingView.
BENEFIT 06
Perfect for Beginners
You don't need to know technical analysis. The dashboard tells you market conditions in plain text. The arrows tell you what to do. The lines tell you where to place orders.
Interactive: Confluence Score Simulator — drag to see signal strength
6/8
Active (filled) Inactive
PART 03
How to Use It
Step-by-Step Guide
From zero to your
first signal.

Follow these exact steps every time you open TradingView. Do not skip any step — each one exists to protect you from a bad trade.

01
Set your timeframe to 1H or 15M
Click the timeframe selector at the top of TradingView and choose 1H (1 hour) or 15M (15 minutes). On a daily chart, signals are very rare — it takes a full day for one candle to form. On 1H you will see several signals per week on active markets.
✦ Best timeframe for BTC/ETH: 1H chart during London or NY session
02
Check the top-right dashboard first
Before anything else, look at the 4-row dashboard in the top-right corner of your chart. This tells you current market conditions. All 4 rows must be in your favor before taking any trade.
MARKET FLOWACCUM
VOLATILITYACTIVE
TREND POWERSTRONG 32
SESSIONLONDON
✓ Perfect setup — trade ready
ACCUMULATION + ACTIVE volatility + STRONG trend + Active session. All green. This is when the best signals appear. Wait for the arrow.
MARKET FLOWDISTRIB
VOLATILITYCHARGING
TREND POWERWEAK 18
SESSIONOFF-HOURS
✗ Do not trade — wait
Weak trend + off-hours session = high chance of fake signals. Even if an arrow appears, skip it. The filter may have missed something.
03
Check the MTF heatmap dots (bottom right)
Look at the 4 colored dots in the bottom-right showing 5M, 15M, 1H, 4H trend direction. The more dots matching your trade direction, the stronger the signal.
STRONG BUY ✦
All 4 timeframes bullish. Best possible setup. Take the BUY signal.
Good Buy Setup
3 timeframes bullish. Good signal. 4H is bearish but others confirm uptrend.
MIXED — WAIT
50/50 split. No clear direction. Skip this signal — risk is too high.
STRONG SELL ✦
All 4 timeframes bearish. Best possible SELL setup. Take the SELL signal.
04
Wait for the BUY or SELL arrow
Do not enter a trade manually. Wait for the indicator to show an arrow on the chart. The arrow appears on the exact candle where all conditions are met. The score/8 shown in the label tells you how strong the signal is.
LONG SIGNAL
▲ BUY ✦ 7/8
Gold arrow appears BELOW a candle. Score 7/8 = very strong. Enter at the gold ENTRY line.
SHORT SIGNAL
▼ SELL ✦ 6/8
Red arrow appears ABOVE a candle. Score 6/8 = strong. Enter at the red ENTRY line.
CLOSE TRADE
✖ EXIT
Orange label appears. Close your trade immediately. All risk lines auto-delete.
✦ Only take signals with score 6/8 or higher when you are starting out — safer
05
Place your orders using the 3 lines
When a signal appears, three horizontal lines extend to the right. These are your complete trade plan — you do not need to calculate anything yourself.
LINE COLOR STYLE WHAT TO DO
ENTRY Gold (BUY) / Red (SELL) Solid line Enter your trade at this exact price
STOP Red Dashed line Place your stop loss here. If price hits this, exit immediately
TARGET Teal Dashed line Take your profit here. This is your 2:1 reward level
✦ IMPORTANT: Always set your stop loss the moment you enter. Never skip this step.
06
Exit when the orange EXIT label appears
When price crosses back through the EMA 50 line in the wrong direction, the indicator shows an orange EXIT label. This means the trend has reversed. Close your trade at this candle's close price. All three lines will disappear automatically.
✗ NEVER hold a trade past the EXIT signal hoping price will come back. The indicator already waited for confirmation — trust it.
Signal Reference
Every signal
explained.

Here is every label and visual element you will see on your chart and exactly what each one means.

WHAT YOU SEE TYPE MEANING ACTION
▲ BUY ✦ X/8 BUY Gold arrow below candle. X = confluence score out of 8 Enter a long (buy) trade at the gold ENTRY line
▼ SELL ✦ X/8 SELL Red arrow above candle. X = confluence score out of 8 Enter a short (sell) trade at the red ENTRY line
✖ EXIT LONG EXIT Orange label above candle — trend reversing down Close your buy trade immediately
✖ EXIT SHORT EXIT Orange label below candle — trend reversing up Close your sell trade immediately
◆ BULL DIV BUY HINT Price made lower low but MFI made higher low — hidden strength Watch for upcoming BUY signal. Not an entry by itself
◆ BEAR DIV SELL HINT Price made higher high but MFI made lower high — hidden weakness Watch for upcoming SELL signal. Not an entry by itself
Gold dotted line S/R Dynamic support level from recent pivot low Good area for BUY signals to appear near this level
Red dotted line S/R Dynamic resistance level from recent pivot high Good area for SELL signals to appear near this level
Gold/Red cloud TREND EMA 50 and EMA 200 cloud. Gold = bullish. Red = bearish Only buy in gold cloud. Only sell in red cloud
Indicator Settings
Customize it
for your style.

Open the indicator settings by clicking the gear icon next to the indicator name. Here is what each setting does.

SETTING DEFAULT WHAT IT DOES BEGINNER TIP
Min Confluence Score 5 Minimum score required for a signal to show. Higher = fewer but stronger signals Start with 5. Raise to 6 after your first month for even better signals
Min ADX 20 Minimum trend strength. Below this ADX, market is ranging and signals are blocked Leave at 20. Raise to 25 for even safer trades
Filter by Session ON When ON, only allows signals during active market sessions Keep ON always. Off-hours signals are low quality
London Session ON Allows signals during London market hours (8AM–4PM London time) Keep ON. London open is the most active session
New York Session ON Allows signals during New York market hours (9:30AM–4PM NY time) Keep ON. London+NY overlap (1PM–4PM London) is the best window
Stop ATR Multiplier 1.5 How far below entry price your stop loss is placed (in ATR units) Leave at 1.5 to start. Lower = tighter stop, higher = more room
Target ATR Multiplier 3.0 How far above entry price your take profit is placed (3.0 = 2:1 R/R ratio) Leave at 3.0. This ensures you make 2x more than you risk on each trade
FAQ
Common questions
answered.
Why am I not seeing any BUY or SELL arrows?
The signal filter is working correctly. Signals only appear when: (1) price crosses EMA 50, (2) confluence score reaches your minimum threshold, AND (3) you are in an active trading session. Try switching to the 1H or 15M timeframe and watch during London or NY session hours.
What does CHARGING in the volatility box mean?
CHARGING means the Bollinger Bands have squeezed inside the Keltner Channel — a sign that market volatility has compressed and a big move is coming soon. It is not telling you which direction, just that energy is building. Watch for the next signal when the squeeze releases.
Should I take every BUY/SELL signal that appears?
No. Always check the dashboard conditions first. The best trades happen when: score is 6/8 or higher, at least 3 of 4 MTF dots match your direction, trend power shows MODERATE or STRONG, and session is London or New York. Skip signals when these conditions are not met.
Can I use this on crypto, forex, and stocks?
Yes. The indicator works on any market available on TradingView. It has been designed to work on BTC, ETH, EUR/USD, GBP/JPY, AAPL, SPX500, Gold, and Oil. The session filter is most relevant for forex and stocks — for 24/7 crypto markets you can disable it or turn on the Asian session as well.
What does the confluence score bar at the bottom left show?
The 8-segment bar shows the strength of the most recent signal. Gold filled bars = bullish score. Red filled bars = bearish score. More filled segments = stronger signal. A signal with 7 or 8 bars filled is rare and very high-confidence.
Is this indicator repaint?
No. Signals are generated on the close of the candle using confirmed data. The divergence labels appear 5 bars after a pivot to confirm it — which means they are accurate but appear slightly late. This is intentional to avoid false signals on unconfirmed pivots.
How do I set up alerts on TradingView?
Right-click anywhere on the chart → Add Alert → In the Condition section, select "Mahadeva V12 — Confluence Engine" → Choose from: Mahadeva BUY, Mahadeva SHORT, Mahadeva EXIT LONG, Mahadeva EXIT SHORT, Bull Divergence, or Bear Divergence → Set notification to App, Email, or Webhook → Click Create.