Vold316

[Vold] TD D-Wave

Tom Demark's TD D-Wave is an indicator is Demark's take on Elliot Waves. For more information, I suggest you to read about it in Demark Indicators by Jason Perl .

Versionshinweise: - Fixed reset of wave 2 when going under wave 1, now it compares the value correctly with the origin of wave 1.
- Added an input to change the source that is used to compare the candles to determine the waves, by default is the close, and the new option is the high/low (wicks).
- Modified the mode input, now can be seen bull and bear mode at same time (The overlap of the indicators will be fixed for the next release).
- Modified the color of the wave, by default blue is for bull and red for bear.

Let me know if you want me to add new features of this indicator, like wave extensions.
Versionshinweise: - Fixed an issue with the bear waves (introduced in the last update). :p
Versionshinweise: + A Wave C can count as a starting point of a brand new impulsive set of waves. Before if there was a Wave C that qualified as a 0 point, the next wave was still 5 not 1.
+ After a Wave C (not qualified as a 0), if there's not a 0 point the price afterwards and the price violates previous 5th wave, it will count as a wave 1, not 5.

As requested I will add projections of waves C and 5, in the future. For now just use fib projection tools. :P
Versionshinweise: - Fixed Bear Waves (it was totally broken, I guess everyone using the indicator was bullish!).
Versionshinweise: The waves now reset properly when a candle violates a wave 2 or wave 0 bottom/top (for instance, before in a bull wave you could see a wave 4 if the price fell sharply below wave 2, now this does not happen).
Versionshinweise: " if TD D-Wave 2 closes below the low close of TD D-Wave 1, then TD D-Wave 1
will disappear, and the count must begin anew. (Similarly, if the low close of
TD D-Wave 4 closes below the low close of TD D-Wave 2, then TD D-Wave 2 will
shift to where TD D-Wave 4 would otherwise have been.) " - Tom Demark TD D-Wave by Jason Perl, page 77.

This was happening with wave A and C as well, so it was a bug.

Please, if you find a bug let me know.
Versionshinweise: Bullish: After wave A if a single candle breaks above wave 5 top, it gets labeled as wave 5 instead of wave b.
Bearish: After wave A if a single candle breaks below wave 5 bottom, it gets labeled as wave 5 instead of wave b.
Versionshinweise: Fixed a bug where a wave 2 would be printed in the first candle that qualified as a wave 2 start and violated the wave 1 bottom(bull)/top(bear).
Versionshinweise: Added optional features:

1. Show Projections (deactivated by default): Displays wave 3 and 5 projections.

2. Invalidate A Waves (deactivated by default): Invalidates wave a if it falls below wave 4 or wave 2 (this is not in the book, and is something that I totally made up, so don't use it, lol. Joke aside, I prefer it this way, but don't use it if you want to stick to what the book says, which is probably wise).

3. Highlight Invalidations (deactivated by default): It highlights invalidations of waves of both modes at any mode. I find it useful to figure out wether the bears or bulls are in control, hence which mode should be used.

4. Display At Inception (deactivated by default): Removes additional wave counts, for those that like the charts cleaner. It only shows the inception of each wave, not the top or bottom so keep this in mind because it may look awkward.


If you find a bug please let me know, thanks.
Versionshinweise: Improved performance and cleaned up the code.
Versionshinweise: Fixed "Use wicks" option (I broke it in the last version).
Versionshinweise: Removed optional feature to reduce number of dwave counts (I will implement something better in the future)
Modified the color by default of dwave counts for a tone that is easier to be seen.
Improved performance reducing redundant code, not it loads faster.
Versionshinweise: Added alert conditions (thanks to @gmmm, for the suggestion!)
Versionshinweise: Update to pinescript v5.
Versionshinweise: + Added option to see both waves in parallel (suggested by cyh850228).
Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?