PROTECTED SOURCE SCRIPT

SB On Balance Profit/Loss Indicator

I was always interested in volume indicators as well as market sentiment.
While brainstorming, I came to the thought that people with gains vs people with losses can move a stock up or down.
I don't want to debate the rational behind people buying and selling based on profits or losses, so this isnt a signaling indicator.
However, I still wanted to have a way to measure and visualize this information.
On Balance Volume was not enough for me. I wanted to know how much actual money was made or lost, over time.
This indicator was created based on two different time periods, the daily and the 30m.
The daily time period is used to measure money made from close of the day before to the open of the current day (gap up/down).
The 30 minute precision period is used to measure the money made from the close of the current bar from the close of the bar prior and calculated 13 times per trading session.
There is an option for 15 minute and 5 minute precision, but it may take longer for the script to process and may time out at lower precision periods.
The default lookback period is 10 days, values are cumulative. We can clearly see over the last 10 days how much money was made, lost and on balance. This should affect trader sentiment.
Visual display is the cumulative money made (green line), cumulative money lost (red line), and cumulative net on balance money (black line). The net on balance money is filled green above zero and filled red below zero.
The Green Histogram is the money made overnight, the Red histogram is the money lost overnight.
The black histogram above zero is the money made intraday and the black histogram is the money lost intraday.

Takeways
Just because a stock is trending down, as noted by the downward slop in price on the daily chart , it does not mean that the average trader is losing money. Intraday price action can offset money lost at higher time periods.
Especially in cases where a stock gaps down overnight, buyers step in at the low and the stock closes above open, but below previous days close. Esspecially when this is done on high volume .
The net profit can be greater than net loss, even if the day closes down from previous close. This can really help with "sentiment" and being able to visualize this sentiment may be helpful in making a decision to buy or sell.

View my collection of custom scripts at: https://www.tradingview.com/u/StuBuzzzini/#published-scripts
Money Flow Index (MFI)On Balance Volume (OBV)sentimentVolume Indicator

보호된 스크립트입니다

이 스크립트는 클로즈 소스로 게시되며 자유롭게 사용할 수 있습니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다. 소스 코드는 보거나 수정할 수 없습니다.

차트에 이 스크립트를 사용하시겠습니까?


또한 다음에서도:

면책사항