Daniel_Ge Updated   
Library "Functions"

  Half Candles
  Returns: half candles (difference between open and close)

super_smoother(source, len)
  Ehlers Super Smoother
    source (float): Source
    len (int)
  Returns: super smoothed moving average

quotient(length, K)
  Ehlers early onset trend
    length (int): Length (default = 1)
    K (float): Factor (default = 0.8)
  Returns: Ehlers early onset trend

butterworth_2Pole(src, length)
  Ehlers 2 Pole Butterworth Filter
    src (float): Source
    length (int): Length
  Returns: Ehlers 2 Pole Butterworth Filter

hann_ma(src, length)
  Ehler's Hann Moving Average
    src (float): Source
    length (int): Length
  Returns: Ehler's Hann Moving Average

  Ehlers Optimum Elliptic Filter
    src (float): Source
  Returns: Ehlers Optimum Elliptic Filter

  Ehlers Modified Optimum Elliptic Filter
    src (float): Source
  Returns: Ehlers Modified Optimum Elliptic Filter

arsi(src, length)
  Advanced RSI
    src (float): Source
    length (simple int): Length (default = 14)
  Returns: ARSI

smoothrng(src, length, multi)
  Smooth Range
    src (float): Source
    length (simple int): Length
    multi (float): Multiplikator (default 3.0)
  Returns: Smooth Range
Release Notes:

  Donchian Channel incl. switch (as used in Turtle Trade Channels)
    length (int): Length
  Returns: upper, average, lower, dc_switch
Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.


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.

Want to use this library?

Copy the following line and paste it in your script.