OPEN-SOURCE SCRIPT

[OBV] [MACD] [Accelerator/Awesome Oscillator] + PivDiv 2

Actualizado
Here is an indicator with 4 options:

- OBV [On Balance Volume]
- MACD [MACD] (uses default EMA, you can change this to SMA)
- AC [Accelerator Oscillator]
- AO [Awesome Oscillator]

All accompanied with my "Divergences (Pivots)" with 3 settings:

- 'Long Period', default checks 19 bars to the Left (="History") and 1 bar to the Right (="Future")
- 'Medium Period', default checks 14 bars to the Left (="History") and 1 bar to the Right (="Future")
- 'Short Period', default checks 9 bars to the Left (="History") and 1 bar to the Right (="Future")

When choosing an indicator, it comes with their accompanying "Divergences"!

Each Bar checks an amount of Bars at the Left (="History") and Bars to the Right (="Future"), insuring this particular Bar is the Highest or Lowest of them all at "close",
this is compared to the [On Balance Volume] or [MACD] or [Accelerator or Awesome Oscillator] and so we have our Divergences.
There is always a slight delay (number of Bar(s) at the Right side (="Future")

If you like a setting, where the amount of “RightBars” equals the ”LeftBars” you can enable the " > Only change 'LeftBars'" button.
Then you only have to adjust the amount of “LeftBars” and the amount of “RightBars” automatically will be the same.

Bullish divergences are "Green"
- 'Short' - 'Medium' "period" > "▲"
- 'Long' "period" > "⇧"

Bearish divergences are "Red"
- 'Short' - 'Medium' "period" > "▼"
- 'Long' "period" > "⇩"

Hidden divergences ( Bullish and Bearish ) are:
- 'Short' - 'Medium' "period" > "▲▼" - "White"
- 'Long' "period" > "⬆︎⬇︎" - "Yellow"

Since for me, at this moment, it is impossible to let this indicator work as our eyes work, it will miss sometimes. I've tried to solve this by putting 3 different "Periods",
but it is not perfect, so look at it as an aiding tool, a "hint" so you can look in detail if there is something of importance or not.

What also helps is to switch timeframes.
For example on a 1 hour chart a "Highest" point can be missed sometimes, but could be perfectly visible on a 2 or 4 hour chart.

Also, try to change the numbers in a way that suits you the best.

Enjoy!
Notas de prensa
Added an extra plot line to the "Accelerator/Deceleration Oscillator" and the "Awesome Oscillator" for better interpretation,
this line also changes colour according to the Histogram.

The 0-line in "MACD", "Accelerator/Deceleration Oscillator" and the "Awesome Oscillator" changes colour as well according if the movement is above or below the 0-line

Also added green & orange dots in the "Accelerator/Deceleration Oscillator" and the "Awesome Oscillator"

Dots "Awesome Oscillator":

"Saucer" (3 bars signal) is:

a buy signal when the bars are above the 0-line and:
- second column is falling lower than the first one (red coloured)
- third column is rising higher than the second (green coloured)

a sell signal when the bars are below the 0-line and:
- second column is rising higher than the first one (green coloured)
- third column is falling lower than the second (red coloured)

"Zero line crossing" (2 bars signal):
- when the bars crosses the 0-line

Dots "Accelerator/Deceleration Oscillator":

DON'T buy when the current column is red,
DON'T sell when the current column is green.


If Acceleration/Deceleration is above the 0-line, then it is usually easier for the acceleration to continue the upward movement (and vice versa in cases when it is below the 0-line).
Unlike with the "Awesome Oscillator", when the 0-line is crossed, this is not a signal. The only thing what matters for making decisions is detecting colour changes.

Buy signal (2 bars signal):
- when the indicator is above the 0-line > 2 consecutive green columns
Buy signal (3 bars signal):
- when the indicator is below the 0-line > 3 consecutive green columns

Sell signal (2 bars signal):
- when the indicator is below the 0-line > 2 consecutive red columns
Sell signal (3 bars signal):
- when the indicator is above the 0-line > 3 consecutive red columns
Notas de prensa
Added "Sensitivity" of "Divergences": if [X] ⩾2 then the value is compared with ⩾2 previous values, making the sensitivity higher
(default setting = 3, if you like previous setting, just change to "1")

Example:

"Sensitivity" [1]
imagen
"Sensitivity" [2]
imagen
"Sensitivity" [3]
imagen
"Sensitivity" [4]
imagen
"Sensitivity" [6]
imagen

You'll see the higher the "Sensitivity", less Divergences get missed, of course there are also more symbols,
I wouldn't suggest to use a "Sensitivity" higher than "6"

Have fun!

Notas de prensa
Previous examples should be accompanied with numbers, they disappeared because I used '['
The examples were with "Sensitivity" of 1, 2, 3, 4 and lastly 6

I've now was able to fix the needless recurring symbols, I now set the "Sensitivity" at 5, you can always change it of course.
While evaluating be sure to check different timeframes as well!

Also, some small changes:

Bullish divergences are still "Green"
- "⇡︎" = 'Short' "period"
- "↑" = 'Medium' "period"
- "⇧" = 'Long' "period"

Bearish divergences are still "Red"
- "⇣︎" = 'Short' "period"
- "↓︎" = 'Medium' "period"
- "⇩︎" = 'Long' "period"

Hidden Bullish divergences are "White"
- "⇡︎" = 'Short' "period"
- "↑" = 'Medium' "period"
- "⇧" = 'Long' "period"

Hidden Bearish divergences are "White"
- "⇣︎" = 'Short' "period"
- "↓︎" = 'Medium' "period"
- "⇩︎" = 'Long' "period"

Thank you!
Bill Williams IndicatorsCentered OscillatorsVolume

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?


LuxAlgo Dev: luxalgo.com
PineCoder: pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -
También en:

Exención de responsabilidad