Fast Z-Score


The ability of the least squares moving average to provide a great low lag filter is something i always liked, however the least squares moving average can have other uses, one of them is using it with the z-score to provide a fast smoothing oscillator.

The Indicator

The indicator aim to provide fast and smooth results. length control the smoothness.

The calculation is inspired from my sample correlation coefficient estimation described here
Instead of using the difference between a moving average of period length/2 and a moving average of period length, we use the difference between a lsma of period length/2 and a lsma of period length, this difference is then divided by the standard deviation. All those calculations use the price smoothed by a moving average as source.

The yellow version don't divide the difference by a standard deviation, you can that it is less reactive. Both version have length = 200


I presented a smooth and responsive version of a z-score, the result could be used to estimate an even faster lsma by using the line rescaling technique and our indicator as correlation coefficient .

Hope you like it, feel free to modify it and share your results ! :)


I have been requested a lot of indicators lately, from mt4 translations to more complex time series analysis methods, this accumulation of work made that it is impossible for me to publish those within a short period of time, also some are really complex. I apologize in advance for the inconvenience, i will try to do my best !
从常用的脚本中删除 添加到常用的脚本
Great one ,Thank you
+1 回复
alexgrover mattrad88
@mattrad88, Thank you for your comment :)
+1 回复
@perx, Thanks for your praise :)
I totally agreed with chysopoetics said no need apologize to us. Alex you created a lot of free and useful indicators for us. We all should appreciated your efforts and generosity as others coders. Keep it up bro! =D
+2 回复
@ICEKI, I'm really glad to see that my efforts are appreciated :D I will keep it up !
+1 回复
ICEKI alexgrover
@alexgrover, you deserve it! =D
Dude, don’t every apologize to us. You owe us nothing. Nonetheless, amazing work. I love how terse and efficient your code is
+2 回复
alexgrover chrysopoetics
@chrysopoetics, Thanks for the support, some users like to have their codes fast so i don't want to disappoint them.
+2 回复
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 剧集 如何运作 图表功能 价格 网站规则 版主 网站 & 经纪商解决方案 插件 图表解决方案 轻量图表库 帮助中心 推荐朋友 功能请求 博客 & 新闻 Twitter
概述 个人资料设置 账号和账单 推荐朋友 我的客服工单 帮助中心 已发表观点 粉丝 正在关注 私人消息 聊天 退出