glaz

Ehlers Early Onset Trend

In his article in this issue, “The Quotient Transform,” author John Ehlers introduces the quotient transform (QT), a zero-lag filter that can be used for the purpose of timely trend detection. The QT is an advancement of the technique he presented in his January 2014 S&C article, “Predictive And Successful Indicators.” This time, the output of a roofing filter (which includes applying a high-pass filter and SuperSmoother filter) is normalized.
Code and other platforms www.traders.com/docu.../08/TradersTips.html
Pinescript code Glaz and LazyBear
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?
//By Glaz and LazyBear
study(title="Ehlers Early Onset Trend",shorttitle="EOT")
Period=input(20)
Q1=input(0.8)
Q2=input(0.4)

Quotient(LPPeriod, K)=>
    PI = 3.1415926
    angle = 0.707 * 2 * PI / 100
    alpha1 = ( cos( angle ) + sin( angle ) - 1 ) / cos( angle )

    a1 = exp( -1.414 * PI / LPPeriod )
    b1 = 2 * a1 * cos( 1.414 * PI / LPPeriod )
    c2 = b1
    c3 = -a1 * a1
    c1 = 1 - c2 - c3

    HP= pow((1-alpha1/2),2)*(close - (2*close[1]) + close[2]) + 2*(1-alpha1)*nz(HP[1]) - pow((1-alpha1),2)* nz(HP[2])
    Filt= c1 * (HP + nz(HP[1]))/2 + c2*nz(Filt[1]) + c3*nz(Filt[2])
    Pk= iff(abs(Filt) >  0.991 *nz(Pk[1]), abs(Filt), 0.991 * nz(Pk[1]))
    X = nz(Filt / Pk)
   
    q=( X + K ) / ( K * X + 1 ) 

plot(Quotient( Period, Q1 ),color=red) 
plot(Quotient( Period, Q2 ),color=aqua)
hline(0)