Overview. This indicator checks to see if the OBV follows a specific pattern and visually displays the trend of the OBV on different time legs. It also has the ability to set alerts when certain conditions are met.
How to use Setting up the indicator
Add a new indicator on a chart in TradingView. Copy the code into the “Pine Script™ Editor” and save it as a new script. Apply the script to your chart. Indicator Functions
OBV Calculation
Calculates OBV for each time frame (5-minute, 15-minute, 30-minute, 1-hour, 4-hour, daily, and weekly) and displays it on the chart OBV is an indicator that combines price changes and trading volume. Pattern Detection
Detects whether a particular pattern, such as a double or triple bottom, appears in the OBV. This allows us to identify buy or sell signals. When these patterns are detected, the background color changes. Background Color Change
When an OBV forms a particular pattern, the background color of the chart changes. This provides visual confirmation that a pattern has appeared. Minimum pattern (min_bool): when the 5-, 15-, and 30-minute conditions for OBV are met. High hourly pattern (h_bool): when the condition is met for the 1-hour, 4-hour, and daily legs of the OBV. One-week pattern (range_obv_1w_bool): when the condition is met for the 1-week OBV pattern. When all conditions are met: when the minimum pattern, high hourly pattern, and one-week pattern are all met. Alert Settings
You can set alerts when certain conditions are met. This allows you to receive signals in real time. Minimum conditions (min_bool): conditions at 5, 15, and 30 minutes of OBV. High timeframe condition (h_bool): condition on the 1-hour, 4-hour, and daily legs of the OBV. When all conditions are met: When all of the above conditions are met. One-week condition (range_obv_1w_bool): Condition for the one-week leg of the OBV. When all conditions are met: when the minimum, high time leg, and one week conditions are all met. Arrows
OBV_ALL_UP: A green triangle arrow is displayed when the OBV is rising on all time legs. OBV_ALL_DOWN: A red triangle arrow appears when the OBV is falling on all time legs. Usage Notes Time Leg Settings: This script uses OBVs of different time legs to detect patterns. Depending on the time leg used, appropriate settings and interpretation are required. Alert settings: In order to activate the alert function, the alert conditions and notification method must be configured using TradingView's alert system. This indicator allows you to visually see trends and patterns in the OBV across multiple time frames, allowing you to make more informed trading decisions.
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.