This study calculates the On-Balance Volume (OBV) and displays it in terms of its Z-Score.

OBV is a great momentum indicator . As the name suggests, OBV predicts changes in price based on the security's volume flow.

Formula:
if (Current Price > Previous Price)
then Current OBV = Previous OBV + Current Volume

if (Current Price < Previous Price)
then Current OBV = Previous OBV - Current Volume

if (Current Price == Previous Price)
then Current OBV = Previous OBV

As the formula shows, the OBV goes a step beyond just looking at the pure volume of a security. Instead, it factors in relative price action from period to period to reflect investor sentiment. As a result, we often look to the OBV to spot bullish or bearish trends while they are in the early stages of development or simply predict impending uptrends or downtrends.

To make the OBV easier to visualize, we converted the value to a Z-Score. The Z-Score is a simple statistical measurement and represents the current OBV value's distance from the mean OBV value in terms of # of standard deviations.

Users can adjust the values for the 2 upper bounds for Z Scores and 2 lower bounds. Additionally, the n value for z score calculation can be adjusted in the input menu. A higher n value means the z score will be based on a longer lookback period. A lower value will result in more sensitive readings.

Overall, I think this is an interesting way to represent OBV values and will be a valuable leading indicator.

~Happy Trading~

-Profit Programmers
www.profitprogrammer.com
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?