PROTECTED SOURCE SCRIPT
[BCT] Configurable Distribution

Trading, like any "game of chance" is best studied and practiced using statistics.
Distributions are a simple and intuitive way to summarize your data and identify whether they follow a pattern (e.g. Normal aka Gaussian distribution, or otherwise)
Use cases:
- Confirm or infirm the indicator / strategy / time series you are looking at follows a known distribution
- Identify an edge you can consistently target
- Investigate changes over time
- Slice the distribution by quartiles or equal sized "buckets" you can use to set adequate limits in your strategies
to apply this script to your indicator, add this indicator to the chart along with the one you want to extract the distribution of. On this script's settings, switch from 'close' to the name of your indicator.
Example: add a log return calculation, add this script, select 'log return' in place of 'close' to obtain the example above.
Features:
- "zoom" - it's a multiplier that zooms in; note that the extremes will be "cropped out" of the picture, but are added to the first and last bar so as to maintain a correct count.
- "quartiles" - typically quartiles are by 4 but you can change it to any number. The table below the chart shows cutoff values for your indicator.
- "bins" - is the number of bins for the distribution.
Distributions are a simple and intuitive way to summarize your data and identify whether they follow a pattern (e.g. Normal aka Gaussian distribution, or otherwise)
Use cases:
- Confirm or infirm the indicator / strategy / time series you are looking at follows a known distribution
- Identify an edge you can consistently target
- Investigate changes over time
- Slice the distribution by quartiles or equal sized "buckets" you can use to set adequate limits in your strategies
to apply this script to your indicator, add this indicator to the chart along with the one you want to extract the distribution of. On this script's settings, switch from 'close' to the name of your indicator.
Example: add a log return calculation, add this script, select 'log return' in place of 'close' to obtain the example above.
Features:
- "zoom" - it's a multiplier that zooms in; note that the extremes will be "cropped out" of the picture, but are added to the first and last bar so as to maintain a correct count.
- "quartiles" - typically quartiles are by 4 but you can change it to any number. The table below the chart shows cutoff values for your indicator.
- "bins" - is the number of bins for the distribution.
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
[BCT]
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
[BCT]
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。