Trendoscope

RSI Impact Heat Map [Trendoscope]

Trendoscope Wizard 已更新   
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.
版本注释:
Few updates

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

开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?