mgruner

Support and resistance zones

mgruner Aktualisiert   
Discretionary traders often use support and resistance zones that are based on past price action of the instrument traded.

This simple script is used to plot support and resistance zones for a given instrument. The data for the zones themselves has to be determined by the past price action of the instrument and are not based on the provided data by Tradingview.

The zones input has to come as a string. Each zone consists of a string with: "<low(number)>,<high(number)>,<"S"|"R"|"L">,<"Normal"|"Strong">"" The different zone strings have to be seperated by either new line or space.

An example for the zones input looks like:

3919.25,3919.25,L,Normal
3897.50,3906.50,R,Normal
3891.00,3894.50,S,Strong

I appreciate any feedback.
Versionshinweise:
- fix the start-bar of the boxes
- place labels after the last bar of the chart
Versionshinweise:
-Some more code clean-up
-move start of the zone to start of the day
Versionshinweise:
Allow for optional comments in one zone string, for example "3868.00,3878.00,S,Normal,My-comment_without_space"
Versionshinweise:
Fix label overlay on new bars.
Versionshinweise:
Fix: move Labels on a new bar
Versionshinweise:
Allow for zones boxes to be started some days back and not only today via input parameter.
Versionshinweise:
Adjusted the labels to not be centered, but left.
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?