Quantile Bands - MetaTrader 5 Script | Trading Script Download - MT4/MT5 Resources - MetaTrader 5 Resources

In statistics and probability theory, a quantile is the point of cut that divides a range of a probability distribution into consecutive intervals that have the same probability, or that a sample will be observed in the same way. One less quantile than the number of groups created. The quartiles are therefore three cut points that divide the data set into four equally sized groups (see the example described). Common quantiles have special names: quartiles, deciles for instance (create 10 groups: see more below). The groups created are called halves, thirds, quarters, etc., although sometimes the term quantile is used for group creation rather than for cut points.
The q -quantile is the division of a finite set of values into q (almost) equally sized subsets of values. There are q - quantiles of q - 1 , one k for each integer such that 0 < k < q . In some cases, the value of a quantile may not be uniquely determined, such as the median (2-quantile) size of a uniform probability distribution over a set of even numbers. Quantiles can also be applied to continuous distributions, providing a way to generalize ranking statistics to continuous variables. When the cumulative distribution function of a random variable is known, the q -quantile is the applicationof the quantile function (which is the inverse function of the cumulative distribution function ) to the values {1/ q , 2/ q , …, ( q − 1)/ q }.
More information can be found here.
The indicator uses 3 quantile values to construct "bands".

Attachment download
📎 quantile_bands_1.3.mq5 (9 KB)
Source: MQL5 #16491
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •