code: def volume_price_trend(
      close,
      volume,
      fillna=False,
      smoothing_factor: tp.Optional[int] = None,
      dropnans: bool = False,
  ):
      """Volume-price trend (VPT)
  
      Is based on a running cumulative volume that adds or substracts a multiple
      of the percentage change in share price trend and current volume, depending
      upon the investment's upward or downward movements.
  
      https://en.wikipedia.org/wiki/Volume%E2%80%93price_trend
  
      Args:
          close(pandas.Series): dataset 'Close' column.
          volume(pandas.Series): dataset 'Volume' column.
          fillna(bool)=False: if True, fill nan values. DO NOT RECCOMEND to set it True.
          smoothing_factor(int)=None: will smooth default VPT implementation with SMA.
          dropnans(bool)=False: drop nans after indicator calculated.
  
      Returns:
          pandas.Series: New feature generated.
      """
      return VolumePriceTrendIndicator(
          close=close,
          volume=volume,
          fillna=fillna,
          smoothing_factor=smoothing_factor,
          dropnans=dropnans,
      ).volume_price_trend()
  
imports: import typing
  import numpy
  import pandas
  from ta.utils import IndicatorMixin, _ema
label_desc: Use image node_id 7 for calling a global function with example usage: volume_price_trend(close, volume, fillna, smoothing_factor, dropnans) and returns: VolumePriceTrendIndicator