StuBuzzzini

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: www.tradingview.com/u/StuBuzzzini/

Disclaimer: I am not a financial advisor. Do not take anything on here, twitter or stocktwits as financial advice, ever. Do your own research. Consult a professional investment advisor before making any investment decisions!
Script protegido
Este script é publicado como de código fechado e você pode usá-lo livremente. Você pode favoritá-lo para utilizá-lo em um gráfico. Você não pode visualizar ou modificar seu código fonte.
Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?