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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.