OPEN-SOURCE SCRIPT

Support and resistance zones

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

Script open-source

Dans le plus pur esprit 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 nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité