Trendoscope

RSI Impact Heat Map [Trendoscope]

Trendoscope Wizard Mis à jour   
Here is a simple tool to measure and display outcome of certain RSI event over heat map.

🎲 Process

🎯Event
Event can be either Crossover or Crossunder of RSI on certain value.

🎯Measuring Impact
Impact of the event after N number of bars is measured in terms of highest and lowest displacement from the last close price. Impact can be collected as either number of times of ATR or percentage of price. Impact for each trigger is recorded separately and stored in array of custom type.

🎯Plotting Heat Map

Heat map is displayed using pine tables. Users can select heat map size - which can vary from 10 to 90. Selecting optimal size is important in order to get right interpretation of data. Having higher number of cells can give more granular data. But, chart may not fit into the window. Having lower size means, stats are combined together to get less granular data which may not give right picture of the results. Default value for size is 50 - meaning data is displayed in 51X51 cells.

Range of the heat map is adjusted automatically based on min and max value of the displacement. In order to filter out or merge extreme values, range is calculated based on certain percentile of the values. This will avoid displaying lots of empty cells which can obscure the actual impact.

🎲 Settings

Settings allow users to define their event, impact duration and reference, and few display related properties. The description of these parameters are as below:

🎲 Use Cases
In this script, we have taken RSI as an example to measure impact. But, we can do this for any event. This can be price crossing over/under upper/lower bollinger bands, moving average crossovers or even complex entry or exit conditions. Overall, we can use this to plot and evaluate our trade criteria.

🎲 Interpretation

  • Q1 - If more coloured dots appear on the top right corner of the table, then the event is considered to trigger high volatility and high risk environment.
  • Q2 - If more coloured dots appear on the top left corner, then the events are considered to trigger bearish environment.
  • Q3 - If more coloured dots appear on the bottom left corner of the chart, then the events are considered insignificant as they neither generate higher displacement in positive or negative side. You can further alter outlier percentage to reduce the bracket and hence have higher distribution move towards
  • Q4 - If more coloured dots appear on the bottom right corner, then the events are considered to trigger bullish environment.

Will also look forward to implement this as library so that any conditions or events can be plugged into it.
Notes de version:
Few updates

  • Added detailed count for each quadrants.
  • Default overlay set to false
  • Highest and Lowest is considered after the impact bar.
Notes de version:
Fixed the directions so that chart will start from bottom left instead of top left. Quadrants are also marked as per the regular convention.
Notes de version:
Fixed tooltips :)
Notes de version:
Minor updates with Event data structure
Notes de version:
Updated logic for calculating plot transparency in order to increase visibility.

Script open-source

Dans le véritable esprit de 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 le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?