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! 🚀
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。