Bearish Divergence


Function Name: bear_div

Tags: None

Category: Other

The Bearish Divergence function marks occurrences of highs in the prices not accompanied by highs in an indicator. If the criterion of Bearish Divergence is met, a value of +1 will be returned; otherwise, a value of 0 will be returned.

A divergence is a move in the price of an asset not confirmed by a comparable move in the applied technical indicator. A bearish divergence exists when a market reaches a new high without the indicator reaching a corresponding new high.




Choose any symbol as the first base. By default, the first symbol that is shown on the chart is used.


Choose an indicator as the second base, for example the RSI. The indicator must already be visible on the chart in order to use it as a base.




Default Value: 14  |  Minimum: 2  |  Maximum: 9999


Type: Numeric



Default Value: 0  |  Minimum: 0  |  Maximum: 10


Type: Numeric