PROTECTED SOURCE SCRIPT
Mis à jour Vasyl Ivanov | Order Blocks

Order Blocks Indicator for Long-Term Traders and Scalpers
This indicator is designed to identify order blocks (OBs) across multiple timeframes, offering flexible and adaptable detection mechanisms for both strong and weaker price movements.
Key Features:
How It Works:
This indicator detects key price zones based on order block patterns, which are often followed by significant price moves. By analyzing these blocks across multiple timeframes, it helps traders identify potential reversal areas and support/resistance zones more effectively.
Use Cases:
Scalping: Scalpers can benefit from the rapid detection of short-term OBs to make quick decisions based on high-probability setups.
Long-Term Trading: Longer-term traders can use the multi-timeframe feature to spot higher timeframe OBs while trading lower timeframes, allowing for better alignment with major market movements.
Why It’s Unique:
Unlike other OB indicators, this one combines multi-timeframe detection with customizable OB sizing, extremum detection, and color-coding for clear differentiation between timeframes. Its backtest feature enhances historical analysis, providing a comprehensive toolkit for traders aiming to improve decision-making.

This indicator is designed to identify order blocks (OBs) across multiple timeframes, offering flexible and adaptable detection mechanisms for both strong and weaker price movements.
Key Features:
- Flexible OB Detection:
Detects order blocks with 3 candles during strong movements.
Detects order blocks with 4 candles during weaker movements.
Identifies the highest or lowest extremum between the 1st and 2nd candles to define the starting point of the OB, ensuring accuracy in ranging and trending markets.
In cases where the 2nd candle's extremum is the highest/lowest, the OB size adjusts accordingly. - Multi-Timeframe Analysis:
This indicator enables seamless multi-timeframe order block analysis, removing the need to manually switch between timeframes.
Timeframe mapping:
For intraday and lower timeframes:
< 5 min maps to 30 min
<= 15 min maps to 1 hour
<= 1 hour maps to 4 hours
All other intraday maps to 1 day
Daily charts and higher map to 1 week
This automatic adjustment lets you view both current and parent timeframe order blocks without hassle. - Customizable Backtest Analysis:
The indicator includes a "Show/Hide Overlapped Order Blocks" feature, allowing you to hide order blocks that have already been overlapped. This feature aids in backtesting and historical analysis by offering a cleaner view of how past price action interacted with detected blocks.
[Consider adding a screenshot demonstrating the “Show/Hide Overlapped OB” feature here.] - Color Differentiation by Timeframe:
Customize different colors for local and parent timeframes to easily differentiate order blocks from various timeframes at a glance. - Candle Wicks Customization:
The 'Use Candle Wicks' option allows you to include or exclude candle wicks in OB detection, giving you flexibility in how the blocks are drawn based on your trading style.
How It Works:
This indicator detects key price zones based on order block patterns, which are often followed by significant price moves. By analyzing these blocks across multiple timeframes, it helps traders identify potential reversal areas and support/resistance zones more effectively.
Use Cases:
Scalping: Scalpers can benefit from the rapid detection of short-term OBs to make quick decisions based on high-probability setups.
Long-Term Trading: Longer-term traders can use the multi-timeframe feature to spot higher timeframe OBs while trading lower timeframes, allowing for better alignment with major market movements.
Why It’s Unique:
Unlike other OB indicators, this one combines multi-timeframe detection with customizable OB sizing, extremum detection, and color-coding for clear differentiation between timeframes. Its backtest feature enhances historical analysis, providing a comprehensive toolkit for traders aiming to improve decision-making.
Notes de version
Improved orderblocks' detection on parent timeframesNotes de version
Improved performance issuesNotes de version
Improved calculations speedNotes de version
Fixed runtime errorNotes de version
Added 4 additional higher timeframes. You can customize color style for each one at your ownNotes de version
Improved bearish OB detectionNotes de version
Improved multi-timeframe calculations for long periodsNotes de version
- Improved detection method- Added the 'OB Validity Distance' limit
Notes de version
Improved Order blocks detection by searching for the following imbalanceNotes de version
Fixed a bug for historical barsNotes de version
Improved OB detection after the price rejectionNotes de version
Fix color's alpha for overlapped order blocksNotes de version
Added Internal BoSNotes de version
Updated algorithm to detect order blocks bar index by the lowest/highest extremumNotes de version
Improved distance on which to hide FVGs and order blocksNotes de version
fixed script errorNotes de version
Fixed another code issueNotes de version
Increased the number of visible FVGsNotes de version
Improved efficiencyNotes de version
Prevent calculations out of barstate.isconfirmedNotes de version
Fixed error for history barsNotes de version
Improved extremums detectionNotes de version
One more fix for extremums detectionNotes de version
improved searching of a first extremumScript protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.