PINE LIBRARY

Double_Triple_EMA

Library "Double_Triple_EMA"
Provides the functions to calculate Double and Triple Exponentional Moving Averages (DEMA & TEMA).

dema(_source, _length) Calculates Double Exponentional Moving Averages (DEMA)
Parameters:
  • _source: -> Open, Close, High, Low, etc ('close' is used if no argument is supplied)
  • _length: -> DEMA length

Returns: Double Exponential Moving Average (DEMA) of an input source at the specified input length

tema(_source, _length) Calculates Triple Exponentional Moving Averages (TEMA)
Parameters:
  • _source: -> Open, Close, High, Low, etc ('close' is used if no argument is supplied)
  • _length: -> TEMA length

Returns: Triple Exponential Moving Average (TEMA) of an input source at the specified input length

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.