OPEN-SOURCE SCRIPT
Rajiv MTF VWAP + EMA Cross

This indicator is designed for NIFTY and BANKNIFTY option buying using:
Multi-Timeframe VWAP Alignment
EMA Crossover Confirmation
Fixed Risk-to-Reward Targets
Automatic Entry, Stop Loss, and Target Levels
The goal is to trade only when the trend is aligned across multiple timeframes and momentum confirms the move.
Indicators Used
1. Multi-Timeframe VWAP
The script checks:
Current Chart VWAP
VWAP TF1 (default 5m)
VWAP TF2 (default 15m)
VWAP TF3 (default 30m)
Bullish Condition
Price must be above:
Current VWAP
5m VWAP
15m VWAP
30m VWAP
Bearish Condition
Price must be below:
Current VWAP
5m VWAP
15m VWAP
30m VWAP
This helps ensure the market is trending in the same direction across multiple timeframes.
2. EMA Crossover
Default Settings:
Fast EMA = 9
Slow EMA = 21
BUY CE
9 EMA crosses above 21 EMA.
BUY PE
9 EMA crosses below 21 EMA.
Entry Rules
BUY CE
All conditions must be true:
✅ Price above Current VWAP
✅ Price above 5m VWAP
✅ Price above 15m VWAP
✅ Price above 30m VWAP
✅ 9 EMA crosses above 21 EMA
Signal shown:
BUY CE
BUY PE
All conditions must be true:
✅ Price below Current VWAP
✅ Price below 5m VWAP
✅ Price below 15m VWAP
✅ Price below 30m VWAP
✅ 9 EMA crosses below 21 EMA
Signal shown:
BUY PE
Risk Management
Stop Loss
ATR-based stop loss:
SL = ATR × 1.5
Targets
Target 1
Risk : Reward = 1 : 2
Example:
Entry = 100
SL = 95
Risk = 5
Target 1 = 110
Target 2
Risk : Reward = 1 : 3
Target 3
Risk : Reward = 1 : 4
Chart Elements
Dark Blue Line
Entry Price
Red Line
Stop Loss
Lime Line
Target 1 (1:2 RR)
Green Line
Target 2 (1:3 RR)
Aqua Line
Target 3 (1:4 RR)
Recommended Settings
Scalping
Chart: 3 Minute
VWAP TF1: 5m
VWAP TF2: 15m
VWAP TF3: 30m
Intraday
Chart: 5 Minute
VWAP TF1: 5m
VWAP TF2: 15m
VWAP TF3: 30m
Conservative
Chart: 15 Minute
VWAP TF1: 15m
VWAP TF2: 30m
VWAP TF3: 60m
Best Market Conditions
Works best when:
✅ NIFTY is trending
✅ BANKNIFTY is trending
✅ Opening Range Breakout days
✅ Strong directional sessions
Avoid:
❌ Sideways markets
❌ Low-volatility afternoons
❌ Major event/news whipsaws
Trading Logic Summary
BUY CE
All VWAPs bullish + 9 EMA crosses above 21 EMA
BUY PE
All VWAPs bearish + 9 EMA crosses below 21 EMA
Risk Management
Stop Loss = 1R
Target 1 = 2R
Target 2 = 3R
Target 3 = 4R
This makes the strategy trend-following, multi-timeframe aligned, and centered around a minimum 1:2 reward-to-risk objective on every signal.
Multi-Timeframe VWAP Alignment
EMA Crossover Confirmation
Fixed Risk-to-Reward Targets
Automatic Entry, Stop Loss, and Target Levels
The goal is to trade only when the trend is aligned across multiple timeframes and momentum confirms the move.
Indicators Used
1. Multi-Timeframe VWAP
The script checks:
Current Chart VWAP
VWAP TF1 (default 5m)
VWAP TF2 (default 15m)
VWAP TF3 (default 30m)
Bullish Condition
Price must be above:
Current VWAP
5m VWAP
15m VWAP
30m VWAP
Bearish Condition
Price must be below:
Current VWAP
5m VWAP
15m VWAP
30m VWAP
This helps ensure the market is trending in the same direction across multiple timeframes.
2. EMA Crossover
Default Settings:
Fast EMA = 9
Slow EMA = 21
BUY CE
9 EMA crosses above 21 EMA.
BUY PE
9 EMA crosses below 21 EMA.
Entry Rules
BUY CE
All conditions must be true:
✅ Price above Current VWAP
✅ Price above 5m VWAP
✅ Price above 15m VWAP
✅ Price above 30m VWAP
✅ 9 EMA crosses above 21 EMA
Signal shown:
BUY CE
BUY PE
All conditions must be true:
✅ Price below Current VWAP
✅ Price below 5m VWAP
✅ Price below 15m VWAP
✅ Price below 30m VWAP
✅ 9 EMA crosses below 21 EMA
Signal shown:
BUY PE
Risk Management
Stop Loss
ATR-based stop loss:
SL = ATR × 1.5
Targets
Target 1
Risk : Reward = 1 : 2
Example:
Entry = 100
SL = 95
Risk = 5
Target 1 = 110
Target 2
Risk : Reward = 1 : 3
Target 3
Risk : Reward = 1 : 4
Chart Elements
Dark Blue Line
Entry Price
Red Line
Stop Loss
Lime Line
Target 1 (1:2 RR)
Green Line
Target 2 (1:3 RR)
Aqua Line
Target 3 (1:4 RR)
Recommended Settings
Scalping
Chart: 3 Minute
VWAP TF1: 5m
VWAP TF2: 15m
VWAP TF3: 30m
Intraday
Chart: 5 Minute
VWAP TF1: 5m
VWAP TF2: 15m
VWAP TF3: 30m
Conservative
Chart: 15 Minute
VWAP TF1: 15m
VWAP TF2: 30m
VWAP TF3: 60m
Best Market Conditions
Works best when:
✅ NIFTY is trending
✅ BANKNIFTY is trending
✅ Opening Range Breakout days
✅ Strong directional sessions
Avoid:
❌ Sideways markets
❌ Low-volatility afternoons
❌ Major event/news whipsaws
Trading Logic Summary
BUY CE
All VWAPs bullish + 9 EMA crosses above 21 EMA
BUY PE
All VWAPs bearish + 9 EMA crosses below 21 EMA
Risk Management
Stop Loss = 1R
Target 1 = 2R
Target 2 = 3R
Target 3 = 4R
This makes the strategy trend-following, multi-timeframe aligned, and centered around a minimum 1:2 reward-to-risk objective on every signal.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.