Statistical Histogram with configurable bins and Data Window

Creates a Histogram for Statistical Analysis of any source.

Input Parameters:

Sample Source: Select your source here, can be any numerical source.
Sample Period: Sample size for Mean and Standard Deviation Calculations.
Enable Cumulative Mode: Will attempt to calculate the bin for every sample in the entire dataset.
Window Period: Used only in Window Mode (Enable Cumulative Mode unchecked), Calculates the bin for the past Window Period sample size.
Bin Label Spacing: Adjust horizontal spacing of Bin Labels below the histogram for easier viewing.
Center Bin: Selects the center Bin, usually set to (0 - Bin Width) < Sample <= 0 standard deviations or (z_score)
Bin Width: Selects the Bin Width in standard deviations.

How you can use it:

View characteristics of dataset such as unimodal/bimodal and skewness to determine preferred statistical analysis.

Additional Reference:

Thanks goes out to https://www.tradingview.com/u/e2e4mfck/, for cleaning up some of the code and https://www.tradingview.com/u/alexgrover/ for the original idea.

Usage Tips:
When adjusting the bin parameters, center bin and bin width, verify that the total sum of the bins (Sum Frequency in the Data Window) is close to the Total Samples. If your Sum Frequency is drastically lower it means you need to adjust your center bin and/or bin width to capture more of the data available.
Eliminar de Scripts favoritos. Añadir a Scripts favoritos.
B.S. Electrical Engineering and Computer Science with 10+ years experience in C, C++, HDL and lately, Pine for hire

Paypal: https://www.paypal.me/atesla2018
CashApp: https://cash.app/$atesla2018
Telegram: @airee_f


Very impressive and the appearance looks great, great work!
+3 Responder
This publication will be featured in our "Best Scripts of The Month" selection. Thank you for your valuable contribution to the TradingView community, and congrats!
+3 Responder
Great script! Kudos!
+1 Responder
Thank you all for the kind words. Hope you can find some use for this script.
+1 Responder
Beautyfully done!!!

Gr, JD.
+1 Responder
I have been wanting something like this for quite a while. Thank you so much for your sharing!
a.tesla2018 babytalk
@babytalk, Yeah I wished for the same :)
This is awesome man. Not sure how I'd use it, but it's still prety cool.
a.tesla2018 kurtsmock
@kurtsmock, hook up atr or tr to the input and see what it looks like for your instrument/time frame and could use that to influence the size of your stops/targets for example.
kurtsmock a.tesla2018
@a.tesla2018, Sweet deal man. I'll start there.
Inicio Analizador de acciones Analizador de Forex Crypto Screener Calendario económico Cómo funciona Funcionalidades del gráfico Precios Recomendar a un amigo Normas Centro de ayuda Soluciones broker y sitio web Widgets Soluciones gráficas Biblioteca de gráficos ligeros Blog y Noticias Twitter
Perfil Opciones de configuración del perfil Cuenta y facturación Amigos referidos Monedas Mis solicitudes de asistencia Centro de ayuda Ideas publicadas Seguidores Siguiendo Mensajes privados Chat Cerrar sesión