OPEN-SOURCE SCRIPT

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

업데이트됨
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!
릴리즈 노트
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
릴리즈 노트
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]
스냅샷
"Sensitivity" [2]
스냅샷
"Sensitivity" [3]
스냅샷
"Sensitivity" [4]
스냅샷
"Sensitivity" [6]
스냅샷

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!

릴리즈 노트
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

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


LuxAlgo Dev: luxalgo.com
PineCoder: pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -
또한 다음에서도:

면책사항