Read code description to understand the reasoning behind all of this. This is a Normalized Z-Score Indicator, to evaluate bitcoin, and avoid systematic risk from eating your portfolio. I know there is room for improvement. Will keep updating this to make it as perfect as something can get! Enjoy!