LazyBear

Indicators: Butterworth & Super Smoother filters

These indicators, from John Ehlers' book "Cybernetic Analysis for Stocks and Futures", are EMA alternatives.

The basic idea behind all these is to try to get smoothing with as little lag as possible. As you can see from the chart, they are much smoother, have better response, and a closer match to market prices.

Basically, all the responsiveness of a faster EMA, with the smoothing of a slower EMA :)

List of my free indicators: bit.ly/1LQaPK8
List of my indicators at Appstore: blog.tradingview.com/?p=970
نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
//
// @author LazyBear
// 
// If you use this code in its original/modified form, do drop me a note. 
//
study("Two Pole Super Smoother Filter [LazyBear]", shorttitle="2PSSF_LB", overlay=true)
p=hl2
length=input(13)

a1=exp(-1.414*3.14159/length)
b1=2*a1*cos(1.414*180/length)
coef2=b1
coef3=-a1*a1
coef1=1-coef2-coef3
f2 = coef1*p+coef2*nz(f2[1])+coef3*nz(f2[2])
plot(f2,"2-Pole Super Smoother", color=black, linewidth=2)