sskcharts

DTR vs ATR

sskcharts Aktualisiert   
This script shows DTR vs ATR (Today's True Range vs 14 days Avg True Range) along with percentage. The label automatically changes color based on percent value. <=70 is GREEN, >=90 is RED and between 70 & 90 is ORANGE.

The location of the script not stick to one place. There is no such a functionality to keep it static at one location (like top right corner). But I think that feature is coming soon. I may be wrong.
Versionshinweise:
This script shows DTR vs ATR (Today's True Range vs 14 days Avg True Range) along with percentage. The label automatically changes color based on percent value. <=70 is GREEN, >=90 is RED and between 70 & 90 is ORANGE.

The location of the label won't stick at one place. There is no such a functionality to keep it static at one location (like top right corner) currently. But I think that feature is coming soon. I may be wrong. Currently the label will be located top of the chart (y-axis) and numbers of bars left or right (x-axis) depending on input value. By default 5 bars left from last bar.
Versionshinweise:
Fixed an issue where if we have a Heikin Ashi chart (or Renko, Kagi, PriceBreak etc), daily high/low were not calculated based on real OHLC.
Versionshinweise:
Modified the script to allow folks to choose whether they want ATR smoothed based off of EMA, SMA, RMA or WMA. But you will have to modify the script. I have added comment above the specific line so that you can modify the script. There is no option add a input / drop-down menu since I calculate ATR based on Daily candles and also this script is modified to work with other candlestick charts like Heikin Ashi. There is a limitation that you cannot have "security" function under 'if' condition
Versionshinweise:
Little update to choose Smoothing Type (have to edit the script).
Versionshinweise:
Now added option to choose smoothing from drop-down menu. Enjoy
Versionshinweise:
Another little update.
Versionshinweise:
Updating some notes and removing unwanted lines
Versionshinweise:
Updating function and cleaning stuff
Versionshinweise:
Per request from my followers, I have updated this script so that you can choose location of the table and text size. In addition to that, you can enable/disable table title.

Here is the supported text size: "auto", "tiny", "small", "normal", "large", "huge"

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?