TradingView
Trendoscope
14 фев 2022 г., 17:28

Intrabar OBV/PVT 

SPDR S&P 500 ETF TRUSTArca

Описание

I got this idea from @fikira's script Intrabar-Price-Volume-Change-experimental

The indicator calculates OBV and PVT based on ticks. Since, the indicator relies on live ticks, it only starts execution after it is put on the charts. The script can be useful in analysing intraday buy and sell pressure. Details are color coded based on the values.

Data is presented in simple tabular format.



Formula for OBV and PVT can be found here:

https://www.investopedia.com/terms/o/onbalancevolume.asp

https://www.investopedia.com/terms/v/vptindicator.asp

Информация о релизе

  • Added moving average to running stats
  • Option to get alerts on bar close.

Информация о релизе

Thanks to @safeuse97 for finding a critical bug.

But is now fixed. And I also added an input option to reset data on bar end.
Комментарии
Choubey_Rahul
very useful , how about pivot high and pivot low , auto anchored vwaps for three different timeframes
Trendoscope
@Choubey_Rahul, I am not sure if pivot high/low will be useful on intrabar. Vwaps are not my speciality. May need to study that further.
safeuse97
The script is very good. But i have found one issue in it. whenever the current candle is about to end the whole volume of the candle either get added or subtracted in the obv value. According to me it should not happen because the value of obv is getting adjusted at each tick then why we are adding whole volume in it. Can you clarify it if i am wrong?
Trendoscope
@safeuse97, You my friend, helped me uncover a critical bug. Yes, this is happening on first tick of new bar I guess. Fixing it soon.
Trendoscope
@safeuse97, Fixed now. Check please.
safeuse97
@HeWhoMustNotBeNamed, Thankyou, Its fixed now.
Ещё