PROTECTED SOURCE SCRIPT
Top Bottom Strategy with VWAP & Targets

📌 Strategy Logic
1. Top & Bottom Detection
Bottom Detection: Finds when the current low is lower than the previous lows over a specified period (per).
Top Detection: Finds when the current high is higher than the previous highs over a specified period (per2).
Signals:
BUY (CALL) when bottoms start dominating (crossover).
SELL (PUT) when tops start dominating (crossunder).
2. VWAP Confirmation
Uses VWAP (Volume-Weighted Average Price) to confirm trend direction.
Helps filter out false signals by checking if price is above/below VWAP.
3. Risk Management
Stop Loss (%): Adjustable percentage-based stop loss.
Three Profit Targets:
Target 1: Quick exit (50% position closed).
Target 2: Medium-term exit (30% position closed).
Target 3: Long-term exit (20% position closed).
4. Visual Enhancements
Background Color: Blue for bullish (BUY), Red for bearish (SELL).
Entry, Stop Loss & Targets: Clearly marked on the chart.
Labels: Shows exact price levels for easy tracking.
🎯 How to Use This Strategy?
✅ Best for: Swing trading, intraday trading (adjust timeframes accordingly).
✅ Works well on: Stocks, Forex, Crypto (test on multiple assets).
✅ Recommended Timeframes: 15min, 30min, 1H, 4H (avoid very low TFs for fewer false signals).
⚙️ Customizable Inputs
Bottom/Top Period: Adjust sensitivity (default = 14).
Stop Loss & Targets: Modify based on volatility.
VWAP Source: Can be changed (default = HLC3).
🔴🟢 Entry & Exit Rules
Signal Condition Action
BUY (CALL) Bottom crossover detected + Price above VWAP Enter Long
SELL (PUT) Top crossunder detected + Price below VWAP Enter Short
Exit Hits Stop Loss or any Profit Target Close Position
📊 Performance Tips
Combine with Trend Filter: Only trade in the direction of higher timeframe trends.
Avoid Choppy Markets: Works best in trending conditions.
Backtest & Optimize: Adjust periods & targets for different assets.
🚀 Final Thoughts
This strategy helps traders identify reversals early while managing risk effectively. It works best when combined with additional confirmation (e.g., RSI, MACD, or trend lines).
👉 Try it on TradingView & optimize for your trading style! 🚀
1. Top & Bottom Detection
Bottom Detection: Finds when the current low is lower than the previous lows over a specified period (per).
Top Detection: Finds when the current high is higher than the previous highs over a specified period (per2).
Signals:
BUY (CALL) when bottoms start dominating (crossover).
SELL (PUT) when tops start dominating (crossunder).
2. VWAP Confirmation
Uses VWAP (Volume-Weighted Average Price) to confirm trend direction.
Helps filter out false signals by checking if price is above/below VWAP.
3. Risk Management
Stop Loss (%): Adjustable percentage-based stop loss.
Three Profit Targets:
Target 1: Quick exit (50% position closed).
Target 2: Medium-term exit (30% position closed).
Target 3: Long-term exit (20% position closed).
4. Visual Enhancements
Background Color: Blue for bullish (BUY), Red for bearish (SELL).
Entry, Stop Loss & Targets: Clearly marked on the chart.
Labels: Shows exact price levels for easy tracking.
🎯 How to Use This Strategy?
✅ Best for: Swing trading, intraday trading (adjust timeframes accordingly).
✅ Works well on: Stocks, Forex, Crypto (test on multiple assets).
✅ Recommended Timeframes: 15min, 30min, 1H, 4H (avoid very low TFs for fewer false signals).
⚙️ Customizable Inputs
Bottom/Top Period: Adjust sensitivity (default = 14).
Stop Loss & Targets: Modify based on volatility.
VWAP Source: Can be changed (default = HLC3).
🔴🟢 Entry & Exit Rules
Signal Condition Action
BUY (CALL) Bottom crossover detected + Price above VWAP Enter Long
SELL (PUT) Top crossunder detected + Price below VWAP Enter Short
Exit Hits Stop Loss or any Profit Target Close Position
📊 Performance Tips
Combine with Trend Filter: Only trade in the direction of higher timeframe trends.
Avoid Choppy Markets: Works best in trending conditions.
Backtest & Optimize: Adjust periods & targets for different assets.
🚀 Final Thoughts
This strategy helps traders identify reversals early while managing risk effectively. It works best when combined with additional confirmation (e.g., RSI, MACD, or trend lines).
👉 Try it on TradingView & optimize for your trading style! 🚀
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.