PINE LIBRARY
Atualizado 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]
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]
Notas de Lançamento
v2Biblioteca do Pine
Em verdadeiro espírito TradingView, o autor publicou este código Pine como uma biblioteca de código aberto para que outros programadores Pine da nossa comunidade possam reutilizá-lo. Parabéns ao autor! Você pode usar esta biblioteca de forma privada ou em outras publicações de código aberto, mas a reutilização deste código em publicações é regida pelas Regras da Casa.
Aviso legal
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Biblioteca do Pine
Em verdadeiro espírito TradingView, o autor publicou este código Pine como uma biblioteca de código aberto para que outros programadores Pine da nossa comunidade possam reutilizá-lo. Parabéns ao autor! Você pode usar esta biblioteca de forma privada ou em outras publicações de código aberto, mas a reutilização deste código em publicações é regida pelas Regras da Casa.
Aviso legal
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.