OPEN-SOURCE SCRIPT
RBD Market Profile

A Market Profile visually shows how much time (or how many bars) price spent at each price level within a session — helping identify areas of “fair value” (where price spent most time) and extremes (where price barely traded).
It divides each trading session (for example, a day, week, or month depending on input) into price segments, counts how many bars closed within each segment, and then identifies:
POC (Point of Control): price level with the highest frequency (most traded or visited).
VAH (Value Area High): upper boundary of the zone that contains 70% (or user-defined percentage) of all activity around the POC.
VAL (Value Area Low): lower boundary of that same 70% activity zone.
Finally, it plots lines for:
How to use this Market Profile:
It divides each trading session (for example, a day, week, or month depending on input) into price segments, counts how many bars closed within each segment, and then identifies:
POC (Point of Control): price level with the highest frequency (most traded or visited).
VAH (Value Area High): upper boundary of the zone that contains 70% (or user-defined percentage) of all activity around the POC.
VAL (Value Area Low): lower boundary of that same 70% activity zone.
Finally, it plots lines for:
- VAH (green line)
- VAL (red line)
- POC Upper & Lower (white lines)
- Session Open (blue dashed line)
How to use this Market Profile:
- Determine Key Areas of Support/Resistance by the VAH and VAL
- VAH: Responsive Sellers and Initiative Buyers
- VAL: Responsive Buyers and Initiative Sellers
- POC: Can be used as Fair Value
نص برمجي مفتوح المصدر
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
إخلاء المسؤولية
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
نص برمجي مفتوح المصدر
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
إخلاء المسؤولية
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.