taylor_o

level_stats

taylor_o Telah dikemas kini   
This script tells you the percentage of time an instrument's closing value is above and below a level of your choosing. The background color visually indicates periods where the instrument closed at or above the level (red) and below it (blue). For "stationary-ish" processes, you can get a loose feel for the mean, high, and low values. The historical information conveyed through the background coloring can help you plan derivatives trades. Try with your favorite pairs, commodities, or volatility indices.

Usage: pick a level of interest using the input.
Nota Keluaran:
Added a histogram to depict the distribution of closing prices. Prices less than the "level" input are blue, while those above the level are red. This color scheme is also used to color the chart background.
Nota Keluaran:
removed some debug code
Nota Keluaran:
added mean, median, and stdev
Nota Keluaran:
Added a date selection. The statistics and histogram will reflect only the period [ start, end ).
Nota Keluaran:
added a horizontal line (light red) to indicate the level
Nota Keluaran:
The histogram's width, height, and number of buckets are now adjustable inputs. More buckets will make the histogram somewhat smoother and more detailed, but at the cost of performance. The maximum number of buckets is probably around 80. The width and height units are "percentage of the screen".

I have set the defaults at levels that perform reasonably well.
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?