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が提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

このライブラリを使用したいですか?

以下の行をコピーして、スクリプト内に貼り付けてください。