The Shapiro-Wilk test is one of the most powerful statistical tests for normality.
In practice, tables of coefficients used in this method become inconvenient if there is a large data set (>100). So the isNormalDist() function uses a useful approximation for the significance level of 0.05, being one of the most common significance levels in statistical hypothesis testing.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1098
The trading system based on the signals obtained from the BBands_Stop_v1 signal indicator.Support Vector Machine Learning Trader
This Expert Advisor uses support vector machine learning to analyze historical price data and signal future trades.