OPEN-SOURCE SCRIPT
Zaktualizowano BB + Williams %R + RSI + Order Block Detector [Combined]

📊 Bollinger Bands + Williams %R + RSI + Order Block Detector [Combined]
🎯 ABOUT THE INDICATOR
A powerful combined tool that integrates four popular strategies into one indicator:
Bollinger Bands — volatility measurement and extreme zone identification
Williams %R — momentum oscillator for reversal detection
RSI — classic trend strength indicator
Order Block Detector — automatic identification of institutional order blocks
The core concept: Entry signals are generated only when ALL components confirm simultaneously, significantly increasing the probability of successful trades.
📈 ENTRY SIGNALS
🟢 BUY Signal
Triggers with triple confirmation:
✅ RSI crosses above 30
✅ Williams %R crosses above -70
✅ Price is near the lower Bollinger Band (within tolerance)
📌 Green triangle below the candle with "BUY" label
🔴 SELL Signal
Triggers with triple confirmation:
✅ RSI crosses below 70
✅ Williams %R crosses below -30
✅ Price is near the upper Bollinger Band (within tolerance)
📌 Red triangle above the candle with "SELL" label
🚪 EXIT SIGNALS
Signal Condition Display
Exit LONG Williams %R crosses above -30 ⬜ White cross above candle
Exit SHORT Williams %R crosses below -70 ⬜ White cross below candle
📦 ORDER BLOCK DETECTOR
Automatically identifies institutional order blocks based on volume analysis and market structure.
🟩 Bullish Order Block
Forms at local lows with high volume
Indicates strong buyer interest zone
🟢 Displayed as green rectangle
🟥 Bearish Order Block
Forms at local highs with high volume
Indicates strong seller pressure zone
🔴 Displayed as red rectangle
⚙️ Features:
✅ Bright highlighting (50% transparency)
✅ Displays only the last N blocks (adjustable)
✅ Auto-removal of mitigated blocks
✅ Average line display for each block
✅ Mitigation method selection: Wick or Close
⚙️ SETTINGS
"BB + RSI + WPR" Group
Parameter Default Description
Bollinger Bands Period 20 Calculation period for BB
BB Deviation 2.0 Standard deviation multiplier
Williams %R Period 25 Oscillator calculation period
RSI Period 5 RSI calculation period
BB Tolerance (%) 2.0 Price deviation tolerance from bands
"Order Block" Group
Parameter Default Description
Volume Pivot Length 5 Period for volume peak detection
Bullish OB 3 Number of bullish blocks to display
Bearish OB 3 Number of bearish blocks to display
Mitigation Methods Wick Mitigation method (Wick/Close)
Average Line Style ⎯⎯⎯ Style of the average line
🎨 VISUALIZATION
Element Color Description
BB Upper ⬜ White Upper Bollinger Band
BB Lower ⬜ White Lower Bollinger Band
BB Mid ⬜ White Middle band (dots)
BUY 🟢 Green Triangle below candle
SELL 🔴 Red Triangle above candle
Exit ⬜ White Cross above/below candle
Background 🟢/🔴 Highlight on signal
🔔 ALERTS
8 types of automatic notifications:
🔔 BUY Signal — Long entry
🔔 SELL Signal — Short entry
🔔 EXIT LONG — Close long position
🔔 EXIT SHORT — Close short position
🔔 Bullish OB Formed — Bullish order block detected
🔔 Bearish OB Formed — Bearish order block detected
🔔 Bullish OB Mitigated — Bullish block has been tested
🔔 Bearish OB Mitigated — Bearish block has been tested
📝 RECOMMENDATIONS
✅ Best used on:
📊 Timeframes: 5-minute to 4-hour
💰 Instruments: Cryptocurrencies, stocks, forex
📈 Markets: Volatile with clear trends
⚠️ Important Rules:
Always use stop-loss orders
Filter signals using higher timeframe trends
Adjust parameters for each specific instrument
Never trade against strong trends
⚠️ IMPORTANT DISCLAIMER
⚠️ THIS INDICATOR IS NOT A TRADING RECOMMENDATION!
📌 All signals are for informational purposes only
📌 This is an analytical tool, not a trading robot
📌 Always implement proper risk management
📌 Past performance does not guarantee future results
📌 Trading financial markets involves high risks
📌 Never invest money you cannot afford to lose
📚 HOW TO INSTALL
Open TradingView → Pine Editor
Copy the script code
Click "Save" → "Add to Chart"
Adjust parameters to your trading style
🏷️ TAGS
Bollinger Bands Williams %R RSI Order Block Scalping Day Trading Cryptocurrencies Stocks Forex Technical Analysis Volume Pine Script TradingView Combined Indicator BB WPR OB Institutional Smart Money
🤝 FEEDBACK
Questions, suggestions, or bug reports? Leave a comment below!
I appreciate constructive feedback and ideas for improvement.
📈 Happy Trading!
📋 QUICK SUMMARY
What you get Description
🎯 Entry Points BUY/SELL signals with 3 confirmations
🚪 Exit Points Automatic position closing signals
📦 Order Blocks Institutional accumulation zones
🔔 Alerts 8 types of automatic notifications
⚙️ Flexibility Full customization of all parameters
🎨 Visualization Clear and intuitive display
✅ Version: Pine Script v6
✅ Status: Tested, ready for use
✅ Compatibility: All timeframes, all instruments
✅ Language: English/Russian (dual support)
Built with dedication to trading. Protect your capital! ❤️
🔧 TECHNICAL DETAILS
Input Parameters:
BB Period: 20 (default) — adjustable
BB Deviation: 2.0 (default) — adjustable
Williams %R Period: 25 (default) — adjustable
RSI Period: 5 (default) — adjustable
BB Tolerance: 2% (default) — adjustable
Volume Pivot Length: 5 (default) — adjustable
Bullish OB Count: 3 (default) — adjustable
Bearish OB Count: 3 (default) — adjustable
Mitigation Method: Wick (default) — Wick/Close selectable
Alert Conditions:
Entry signals (BUY/SELL)
Exit signals (LONG EXIT/SHORT EXIT)
Order block formation (Bullish/Bearish)
Order block mitigation (Bullish/Bearish)
Visual Features:
White Bollinger Bands for better visibility
Colored rectangles for order blocks with 50% opacity
Triangle markers for entry signals with text labels
Cross markers for exit signals
Background color highlighting on signals
Ready to use on any instrument and timeframe! 🚀
🎯 ABOUT THE INDICATOR
A powerful combined tool that integrates four popular strategies into one indicator:
Bollinger Bands — volatility measurement and extreme zone identification
Williams %R — momentum oscillator for reversal detection
RSI — classic trend strength indicator
Order Block Detector — automatic identification of institutional order blocks
The core concept: Entry signals are generated only when ALL components confirm simultaneously, significantly increasing the probability of successful trades.
📈 ENTRY SIGNALS
🟢 BUY Signal
Triggers with triple confirmation:
✅ RSI crosses above 30
✅ Williams %R crosses above -70
✅ Price is near the lower Bollinger Band (within tolerance)
📌 Green triangle below the candle with "BUY" label
🔴 SELL Signal
Triggers with triple confirmation:
✅ RSI crosses below 70
✅ Williams %R crosses below -30
✅ Price is near the upper Bollinger Band (within tolerance)
📌 Red triangle above the candle with "SELL" label
🚪 EXIT SIGNALS
Signal Condition Display
Exit LONG Williams %R crosses above -30 ⬜ White cross above candle
Exit SHORT Williams %R crosses below -70 ⬜ White cross below candle
📦 ORDER BLOCK DETECTOR
Automatically identifies institutional order blocks based on volume analysis and market structure.
🟩 Bullish Order Block
Forms at local lows with high volume
Indicates strong buyer interest zone
🟢 Displayed as green rectangle
🟥 Bearish Order Block
Forms at local highs with high volume
Indicates strong seller pressure zone
🔴 Displayed as red rectangle
⚙️ Features:
✅ Bright highlighting (50% transparency)
✅ Displays only the last N blocks (adjustable)
✅ Auto-removal of mitigated blocks
✅ Average line display for each block
✅ Mitigation method selection: Wick or Close
⚙️ SETTINGS
"BB + RSI + WPR" Group
Parameter Default Description
Bollinger Bands Period 20 Calculation period for BB
BB Deviation 2.0 Standard deviation multiplier
Williams %R Period 25 Oscillator calculation period
RSI Period 5 RSI calculation period
BB Tolerance (%) 2.0 Price deviation tolerance from bands
"Order Block" Group
Parameter Default Description
Volume Pivot Length 5 Period for volume peak detection
Bullish OB 3 Number of bullish blocks to display
Bearish OB 3 Number of bearish blocks to display
Mitigation Methods Wick Mitigation method (Wick/Close)
Average Line Style ⎯⎯⎯ Style of the average line
🎨 VISUALIZATION
Element Color Description
BB Upper ⬜ White Upper Bollinger Band
BB Lower ⬜ White Lower Bollinger Band
BB Mid ⬜ White Middle band (dots)
BUY 🟢 Green Triangle below candle
SELL 🔴 Red Triangle above candle
Exit ⬜ White Cross above/below candle
Background 🟢/🔴 Highlight on signal
🔔 ALERTS
8 types of automatic notifications:
🔔 BUY Signal — Long entry
🔔 SELL Signal — Short entry
🔔 EXIT LONG — Close long position
🔔 EXIT SHORT — Close short position
🔔 Bullish OB Formed — Bullish order block detected
🔔 Bearish OB Formed — Bearish order block detected
🔔 Bullish OB Mitigated — Bullish block has been tested
🔔 Bearish OB Mitigated — Bearish block has been tested
📝 RECOMMENDATIONS
✅ Best used on:
📊 Timeframes: 5-minute to 4-hour
💰 Instruments: Cryptocurrencies, stocks, forex
📈 Markets: Volatile with clear trends
⚠️ Important Rules:
Always use stop-loss orders
Filter signals using higher timeframe trends
Adjust parameters for each specific instrument
Never trade against strong trends
⚠️ IMPORTANT DISCLAIMER
⚠️ THIS INDICATOR IS NOT A TRADING RECOMMENDATION!
📌 All signals are for informational purposes only
📌 This is an analytical tool, not a trading robot
📌 Always implement proper risk management
📌 Past performance does not guarantee future results
📌 Trading financial markets involves high risks
📌 Never invest money you cannot afford to lose
📚 HOW TO INSTALL
Open TradingView → Pine Editor
Copy the script code
Click "Save" → "Add to Chart"
Adjust parameters to your trading style
🏷️ TAGS
Bollinger Bands Williams %R RSI Order Block Scalping Day Trading Cryptocurrencies Stocks Forex Technical Analysis Volume Pine Script TradingView Combined Indicator BB WPR OB Institutional Smart Money
🤝 FEEDBACK
Questions, suggestions, or bug reports? Leave a comment below!
I appreciate constructive feedback and ideas for improvement.
📈 Happy Trading!
📋 QUICK SUMMARY
What you get Description
🎯 Entry Points BUY/SELL signals with 3 confirmations
🚪 Exit Points Automatic position closing signals
📦 Order Blocks Institutional accumulation zones
🔔 Alerts 8 types of automatic notifications
⚙️ Flexibility Full customization of all parameters
🎨 Visualization Clear and intuitive display
✅ Version: Pine Script v6
✅ Status: Tested, ready for use
✅ Compatibility: All timeframes, all instruments
✅ Language: English/Russian (dual support)
Built with dedication to trading. Protect your capital! ❤️
🔧 TECHNICAL DETAILS
Input Parameters:
BB Period: 20 (default) — adjustable
BB Deviation: 2.0 (default) — adjustable
Williams %R Period: 25 (default) — adjustable
RSI Period: 5 (default) — adjustable
BB Tolerance: 2% (default) — adjustable
Volume Pivot Length: 5 (default) — adjustable
Bullish OB Count: 3 (default) — adjustable
Bearish OB Count: 3 (default) — adjustable
Mitigation Method: Wick (default) — Wick/Close selectable
Alert Conditions:
Entry signals (BUY/SELL)
Exit signals (LONG EXIT/SHORT EXIT)
Order block formation (Bullish/Bearish)
Order block mitigation (Bullish/Bearish)
Visual Features:
White Bollinger Bands for better visibility
Colored rectangles for order blocks with 50% opacity
Triangle markers for entry signals with text labels
Cross markers for exit signals
Background color highlighting on signals
Ready to use on any instrument and timeframe! 🚀
Informacje o Wersji
Version 2.0 - Major Update🔧 Key Changes:
Extended Settings Range:
BB Period now adjustable from 1 to 1000 (was 20)
BB Deviation expanded to 0.5-5.0
Added precise tuning for any timeframe
Optimized Default Settings for Crypto:
Updated default values for day trading
BB Period: 25
BB Deviation: 2.0
Williams %R: 25
RSI: 10
BB Tolerance: 3.0%
Volume Pivot: 10
Improved Visualization:
Enlarged signal triangles (size.large)
Changed color scheme for better visibility:
BUY signals: aqua
SELL signals: orange
Bollinger Bands in standard colors (blue/red/yellow)
Optimized Order Blocks:
Reduced block brightness for better chart readability
Improved background transparency (70-75%)
Extended Customization:
All parameters now have wide ranges
Flexible adjustment for different trading styles
📊 Markets:
Bitcoin and cryptocurrencies
Intraday trading (5 min - 1 hour)
Scalping, day trading, swing trading
🎯 Recommended Timeframes:
15 minutes (optimal)
5 minutes (scalping)
1 hour (swing trading)
⚠️ Important:
Fully compatible with Pine Script v6
All alerts preserved and working
Backward compatibility maintained
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.