code: def triangular_moving_average(data, period):
      
      catch_errors.check_for_period_error(data, period)
  
      tma = sma(sma(data, period), period)
      return tma
docs: Triangular Moving Average.
  
      Formula:
      TMA = SMA(SMA())