peacefulLizard50262

peacefulIndicators

We are delighted to present the PeacefulIndicators library, a modest yet powerful collection of custom technical indicators created to enhance your trading analysis. The library features an array of practical tools, including MACD with Dynamic Length, Stochastic RSI with ATR Stop Loss, Bollinger Bands with RSI Divergence, and more.

The PeacefulIndicators library offers the following functions:

macdDynamicLength: An adaptive version of the classic MACD indicator, which adjusts the lengths of the moving averages based on the dominant cycle period, providing a more responsive signal.

rsiDivergence: A unique implementation of RSI Divergence detection that identifies potential bullish and bearish divergences using a combination of RSI and linear regression.

trendReversalDetection: A helpful tool for detecting trend reversals using the Rate of Change (ROC) and Moving Averages, offering valuable insights into possible market shifts.

volume_flow_oscillator: A custom oscillator that combines price movement strength and volume to provide a unique perspective on market dynamics.

weighted_volatility_oscillator: Another custom oscillator that factors in price volatility and volume to deliver a comprehensive view of market fluctuations.

rvo: The Relative Volume Oscillator highlights changes in volume relative to historical averages, helping to identify potential breakouts or reversals.

acb: The Adaptive Channel Breakout indicator combines a moving average with an adjustable volatility multiplier to create dynamic channels, useful for identifying potential trend shifts.

We hope this library proves to be a valuable addition to your trading toolbox.

Library "peacefulIndicators"
A custom library of technical indicators for trading analysis, including MACD with Dynamic Length, Stochastic RSI with ATR Stop Loss, Bollinger Bands with RSI Divergence, and more.

macdDynamicLength(src, shortLen, longLen, signalLen, dynLow, dynHigh)
  Moving Average Convergence Divergence with Dynamic Length
  Parameters:
    src (float): Series to use
    shortLen (int): Shorter moving average length
    longLen (int): Longer moving average length
    signalLen (int): Signal line length
    dynLow (int): Lower bound for the dynamic length
    dynHigh (int): Upper bound for the dynamic length
  Returns: tuple of MACD line and Signal line
Computes MACD using lengths adapted based on the dominant cycle period

rsiDivergence(src, rsiLen, divThreshold, linRegLength)
  RSI Divergence Detection
  Parameters:
    src (float): Series to use
    rsiLen (simple int): Length for RSI calculation
    divThreshold (float): Divergence threshold for RSI
    linRegLength (int): Length for linear regression calculation
  Returns: tuple of RSI Divergence (positive, negative)
Computes RSI Divergence detection that identifies bullish (positive) and bearish (negative) divergences

trendReversalDetection(src, rocLength, maLength, maType)
  Trend Reversal Detection (TRD)
  Parameters:
    src (float): Series to use
    rocLength (int): Length for Rate of Change calculation
    maLength (int): Length for Moving Average calculation
    maType (string): Type of Moving Average to use (default: "sma")
  Returns: A tuple containing trend reversal direction and the reversal point
Detects trend reversals using the Rate of Change (ROC) and Moving Averages.

volume_flow_oscillator(src, length)
  Volume Flow Oscillator
  Parameters:
    src (float): Series to use
    length (int): Period for the calculation
  Returns: Custom Oscillator value
Computes the custom oscillator based on price movement strength and volume

weighted_volatility_oscillator(src, length)
  Weighted Volatility Oscillator
  Parameters:
    src (float): Series to use
    length (int): Period for the calculation
  Returns: Custom Oscillator value
Computes the custom oscillator based on price volatility and volume

rvo(length)
  Relative Volume Oscillator
  Parameters:
    length (int): Period for the calculation
  Returns: Custom Oscillator value
Computes the custom oscillator based on relative volume

acb(price_series, ma_length, vol_length, multiplier)
  Adaptive Channel Breakout
  Parameters:
    price_series (float): Price series to use
    ma_length (int): Period for the moving average calculation
    vol_length (int): Period for the volatility calculation
    multiplier (float): Multiplier for the volatility
  Returns: Tuple containing the ACB upper and lower values and the trend direction (1 for uptrend, -1 for downtrend)

파인 라이브러리

트레이딩뷰 정신에 따라 오써는 이 파인 코드를 오픈 소스 라이브러리로 퍼블리쉬하여 당사 커뮤니티의 다른 파인 프로그래머들이 쓸 수 있도록 하였습니다. 오써에게 찬사를! 여러분은 이 라이브러리를 프라이빗 또는 오픈 소스 퍼블리케이션에 쓸 수 있지만 퍼블리케이션에 재사용은 하우스룰을 따릅니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

이 라이브러리를 쓰시겠습니까?

텍스트를 클립보드에 카피한 뒤 님의 스크립트에 붙여 넣기.