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)

Pine腳本庫

本著真正的TradingView精神,作者將此Pine代碼以開源腳本庫發布,以便我們社群的其他Pine程式設計師可以重用它。向作者致敬!您可以私下或在其他開源出版物中使用此庫,但在出版物中重用此代碼受網站規則約束。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想使用這個腳本庫嗎?

複製以下行並將其黏貼到您的腳本中。