PINE LIBRARY

WeightedVolumeUtils

120
Library "WeightedVolumeUtils"

fun(x)
  Returns the input value (placeholder function).
  Parameters:
    x (float): A float value.
  Returns: The same float value passed as input.

weightedBSEVolume()
  Calculates the weighted volume for BSE index based on top constituent stocks.
  Returns: Weighted volume value based on fixed weights for BSE SENSEX stocks.

getAdjustedVolume()
  Returns the adjusted volume for SENSEX or regular volume otherwise.
  Returns: Weighted BSE volume if current symbol is SENSEX, else raw volume.

Disclaimer

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.