OPEN-SOURCE SCRIPT
Day Of Week Price Distribution [LuxAlgo]

The Day of Week Price Distribution provides a snapshot of the distribution of closing prices for each day of the week over the last few weeks selected by the user. It displays a box plot with the IQR (interquartile range) box, the median, and all the closing prices as dots. Hovering over each dot reveals key information. There is also a dashboard with core metrics of the data for the selected period.
🔶 USAGE

Using the tool is pretty straightforward. Users must select the number of weeks (10 by default) and the box plot spacing (20 by default) to match the desired visual.
This is a unique way to see the data represented on the chart. It allows you to understand the price distribution at a glance.
Each box represents the price for each day of the week and displays the following elements:
Traders can easily detect outliers, which are prices far from their respective boxes.

This chart allows us to compare the price distribution for different window parameters. As we can see, the more data points that are used, the more uniform each day becomes.
The dashboard displays the following core metrics:
🔶 SETTINGS
🔹 Dashboard
🔹 Style
🔶 USAGE
Using the tool is pretty straightforward. Users must select the number of weeks (10 by default) and the box plot spacing (20 by default) to match the desired visual.
This is a unique way to see the data represented on the chart. It allows you to understand the price distribution at a glance.
Each box represents the price for each day of the week and displays the following elements:
- Box: Represents the data's IQR, which is delimited by the 25th and 75th percentiles.
- The line represents the median, or the 50th percentile.
- Dots represent each data point; these are the closing prices for each day. Hovering over the dots displays the closing price, change in price, volume, and date for that day.
Traders can easily detect outliers, which are prices far from their respective boxes.
This chart allows us to compare the price distribution for different window parameters. As we can see, the more data points that are used, the more uniform each day becomes.
The dashboard displays the following core metrics:
- Highest price: Highest price in the dataset
- Lowest price: Lowest price in the dataset
- Most bullish delta: Largest price increase from open to close
- Most bearish delta: Largest price decrease from open to close
- Larger volume: Day with the highest volume
- Smaller volume: Day with the lowest volume
🔶 SETTINGS
- Window: Select the number of weeks from which to gather data.
- Spacing: Select the spacing for the box plot. Larger values will create larger boxes.
🔹 Dashboard
- Dashboard: Enable or disable the dashboard.
- Position: Select the dashboard location.
- Size: Select the dashboard size.
🔹 Style
- Bullish: Select a color for bullish prices.
- Bearish: Select a color for bearish prices.
- IQR Area: Select a color for the IQR area. Enable the "Auto" feature to choose the default color.
- Median: Select the median color. Enable the "Auto" feature to choose the default color.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
All content & scripts provided by LuxAlgo are for educational purposes only and are not financial advice.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
All content & scripts provided by LuxAlgo are for educational purposes only and are not financial advice.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.