OPEN-SOURCE SCRIPT
TZ-REVE

TZ-REVE is a sub-panel indicator that seeks to provide a concise overview of what is going on in the market dynamics of the instrument in the period shown on the chart, i.e. short- and longer trends, analysis of ranges and volume events all in one visual. Because it has a steep learning curve, an analyis for the last/current candle of all these is also provided in four catchwords.
TZ stands for TrendZones, because depicts the TrendZones situation. TrendZones is a channel indicator which I published some time ago.
REVE stands for Range Extension Volume Expansion, for which I published several attempt's.
In this indicator I used code from their scripts. I tried to improve the visual presentation.
A new feature is the Center Zone with colored patches to indicates short up- and downtrends derived from how a three period moving average moves in relation to a nine period and twenty period MA. This results in five colors:
• White for a situation which I call “transition”, there the 3MA either moves down while above both 9MA and 20MA or moves up while below both 9MA and 20MA or some other non-color situations;
• Transparent Green indicates upward movement, which I called “rise(rising)”, here the 3MA moves up while above 9MA but below 20MA
• Lime green indicates strong upward movement, which I called “soar(soaring)”, here the 3MA moves up while above both the 9MA and the 20MA.
• Brown indicates a downward movement called “drop(dropping)”, when the 3MA moves down while below 20MA but above 9MA.
• Transparent Fuchsia indicates a strong downward movement called “plunge(plunging)”, when the 3MA moves down while below both 9MA and 20MA.
To show this, I created an indicator out of these three MA’s in which the zones in between these lines are colored with the same logic, the thick green line is 3MA, the purple thin line is 9MA, the gray thin line is 20MA: Three MA example:
I refer to the columns pointing upward and downward as ‘ticks’. They represent the range and direction of three last periods. The direction is NOT calculated as close above or below open (like in candlesticks) but as close above or below the highest of the two previous closes. The ticks get four possible colors:
• Yellow for small range up- and downticks
• Gray for ‘normal’ range up- and downticks
• Green for wide range upticks
• Purple for wide range downticks
The length of the Tick Columns is calculated through a comparison of the current True Range with the Average True Range of the last 50 periods, taken as 100 percent. The result is marked as ‘small’ when this current TR is less then 60 percent , ‘wide’ when more then 110 percent, ‘normal’ otherwise.
The TrendZones Situation is depicted with the green and blue thick line above the Center Zone and the orange and red line below it. In fact these are stretches of the same line. This line is calculated as a percent of the distance of the hl2 from the COG where Upper Curve minus Lower Curve is taken as 100 percent. The Situation line is made invisible where the candle or bar crosses the COG.
The colors are:
• Red when the bar is in the red strong downtrend zone
• Orange if the bar is in the orange downtrend zone
• Invisible when bar crosses COG (“sideways”)
• Green for the bar in the green uptrend zone
• Blue when in the strong uptrend zone.
Where the direction of the Tick coincides with the trend, the Tick column is ‘crowned’ with a dot of the same color as the Situation line.
To show this, I have put a TrendZones (updated version) in the example chart:
Trendzones Situation example:
When volume in a certain period is higher than normal, I call this a ‘volume event’. A volume event indicates that the price action is supported with many buyers and sellers. To calculate whether a volume event happened and how big it is, we need to know the ‘normal’ volume. In the case of volume, ‘average’ cannot be used, because outliers in volume are so huge that they make the average too high to find smaller volume events in the following timeframes. To avoid the outlier influence, I use the ‘median’ of fifty periods as ‘normal’, using that as 100 percent. This leads to five cohorts for the current volume:
• 0-120 percent of normal: Unremarkable volume – no marker
• 120-150 percent of normal: Much volume – gray triangle
• 150-180 percent of normal: High volume – orange triangle
• 180-210 percent of normal: Huge volume – red triangle
• 210 and higher percent of normal: Extreme volume – maroon triangle
The Volume Event Triangles are placed in the middle of the Center Zone, pointing in the same direction as the ticks.
In previous versions I tried to calculate the direction of volume markers in a way that not only leads to ‘up’ or ‘down’ but also ‘falter’. Periods with falter are often part of a reversal pattern. For these situations I created a Falter Marker, a black dot on the Center Zone border under the tick column. Although these dots are interesting, they have no practical use in my analysis. They are there because they are a nice feature if the instrument comes without volume, like some indexes.
Because this indicator is crammed with information, it has a steep learning curve. To help understand what is reported by all its features, I created four catch phrases to the right. These concern the last (current) candle or bar.
- On top a catchword for the Center Zone color patches, which represent short up- and downtrend. These can be ‘rising’, ‘soaring’, ‘dropping’, ‘plunging’ or ‘transition’.
- Then a catchword for the TrendZones Situation.
These can be: ‘S uptrend’, ‘uptrend’, ‘downtrend’, ‘S downtrend’ or ‘sideways’
- Then a catchword for Tick column.
These can be
• ‘Fwide up’ which means wide range pointing up with falter marker
• ‘wide up’ wide range pointing up
• Fwide down’ wide range pointing down with falter marker
• ‘wide down’ wide range pointing down
• Fsmall up’ small range pointing up with falter marker
• ‘small up’ small range pointing up
• ‘Fsmall down’ small range pointing down with falter marker
• ‘small down’ small range pointing down
• ‘Fup’ normal range pointing up with falter marker
• ‘up’ normal range pointing up
• ‘Fdown’ normal range pointing down with falter marker
• ‘down’ normal range pointing down
- Then a catchword for volume.
These can be ‘no volume’, ‘normal vol’, ‘much vol’, ‘high vol’, ‘huge vol’ or ‘extreme vol’.
Have fun,
Eykpunter
TZ stands for TrendZones, because depicts the TrendZones situation. TrendZones is a channel indicator which I published some time ago.
REVE stands for Range Extension Volume Expansion, for which I published several attempt's.
In this indicator I used code from their scripts. I tried to improve the visual presentation.
A new feature is the Center Zone with colored patches to indicates short up- and downtrends derived from how a three period moving average moves in relation to a nine period and twenty period MA. This results in five colors:
• White for a situation which I call “transition”, there the 3MA either moves down while above both 9MA and 20MA or moves up while below both 9MA and 20MA or some other non-color situations;
• Transparent Green indicates upward movement, which I called “rise(rising)”, here the 3MA moves up while above 9MA but below 20MA
• Lime green indicates strong upward movement, which I called “soar(soaring)”, here the 3MA moves up while above both the 9MA and the 20MA.
• Brown indicates a downward movement called “drop(dropping)”, when the 3MA moves down while below 20MA but above 9MA.
• Transparent Fuchsia indicates a strong downward movement called “plunge(plunging)”, when the 3MA moves down while below both 9MA and 20MA.
To show this, I created an indicator out of these three MA’s in which the zones in between these lines are colored with the same logic, the thick green line is 3MA, the purple thin line is 9MA, the gray thin line is 20MA: Three MA example:
I refer to the columns pointing upward and downward as ‘ticks’. They represent the range and direction of three last periods. The direction is NOT calculated as close above or below open (like in candlesticks) but as close above or below the highest of the two previous closes. The ticks get four possible colors:
• Yellow for small range up- and downticks
• Gray for ‘normal’ range up- and downticks
• Green for wide range upticks
• Purple for wide range downticks
The length of the Tick Columns is calculated through a comparison of the current True Range with the Average True Range of the last 50 periods, taken as 100 percent. The result is marked as ‘small’ when this current TR is less then 60 percent , ‘wide’ when more then 110 percent, ‘normal’ otherwise.
The TrendZones Situation is depicted with the green and blue thick line above the Center Zone and the orange and red line below it. In fact these are stretches of the same line. This line is calculated as a percent of the distance of the hl2 from the COG where Upper Curve minus Lower Curve is taken as 100 percent. The Situation line is made invisible where the candle or bar crosses the COG.
The colors are:
• Red when the bar is in the red strong downtrend zone
• Orange if the bar is in the orange downtrend zone
• Invisible when bar crosses COG (“sideways”)
• Green for the bar in the green uptrend zone
• Blue when in the strong uptrend zone.
Where the direction of the Tick coincides with the trend, the Tick column is ‘crowned’ with a dot of the same color as the Situation line.
To show this, I have put a TrendZones (updated version) in the example chart:
Trendzones Situation example:
When volume in a certain period is higher than normal, I call this a ‘volume event’. A volume event indicates that the price action is supported with many buyers and sellers. To calculate whether a volume event happened and how big it is, we need to know the ‘normal’ volume. In the case of volume, ‘average’ cannot be used, because outliers in volume are so huge that they make the average too high to find smaller volume events in the following timeframes. To avoid the outlier influence, I use the ‘median’ of fifty periods as ‘normal’, using that as 100 percent. This leads to five cohorts for the current volume:
• 0-120 percent of normal: Unremarkable volume – no marker
• 120-150 percent of normal: Much volume – gray triangle
• 150-180 percent of normal: High volume – orange triangle
• 180-210 percent of normal: Huge volume – red triangle
• 210 and higher percent of normal: Extreme volume – maroon triangle
The Volume Event Triangles are placed in the middle of the Center Zone, pointing in the same direction as the ticks.
In previous versions I tried to calculate the direction of volume markers in a way that not only leads to ‘up’ or ‘down’ but also ‘falter’. Periods with falter are often part of a reversal pattern. For these situations I created a Falter Marker, a black dot on the Center Zone border under the tick column. Although these dots are interesting, they have no practical use in my analysis. They are there because they are a nice feature if the instrument comes without volume, like some indexes.
Because this indicator is crammed with information, it has a steep learning curve. To help understand what is reported by all its features, I created four catch phrases to the right. These concern the last (current) candle or bar.
- On top a catchword for the Center Zone color patches, which represent short up- and downtrend. These can be ‘rising’, ‘soaring’, ‘dropping’, ‘plunging’ or ‘transition’.
- Then a catchword for the TrendZones Situation.
These can be: ‘S uptrend’, ‘uptrend’, ‘downtrend’, ‘S downtrend’ or ‘sideways’
- Then a catchword for Tick column.
These can be
• ‘Fwide up’ which means wide range pointing up with falter marker
• ‘wide up’ wide range pointing up
• Fwide down’ wide range pointing down with falter marker
• ‘wide down’ wide range pointing down
• Fsmall up’ small range pointing up with falter marker
• ‘small up’ small range pointing up
• ‘Fsmall down’ small range pointing down with falter marker
• ‘small down’ small range pointing down
• ‘Fup’ normal range pointing up with falter marker
• ‘up’ normal range pointing up
• ‘Fdown’ normal range pointing down with falter marker
• ‘down’ normal range pointing down
- Then a catchword for volume.
These can be ‘no volume’, ‘normal vol’, ‘much vol’, ‘high vol’, ‘huge vol’ or ‘extreme vol’.
Have fun,
Eykpunter
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.