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! 🚀
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilitĂ
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilitĂ
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.