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

파인 라이브러리

진정한 TradingView 정신에 따라, 저자는 이 파인 코드를 다른 파인 프로그래머들이 재사용할 수 있도록 오픈 소스 라이브러리로 공개했습니다. 저자에게 박수를 보냅니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈 소스 출판물에서 사용할 수 있지만, 이 코드를 출판물에서 재사용하는 것은 하우스 룰에 의해 관리됩니다.

면책사항