# Directional Matrix [LuxAlgo]

Aggiornato Returns a dashboard showing the direction taken by 4 overlay indicators, SMA ( simple moving average ), TMA (triangular moving average), WMA ( weighted moving average ), and REG ( linear regression ), all using different length periods.

The user can select the minimum and maximum length of these indicators and introduce an increment.

1. Settings

• Maximum Length: The end value of sequences of the indicator periods to analyze
• Minimum Length: The starting value of sequences of the indicator periods to analyze
• Step: Determines the spacing between each indicator periods values
• Src: Data source for each of the 4 indicators

1.1 Style settings

• Normalized Change Mode: Allows the user to access a different interpretation of the indicator by showing the normalized first differences of each indicator in the dashboard instead of their sign
• Dashboard Location: Location of the dashboard on the chart
• Dashboard Size: Size of the dashboard on the chart
• Text/Frame Color: Determines the color of the frame grid as well as the text color
• Bullish Cell Color: Determines the color of cell associated with a rising indicator direction
• Bearish Cell Color: Determines the color of cell associated with a decreasing indicator direction
• Cell Transparency: Transparency of each cell

2. Usage

Each of the indicators included in the dashboard aim to give an estimate of the underlying trend in the price. Knowing which direction they are taking can help us have a broader view regarding the direction of shorter/longer-term trends. We will later see that this is not the only kind of information that we can get from this indicator.

Rising indicators are represented by blue cells (or the color selected in the Bullish Cell Color setting) while decreasing indicators are represented by red cells (or the color selected in the Bearish Cell Color setting).

The percentage of bullish cells is given in the top-left cell of the dashboard.

2.1 Normalized change mode

Enabling the Normalized Change mode will display the normalized changes returned by the indicators over different length periods. This metric is within a range (0,1), with 1 indicating the highest change over the selected length periods, while 0 indicates the lowest one.

When enabling this mode the color of the cells makes use of a gradient with a color palette ranging from the color selected in the Bearish Cell setting to the color selected in the Bullish Cell setting.

2.1 Other Usage

The direction taken by certain indicators can give more information than one would think. Indeed, the sign of the change of one indicator can often be given by different indicators.

A positive change in a simple moving average indicates that the price is greater than the price p bars ago, where p is the period of the simple moving average .

A positive change in a triangular moving average indicates that a simple moving average of period p is above a simple moving average of period p × 2, where p is the period of the triangular moving average (note that we assume here that the TMA is given by cascading two SMAs of period p).

A positive change in a weighted moving average indicates that the price is above a simple moving average of period p+1, where p is the period of the WMA .

Finally, a positive change in a linear regression indicates that a weighted moving average is above a simple moving average of period p, where p is the period of the linear regression .
Note di rilascio:
Thumbnail update for the aesthetics
Note di rilascio:
Minor changes.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8429728,"math_prob":0.8078251,"size":6911,"snap":"2023-14-2023-23","text_gpt3_token_len":1445,"char_repetition_ratio":0.16823512,"word_repetition_ratio":0.73670447,"special_character_ratio":0.19461727,"punctuation_ratio":0.07951807,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96357006,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-26T08:21:57Z\",\"WARC-Record-ID\":\"<urn:uuid:7e781e9a-af8b-4e88-a100-2f549e09d8bb>\",\"Content-Length\":\"281554\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4f62385b-6b77-4233-804f-14cf0ba89807>\",\"WARC-Concurrent-To\":\"<urn:uuid:cc2862a2-fba2-4774-a6e2-6dbe0cba5a09>\",\"WARC-IP-Address\":\"18.160.46.74\",\"WARC-Target-URI\":\"https://it.tradingview.com/script/wgS6EchG-Directional-Matrix-LuxAlgo/\",\"WARC-Payload-Digest\":\"sha1:WV6Q734N2HFWVQ6YLTYPOWNN4VZJ6YTR\",\"WARC-Block-Digest\":\"sha1:FPQIJWTOM7X3EHN6PGQ4UTKN5JVWDXAZ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296945440.67_warc_CC-MAIN-20230326075911-20230326105911-00020.warc.gz\"}"}