OPEN-SOURCE SCRIPT

Zig Zag/Consecutive Bars [UkutaLabs]

Aktualisiert
█ OVERVIEW

The Zig Zag/Consecutive Bars indicator is a powerful trading tool that helps to visualise the flow of the market. This indicator allows users to see at a glance when a candle closes at a new high or a new low, which can be incorporated into a variety of trading strategies to better understand points of reversal and consolidation.

This indicator also displays the RSI score of each pivot, as well as a trailing count of how many bars it has been since there was a new high/low.

█ USAGE

As each bar finishes, the script will check if it closed above or below the previous bar’s high or low, depending on the current trend direction. When a new high or low is set, the script will then look for a move in the other direction. This can be a powerful tool that can identify when the market is trending strongly, as well as identifying when the market has a weak or no trend.

At each pivot point, the RSI score is displayed. This serves as additional confirmation to how strong the trend is. The RSI labels can be turned off in the settings.

As each trend develops, the script will count and display the number of bars that have closed since the most recent pivot. These labels can be turned off in the settings.


█ SETTINGS

Configuration

• Show RSI Scores: Determines whether or not labels displaying RSI scores are drawn.
• Show Counter: Determines whether or not labels displaying the number of bars since the most recent pivot are drawn.
• Line Color: Determines the color of the Zig Zag line.
Versionshinweise
- Fixed a small bug that caused the first bar of the count to be 0.
Versionshinweise
- Added a new setting: Change Bar Color. This setting will change the colors of bars depending on whether the zig zag last finished at a low or a high, regardless of whether the bar finished above or below its opening price.
- Added a new setting: Bullish Color. This setting determines the color of bars in a bullish trend when the Change Bar Color setting is toggled.
- Added a new setting: Bearish Color. This setting determines the color of bars in a bearish trend when the Change Bar color setting is toggled.
Relative Strength Index (RSI)Trend Analysis

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Haftungsausschluss