vpirinski

PercenageDropFromATH

vpirinski Aktualisiert   
INFO:
The PercenageDropFromATH script is fairly simple indicator, which is able to:
  • detect the last ATH (real ATH of the full chart, not related to the selected timeframe) and plot it
  • user can select a percentage of drop from this price, and once reached can receive a notification
Note that if the ATH is outside of the visibility of the currently selected timeframe the indicator will not be able to show it. Recommended settings is 1D TF!

DETAILS:
The purpose of the script is to serve to ease passive investments in ETFs and indices, once those are dropping below certain point from the ATH.
Individual stocks are not really recommended in my view, as unlike the indices which are cherry picking the best companies from the sector, individual companies can always start drifting away.
Anyway, the indicator should work on all assets, including crypto, gold, etc.
Example usage could be of setting an alert for 25% drop in SPY, and start accumulating positions on every next 10% additional drop, so DCA can be done with favorable prices.

SETTINGS
The settings are pretty straight forward:
  • ATH Source - source for computing the ATH, default to "high", but user can select to check only on open/close/low as well
  • Percentage drop target from ATH - self explaining, default to 20
  • ATH color - only the last ATH until the current bar is been drawn
  • Plot ATH drop target price - optionally the target price after the percentage drop can be plotted as well
  • ATH drop target color - the color of the price after the percentage drop from ATH
Versionshinweise:
+ improved visibility for recent ATH by extending the lines a bit further
+ display lines only on last bar
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?