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)

Pinebibliotek

I sann TradingView-anda har författaren publicerat denna Pine-kod som ett bibliotek med öppen källkod så att andra Pine-programmerare från vår community kan återanvända den. Hatten av för författaren! Du kan använda det här biblioteket privat eller i andra publikationer med öppen källkod, men återanvändning av den här koden i en publikation regleras av våra ordningsregler.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här biblioteket?

Kopiera följande rad och klistra in det i ditt skript.