OPEN-SOURCE SCRIPT

Potential Divergence Checker

Actualizado
#### Key Features

1. Potential Divergence Signals:
Potential divergences can signal a change in price movement before it occurs. This indicator identifies potential divergences instead of waiting for full confirmation, allowing it to detect signs of divergence earlier than traditional methods. This provides more flexible entry points and can act as a broader filter for potential setups.

2. Exposing Signals for External Use:
One of its advanced features is the ability to expose signals for use in other scripts. This allows users to integrate divergence signals and related entry/exit points into custom strategies or automated systems.

3. Custom Entry/Exit Timing Based on Years and Days:
The indicator provides entry and exit signals based on years and days, which could be useful for time-specific market behavior, long-term trades, and back testing.

#### Basic Usage

This indicator can check for all types of potential divergences: bullish, hidden bullish, bearish, hidden bearish. All you need to do is choose the type you want to check for under “DIVERGENCE TYPE” in the settings. On the chart, potential bullish divergences will show up as triangles below the price candles. one the chart potential bearish divergences will show up as upside down triangles above the price candles

#### Signals for Advanced Usage

You can use this indicator as a source in other indicators or strategies using the following information:

PD: Bull divergence signal” will return “1” when a divergence is present and “0” when not present

PD: HBull divergence(hidden bull) signal” will return “1” when a divergence is present and “0” when not present

PD: Bear divergence signal” will return “1” when a divergence is present and “0” when not present

PD: HBear divergence(hidden bear) signal” will return “1” when a divergence is present and “0” when not present

PD: enter” signal will return a “1” when both the days and years criteria in the “entry filter settings” are met and “0” when not met.

PD: exit” signal will return a “1” when the days criteria in the “exit filter settings” are met and “0” when not met.

#### Examples of Using Signals

1. If you are testing a long strategy for Bitcoin and do not want it to run during bear market years(e.g., the second year after a US presidential election), you can enable the “year and day filter for entry,” uncheck the following years in the settings: 2010, 2014, 2018, 2022, 2026, and reference the signal below in our strategy
signal: “PD: enter

2. Let’s say you have a good long strategy, but want to make it a bit more profitable, you can tell the strategy not to run on days where there is potential bearish divergence and have it only run on more profitable days using these signals and the appropriate settings in the indicator
signal: “PD: Bear divergence signal” will return a ‘0’ with no bearish divergence present
signal: “PD: enter” will return a “1” if the entry falls on a specific, more profitable day chosen in the settings


#### Disclaimer
The "Potential Divergence Checker" indicator is a tool designed to identify potential market signals. It may have bugs and not do what it should do. It is not a guarantee of future trading performance, and users should exercise caution when making trading decisions based on its outputs. Always perform your own research and consider consulting with a financial advisor before making any investment decisions. Trading involves significant risk, and past performance is not indicative of future results.
Notas de prensa
#### Key Features

1. Potential Divergence Signals:
Potential divergences can signal a change in price movement before it occurs. This indicator identifies potential divergences instead of waiting for full confirmation, allowing it to detect signs of divergence earlier than traditional methods. This provides more flexible entry points and can act as a broader filter for potential setups.

2. Exposing Signals for External Use:
One of its advanced features is the ability to expose signals for use in other scripts. This allows users to integrate divergence signals and related entry/exit points into custom strategies or automated systems.

3. Custom Entry/Exit Timing Based on Years and Days:
The indicator provides entry and exit signals based on years and days, which could be useful for time-specific market behavior, long-term trades, and back testing.

#### Basic Usage

This indicator can check for all types of potential divergences: bullish, hidden bullish, bearish, hidden bearish. All you need to do is choose the type you want to check for under “DIVERGENCE TYPE” in the settings. On the chart, potential bullish divergences will show up as triangles below the price candles. one the chart potential bearish divergences will show up as upside down triangles above the price candles

#### Signals for Advanced Usage

You can use this indicator as a source in other indicators or strategies using the following information:

“PD: Bull divergence signal” will return “1” when a divergence is present and “0” when not present

“PD: HBull divergence(hidden bull) signal” will return “1” when a divergence is present and “0” when not present

“PD: allBullish divergence signal” will return “1” when either bullish or hidden bullish divergence is present and “0” when not present

“PD: Bear divergence signal” will return “1” when a divergence is present and “0” when not present

“PD: HBear divergence(hidden bear) signal” will return “1” when a divergence is present and “0” when not present

“PD: allBearish divergence signal” will return “1” when either bearish or hidden bearish divergence is present and “0” when not present

“PD: enter” signal will return a “1” when both the days and years criteria in the “entry filter settings” are met and “0” when not met.

“PD: exit” signal will return a “1” when the days criteria in the “exit filter settings” are met and “0” when not met.

#### Examples of Using Signals

1. If you are testing a long strategy for Bitcoin and do not want it to run during bear market years(e.g., the second year after a US presidential election), you can enable the “year and day filter for entry,” uncheck the following years in the settings: 2010, 2014, 2018, 2022, 2026, and reference the signal below in our strategy
signal: “PD: enter”

2. Let’s say you have a good long strategy, but want to make it a bit more profitable, you can tell the strategy not to run on days where there is potential bearish divergence and have it only run on more profitable days using these signals and the appropriate settings in the indicator
signal: “PD: Bear divergence signal” will return a ‘0’ with no bearish divergence present
signal: “PD: enter” will return a “1” if the entry falls on a specific, more profitable day chosen in the settings


#### Disclaimer
The "Potential Divergence Checker" indicator is a tool designed to identify potential market signals. It may have bugs and not do what it should do. It is not a guarantee of future trading performance, and users should exercise caution when making trading decisions based on its outputs. Always perform your own research and consider consulting with a financial advisor before making any investment decisions. Trading involves significant risk, and past performance is not indicative of future results.
Relative Strength Index (RSI)Trend Analysis

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad