CD DeMark Range Expansion V3

I pretty much liked the initial idea by CristianD and the updated version by Eduardo Mattje of DeMarks Range Expansion.
The idea is to the range of the last day, multiplying it by 0.38 and 0.62 and projecting them from the opening of the current day, both in the up and down directions.

I tried to make it better with following fixes.
– Changed the range / amplitude to actually use the previous instead of the current candle >> amplitude = high - low
– Added the ability to set a custom number for the calculation of the expansion. The default is math.rphi which is ~0.618.
– Added a custom resolution entry field so you can for example enter 720 for half a day.
– You now can choose wheter it should use the daily open or the last days hl2 ( (high+low) / 2 ) for the calculation of the range expansion.
– Connecting lines for the ranges can now be turned off
Notes de version: Description update
Notes de version: Set the normal mode to default instead of the hl2 range mode.
Notes de version: Fixed the tooltip to make it fit.
Notes de version: – Added a mode dropdown selection for higher convenience. You can now choose between Daily Open, HL2 (Center) or HLC3 (Pivot) as a starting point for the calculation of the expansion.
– The offset selection for HL2/HLC3 mode and amplitude (range) are now completely customizable to your likes.
Notes de version: Minor descriptory fix
Notes de version: Added a second level due to a request and added a ATR table for daily and current charts candles movement.
Center mode seems to be interesting for crypto assets.
Notes de version: Fixed the color bug and added the central pivot range.
Notes de version: Added technical ratings
Notes de version: Global Switches added for DMRE and CPR
Notes de version: Added a second Central Pivot Range.
Notes de version: Added Daily, Weekly and Monthly Open keylevels.
Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?