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程序员可以重复使用它。向作者致敬!您可以私下或在其它开源出版物中使用此脚本库,但在出版物中重复使用此代码受网站规则约束。

免责声明