PINE LIBRARY

divergence

已更新
Library "divergence"
divergence: divergence algorithm with top and bottom kline tolerance

regular_bull(series, series, simple, simple, simple, simple, simple) regular_bull: regular bull divergence, lower low src but higher low osc
  Parameters:
    series: float src: the source series
    series: float osc: the oscillator index
    simple: int lbL: look back left
    simple: int lbR: look back right
    simple: int rangeL: min look back range
    simple: int rangeU: max look back range
    simple: int tolerance: the number of tolerant klines
  Returns: array: [left_src_value, left_src_bars, left_osc_value, left_osc_bars, right_src_value, right_src_bars, right_osc_value, right_osc_bars]

hidden_bull(series, series, simple, simple, simple, simple, simple) hidden_bull: hidden bull divergence, higher low src but lower low osc
  Parameters:
    series: float src: the source series
    series: float osc: the oscillator index
    simple: int lbL: look back left
    simple: int lbR: look back right
    simple: int rangeL: min look back range
    simple: int rangeU: max look back range
    simple: int tolerance: the number of tolerant klines
  Returns: array: [left_src_value, left_src_bars, left_osc_value, left_osc_bars, right_src_value, right_src_bars, right_osc_value, right_osc_bars]

regular_bear(series, series, simple, simple, simple, simple, simple) regular_bear: regular bear divergence, higher high src but lower high osc
  Parameters:
    series: float src: the source series
    series: float osc: the oscillator index
    simple: int lbL: look back left
    simple: int lbR: look back right
    simple: int rangeL: min look back range
    simple: int rangeU: max look back range
    simple: int tolerance: the number of tolerant klines
  Returns: array: [left_src_value, left_src_bars, left_osc_value, left_osc_bars, right_src_value, right_src_bars, right_osc_value, right_osc_bars]

hidden_bear(series, series, simple, simple, simple, simple, simple) hidden_bear: hidden bear divergence, lower high src but higher high osc
  Parameters:
    series: float src: the source series
    series: float osc: the oscillator index
    simple: int lbL: look back left
    simple: int lbR: look back right
    simple: int rangeL: min look back range
    simple: int rangeU: max look back range
    simple: int tolerance: the number of tolerant klines
  Returns: array: [left_src_value, left_src_bars, left_osc_value, left_osc_bars, right_src_value, right_src_bars, right_osc_value, right_osc_bars]
發行說明
v2
Market Geometrystatisticstechindicator

Pine腳本庫

在真正的TradingView精神中,作者將這段Pine程式碼發佈為開源程式庫,以便我們社群的其他Pine程式設計師可以重複使用它。請向作者致敬!您可以私下使用這個函式庫,或在其他開源出版品中使用,但在出版物中再次使用這段程式碼將受到網站規則的約束。

免責聲明