בחירות העורכיםOPEN-SOURCE SCRIPT

RSI Impact Heat Map [Trendoscope]

מעודכן
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.
heatmaphewhomustnotbenamedRelative Strength Index (RSI)scatterscatterplotstatisticstrendoscope

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יוכלו להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אבל השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

רוצה להשתמש בסקריפ זה בגרף?

כתב ויתור